:root {
    --text: #4a3d47;
    --soft: #7b7078;
    --light: #9a8f98;
    --pink: #ee9db8;
    --pink-soft: #fff5f8;
    --line: rgba(74, 61, 71, 0.08);
    --shadow: 0 24px 60px rgba(90, 60, 80, 0.08);
    --radius-card: 28px;
    --radius-panel: 34px;
    --hero-accent: #7eb8c9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 236, 244, 0.75), transparent 42%),
        linear-gradient(180deg, #fffbfd 0%, #fffefb 55%, white 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(74, 61, 71, 0.05);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo img {
    height: 56px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 26px;
    font-size: 13px;
    font-weight: 650;
    color: var(--light);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--pink);
}

.header-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s, transform 0.2s;
}

.header-button:hover {
    color: var(--pink);
    transform: translateY(-1px);
}

.site-main {
    display: block;
}

/* Typography helpers */
.section-kicker,
.kicker {
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-heading {
    font-family: Fraunces, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #544852;
    margin-bottom: 24px;
}

.section-block {
    padding-bottom: 70px;
}

/* Buttons */
.button {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--pink);
    color: white;
    box-shadow: 0 16px 30px rgba(238, 157, 184, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    color: var(--soft);
}

/* Homepage hero */
.hero-image {
    width: min(1450px, calc(100% - 10px));
    margin: 8px auto 0;
    text-align: center;
}

.hero-image img {
    width: min(1240px, 96vw);
    max-height: 760px;
    object-fit: contain;
    filter: drop-shadow(0 30px 45px rgba(90, 60, 80, 0.08));
}

.hero-text {
    text-align: center;
    margin-top: -25px;
    padding-bottom: 60px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--pink);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(238, 157, 184, 0.35);
}

h1 {
    max-width: 820px;
    margin: auto auto 18px;
    font-family: Fraunces, serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: #544852;
}

.hero-text .hero-headline {
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 500;
    color: #8a7f88;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.hero-headline-accent {
    color: var(--hero-accent);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-text p,
.page-hero-intro {
    max-width: 720px;
    margin: auto;
    color: var(--soft);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
    text-align: center;
    padding: 48px 0 56px;
}

.page-hero h1 {
    margin-bottom: 16px;
}

.page-hero .hero-actions {
    margin-top: 24px;
}

/* Category grid (homepage) */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding-bottom: 70px;
}

.categories .card,
.card-link-card {
    padding: 26px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.categories .card:hover,
.card-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 64px rgba(90, 60, 80, 0.1);
}

.card h3,
.content-card h3,
.product-card h3,
.article-card h3 {
    font-family: Fraunces, serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.15;
}

.card p,
.content-card p,
.product-card p,
.article-card p {
    color: var(--soft);
    line-height: 1.7;
    font-size: 14px;
}

/* Soft panel / band */
.soft-panel,
.band {
    padding: 40px;
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.band {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
}

.band h2 {
    font-family: Fraunces, serif;
    font-size: 52px;
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.band p {
    color: var(--soft);
    line-height: 1.9;
}

.band-single {
    grid-template-columns: 1fr;
    text-align: center;
}

.section-heading-tight {
    margin-bottom: 16px;
}

/* Content & product grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 8px;
}

.content-card,
.product-card,
.article-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 25px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.content-card .card-link,
.article-card .card-link {
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    font-weight: 750;
    color: #5c4a57;
}

.content-card .card-link:hover,
.article-card .card-link:hover {
    color: var(--pink);
}

.product-card .button,
.article-card .button {
    margin-top: auto;
    align-self: flex-start;
}

.product-why {
    font-size: 13px;
    line-height: 1.65;
    margin: 8px 0 12px;
}

.card-meta,
.article-date {
    font-size: 12px;
    color: var(--light);
    margin: 4px 0 12px;
}

.tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--pink-soft);
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    align-self: flex-start;
}

/* Featured section (homepage) */
.section-title {
    text-align: center;
    margin-bottom: 26px;
}

.section-title h2 {
    font-family: Fraunces, serif;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-bottom: 80px;
}

.article {
    background: white;
    border-radius: var(--radius-card);
    padding: 25px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.article h3 {
    font-family: Fraunces, serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 12px;
}

.article p {
    color: var(--soft);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Newsletter */
.newsletter {
    margin-bottom: 70px;
    padding: 56px;
    text-align: center;
}

.newsletter h2 {
    font-family: Fraunces, serif;
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
}

.newsletter p {
    max-width: 650px;
    margin: auto auto 28px;
    color: var(--soft);
    line-height: 1.8;
}

.email {
    max-width: 580px;
    margin: auto;
    display: flex;
    gap: 10px;
}

.email input {
    flex: 1;
    height: 52px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0 18px;
    font: inherit;
    outline: none;
}

/* About / meet the family */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 70px;
}

.about-card {
    padding: 28px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.about-card h3 {
    font-family: Fraunces, serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--soft);
    line-height: 1.75;
    font-size: 15px;
}

.body-copy {
    max-width: 720px;
    margin: 0 auto 48px;
    color: var(--soft);
    line-height: 1.9;
    font-size: 16px;
    text-align: center;
}

/* Footer */
.site-footer {
    padding-bottom: 46px;
    text-align: center;
    color: var(--light);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--pink);
}

.footer-tagline {
    font-weight: 600;
}

/* Mobile */
@media (max-width: 920px) {
    .nav-links {
        display: none;
    }

    .categories {
        grid-template-columns: 1fr 1fr;
    }

    .band {
        grid-template-columns: 1fr;
    }

    .grid,
    .content-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .logo img {
        height: 48px;
    }

    .header-button {
        display: none;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .email {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .hero-text .hero-headline {
        font-size: 34px;
    }

    .newsletter {
        padding: 32px 24px;
    }

    .band,
    .soft-panel {
        padding: 30px 24px;
    }

    .hero-image img {
        width: 118vw;
        max-width: none;
    }

    .fav-ap-intro-image {
        max-height: 480px;
    }
}

/* Favorite air purifiers guide (favorite-air-purifiers.php) */
.page-fav-ap .fav-ap-intro {
    padding-top: 20px;
}

.fav-ap-intro-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) 1.05fr;
    gap: 40px;
    align-items: center;
    padding: 36px 40px;
}

.fav-ap-intro-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background: radial-gradient(circle at 50% 40%, rgba(255, 236, 244, 0.5), transparent 70%);
    border-radius: 24px;
}

.fav-ap-intro-image {
    display: block;
    width: 100%;
    max-width: 420px;
    max-height: min(640px, 78vh);
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 20px;
}

.fav-ap-intro-copy h1 {
    text-align: left;
    margin: 0 0 18px;
    max-width: none;
}

.fav-ap-lead,
.fav-ap-lead-secondary {
    color: var(--soft);
    line-height: 1.85;
    font-size: 17px;
    text-align: left;
    max-width: none;
    margin: 0;
}

.fav-ap-lead-secondary {
    margin-top: 16px;
    font-size: 16px;
}

.fav-ap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.fav-ap-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.88);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.fav-ap-card-head {
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(255, 245, 248, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-bottom: 1px solid var(--line);
}

.fav-ap-rank {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pink);
}

.fav-ap-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fav-ap-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center center;
    margin: 4px 0 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
}

.fav-ap-card-image--placeholder {
    background: linear-gradient(135deg, var(--pink-soft), #fff);
}

.fav-ap-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 14px 0;
}

.fav-ap-card h3 {
    font-family: Fraunces, serif;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 500;
    margin: 0;
    color: #544852;
}

.fav-ap-meta {
    font-size: 13px;
    color: var(--light);
    line-height: 1.5;
}

.fav-ap-specs {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--soft);
}

.fav-ap-specs li {
    margin-bottom: 5px;
}

.fav-ap-spec-price,
.fav-ap-spec-discount {
    color: #9a4a5a;
    font-weight: 700;
}

.fav-ap-btn {
    margin-top: auto;
    align-self: flex-start;
}

.fav-ap-empty {
    text-align: center;
    padding: 48px 32px;
}

.fav-ap-empty p {
    color: var(--soft);
    line-height: 1.85;
    max-width: 520px;
    margin: 0 auto;
}

.fav-ap-empty a {
    color: var(--pink);
    font-weight: 700;
}

.fav-ap-closing p {
    color: var(--soft);
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 14px;
}

.comparison-featured-link {
    display: block;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comparison-featured-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 64px rgba(90, 60, 80, 0.1);
}

@media (max-width: 920px) {
    .fav-ap-intro-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 24px;
    }

    .fav-ap-intro-media {
        min-height: 320px;
        order: -1;
    }

    .fav-ap-intro-copy h1 {
        text-align: center;
    }

    .fav-ap-lead,
    .fav-ap-lead-secondary {
        text-align: center;
    }

    .fav-ap-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Front-end fixes: guide cards, product images, review detail, mobile hero ===== */
.content-card-image,
.product-card-image,
.article-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
}
.content-card-image img,
.product-card-image img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.content-card-guide,
.article-guide-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.content-card-guide:hover,
.article-guide-card:hover {
    transform: translateY(-3px);
}
/* Clamp long product/guide titles to 3 lines */
.product-card-title,
.content-card-guide h3,
.article-guide-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-link-muted {
    color: var(--soft);
    font-weight: 600;
}
/* Single review detail */
.article-detail { max-width: 760px; margin: 0 auto; }
.article-hero { width: 100%; border-radius: 18px; margin-bottom: 24px; }
.article-body { font-size: 17px; line-height: 1.85; }

/* Mobile hero: show the whole image (scaled down), never clipped */
@media (max-width: 650px) {
    .hero-image { width: 100%; margin: 0 auto; }
    .hero-image img {
        width: 100%;
        max-height: 62vh;
        height: auto;
        object-fit: contain;
    }
    .hero-text { margin-top: 8px; }
}

/* Meet the Family — small image floated right inside each box, text wraps beside it */
.about-card { display: flow-root; }
.about-card-img {
    float: right;
    width: auto;
    height: 200px;
    border-radius: 16px;
    margin: 2px 0 10px 22px;
}
@media (max-width: 480px) {
    .about-card-img { height: 150px; margin-left: 16px; }
}

/* Browse-by-category tiles (Meet the Family) */
.category-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 8px 0 28px;
}
.category-tile {
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.15s ease;
}
.category-tile:hover { transform: translateY(-3px); }
.category-tile-img {
    aspect-ratio: 3 / 4;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.category-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.category-tile-label {
    display: block;
    margin-top: 10px;
    font-family: Fraunces, serif;
    font-size: 18px;
    font-weight: 500;
}
@media (max-width: 640px) {
    .category-tiles { grid-template-columns: 1fr; gap: 14px; }
    .category-tile { display: flex; align-items: center; gap: 16px; text-align: left; }
    .category-tile-img { width: 84px; flex: 0 0 84px; }
}

/* Guide cards: standardize on a vertical (portrait 3:4) image so vertical photos fill cleanly */
.article-image,
.content-card-image {
    aspect-ratio: 3 / 4;
}
.article-image img,
.content-card-image img {
    object-fit: contain;
    padding: 0;
}
