/*
 * Author's Loft — Shared Design System
 * Dark editorial theme: deep forest green + cream + amber gold
 * Typography: Fraunces (display serif) + Satoshi (geometric body)
 *
 * Include in every page <head> AFTER font imports:
 *   <link rel="stylesheet" href="/shared-theme.css">
 *
 * Page-specific overrides go in a <style> block AFTER this link.
 */

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

/* ─── DESIGN TOKENS ─── */
:root {
    /* Color palette */
    --ink:     #0f1a14;
    --ink-2:   #243320;
    --ink-3:   #3d5240;
    --mid:     #6b8c6e;
    --muted:   #9db89f;
    --cream:   #f6f0e4;
    --cream-2: #ede5d4;
    --cream-3: #e3d9c6;
    --gold:    #c8962a;
    --gold-lt: #e0b54a;
    --gold-bg: rgba(200,150,42,0.10);
    --gold-bd: rgba(200,150,42,0.25);
    --white:   #ffffff;
    --border:  rgba(63,82,64,0.14);
    --border2: rgba(63,82,64,0.24);
    --card-bg: rgba(246,240,228,0.06);

    /* Status colors */
    --success: #6fcf97;
    --error:   #eb5757;
    --info:    #56ccf2;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ink);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── TYPOGRAPHY ─── */
.f-display {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-optical-sizing: auto;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.f-display em,
.f-display i {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-lt);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* ─── LAYOUT ─── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

/* ─── NAV ─── */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(15,26,20,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(63,82,64,0.2);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    max-width: 1160px;
    margin: 0 auto;
    gap: 24px;
}

.logo {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.04em;
    color: var(--cream);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo em,
.logo span { font-style: italic; color: var(--gold-lt); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.nav-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 13px;
    border-radius: 100px;
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    white-space: nowrap;
}
.nav-tag:hover {
    color: var(--cream);
    border-color: var(--border);
    background: rgba(255,255,255,0.04);
}

.nav-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    background: var(--gold-lt);
    border: none;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.18s, transform 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-cta:hover {
    background: var(--gold);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--muted);
    flex-shrink: 0;
}

@media (max-width: 860px) {
    nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,26,20,0.98); padding: 16px; border-bottom: 1px solid var(--border); }
    .hamburger { display: flex; }
}

/* ─── BUTTONS ─── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--gold-lt);
    color: var(--ink);
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 24px rgba(200,150,42,0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: 'Satoshi', sans-serif;
}
.btn-gold:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(200,150,42,0.45);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--cream-2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    font-family: 'Satoshi', sans-serif;
}
.btn-ghost:hover {
    border-color: var(--gold-bd);
    color: var(--gold-lt);
    background: var(--gold-bg);
}

/* Smaller button variants */
.btn-gold-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: var(--gold-lt);
    color: var(--ink);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 3px 16px rgba(200,150,42,0.25);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: 'Satoshi', sans-serif;
}
.btn-gold-sm:hover {
    background: var(--gold);
    transform: translateY(-1px);
}

/* ─── SECTION LABELS ─── */
.sec-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-lt);
    margin-bottom: 14px;
}
.sec-title {
    font-size: clamp(30px, 3.8vw, 50px);
    color: var(--cream);
    margin-bottom: 18px;
}
.sec-sub {
    font-size: 17px;
    color: var(--mid);
    line-height: 1.75;
    max-width: 560px;
}
.sec-centered { text-align: center; }
.sec-centered .sec-sub { margin: 0 auto; }

/* ─── KICKER BADGE (hero eyebrow) ─── */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-lt);
    background: var(--gold-bg);
    border: 1px solid var(--gold-bd);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

/* ─── DIVIDER ─── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border2) 20%, var(--border2) 80%, transparent);
    margin: 0 40px;
}
@media (max-width: 768px) { .divider { margin: 0 20px; } }

/* ─── CARDS ─── */
.card {
    background: #0f1a14;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
    border-color: var(--border2);
    transform: translateY(-3px);
}
.card.card-gold {
    border-color: var(--gold-lt);
    background: linear-gradient(160deg, rgba(200,150,42,0.07) 0%, #0f1a14 60%);
}

/* ─── FORM INPUTS ─── */
.field-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 14px 18px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: var(--cream);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}
.field-input::placeholder,
input::placeholder,
textarea::placeholder { color: var(--muted); }
.field-input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold-bd);
    background: rgba(255,255,255,0.06);
}

/* ─── PRICING BUTTON VARIANTS (shared across pages) ─── */
.pricing-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Satoshi', sans-serif;
}
.pricing-btn-ghost {
    border: 1px solid var(--border2);
    color: var(--cream-2);
    background: transparent;
}
.pricing-btn-ghost:hover {
    border-color: var(--gold-bd);
    color: var(--gold-lt);
    background: var(--gold-bg);
}
.pricing-btn-gold {
    background: var(--gold-lt);
    color: var(--ink);
    box-shadow: 0 4px 20px rgba(200,150,42,0.25);
}
.pricing-btn-gold:hover {
    background: var(--gold);
    box-shadow: 0 6px 28px rgba(200,150,42,0.4);
}

/* ─── FOOTER ─── */
footer {
    background: #080f0a;
    border-top: 1px solid var(--border);
    padding: 44px 40px;
}
.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--cream-2);
}
.footer-brand em,
.footer-brand span { font-style: italic; color: var(--gold-lt); }
.footer-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: color 0.18s;
}
.footer-links a:hover { color: var(--cream-2); }
.footer-copy {
    font-size: 12px;
    color: var(--mid);
    text-align: center;
    width: 100%;
}
@media (max-width: 600px) {
    footer { padding: 36px 20px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ─── STATUS MESSAGES ─── */
.msg-success { color: var(--success); }
.msg-error   { color: var(--error); }

/* ─── UTILITY ─── */
.text-gold    { color: var(--gold-lt); }
.text-muted   { color: var(--muted); }
.text-cream   { color: var(--cream); }
.text-mid     { color: var(--mid); }
.bg-ink       { background: var(--ink); }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
