/* ===================================================================
   ElevateOS1 — Brand Stylesheet
   Warm brown / tan / sacred geometry palette (matching elevateos1.com)
   This file overrides root CSS variables from each page's inline
   styles and adds brand-specific enhancements site-wide.
   =================================================================== */

/* ── Google Fonts: keep Syne (display) + add Cormorant Garamond for
       the premium serif feel matching the banner's italic heading ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,700&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Root overrides: warm brown / tan palette matching elevateos1.com ── */
:root {
    --warm:         #f5efe6;          /* warm cream/beige for body text */
    --deep:         #1a1612;          /* dark brown (matches WordPress site) */
    --bg-mid:       #2a2420;          /* slightly lighter brown background */
    --accent:       #c4956a;          /* warm tan/gold (matches WordPress site) */
    --accent-light: #e8cdb5;          /* lighter tan (matches WordPress site) */
    --muted:        #8a7d72;          /* muted brown-grey (matches WordPress site) */
    --soft-white:   #faf8f5;          /* warm off-white (matches WordPress site) */
    --card-bg:      rgba(196,149,106,0.04);
    --card-border:  rgba(196,149,106,0.15);
    --card-border-hover: rgba(196,149,106,0.4);
    --success:      #6ac478;

    /* Sacred geometry glow */
    --glow:         rgba(196,149,106,0.08);
    --glow-strong:  rgba(196,149,106,0.35);
}

/* ── Body background: deep brown with atmospheric gradient ── */
body {
    background: var(--deep) !important;
    color: var(--warm) !important;
}

/* ── Starfield canvas sits behind everything ── */
#starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

/* Push all page content above the starfield */
body > *:not(#starfield):not(canvas) {
    position: relative;
    z-index: 1;
}

/* ── Hero & section backgrounds ── */
.hero,
.article-hero {
    background: linear-gradient(165deg, #1a1612 0%, #2a2420 40%, #1a1612 100%) !important;
}

.hero::before,
.article-hero::before {
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%) !important;
}

.section-alt {
    background: linear-gradient(180deg, rgba(42,36,32,0.7) 0%, var(--deep) 100%) !important;
}

.closing::before {
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%) !important;
}

/* ── Nav: brown-tinted glass ── */
/* position/z-index need !important to override the high-specificity
   body > *:not(#starfield):not(canvas) rule that flattens everything to z-index:1.
   Without this, the mobile dropdown renders behind the hero section. */
.site-nav {
    position: fixed !important;
    z-index: 100 !important;
    background: rgba(26,22,18,0.92) !important;
    border-bottom: 1px solid rgba(196,149,106,0.12) !important;
}

/* Dashboard uses .topnav (sticky) — same z-index fix needed */
.topnav {
    position: sticky !important;
    z-index: 100 !important;
}

/* ── Assessment CTA banner ── */
.assessment-cta {
    background: linear-gradient(135deg, rgba(196,149,106,0.08) 0%, rgba(42,36,32,0.7) 100%) !important;
    border-top: 1px solid rgba(196,149,106,0.18) !important;
    border-bottom: 1px solid rgba(196,149,106,0.18) !important;
}

/* ── Hero brand image: render the wide banner as hero header image ── */
.brand-hero-banner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 48px rgba(196,149,106,0.25);
}

/* ── Site-wide header banner (shown instead of plain text on hero) ── */
.brand-header-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 56px;
    max-width: 100%;
}

.brand-header-img {
    width: 100%;
    max-width: 820px;
    border-radius: 8px;
    box-shadow: 0 4px 40px rgba(196, 149, 106, 0.3);
    display: block;
}

/* ── Sacred geometry divider ── */
.sacred-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    gap: 16px;
    opacity: 0.4;
}

.sacred-divider::before,
.sacred-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.sacred-divider svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ── Glow hover effects ── */
.btn, .nav-cta, .cta-btn, a[href*="stripe"], a[href*="buy.stripe"],
button[type="submit"],
input[type="submit"] {
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
}

.btn:hover, .nav-cta:hover, .cta-btn:hover,
a[href*="stripe"]:hover, a[href*="buy.stripe"]:hover,
button[type="submit"]:hover {
    box-shadow: 0 0 24px var(--glow-strong) !important;
}

/* ── Offering cards: warm brown tinted ── */
.offering-card, .product-card, .pkg-card {
    background: rgba(42,36,32,0.45) !important;
    border: 1px solid var(--card-border) !important;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s !important;
}

.offering-card:hover, .product-card:hover, .pkg-card:hover {
    border-color: var(--card-border-hover) !important;
    background: rgba(42,36,32,0.7) !important;
    box-shadow: 0 4px 32px var(--glow) !important;
}

/* ── Philosophy quote / blockquote ── */
.philosophy-quote,
blockquote {
    background: rgba(197,149,42,0.05) !important;
    border-left-color: var(--accent) !important;
}

/* ── Footer border ── */
footer {
    border-top: 1px solid rgba(197,149,42,0.12) !important;
}

/* ── Sacred geometry watermark (decorative, bottom-right) ── */
body::after {
    content: '';
    position: fixed;
    bottom: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Ccircle cx='210' cy='210' r='180' fill='none' stroke='%23c4956a' stroke-width='0.8' stroke-opacity='0.18'/%3E%3Ccircle cx='210' cy='130' r='80' fill='none' stroke='%23c4956a' stroke-width='0.8' stroke-opacity='0.15'/%3E%3Ccircle cx='210' cy='290' r='80' fill='none' stroke='%23c4956a' stroke-width='0.8' stroke-opacity='0.15'/%3E%3Ccircle cx='141' cy='170' r='80' fill='none' stroke='%23c4956a' stroke-width='0.8' stroke-opacity='0.15'/%3E%3Ccircle cx='279' cy='170' r='80' fill='none' stroke='%23c4956a' stroke-width='0.8' stroke-opacity='0.15'/%3E%3Ccircle cx='141' cy='250' r='80' fill='none' stroke='%23c4956a' stroke-width='0.8' stroke-opacity='0.15'/%3E%3Ccircle cx='279' cy='250' r='80' fill='none' stroke='%23c4956a' stroke-width='0.8' stroke-opacity='0.15'/%3E%3Cline x1='210' y1='30' x2='210' y2='390' stroke='%23c4956a' stroke-width='0.6' stroke-opacity='0.3'/%3E%3Ccircle cx='210' cy='210' r='6' fill='%23c4956a' fill-opacity='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

/* ── Responsive: stack brand header on mobile ── */
@media (max-width: 768px) {
    .brand-header-img {
        max-width: 100%;
        border-radius: 6px;
    }
    body::after {
        width: 260px;
        height: 260px;
        bottom: -80px;
        right: -80px;
    }
}
