/* BASE STYLES & VARIABLES (ADHD-Friendly) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
    --navy-blue: #0a192f;
    --navy-brand: #0a192f; /* Primary authoritative navy */
    --navy-blue-light: #112240;
    --lighthouse-gold: #f59e0b; /* Restored Soft Orange */
    --lighthouse-gold-light: #fbbf24;
    --seafoam: #ADC9C5;

    --bg-main: #f0f7f4; /* Restored Soft Sage Background */
    --bg-card: #ffffff;
    --text-main: #0a192f;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --accent-gold: #f59e0b;
    --forest-green: #1b4332;
    --forest-green-dark: #132a1f;
    --soft-white: #f8f9fa;
}

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

body {
    font-family: 'Outfit', sans-serif;
    /* Matching the original site's font */
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* GLOBAL NAV */
.global-nav {
    background: #e1f2eb;
    height: auto !important; /* Changed from 80px to fit column layout */
    min-height: 80px;
    border-bottom: 1px solid var(--border-light) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 0.8rem 0 !important;
    display: block !important; /* Ensure it's not hidden */
}

.global-nav .nav-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important; /* Standardized Desktop: Logo over Links */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 2rem !important;
    position: relative !important;
    width: 100% !important;
    background: transparent !important;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    margin-bottom: 0.8rem; /* Space between logo and links */
}

.logo-wrapper {
    width: 60px; /* Slightly larger for impact */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--navy-blue);
    background: white;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--navy-blue);
    text-transform: uppercase;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    width: 100%;
}

.nav-left, .nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-toggle {
    display: none !important; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--navy-blue);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--lighthouse-gold);
}

/* RESPONSIVE NAVIGATION (Mobile) */
@media screen and (max-width: 950px) {
    .global-nav {
        padding: 0.75rem 0 !important;
    }

    .global-nav .nav-container {
        flex-direction: row !important; /* Row for mobile header */
        justify-content: space-between !important;
        padding: 0 1.5rem !important;
        align-items: center !important;
    }

    .nav-toggle {
        display: block !important;
    }

    .nav-brand {
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }

    .logo-wrapper {
        width: 45px !important;
        height: 45px !important;
    }

    .brand-text {
        font-size: 0.65rem !important;
    }

    .nav-links-wrapper {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Hidden off-screen */
        width: 85% !important;
        height: 100vh !important;
        background: #f8faf9 !important; /* Softer green/white background */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 4rem 2rem !important;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05) !important;
        z-index: 2000 !important;
        gap: 2rem !important;
        overflow-y: auto !important;
    }

    .nav-links-wrapper.active {
        right: 0 !important; /* Slide in */
    }

    .nav-left, .nav-right {
        flex-direction: column !important;
        width: 100% !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    .nav-link {
        color: var(--navy-blue) !important;
        font-size: 1.1rem !important;
        display: block !important;
        width: 100% !important;
    }
}

/* FOOTER */
.global-footer {
    background: #4a5d58; /* Deep Sage */
    color: white;
    padding: 1rem 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand h2 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.footer-brand p {
    color: var(--seafoam);
    font-size: 0.75rem;
    margin-bottom: 0;
    opacity: 0.7;
    display: inline-block;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--seafoam);
    font-size: 0.8rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: right;
    padding-top: 0;
    color: var(--seafoam);
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: auto;
    white-space: nowrap;
}

/* RESPONSIVE FOOTER FIXES */
@media screen and (max-width: 950px) {
    .global-footer {
        padding: 0.5rem 1rem !important; /* Absolute minimum padding */
    }

    .global-footer .footer-container {
        flex-direction: column !important;
        gap: 0.25rem !important; /* Tightest gap */
    }

    .footer-brand {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    .footer-brand h2 {
        font-size: 0.95rem !important; /* Smaller brand text */
        margin: 0 !important;
    }

    .footer-brand p {
        display: none !important; /* Absolute hide */
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
    }

    .footer-links {
        gap: 0.6rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-top: 0.25rem !important;
    }

    .footer-links a {
        font-size: 0.7rem !important; /* Minimal font size */
        padding: 0 !important;
        opacity: 0.8 !important;
    }

    .footer-bottom {
        text-align: center !important;
        margin: 0.15rem 0 0 !important;
        font-size: 0.65rem !important;
        padding: 0 !important;
    }
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.5, 0, 0, 1); /* Snappier feel */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* --- THE LIGHTHOUSE DIARIES: ARTICLE STYLES --- */

.lh-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.lh-logo-tiny {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid white;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.article-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bot-article-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 3rem;
}

.bot-article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin: 3rem 0 1.5rem;
    color: var(--navy-blue);
}

.dropcap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 0.8;
    padding: 0.5rem 0.75rem 0 0;
    color: var(--navy-blue);
    font-weight: 700;
}

.divider-sun {
    text-align: center;
    font-size: 2rem;
    margin: 4rem 0;
}
.divider-sun::after {
    content: '\f185'; /* fa-sun */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.quote-box {
    background: #f8fafc;
    border-left: 6px solid var(--lighthouse-gold);
    padding: 2.5rem 3.5rem;
    margin: 3rem 0;
    border-radius: 0 12px 12px 0;
    text-align: left;
}

.quote-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--navy-blue);
    font-style: italic;
    margin-bottom: 0.75rem;
    border-bottom: none;
    background: none;
    padding: 0;
    line-height: 1.4;
}

.quote-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.bot-article-content .cta-box {
    background: #1b4332 !important;
    color: white;
    border-radius: 24px;
    padding: 3.5rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .bot-article-content .cta-box {
        padding: 2.5rem 1.5rem;
        margin: 2.5rem 0;
        border-radius: 20px;
    }
}

.bot-article-content .cta-box h3 {
    color: #f59e0b;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 768px) {
    .bot-article-content .cta-box h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

.bot-article-content .cta-box p {
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

@media screen and (max-width: 768px) {
    .bot-article-content .cta-box p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

.strategy-box {
    background: #f1f5f9;
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    border-left: 6px solid var(--navy-blue);
}

.strategy-box h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.strategy-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.strategy-box li {
    margin-bottom: 0.75rem;
}

.subscribe-card {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    margin-top: 6rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.btn-subscribe {
    display: inline-block;
    background: var(--lighthouse-gold);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    margin: 2rem 0 1rem;
}

.btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
    background: var(--lighthouse-sun);
}

/* --- PREMIUM FREE GUIDE CARD --- */
.free-guide-card {
    background: #fdfbf7; /* Creamy beige */
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.free-guide-card::before {
    content: 'FREE';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--lighthouse-gold);
    color: white;
    padding: 0.2rem 3rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.free-guide-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.free-guide-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-guide {
    display: inline-block;
    background: var(--lighthouse-gold);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
}

.btn-guide:hover {
    background: #d97706; /* Darker orange on hover */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

/* Sidebar Specific Adjustment */
.sidebar .free-guide-card {
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
}

.sidebar .free-guide-card h3 {
    font-size: 1.5rem;
}

.sidebar .free-guide-card p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.sidebar .btn-guide {
    padding: 0.9rem 1.5rem;
    width: 100%;
}

/* Individual Product Grid for Shop */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-card .price-tag {
    font-weight: 800;
    color: var(--lighthouse-gold);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 2rem;
}



/* --- LEAD CAPTURE MODAL STYLES --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); z-index: 2000; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-overlay.show { display: flex; }
.modal-content.lead-form-content { background: #ffffff; width: 90%; max-width: 650px; padding: 3rem 2rem; border-radius: 32px; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); max-height: 90vh; overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.1); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: #94a3b8; cursor: pointer; transition: color 0.3s ease; line-height: 1; }
.modal-close:hover { color: var(--navy-blue); }
.premium-form .form-group input:focus { outline: none; border-color: var(--navy-blue); box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1); }
.btn-guide:active { transform: scale(0.98); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.lead-form-content { animation: fadeInUp 0.5s ease-out; }
.btn-text-link:hover { color: var(--navy-blue) !important; }
.success-icon { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- PORTAL TEASER & PREVIEW STYLES --- */
.portal-teaser-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f0f7f4, #ffffff);
    overflow: hidden;
}

.portal-preview-window {
    max-width: 1100px;
    margin: 3rem auto 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.7);
    overflow: hidden;
    position: relative;
}

.preview-header {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
}

.preview-content-mock {
    padding: 3rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.preview-sidebar-mock {
    border-right: 1px solid var(--border-light);
    padding-right: 2rem;
}

.sidebar-item-mock {
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.sidebar-item-mock.active {
    background: var(--seafoam);
    width: 80%;
}

.preview-main-mock {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}




.preview-card-mock {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 2;
    padding: 1rem;
    text-align: center;
}

.locked-badge {
    background: var(--navy-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.preview-card-content {
    opacity: 1;
}

.preview-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.25rem;
}

.preview-card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #b45309; /* Darker amber/gold for contrast */
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.preview-card-desc {
    font-size: 0.9rem;
    color: #4b5563; /* Darker gray */
    line-height: 1.5;
}

/* MEMBER EXCLUSIVE TAGS */
.member-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--lighthouse-gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.portal-cta-banner {
    background: var(--navy-blue); /* Premium Navy */
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .preview-content-mock {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .preview-sidebar-mock {
        display: none;
    }
    .portal-cta-banner {
        padding: 2.5rem 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   DYNAMIC IMPROVEMENTS — added May 2026
═══════════════════════════════════════════════════════════════ */

/* ── NAV SCROLL SHADOW ──────────────────────────────────────── */
.global-nav {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.global-nav.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    background: #d8ecdf !important; /* slightly deeper on scroll for depth */
}

/* ── DIARIES: SEARCH BAR ─────────────────────────────────────── */
.diaries-search-wrap {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.diaries-search-wrap .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

#diaries-search {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

#diaries-search:focus {
    border-color: var(--lighthouse-gold);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

#diaries-search::placeholder {
    color: #b0bec5;
}

.search-no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ── DIARIES: ARTICLE CARD READ TIME BADGE ──────────────────── */
.article-read-time {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.75rem;
    letter-spacing: 0.02em;
}
.article-read-time i {
    margin-right: 0.25rem;
    color: var(--lighthouse-gold);
}

/* ── ARTICLE MODAL: READING PROGRESS BAR ────────────────────── */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--lighthouse-gold);
    z-index: 9999;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    pointer-events: none;
    opacity: 0;
}
#reading-progress-bar.visible {
    opacity: 1;
}

/* ── BUTTON RIPPLE KEYFRAME ──────────────────────────────────── */
@keyframes ripple-anim {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

/* ── PRIMARY CTA PULSE GLOW ──────────────────────────────────── */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.btn-primary {
    animation: pulse-glow 2s infinite;
}

/* ── HERO PARALLAX ──────────────────────────────────────────── */
.hero {
    overflow: hidden;
}

.hero-bg {
    will-change: transform;
}

/* ── HERO STATS BAR ─────────────────────────────────────────── */
.stats-bar {
    background: white;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-blue);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ── TESTIMONIAL MARQUEE ─────────────────────────────────────── */
.testimonial-marquee {
    background: #f8fafc;
    padding: 4rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.testimonial-marquee::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.marquee-content {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll-marquee 60s linear infinite;
    padding: 0 2rem;
    will-change: transform;
}

.testimonial-marquee:hover .marquee-content {
    animation-duration: 20s; /* Speed up on hover */
}

.testimonial-marquee:active .marquee-content {
    animation-play-state: paused;
}

.testimonial-marquee:active {
    cursor: grabbing;
}

.testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    scroll-snap-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: scale(1.02);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--lighthouse-gold);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── SHOP: CART MICRO-ANIMATIONS ─────────────────────────────── */
@keyframes cart-shake {
    0% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    75% { transform: scale(1.2) rotate(-10deg); }
    100% { transform: scale(1); }
}

.cart-animate {
    animation: cart-shake 0.5s ease-out;
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.toast {
    background: var(--navy-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── SHOP: PRODUCT CARD DRAWER ──────────────────────────────── */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid var(--lighthouse-gold);
    z-index: 2;
}

.product-card:hover .product-drawer {
    transform: translateY(0);
}

.drawer-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--lighthouse-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
}

.drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-list li i {
    color: #4caf50;
    font-size: 0.8rem;
}

/* ── BRIGHT PATHWAYS: WAITLIST COUNTER ──────────────────────── */
.waitlist-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff4e5;
    color: #b45309;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* ── BRIGHT PATHWAYS: FEATURE CARD FLIP ─────────────────────── */
.feature-card-wrapper {
    perspective: 1000px;
    height: 280px;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.feature-card-wrapper:hover .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-card-front, .feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card-front {
    background: white;
    position: relative;
    overflow: hidden;
}

/* Dark overlay for text readability over background images */
.feature-card-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(14, 38, 34, 0.35), rgba(14, 38, 34, 0.75));
    border-radius: 20px;
    z-index: 1;
}

.feature-card-front > * {
    position: relative;
    z-index: 2;
}

.feature-card-front h3 {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 1.3rem;
}

.feature-card-front .benefit-icon {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    font-size: 2.5rem;
}

.feature-card-back {
    background: var(--navy-blue);
    color: white;
    transform: rotateY(180deg);
}

.feature-card-back h3 {
    color: var(--lighthouse-gold);
    margin-bottom: 1rem;
}

.feature-card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.micro-cta {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--lighthouse-gold);
    letter-spacing: 1px;
}


/* ═══════════════════════════════════════════════════════════════
   POLISH PASS — May 2026
═══════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL PAGE FADE-IN ─────────────────────────────────── */
body {
    animation: page-fade-in 0.5s ease-out;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 2. QUIZ SLIDE TRANSITIONS ──────────────────────────────── */
@keyframes quiz-slide-in {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes quiz-slide-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-30px); }
}

.quiz-slide-in {
    animation: quiz-slide-in 0.35s ease-out forwards;
}

.quiz-slide-out {
    animation: quiz-slide-out 0.2s ease-in forwards;
}

/* Results reveal */
@keyframes results-pop {
    0%   { opacity: 0; transform: scale(0.85); }
    60%  { transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

.results-pop {
    animation: results-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ── 3. FOOTER — curtain reveal removed (caused layout overlap) ── */

/* ── 4. SAMPLE ROADMAP MODAL ────────────────────────────────── */
.roadmap-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.roadmap-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.roadmap-modal {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.roadmap-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}

.roadmap-phase {
    border-left: 3px solid var(--lighthouse-gold);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.roadmap-phase::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    background: var(--lighthouse-gold);
    border-radius: 50%;
    border: 2px solid white;
}

.roadmap-phase h4 {
    font-size: 1.1rem;
    color: var(--navy-blue);
    margin-bottom: 0.25rem;
}

.roadmap-phase .phase-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lighthouse-gold);
    margin-bottom: 0.5rem;
}

.roadmap-phase p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── 5. STICKY MOBILE QUICK-ACTION BAR ──────────────────────── */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta-bar.visible {
    transform: translateY(0);
}

.mobile-cta-bar .mobile-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-cta-bar .mobile-cta-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.3;
}

.mobile-cta-bar .mobile-cta-btn {
    flex-shrink: 0;
    padding: 0.7rem 1.5rem;
    background: var(--lighthouse-gold);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }
    /* Pad the footer so the sticky bar doesn't cover content */
    .global-footer {
        padding-bottom: 60px !important;
    }
}

@media (min-width: 769px) {
    .mobile-cta-bar {
        display: none !important;
    }
}

/* STANDARDIZED PAGE HEROES */
.standard-page-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
}

.standard-page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% -20%, rgba(197, 160, 89, 0.08), transparent 70%);
    pointer-events: none;
}

.standard-page-hero h1 {
    font-size: 3rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.standard-page-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .standard-page-hero {
        padding: 4rem 1.5rem 3rem;
    }
    .standard-page-hero h1 {
        font-size: 2.2rem;
    }
}

/* SUCCESS STATES */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    color: #166534;
    display: none; /* Shown via JS */
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #22c55e;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

