/* ==========================================================================
   THE DAVID CODE - CENTRAL BRAND CORE & ARCHITECTURE SPECIFICATIONS
   Author: Hannes Jansen
   ========================================================================== */

:root {
    --bg-dark-matte: #0D0D0F;
    --navy-deep: #0B111E;
    --navy-panel: #121A2E;
    --gold-foil: #eacf97;
    --gold-bright: #F3E5AB;
    --gold-light: #eacf97;
    --gold-dark: #AA7C11;
    --text-light: #F5F5F7;
    --text-muted: #9E9EAF;
    --border-gold: rgba(234, 207, 151, 0.18);
}

/* Global Reset & Base Configurations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--bg-dark-matte);
    overflow-x: hidden;
    /* Soft premium texture mask layer matching book skins */
    background-image: radial-gradient(rgba(212,175,55,0.02) 1px, transparent 0), radial-gradient(rgba(212,175,55,0.02) 1px, transparent 0);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

/* Typography Core Architecture Rules */
h1, h2, h3, .countdown-title, .hero-tagline, .week-tag, .step-number {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    font-weight: 700;
}

.centered-text { text-align: center; }
.gold-text { color: var(--gold-foil); }

/* Navigation Structural Layout */
.navbar {
    background: rgba(13, 13, 15, 0.96);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 42px;
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-links {
    display: none;
}

/* Action Control Items */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-foil));
    color: var(--bg-dark-matte) !important;
    padding: 12px 28px;
    border-radius: 0px; /* Rigid physical book edge finish */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--gold-bright);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

button:disabled,
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(40%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* Page Hero Modules */
.hero {
    padding: 160px 20px 110px;
    text-align: center;
    border-bottom: 1px solid var(--border-gold);
    background: linear-gradient(rgba(11, 17, 30, 0.75), rgba(13, 13, 15, 0.92)), url('assets/images/helmet-gold-red.webp') center/cover no-repeat;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tagline {
    font-size: 0.95rem;
    color: var(--gold-foil);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.btn-hero {
    display: inline-block;
    border: 1px solid var(--gold-foil);
    padding: 16px 40px;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-foil);
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(212, 175, 55, 0.02);
    text-align: center;
}

.btn-hero:hover {
    background: var(--gold-foil);
    color: var(--bg-dark-matte);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.gold-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-foil));
    color: var(--bg-dark-matte);
    font-weight: bold;
}

.trust {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    letter-spacing: 1px;
}

/* Countdown Ticker Block */
.countdown-wrapper {
    background: rgba(18, 26, 46, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-gold);
    max-width: 460px;
    margin: 0 auto 3rem;
    padding: 1.5rem;
}

.countdown-title {
    font-size: 0.8rem;
    color: var(--gold-foil);
    margin-bottom: 1rem;
}

.countdown-ticker {
    display: flex;
    justify-content: space-around;
}

.countdown-ticker span {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--text-light);
    display: block;
}

.countdown-ticker small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Container & Sections Framework Layout */
.section { 
    padding: 100px 20px; 
    width: 100%;
}

.bg-book-dark { background-color: #121215; border-bottom: 1px solid var(--border-gold); }
.bg-navy-texture { background-color: var(--navy-deep); border-bottom: 1px solid var(--border-gold); }

.container { 
    max-width: 1140px; 
    margin: 0 auto; 
    width: 100%;
}

.small-container { 
    max-width: 750px; 
    width: 100%;
}

.container-grid {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--gold-foil);
    padding-left: 15px;
}

.gold-callout {
    color: var(--gold-foil);
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.warrior-list {
    margin-top: 1.5rem;
    list-style: none;
}

.warrior-list li {
    margin-bottom: 0.85rem;
    position: relative;
    padding-left: 25px;
}

.warrior-list li::before {
    content: "♦";
    position: absolute;
    left: 0;
    color: var(--gold-foil);
}

/* Editorial Blockquotes & Dividers */
.editorial-quote {
    text-align: center;
    padding: 1.5rem 0;
}

.lead-quote {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.quote-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.about-narrative-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.confrontation-callout {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

.gold-text-emphasis {
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    text-align: center;
}

.book-divider {
    text-align: center;
    color: var(--gold-foil);
    letter-spacing: 10px;
    margin: 1.5rem 0;
}

.statement-card {
    background: var(--navy-panel);
    border: 1px solid var(--border-gold);
    padding: 3rem 2rem;
    text-align: center;
}

.statement-card h3 { font-size: 1.15rem; color: var(--gold-foil); margin-bottom: 1rem; }
.statement-card blockquote { font-style: italic; margin-bottom: 1.5rem; color: #DFDFE5; }

/* Timeline Matrix Grid Rules */
.protocol-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 1024px) {
    .protocol-timeline {
        grid-template-columns: repeat(4, 1fr);
    }
    .protocol-card:nth-child(5) {
        grid-column: 2;
    }
}

.protocol-card {
    background: #141418;
    border: 1px solid rgba(255,255,255,0.02);
    border-top: 2px solid var(--gold-foil);
    padding: 2.5rem 1.5rem;
    transition: transform 0.3s;
}

.protocol-card:hover { transform: translateY(-4px); }
.week-tag { font-size: 0.75rem; color: var(--gold-foil); display: block; margin-bottom: 0.5rem; }
.protocol-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.protocol-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Step Integration Matrix */
.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.step { text-align: center; }
.step-number {
    font-size: 2.5rem;
    color: var(--gold-foil);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Form & Checkout Systems Layouts */
.form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
}

.form-card {
    background: #121215;
    border: 1px solid var(--border-gold);
    max-width: 600px;
    width: 100%;
    padding: 45px 40px;
}

.form-card h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-foil);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-dark-matte);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 0px;
    font-size: 1rem;
    color: var(--text-light);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold-foil);
}

/* Custom Checkbox Design matching David Code branding */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    user-select: none;
    text-transform: none !important;
    font-weight: normal !important;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--gold-foil);
    cursor: pointer;
    border: 1px solid rgba(212,175,55,0.3) !important;
    background: var(--bg-dark-matte);
    margin-top: 3px;
}

.checkbox-container span {
    color: var(--text-light);
}

.checkbox-container a {
    color: var(--gold-foil);
    text-decoration: underline;
    transition: color 0.3s;
}

.checkbox-container a:hover {
    color: var(--gold-bright);
}

.text-link-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
}
.text-link-back:hover { color: var(--gold-foil); }

.order-summary {
    background: var(--bg-dark-matte);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--gold-foil);
}
.order-summary h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.price { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--gold-foil); margin-top: 0.5rem; }
.secure-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 1.2rem; }
.full-width { width: 100%; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; align-items: end; }

.form-group select {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.info-tooltip {
    color: var(--gold-foil);
    font-size: 0.82rem;
    margin-left: 4px;
    cursor: help;
    font-weight: normal;
    text-transform: none;
    display: inline-block;
    transition: transform 0.2s, color 0.2s;
}
.info-tooltip:hover {
    color: var(--gold-bright);
    transform: scale(1.15);
}

/* Thank You & Success Layout Rules */
.thankyou-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

.thankyou-card {
    background: #121215;
    border: 1px solid var(--border-gold);
    max-width: 680px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
}

.success-message { font-size: 1.15rem; color: #DFDFE5; margin: 1.5rem 0; }
.details ul { text-align: left; max-width: 520px; margin: 1.5rem auto 2.5rem; color: var(--text-muted); }
.details li { margin-bottom: 0.75rem; list-style-type: square; }
.community h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.btn-community {
    display: inline-block;
    background: var(--navy-panel);
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    padding: 14px 32px;
    margin: 10px 0;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.btn-community:hover { background: var(--gold-foil); color: var(--bg-dark-matte); }

/* Footer Elements */
.cta { background: var(--bg-dark-matte); padding: 100px 20px; border-top: 1px solid var(--border-gold); }
.cta h2 { border: none; padding: 0; font-size: 2.2rem; }
.cta-sub { margin: 1rem 0 2.5rem; color: var(--text-muted); }

footer {
    background: #060608;
    color: var(--text-muted);
    padding: 45px 20px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.01);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PREMIUM MOBILE RESPONSIVE ADAPTATION ENGINE
   ========================================================================== */

@media (max-width: 992px) {
    .container-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 60px 1.5rem;
    }

    /* Floating Fixed Mobile Navigation Overlay System */
    .nav-container {
        position: relative;
        padding: 1rem 1.5rem;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 110;
    }
    
    .hamburger span {
        width: 24px;
        height: 2px;
        background-color: var(--text-light);
        transition: all 0.3s ease;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(13, 13, 15, 0.98);
        backdrop-filter: blur(15px);
        padding: 120px 2rem 2rem;
        gap: 2rem;
        z-index: 100;
        align-items: center;
        justify-content: flex-start;
    }
         
    .nav-links.active {
        display: flex;
    }

    /* Hero Layout Optimization Scaling */
    .hero {
        padding: 140px 1.5rem 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .countdown-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 1.2rem 1rem;
        margin-bottom: 2rem;
    }

    .countdown-ticker span {
        font-size: 1.7rem;
    }

    /* Global Headings Formatting */
    h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .lead-quote {
        font-size: 1.3rem;
    }

    /* Rigid Linear Form Stacking Configurations */
    .protocol-timeline, .journey-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .protocol-card {
        padding: 1.8rem 1.2rem;
    }

    .form-container, .thankyou-container {
        padding: 40px 1rem;
        align-items: flex-start;
    }

    .form-card, .thankyou-card {
        padding: 30px 20px;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   NAVIGATION OVERLAY PANEL STYLING
   ========================================================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 15, 0.98);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

.close-overlay-btn {
    position: absolute;
    top: -40px;
    right: 20px;
    font-size: 3.5rem;
    color: var(--gold-foil);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-overlay-btn:hover {
    color: var(--gold-bright);
}

.overlay-logo {
    max-width: 100px;
    margin-bottom: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.overlay-links {
    list-style: none;
    padding: 0;
}

.overlay-links li {
    margin: 1.8rem 0;
}

.overlay-links a {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    letter-spacing: 2px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.overlay-links a:hover {
    color: var(--gold-bright);
    transform: translateX(5px);
}

/* ==========================================================================
   Cookie Consent Banner (Minimal POPIA Compliant)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.96);
    border-top: 1px solid var(--border-gold);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 99999;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-text {
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text strong {
    color: var(--gold-foil);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.cookie-banner-text a {
    color: var(--gold-foil);
    text-decoration: underline;
}

.cookie-banner-btn {
    background: var(--gold-foil);
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.cookie-banner-btn:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}