/* ================================================================
   FAITHSTACK — Design System v2.0 (The Ascend Identity)
   Palette: Midnight / Canvas / Burnished Gold / Spiritual Violet
   Typography: Plus Jakarta Sans (display) + Inter (body)

   Design tokens are defined in /css/design-tokens.css.
   Variables below are kept for legacy compatibility.
================================================================ */

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

:root {
    /* ── Core Palette ── */
    --white:           #FAFAF8;   /* warm near-white canvas */
    --ivory:           #FAFAF8;
    --sand:            #F3F2EE;   /* secondary surface */
    --sand-dark:       #E9E7E1;
    --sand-subtle:     #FAF7F3;

    /* Gold */
    --gold:            #C2951C;   /* burnished gold */
    --gold-vivid:      #D4A843;
    --gold-light:      #D8AE3A;
    --gold-dark:       #9A7410;
    --gold-glow:       rgba(194, 149, 28, 0.10);
    --gold-glow-md:    rgba(194, 149, 28, 0.18);
    --gold-glow-lg:    rgba(194, 149, 28, 0.28);

    /* Navy */
    --navy:            #0D1B2E;   /* deep midnight */
    --navy-deep:       #0D1B2E;   /* alias */
    --navy-mid:        #152440;
    --navy-light:      #1E3255;
    --navy-ghost:      rgba(13, 27, 46, 0.06);

    /* Violet — spiritual indigo accent */
    --violet:          #6C4EC7;
    --violet-light:    #8A6CD8;
    --violet-dark:     #4E35A0;
    --violet-glow:     rgba(108, 78, 199, 0.10);

    /* Text */
    --text:            #1C1C2E;
    --text-secondary:  #5A5A78;
    --text-muted:      #8A8AAA;
    --text-inverse:    rgba(255,255,255,0.92);
    --text-inverse-2:  rgba(255,255,255,0.62);
    --text-inverse-3:  rgba(255,255,255,0.40);

    /* Borders */
    --border:          #E4E2DC;
    --border-warm:     #DCD9D0;
    --border-gold:     rgba(194, 149, 28, 0.30);

    /* Shadows */
    --shadow-xs:       0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm:       0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:       0 4px 16px rgba(0,0,0,0.09);
    --shadow-lg:       0 8px 32px rgba(0,0,0,0.11);
    --shadow-xl:       0 16px 48px rgba(0,0,0,0.13);
    --shadow-gold:     0 6px 24px rgba(194,149,28,0.32);
    --shadow-gold-lg:  0 12px 40px rgba(194,149,28,0.40);

    /* Border Radius */
    --r-sm:    8px;
    --r-md:    12px;
    --r-lg:    16px;
    --r-xl:    20px;
    --r-2xl:   28px;
    --r-full:  100px;

    /* Legacy compat */
    --cream:        #FAFAF8;
    --cream-dark:   #F3F2EE;
    --text-primary: #1C1C2E;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   LOGO MARK — geometric SVG mark via CSS
   Appears as a small stacked diamond before wordmark
================================================ */
.logo, a.logo {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: -0.4px;
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
/* Geometric mark — ascending pillars SVG */
.logo::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20' fill='none'%3E%3Crect x='0' y='12' width='5' height='8' rx='1.5' fill='%230D1B2E' opacity='0.9'/%3E%3Crect x='8.5' y='6' width='5' height='14' rx='1.5' fill='%23C2951C'/%3E%3Crect x='17' y='0' width='5' height='20' rx='1.5' fill='%236C4EC7' opacity='0.85'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.logo .wordmark { color: var(--navy); }
a.logo:hover { opacity: 0.88; }
/* Suppress CSS mark when logo already has inline SVG */
.logo:has(svg)::before,
.footer-brand .logo-small:has(svg)::before { display: none; }

/* ================================================
   NAV — Premium frosted glass
================================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid rgba(228,230,237,0.7);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), var(--shadow-xs);
}
.logo {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy);
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.logo span { color: var(--violet); font-weight: 600; }
a.logo:hover { opacity: 0.88; }

/* Nav center links */
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
    height: 72px;
}
.nav-links > li {
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
}
.nav-links > li > a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
    padding: 0 0.85rem;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    letter-spacing: -0.1px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--navy); }

/* Dropdown arrow */
.nav-links > li > a.has-dropdown::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 3.5px solid currentColor;
    opacity: 0.45;
    transition: transform 0.2s;
    margin-left: 1px;
}
.nav-links > li:hover > a.has-dropdown::after {
    transform: rotate(180deg);
    opacity: 0.7;
}

/* Dropdown panel */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 0.5rem;
    min-width: 228px;
    box-shadow: var(--shadow-lg), 0 2px 8px rgba(0,0,0,0.05);
    z-index: 300;
}
.nav-links > li:hover .nav-dropdown {
    display: block;
}
.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--r-md);
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-dropdown a:hover {
    background: var(--sand);
    color: var(--navy);
}
.nav-dropdown a .dd-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    opacity: 0.75;
}
.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0.5rem;
}

/* ── Mega-menu (2-column wide dropdown) ── */
.nav-mega {
    min-width: 680px;
    left: 0;
    transform: none;
    display: none;
    flex-direction: row;
    gap: 0;
    padding: 1rem 0.75rem;
}
.nav-links > li:hover .nav-mega {
    display: flex !important;
}
/* Override standard single-col display rule */
.nav-links > li:hover .nav-dropdown:not(.nav-mega) {
    display: block;
}
.mega-col {
    flex: 1;
    min-width: 0;
    padding: 0 0.25rem;
}
.mega-col + .mega-col {
    border-left: 1px solid var(--border);
    padding-left: 0.75rem;
    margin-left: 0.25rem;
}
.mega-col-head {
    font-size: 0.63rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.1px;
    padding: 0.15rem 0.65rem 0.5rem;
    margin-top: 0.25rem;
}
.mega-col-head:first-child { margin-top: 0; }
.nav-dropdown.nav-mega a {
    white-space: normal;
    align-items: flex-start;
    padding: 0.45rem 0.65rem;
}
.nav-dropdown.nav-mega a strong {
    display: block;
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.nav-dropdown.nav-mega a em {
    display: block;
    font-style: normal;
    font-size: 0.70rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 1px;
}
.nav-dropdown.nav-mega a .dd-icon {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 1px;
}
.dd-badge {
    font-size: 0.56rem;
    font-weight: 800;
    background: var(--navy);
    color: var(--white);
    padding: 0.1rem 0.38rem;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-start;
    letter-spacing: 0.3px;
    margin-top: 2px;
}
.dd-badge.gold { background: var(--gold-dark); }

/* Section header inside regular dropdown */
.dd-section-head {
    font-size: 0.63rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.1px;
    padding: 0.5rem 0.9rem 0.2rem;
}
.dd-section-head:first-child { padding-top: 0.15rem; }

/* Nav CTA button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.3rem;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--r-md);
    font-size: 0.825rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.05px;
    box-shadow: 0 2px 8px rgba(26,41,66,0.22);
}
.nav-cta:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 149, 28, 0.35);
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile nav drawer */
.nav-mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.75rem;
    z-index: 199;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: block; }
.nav-mobile-section { margin-bottom: 1.25rem; }
.nav-mobile-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.25rem 0;
    margin-bottom: 0.25rem;
}
.nav-mobile a {
    display: block;
    padding: 0.65rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--gold-dark); }

/* ================================================
   PAGE HEADER
================================================ */
.page-header {
    padding: 8rem 2rem 3.5rem;
    text-align: center;
    position: relative;
    background: var(--white);
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(194, 149, 28, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.page-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(194, 149, 28, 0.35);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: rgba(194, 149, 28, 0.08);
    margin-bottom: 1.5rem;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}
.page-header h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    max-width: 720px;
    margin: 0 auto 1rem;
    letter-spacing: -1.2px;
    color: var(--navy);
}
.page-header h1 em {
    font-style: normal;
    color: var(--gold);
}
.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ================================================
   CONTENT AREA
================================================ */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* ================================================
   CARDS
================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow-xs);
}
.card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(200,168,75,0.12);
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--sand);
    border: 1px solid var(--border-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--navy);
}
.card-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(194, 149, 28, 0.1);
    border: 1px solid rgba(194, 149, 28, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.card h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    color: var(--navy);
}
.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}
.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Star ratings */
.card-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; }
.rating-count { font-size: 0.78rem; color: var(--text-muted); }

/* ================================================
   BUTTONS
================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--r-md);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    letter-spacing: -0.1px;
}
.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(194, 149, 28, 0.35);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
    background: var(--sand);
    border-color: var(--border-warm);
    transform: translateY(-1px);
}
.btn-dark {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26,41,66,0.28);
}
.btn-dark:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,41,66,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--gold-dark);
    border: 1.5px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-1px);
}

/* ================================================
   SECTION HEADERS
================================================ */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.section-header h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--navy);
}
.section-header a {
    font-size: 0.85rem;
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 700;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.section-header a:hover { opacity: 1; }

/* ================================================
   SEARCH BAR
================================================ */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 0 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-xs);
}
.search-bar:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(194, 149, 28, 0.12);
}
.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.9rem 0.5rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--r-sm);
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}
.search-bar button:hover { background: var(--gold-dark); }

/* ================================================
   DIVIDER
================================================ */
.divider {
    width: 48px;
    height: 3px;
    background: var(--gold);
    opacity: 0.45;
    margin: 0 auto;
    border-radius: 2px;
}

/* ================================================
   FOOTER — Premium Dark
================================================ */
footer {
    padding: 5rem 2rem 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--navy-deep);
    color: var(--text-inverse-2);
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-small {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-brand .logo-small span { color: var(--violet); font-weight: 600; }
.footer-brand p {
    color: var(--text-inverse-2);
    font-size: 0.85rem;
    line-height: 1.75;
    max-width: 220px;
    margin-bottom: 1.5rem;
}
.footer-social {
    display: flex;
    gap: 0.65rem;
}
.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.15s;
    color: var(--text-inverse-2);
}
.footer-social a:hover {
    background: var(--gold-glow);
    border-color: rgba(200,168,75,0.35);
    color: var(--gold-light);
}
.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.footer-col ul li a {
    color: var(--text-inverse-2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer-bottom p {
    color: var(--text-inverse-3);
    font-size: 0.78rem;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a {
    color: var(--text-inverse-3);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.15s;
}
.footer-bottom-links a:hover { color: var(--text-inverse-2); }
.footer-disclaimer {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0.9rem 1.25rem;
    background: rgba(200,168,75,0.06);
    border: 1px solid rgba(200,168,75,0.15);
    border-radius: var(--r-md);
    font-size: 0.78rem;
    color: var(--text-inverse-2);
    line-height: 1.7;
    text-align: center;
}
.footer-disclaimer a { color: var(--gold-light); text-decoration: none; }
.footer-disclaimer a:hover { text-decoration: underline; }

/* ================================================
   FORMS
================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.form-group .hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(194, 149, 28, 0.12);
}
textarea {
    resize: vertical;
    min-height: 80px;
}
textarea { resize: vertical; min-height: 80px; }
select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A6A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    background-color: var(--white);
}

/* ================================================
   COMING SOON STUB
================================================ */
.coming-soon-page {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: var(--white);
}
.coming-soon-page .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(194, 149, 28, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    background: var(--gold-glow);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.coming-soon-page h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 1.25rem;
    max-width: 600px;
    color: var(--navy);
}
.coming-soon-page p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}
.notify-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}
.notify-form input { flex: 1; }

/* ================================================
   TOOL LAYOUT (sermon-outline etc)
================================================ */
.tool-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 2rem;
    align-items: start;
}
.tool-sidebar {
    background: var(--ivory);
    border: 1px solid var(--border-warm);
    border-radius: var(--r-2xl);
    padding: 2rem;
    position: sticky;
    top: 5.5rem;
}
.tool-sidebar h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--navy);
}
.tool-output { min-height: 400px; }
.output-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background: var(--sand);
    border: 1.5px dashed var(--border-warm);
    border-radius: var(--r-2xl);
    padding: 3rem 2rem;
}
.output-empty-icon { font-size: 3rem; margin-bottom: 1.5rem; opacity: 0.4; }
.output-empty h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.output-empty p { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; }
.output-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background: var(--sand);
    border: 1px solid var(--border-warm);
    border-radius: var(--r-2xl);
    padding: 3rem 2rem;
}
.output-result {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

/* ================================================
   SPINNER
================================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================
   LEAD CAPTURE SECTION
================================================ */
.lead-section {
    background: var(--sand);
    border-top: 1px solid var(--border-warm);
    border-bottom: 1px solid var(--border-warm);
    padding: 5rem 2rem;
    text-align: center;
}
.lead-section h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}
.lead-section p {
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.75;
}
.lead-form-inline {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto;
    justify-content: center;
}
.lead-form-inline input {
    flex: 1;
    padding: 0.9rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}
.lead-form-inline input:focus { border-color: var(--gold); }
.lead-form-inline button {
    padding: 0.9rem 1.5rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s;
}
.lead-form-inline button:hover { background: var(--gold-dark); }

/* ================================================
   SECTION — GENERAL
================================================ */
section.platform-section,
.platform-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(194, 149, 28, 0.3);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: var(--gold-glow);
    margin-bottom: 1rem;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}
.section-title {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    color: var(--navy);
    letter-spacing: -0.6px;
    line-height: 1.12;
    margin-bottom: 0.75rem;
}
.section-title em { font-style: normal; color: var(--gold); }
.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 540px;
    line-height: 1.75;
}

/* ================================================
   DIRECTORY CARDS
================================================ */
.dir-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow-xs);
}
.dir-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.dir-card-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--sand);
    border: 1px solid var(--border-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.dir-card-body { flex: 1; }
.dir-card-body h3 { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 0.25rem; }
.dir-card-body .dir-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}
.dir-card-body p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }
.dir-card-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.dir-card-actions a {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-sm);
    transition: all 0.15s;
}
.dir-card-actions .btn-learn { background: var(--sand); color: var(--navy); border: 1px solid var(--border-warm); }
.dir-card-actions .btn-learn:hover { background: var(--sand-dark); }
.dir-card-actions .btn-visit { background: var(--gold); color: var(--white); border: 1px solid var(--gold); }
.dir-card-actions .btn-visit:hover { background: var(--gold-dark); }

/* ================================================
   FILTER BAR
================================================ */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--sand);
    border-radius: var(--r-xl);
    border: 1px solid var(--border-warm);
}
.filter-btn {
    padding: 0.4rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ================================================
   MOBILE
================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .tool-layout { grid-template-columns: 1fr; }
    .tool-sidebar { position: static; }
}

/* Nav tight breakpoint — reduce padding at medium screens */
@media (max-width: 960px) {
    nav { padding: 0 1.25rem; }
    .nav-links > li > a { padding: 0 0.55rem; font-size: 0.82rem; }
    .nav-cta { padding: 0.48rem 0.9rem; font-size: 0.78rem; }
    /* Mega menu: constrain to viewport */
    .nav-mega { min-width: 520px; }
}

@media (max-width: 768px) {
    nav { padding: 0 1.25rem; height: 64px; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .nav-mobile { top: 64px; max-height: calc(100vh - 64px); }

    .page-header { padding: 6rem 1.25rem 2.5rem; }
    .content { padding: 0 1.25rem 3rem; }
    .card-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .notify-form { flex-direction: column; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .lead-form-inline { flex-direction: column; }
    .platform-section { padding: 3rem 1.25rem; }
}

/* ── Fall Sermon Season Urgency Banner ── */
.fall-urgency-banner {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2d4a 60%, #152440 100%);
  border-bottom: 1px solid rgba(194, 149, 28, 0.35);
  padding: 0.75rem 2rem;
  text-align: center;
  position: relative;
  z-index: 99;
}
.fall-urgency-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.fall-urgency-banner span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', sans-serif;
}
.fall-urgency-banner .fall-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, var(--gold-vivid), var(--gold-dark));
  color: white;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: opacity 0.15s;
}
.fall-urgency-banner .fall-cta-btn:hover { opacity: 0.85; }
.fall-urgency-banner .banner-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  margin-left: auto;
}
.fall-urgency-banner .banner-dismiss:hover { color: white; }

/* ── Fall CTA (post-output) ── */
.fall-cta-inline {
  display: none;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #1B2A4A, #243355);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  animation: upsellFadeIn 0.35s ease;
}
.fall-cta-inline p {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.fall-cta-inline span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}
.fall-cta-inline .fall-cta-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #A8882A, #C9A84C);
  color: white;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  transition: opacity 0.15s;
}
.fall-cta-inline .fall-cta-link:hover { opacity: 0.88; }
@keyframes upsellFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── Fall Urgency Banner logic ── */
(function () {
  if (sessionStorage.getItem('fallBannerDismissed')) return;
  var banner = document.getElementById('fall-urgency-banner');
  if (!banner) return;
  banner.style.display = 'flex';
  var btn = document.getElementById('fall-banner-dismiss');
  if (btn) btn.addEventListener('click', function () {
    banner.style.display = 'none';
    sessionStorage.setItem('fallBannerDismissed', '1');
  });
})();

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Related Answers cluster footer (server-rendered on /answers/<slug>/) ── */
.related-answers-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
}
.related-answers-inner {
    background: var(--sand, #F3F2EE);
    border: 1px solid var(--border-warm, #DCD9D0);
    border-radius: var(--r-xl, 16px);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0,0,0,0.05));
}
.related-answers-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy, #0D1B2E);
    letter-spacing: -0.4px;
    margin-bottom: 0.4rem;
}
.related-answers-lede {
    color: var(--text-secondary, #5A5A78);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}
.related-answers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1.25rem;
}
.related-answers-item { margin: 0; padding: 0; }
.related-answers-item a {
    display: block;
    padding: 0.65rem 0.9rem;
    background: var(--white, #FAFAF8);
    border: 1px solid var(--border, #E4E2DC);
    border-radius: var(--r-md, 12px);
    color: var(--navy, #0D1B2E);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.related-answers-item a:hover {
    border-color: var(--gold, #C2951C);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
    transform: translateY(-1px);
    color: var(--gold-dark, #9A7410);
}
@media (max-width: 600px) {
    .related-answers-list { grid-template-columns: 1fr; }
    .related-answers-section { padding: 2rem 1rem 0.75rem; }
    .related-answers-inner { padding: 1.5rem 1.25rem; }
}
