/* style.css - PersonalBrandsPro.com
   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, 72px);
    background: var(--color-bg, #fbf8f3);
    color: var(--color-text, #182233);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

h1 { font-size: 2.75rem; font-weight: 200; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1rem; }

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

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

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

.eyebrow {
    font-family: var(--font-body, system-ui, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.65;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent, #c1622c);
    margin-bottom: 0.75rem;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 72px);
    background: var(--color-surface, #fff);
    border-bottom: 1px solid var(--color-border, #e7e0d3);
    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 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--color-text, #182233);
}

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

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

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

.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, #182233);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

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

.site-nav__item--has-dropdown {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: -0.75rem;
}

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

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

/* :focus-within keeps the panel open while keyboard/tap focus moves from the
   parent link into a dropdown link, closing the gap where hover-only menus
   lose focus before a click registers. */
.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;
}

.header-cta {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--color-accent, #c1622c);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-small, 6px);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--color-accent-strong, #a44f21);
    color: #fff;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    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, #182233);
    border-radius: 2px;
}

.nav-hamburger__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
    color: var(--color-text, #182233);
}

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

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

.page-wrapper--flush {
    max-width: none;
    padding: 0;
}

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

.content-layout--single {
    grid-template-columns: 1fr;
    max-width: 780px;
}

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

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

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

.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumbs.section__inner {
    padding-top: 1.5rem;
}

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

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

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

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-small, 6px);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

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

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

.btn--outline {
    border-color: var(--color-navy, #16233a);
    color: var(--color-navy, #16233a);
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-navy, #16233a);
    color: #fff;
}

.btn--outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    background: transparent;
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */

.section {
    padding: 4rem 1.5rem;
}

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

.section__inner--narrow {
    max-width: 720px;
}

.section--panel {
    background: var(--color-panel, #f3ede3);
}

.section--dark {
    background: var(--color-navy, #16233a);
    color: var(--color-text-on-dark, #f3ede3);
}

.section--dark h2, .section--dark h3 {
    color: #fff;
}

.section--dark p {
    color: var(--color-text-on-dark-muted, #aab3c4);
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

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

.hero {
    background: var(--color-panel-soft, #faf7f2);
    padding: 4.5rem 1.5rem 3.5rem;
}

.hero__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero__headline {
    font-size: 2.75rem;
    font-weight: 200;
    margin-bottom: 1.25rem;
}

.hero__copy {
    font-size: 1.1rem;
    color: var(--color-text-muted, #5c6577);
    margin-bottom: 1.75rem;
}

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--color-navy, #16233a);
    color: #fff;
    border-radius: var(--radius-large, 16px);
    padding: 2rem;
}

.hero-card h2 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-card li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-on-dark-muted, #aab3c4);
    font-size: 0.95rem;
}

.hero-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-accent, #c1622c);
    font-weight: 700;
}

.trust-strip {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-muted, #5c6577);
    font-size: 0.9rem;
}

/* ── Card grids ─────────────────────────────────────────────────────────────── */

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

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e7e0d3);
    border-radius: var(--radius-medium, 10px);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--color-text-muted, #5c6577);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.card a.card__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Process steps ─────────────────────────────────────────────────────────── */

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

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-accent, #c1622c);
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ── Lead magnet / forms ───────────────────────────────────────────────────── */

.lead-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.lead-form input[type="email"],
.form-field input,
.form-field textarea,
.form-field select {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border, #e7e0d3);
    border-radius: var(--radius-small, 6px);
    background: #fff;
    color: var(--color-text, #182233);
}

.lead-form input[type="email"] {
    flex: 1;
    min-width: 220px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-muted, #5c6577);
}

.form-success {
    background: var(--color-panel, #f3ede3);
    border: 1px solid var(--color-border, #e7e0d3);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

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

.faq-item {
    border-bottom: 1px solid var(--color-border, #e7e0d3);
    padding: 1.25rem 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    float: right;
    color: var(--color-accent, #c1622c);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--color-text-muted, #5c6577);
}

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

.glossary-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.glossary-jump a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-small, 6px);
    background: var(--color-panel, #f3ede3);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text, #182233);
}

.glossary-jump a:hover {
    background: var(--color-accent, #c1622c);
    color: #fff;
}

.glossary-group {
    margin-bottom: 2rem;
}

.glossary-group__letter {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent, #c1622c);
    border-bottom: 2px solid var(--color-border, #e7e0d3);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.glossary-group__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

.glossary-group__list a {
    text-decoration: none;
    font-weight: 500;
}

.term-callout {
    background: var(--color-panel, #f3ede3);
    border-left: 3px solid var(--color-accent, #c1622c);
    border-radius: var(--radius-small, 6px);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.term-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5c6577);
    margin-bottom: 1.5rem;
}

.related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.related-terms a {
    background: var(--color-panel, #f3ede3);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ── Stat band ──────────────────────────────────────────────────────────────── */

.stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-band__value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-accent, #c1622c);
    margin-bottom: 0.25rem;
}

.stat-band__label {
    font-size: 0.85rem;
    color: var(--color-text-on-dark-muted, #aab3c4);
}

/* ── Acquisition module ────────────────────────────────────────────────────── */

.acquisition-module {
    background: var(--color-panel, #f3ede3);
    border-top: 1px solid var(--color-border, #e7e0d3);
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.acquisition-module h2 {
    font-size: 1.35rem;
}

.acquisition-module .eyebrow {
    justify-content: center;
}

/* ── Sidebar blocks ───────────────────────────────────────────────────────── */

.sidebar-block {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e7e0d3);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sidebar-block__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #5c6577);
}

.sidebar-block__links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #c1622c);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-small, 6px);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.site-footer {
    border-top: 1px solid var(--color-border, #e7e0d3);
    padding: 3.5rem 0 1.5rem;
    background: var(--color-navy, #16233a);
    color: var(--color-text-on-dark-muted, #aab3c4);
}

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

.site-footer__top {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

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

.site-footer__tagline {
    margin: 0 0 0.5rem;
    color: var(--color-text-on-dark-muted, #aab3c4);
    font-size: 0.9rem;
    max-width: 320px;
}

.site-footer__contact a {
    color: var(--color-text-on-dark-muted, #aab3c4);
    font-size: 0.9rem;
}

.site-footer__col-heading {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    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 {
    color: var(--color-text-on-dark-muted, #aab3c4);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid var(--color-border-on-dark, #2b3956);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--color-text-muted, #5c6577);
}

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

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

.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 200;
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #5c6577);
}

.error-page p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .stat-band { grid-template-columns: repeat(2, 1fr); }
}

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

    .header-cta {
        display: none;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 72px);
        left: 0;
        right: 0;
        background: var(--color-surface, #fff);
        border-bottom: 1px solid var(--color-border, #e7e0d3);
        padding: 1rem 1.5rem 1.5rem;
        max-height: calc(100vh - var(--header-height, 72px));
        overflow-y: auto;
        z-index: 99;
    }

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

    .site-nav.is-open .header-cta {
        display: inline-block;
        margin-top: 1rem;
    }

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

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

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

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

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

    .content-sidebar {
        position: static;
    }

    .card-grid, .card-grid--2, .card-grid--4 {
        grid-template-columns: 1fr;
    }

    .glossary-group__list {
        grid-template-columns: 1fr;
    }

    /* Mobile footer: single column, all text/links doubled in size. */
    .site-footer__top {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer__nav {
        width: 100%;
    }

    .site-footer__brand-name { font-size: 2.4rem; }
    .site-footer__tagline { font-size: 1.8rem; max-width: none; }
    .site-footer__contact a { font-size: 1.8rem; }
    .site-footer__col-heading { font-size: 1.6rem; }
    .site-footer__links a { font-size: 1.8rem; }
    .site-footer__bottom { font-size: 1.6rem; flex-direction: column; }
}
