/* style.css - SEO Marketing Spa
   Design tokens are injected as CSS custom properties via site_tokens_css(). */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 76px);
    background: var(--color-bg, #f8f4ec);
    color: var(--color-text, #17251f);
    font-family: var(--font-body, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-display, sans-serif);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text, #17251f);
    margin: 0 0 0.6em;
}

a {
    color: var(--color-accent, #1f4d3f);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #163a2f);
}

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

.text-muted { color: var(--color-text-muted, #5d6b64); }
.small { font-size: 0.85rem; }

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 76px);
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-border, #e6ded0);
    z-index: 100;
}

.site-header__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display, sans-serif);
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--color-text, #17251f);
    text-transform: uppercase;
}

.site-logo__icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    color: var(--color-accent, #1f4d3f);
}

.site-logo__icon svg { width: 100%; height: 100%; }

.site-logo span:last-child {
    color: var(--color-accent, #1f4d3f);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text, #17251f);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-accent, #1f4d3f);
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.7em;
}

/* Dropdown: entire <li> is the hover/focus target, with an invisible bridge
   closing the gap between the link and the panel, so the cursor never
   "leaves" the hoverable zone while moving down into the dropdown. */
.site-nav__item {
    position: relative;
}

.site-nav__item--has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--color-surface, #fffdf9);
    border: 1px solid var(--color-border, #e6ded0);
    border-radius: var(--radius-small, 8px);
    padding: 0.5rem 0;
    min-width: 230px;
    list-style: none;
    margin: 0;
    box-shadow: var(--shadow-card);
    z-index: 200;
}

.site-nav__item--has-dropdown:hover .nav-dropdown,
.site-nav__item--has-dropdown:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
    font-size: 0.875rem;
    text-decoration: none;
}

.nav-cta {
    margin-left: 1.5rem;
    display: inline-block;
    padding: 0.6rem 1.3rem;
    background: var(--color-accent, #1f4d3f);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--color-accent-strong, #163a2f);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.nav-hamburger__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger__bars span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text, #17251f);
    border-radius: 2px;
}

.nav-hamburger__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-muted, #5d6b64);
    margin-top: 3px;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
    padding: 0 1.5rem;
}

.content-layout--single {
    grid-template-columns: 1fr;
    max-width: none;
    padding: 0;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height, 76px) + 1.5rem);
}

.section {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title {
    font-size: 2rem;
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted, #5d6b64);
    max-width: 640px;
    margin: -0.5rem auto 2.5rem;
}

.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p { margin: 0 0 1.1em; }

.panel {
    background: var(--color-panel, #eef2ec);
    border-radius: var(--radius-large, 20px);
    padding: 2rem;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */

.breadcrumbs { margin: 1.5rem 1.5rem 0; max-width: var(--content-width, 1200px); margin-left: auto; margin-right: auto; }

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted, #5d6b64);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
}

.breadcrumbs__item.is-current { color: var(--color-text); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--color-accent, #1f4d3f);
    color: #fff;
}

.btn--primary:hover { background: var(--color-accent-strong, #163a2f); color: #fff; }

.btn--outline {
    border-color: var(--color-text, #17251f);
    color: var(--color-text, #17251f);
    background: transparent;
}

.btn--outline:hover { background: var(--color-text, #17251f); color: #fff; }

.btn--light {
    background: #fff;
    color: var(--color-accent-strong, #163a2f);
}

.btn--light:hover { background: var(--color-panel-soft, #f3efe4); }

.btn--small { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn--block { display: block; text-align: center; width: 100%; margin-top: 1rem; }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.checklist { list-style: none; margin: 1.2rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.6rem; }
.checklist__icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--color-accent, #1f4d3f); margin-top: 2px; }
.checklist__icon svg { width: 100%; height: 100%; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.eyebrow {
    color: var(--color-gold, #b8894d);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

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

.lede { color: var(--color-text-muted, #5d6b64); font-size: 1.1rem; max-width: 640px; }

.hero {
    padding: 6rem 1.5rem 5rem;
    background: linear-gradient(135deg, var(--color-panel-soft, #f3efe4), var(--color-panel, #eef2ec));
}

.hero--home {
    background: linear-gradient(135deg, rgba(18,38,31,0.94), rgba(31,77,63,0.88)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="100" cy="100" r="90" fill="%231a332a"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero--home .eyebrow { color: #d8c79b; }
.hero--home h1, .hero--home .lede { color: #fdfbf6; }
.hero--home .lede { color: rgba(253,251,246,0.82); }

.hero__inner { max-width: var(--content-width, 1200px); margin: 0 auto; }

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }

.page-hero {
    padding: 4.5rem 1.5rem 3rem;
    background: var(--color-panel-soft, #f3efe4);
    text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lede { margin: 0 auto; }
.page-hero__icon { display: inline-flex; width: 40px; height: 40px; color: var(--color-accent); margin-bottom: 0.5rem; }
.page-hero__icon svg { width: 100%; height: 100%; }

/* ── Cards grid (treatments) ──────────────────────────────────────────────── */

.cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid--6 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.treatment-card,
.dir-category-card,
.dir-listing-card {
    display: block;
    background: var(--color-surface, #fffdf9);
    border: 1px solid var(--color-border, #e6ded0);
    border-radius: var(--radius-large, 20px);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s, box-shadow 0.15s;
}

.treatment-card:hover,
.dir-category-card:hover,
.dir-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(18,38,31,0.12);
}

.treatment-card__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: var(--color-accent, #1f4d3f);
    margin-bottom: 0.9rem;
}

.treatment-card__icon svg { width: 100%; height: 100%; }
.treatment-card h3 { font-size: 1.1rem; }
.treatment-card p { color: var(--color-text-muted, #5d6b64); font-size: 0.92rem; margin: 0; }

.dir-category-card__count { display: block; margin-top: 0.75rem; font-size: 0.8rem; color: var(--color-accent, #1f4d3f); font-weight: 600; }
.dir-listing-card__price { display: inline-block; margin-top: 0.75rem; font-size: 0.8rem; font-weight: 600; color: var(--color-accent, #1f4d3f); }

/* ── Split section ─────────────────────────────────────────────────────────── */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split__media {
    position: relative;
    height: 280px;
    border-radius: var(--radius-large, 20px);
    background: radial-gradient(circle at 50% 40%, rgba(31,77,63,0.15), transparent 70%), var(--color-panel, #eef2ec);
    overflow: hidden;
}

.split__ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-radius: 50%;
    border: 2px solid var(--color-accent, #1f4d3f);
    opacity: 0.5;
    box-shadow: 0 0 0 30px rgba(31,77,63,0.08), 0 0 0 60px rgba(31,77,63,0.05);
}

/* ── Stats row ─────────────────────────────────────────────────────────────── */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding-top: 0;
}

.stat-card {
    background: var(--color-surface, #fffdf9);
    border: 1px solid var(--color-border, #e6ded0);
    border-radius: var(--radius-medium, 12px);
    padding: 1.5rem 1rem;
    text-align: center;
}

.stat-card__value {
    font-family: var(--font-display, sans-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-accent, #1f4d3f);
}

.stat-card__label { font-size: 0.85rem; color: var(--color-text-muted, #5d6b64); }

/* ── CTA banner ────────────────────────────────────────────────────────────── */

.cta-banner {
    background: var(--color-surface-strong, #12261f);
    color: #f4efe4;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 7vw;
    flex-wrap: wrap;
}

.cta-banner h2, .cta-banner p { color: #f4efe4; }
.cta-banner h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.cta-banner p { margin: 0; color: rgba(244,239,228,0.78); }

.cta-banner__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    color: var(--color-gold, #b8894d);
}

.cta-banner__icon svg { width: 100%; height: 100%; }
.cta-banner__body { flex: 1; min-width: 220px; }
.cta-banner--compact { padding: 2rem 1.5rem; margin: 0 1.5rem 4rem; border-radius: var(--radius-large, 20px); }

/* ── Service list (treatments hub) ────────────────────────────────────────── */

.service-list { display: flex; flex-direction: column; gap: 1.25rem; }

.service-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-surface, #fffdf9);
    border: 1px solid var(--color-border, #e6ded0);
    border-radius: var(--radius-large, 20px);
    padding: 1.5rem 1.75rem;
    flex-wrap: wrap;
}

.service-row__icon { width: 40px; height: 40px; flex: 0 0 auto; color: var(--color-accent, #1f4d3f); }
.service-row__icon svg { width: 100%; height: 100%; }
.service-row__body { flex: 1; min-width: 200px; }
.service-row__body h2 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.service-row__body p { margin: 0; color: var(--color-text-muted, #5d6b64); font-size: 0.92rem; }

.price-tag { font-size: 1.3rem; font-weight: 600; color: var(--color-accent, #1f4d3f); margin-top: 1rem; }

/* ── Pricing / Membership ─────────────────────────────────────────────────── */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.price-card {
    position: relative;
    background: var(--color-surface, #fffdf9);
    border: 1px solid var(--color-border, #e6ded0);
    border-radius: var(--radius-large, 20px);
    padding: 2rem;
}

.price-card--featured {
    border-color: var(--color-accent, #1f4d3f);
    box-shadow: var(--shadow-card);
    transform: scale(1.03);
}

.price-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold, #b8894d);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

.price-card__price {
    font-family: var(--font-display, sans-serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-text, #17251f);
    margin: 0.5rem 0;
}

.price-card__period { font-size: 0.9rem; color: var(--color-text-muted, #5d6b64); font-weight: 400; }

.plan-includes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    margin-top: 2.5rem;
    text-align: center;
}

.plan-includes__label { font-weight: 600; color: var(--color-text-muted, #5d6b64); }
.plan-includes__item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.plan-includes__item svg { width: 16px; height: 16px; color: var(--color-accent, #1f4d3f); }

/* ── Results / case studies ───────────────────────────────────────────────── */

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-tab {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border, #e6ded0);
    color: var(--color-text, #17251f);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-tab.is-active,
.filter-tab:hover {
    background: var(--color-accent, #1f4d3f);
    border-color: var(--color-accent, #1f4d3f);
    color: #fff;
}

.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.result-card {
    background: var(--color-surface, #fffdf9);
    border: 1px solid var(--color-border, #e6ded0);
    border-radius: var(--radius-large, 20px);
    padding: 1.75rem;
}

.result-card__industry { display: block; color: var(--color-gold, #b8894d); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.result-card__header h2 { font-size: 1.2rem; }

.result-card__stats,
.result-card__stats--detail {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.result-card__stats--detail { justify-content: center; padding: 1.5rem; background: var(--color-panel, #eef2ec); border-radius: var(--radius-large, 20px); margin-bottom: 2rem; }

.result-stat__value { display: block; font-family: var(--font-display, sans-serif); font-size: 1.5rem; font-weight: 300; color: var(--color-accent, #1f4d3f); }
.result-stat__label { font-size: 0.78rem; color: var(--color-text-muted, #5d6b64); }

.result-card__link { font-weight: 600; text-decoration: none; font-size: 0.9rem; }

.testimonial {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--color-panel-soft, #f3efe4);
    border-radius: var(--radius-large, 20px);
    text-align: center;
}

.testimonial__icon { display: inline-flex; width: 32px; height: 32px; color: var(--color-gold, #b8894d); margin-bottom: 0.75rem; }
.testimonial__icon svg { width: 100%; height: 100%; }
.testimonial p { font-size: 1.15rem; font-style: italic; max-width: 640px; margin: 0 auto 0.75rem; }
.testimonial cite { font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--color-text-muted, #5d6b64); }

/* ── Icon grid (about page) ───────────────────────────────────────────────── */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.icon-grid__item { text-align: center; }
.icon-grid__icon { display: inline-flex; width: 40px; height: 40px; color: var(--color-accent, #1f4d3f); margin-bottom: 0.75rem; }
.icon-grid__icon svg { width: 100%; height: 100%; }
.icon-grid__item h3 { font-size: 1rem; }
.icon-grid__item p { font-size: 0.88rem; color: var(--color-text-muted, #5d6b64); margin: 0; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
    background: var(--color-surface, #fffdf9);
    border: 1px solid var(--color-border, #e6ded0);
    border-radius: var(--radius-medium, 12px);
    padding: 1.1rem 1.5rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__chevron { width: 18px; height: 18px; flex: 0 0 auto; transition: transform 0.15s; }
.faq-item__chevron svg { width: 100%; height: 100%; }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { margin-top: 0.75rem; color: var(--color-text-muted, #5d6b64); }
.faq-item__answer p { margin: 0; }

/* ── Library / articles ───────────────────────────────────────────────────── */

.article-list { display: flex; flex-direction: column; gap: 1.5rem; }
.article-row h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.article-row h3 a { text-decoration: none; }
.article-row p { margin: 0; color: var(--color-text-muted, #5d6b64); }

/* ── Glossary ──────────────────────────────────────────────────────────────── */

.glossary-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.glossary-jump a, .glossary-jump span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    text-decoration: none;
}

.glossary-jump a { background: var(--color-panel, #eef2ec); color: var(--color-accent, #1f4d3f); }
.glossary-jump span.is-disabled { color: var(--color-text-muted, #5d6b64); opacity: 0.4; }

.glossary-letter { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-height, 76px) + 1rem); }
.glossary-letter h2 { border-bottom: 2px solid var(--color-border, #e6ded0); padding-bottom: 0.4rem; }

.glossary-entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
.glossary-entry h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.glossary-entry h3 a { text-decoration: none; }
.glossary-entry p { margin: 0; color: var(--color-text-muted, #5d6b64); font-size: 0.9rem; }

.related-terms { margin: 2rem 0; }

/* ── Directory listing detail ─────────────────────────────────────────────── */

.detail-list { margin: 0; }
.detail-list dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted, #5d6b64); margin-top: 1rem; }
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 0.15rem 0 0; font-weight: 600; }

/* ── Trust strip ───────────────────────────────────────────────────────────── */

.trust-strip {
    background: var(--color-panel, #eef2ec);
    border-bottom: 1px solid var(--color-border, #e6ded0);
}

.trust-strip__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.25rem;
}

.trust-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted, #5d6b64); }
.trust-badge__icon { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent, #1f4d3f); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-surface-strong, #12261f);
    color: #d6ddd8;
    padding-top: 0;
}

.site-footer a { color: #d6ddd8; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.site-footer__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 1.5rem;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.site-footer__brand-name {
    font-family: var(--font-display, sans-serif);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.site-footer__tagline { margin: 0 0 0.75rem; color: rgba(214,221,216,0.75); font-size: 0.88rem; }
.site-footer__contact a { font-size: 0.88rem; }

.site-footer__col-heading {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    margin-bottom: 0.9rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer__links a { font-size: 0.88rem; }

.site-footer__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.social-icon svg { width: 16px; height: 16px; }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: rgba(214,221,216,0.65);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer__legal a { font-size: 0.8rem; }

/* ── Error page ─────────────────────────────────────────────────────────────── */

.error-page { text-align: center; padding: 5rem 1rem; max-width: var(--content-width); margin: 0 auto; }
.error-page h1 { font-size: 6rem; font-weight: 200; margin: 0 0 0.5rem; color: var(--color-text-muted, #5d6b64); }
.error-page p { font-size: 1.1rem; margin-bottom: 2rem; }

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .cards-grid--6,
    .cards-grid--4,
    .cards-grid--3,
    .split,
    .pricing-grid,
    .results-grid,
    .icon-grid,
    .glossary-entries {
        grid-template-columns: 1fr 1fr;
    }

    .stats-row { grid-template-columns: 1fr 1fr; }
    .price-card--featured { transform: none; }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 76px);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-surface, #fffdf9);
        padding: 1.5rem;
        z-index: 99;
        overflow-y: auto;
    }

    .site-nav.is-open { display: block; }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0 1rem;
        display: none;
    }

    .site-nav__item--has-dropdown::after { display: none; }

    .site-nav.is-open .nav-dropdown { display: block; }

    .nav-cta { margin: 1.5rem 0 0; }

    .content-layout { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .content-sidebar { position: static; }

    .cards-grid--6,
    .cards-grid--4,
    .cards-grid--3,
    .split,
    .pricing-grid,
    .results-grid,
    .icon-grid,
    .glossary-entries,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .split__media { order: 2; height: 200px; }
    .price-card--featured { transform: none; }
    .service-row { flex-direction: column; align-items: flex-start; }
    .service-row .btn { width: 100%; text-align: center; }

    /* Footer: single column, all text and links at 2x size on mobile */
    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        text-align: center;
    }

    .site-footer__brand-name { font-size: 2rem; }
    .site-footer__tagline,
    .site-footer__contact a { font-size: 1.5rem; }
    .site-footer__col-heading { font-size: 1.4rem; }
    .site-footer__links a { font-size: 1.5rem; }
    .site-footer__social { display: flex; flex-direction: column; align-items: center; }
    .site-footer__social-list { justify-content: center; }
    .site-footer__bottom { flex-direction: column; text-align: center; font-size: 1.1rem; }
    .site-footer__legal a { font-size: 1.1rem; }
    .trust-strip__inner { justify-content: flex-start; }
    .trust-badge { font-size: 1.1rem; }
}
