/* ===========================
   BiLLU Theme – Main CSS
   Branding: Bordo #882D61, Teal #008F8F, Navy #0B2430
   Typography: EB Garamond (headings), Montserrat (body)
   =========================== */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    /* Brand */
    --brand-bordo:   #882D61;
    --brand-teal:    #008F8F;
    --brand-navy:    #0B2430;
    --brand-silver:  #C0C0C0;
    --brand-gray:    #D9D9D9;

    /* Semantic – Light */
    --bg-primary:    #F5FFF5;
    --bg-secondary:  #f4f6f8;
    --bg-card:       #ffffff;
    --text-main:     #333333;
    --text-heading:  #0B2430;
    --text-muted:    #6b7280;
    --border-color:  #e2e8f0;
    --accent-1:      #008F8F;
    --accent-2:      #882D61;

    /* Shadows */
    --shadow-sm:     0 2px 8px rgba(11,36,48,.08);
    --shadow-md:     0 6px 24px rgba(11,36,48,.12);
    --shadow-lg:     0 12px 40px rgba(11,36,48,.16);

    /* Layout */
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --max-width:     1200px;
    --transition:    .25s ease;

    /* Typography */
    --font-heading:  'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-body:     'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Dark Mode ───────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary:    #0B0A30;
    --bg-secondary:  #111133;
    --bg-card:       #161645;
    --text-main:     #E0E0E0;
    --text-heading:  #f0f0f0;
    --text-muted:    #94a3b8;
    --border-color:  #2a2a5a;
    --shadow-sm:     0 2px 8px rgba(0,0,0,.3);
    --shadow-md:     0 6px 24px rgba(0,0,0,.4);
    --shadow-lg:     0 12px 40px rgba(0,0,0,.5);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-main);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-1); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
details summary { cursor: pointer; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 700;
}

/* ── Container ───────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.btn-primary {
    background: var(--accent-1);
    color: #fff;
    border-color: var(--accent-1);
}
.btn-primary:hover {
    background: #007070;
    border-color: #007070;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,143,143,.35);
}
.btn-outline {
    background: transparent;
    color: var(--accent-1);
    border-color: var(--accent-1);
}
.btn-outline:hover {
    background: var(--accent-1);
    color: #fff;
    transform: translateY(-1px);
}
.btn-white {
    background: #fff;
    color: var(--accent-1);
    border-color: #fff;
}
.btn-white:hover {
    background: #f1f5f9;
    color: var(--brand-navy);
    transform: translateY(-1px);
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-full { width: 100%; }

/* ── Section Helpers ─────────────────────────────────────── */
section { padding: 96px 0; }
.section-header { margin-bottom: 56px; }
.section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 700;
    margin: 12px 0 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}
.text-center { text-align: center; }
.section-tag {
    display: inline-block;
    background: rgba(0,143,143,.1);
    color: var(--accent-1);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 6px 14px;
    border-radius: 20px;
}
.section-tag-white {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
}

/* ── Header / Navbar ─────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow var(--transition);
}
[data-theme="dark"] .site-header {
    background: rgba(11,10,48,.92);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: .02em;
}
.logo-accent { color: var(--accent-1); }
.logo-sub {
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-list {
    display: flex;
    gap: 4px;
}
.nav-list a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-list a:hover, .nav-list a.active {
    color: var(--accent-1);
    background: rgba(0,143,143,.08);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-cta { font-size: 14px; padding: 10px 20px; }

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent-1); color: var(--accent-1); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ── Floating CTA ────────────────────────────────────────── */
#float-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition);
}
#float-cta.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* ── Cookie Bar ──────────────────────────────────────────── */
#cookie-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--brand-navy);
    color: rgba(255,255,255,.85);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 95;
    font-size: .84rem;
}
#cookie-bar.hidden { display: none; }
#cookie-bar a { color: var(--accent-1); }
#cookie-accept {
    background: var(--accent-1);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: .84rem;
    font-family: var(--font-body);
}

/* ── Page template ───────────────────────────────────────── */
.page-content { padding: 100px 0 80px; min-height: 60vh; }
.page-container { max-width: 800px; }
.page-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.page-title { font-size: 2rem; }
.page-body h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.page-body p { margin-bottom: 14px; line-height: 1.7; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 14px; }
.page-body li { margin-bottom: 6px; line-height: 1.7; }
