/* =========================================================
   The Personal Launch — Shared Design System
   Dark, rebranded theme built on the brand palette.
   Linked by every page so the look stays consistent.
   ========================================================= */

:root {
    /* --- Brand palette (source of truth) --- */
    --orange:        #df8743; /* Primary Orange  */
    --gold:          #fcbe44; /* Golden Yellow   */
    --red:           #ae493a; /* Warm Red        */
    --brown:         #603426; /* Dark Brown      */
    --near-black:    #221a1c; /* Near Black      */
    --navy:          #21396f; /* Navy Blue       */
    --teal:          #7a9f90; /* Sage Teal       */
    --white:         #ffffff;

    /* --- Semantic tokens (use these in components) --- */
    --bg:            #100a0b;                 /* page background — deep warm near-black */
    --bg-alt:        #181011;                 /* alternating section — slightly lifted */
    --surface:       #281b19;                 /* cards / raised panels — warm brown-black */
    --surface-2:     #36251f;                 /* hover / nested panels */
    --footer-bg:     #0a0607;                 /* deepest near-black, anchors the footer */
    --border:        rgba(255, 255, 255, 0.09);
    --border-strong: rgba(223, 135, 67, 0.50);/* orange-tinted border for emphasis */

    /* Full-spectrum brand accent — used for divider bars */
    --brand-bar: linear-gradient(90deg, var(--orange) 0%, var(--gold) 35%, var(--teal) 70%, var(--red) 100%);

    --accent:        var(--orange);
    --accent-2:      var(--gold);
    --emphasis:      var(--red);
    --success:       var(--teal);

    --text:          #f9f4ef;                 /* warm off-white */
    --text-muted:    #dccfc6;                 /* warm muted — brightened for readability */
    --text-faint:    #a2938b;

    --font:          'Montserrat', system-ui, -apple-system, sans-serif;
    --radius:        10px;
    --radius-lg:     16px;
    --maxw:          1140px;
    --shadow:        0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-accent: 0 8px 24px rgba(223, 135, 67, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Film-grain — two layers, like the reference texture but alive:
   a fine grain that jitters fast, and a coarser grain drifting slowly
   underneath it for depth. Both fixed, non-interactive, on top. */
body::before, body::after {
    content: "";
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background-repeat: repeat;
    will-change: transform;
}
/* Fine, fast-jittering grain */
body::before {
    inset: -25%;
    opacity: 0.17;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    animation: grainJitter 0.6s steps(4) infinite;
}
/* Coarse, slow-drifting grain on its own layer */
body::after {
    inset: -15%;
    opacity: 0.06;
    mix-blend-mode: soft-light;
    background-size: 340px 340px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.32' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='0.5'/%3E%3C/svg%3E");
    animation: grainDrift 18s ease-in-out infinite;
}
@keyframes grainJitter {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-6%, 4%); }
    50%  { transform: translate(5%, -5%); }
    75%  { transform: translate(-4%, -3%); }
    100% { transform: translate(0, 0); }
}
@keyframes grainDrift {
    0%   { transform: translate(-3%, -2%) scale(1.06); }
    50%  { transform: translate(3%, 2%) scale(1.12); }
    100% { transform: translate(-3%, -2%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    body::before, body::after { animation: none; }
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background-color: var(--bg-alt); }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.section-title::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: var(--brand-bar);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    padding: 16px 34px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #160d0b;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd45e 0%, #f59a3e 100%);
    box-shadow: 0 8px 26px rgba(252, 190, 68, 0.40);
}
/* Hover just brightens the gold and lifts — no colour flip. Some touch
   browsers (Samsung Internet) report hover support and leave :hover stuck
   after a tap, so the hover state must stay gold to look consistent. */
.btn-primary:hover {
    background: linear-gradient(135deg, #ffe08a 0%, #f9a851 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(252, 190, 68, 0.6);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-2);
    transform: translateY(-2px);
}

.btn-block { display: block; width: 100%; }

/* --- Top navigation --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10000; /* above the grain overlay so the CTA stays crisp */
    background: rgba(15, 10, 11, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav__brand {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--text);
    text-decoration: none;
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 11px 22px; font-size: 0.9rem; }
/* Keep the CTA's dark button text — beat the muted .nav__links a colour */
.nav__links a.nav__cta { color: #160d0b; font-weight: 800; }

/* --- Hero — cinematic warm gradient with portrait --- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 88px 0 0;
    /* Bright gold/orange "sun" top-right, red glow bottom-right, fading to
       near-black on the left — the gradient from the reference photos.
       The first (top) layer is a left-side scrim that keeps the headline
       on near-black for readability. */
    background:
        linear-gradient(90deg, rgba(8, 5, 6, 0.94) 0%, rgba(8, 5, 6, 0.72) 26%, rgba(8, 5, 6, 0.22) 45%, rgba(8, 5, 6, 0) 60%),
        radial-gradient(90% 130% at 98% 28%, #fcbe44 0%, #df8743 19%, rgba(174, 73, 58, 0.62) 40%, rgba(20, 14, 15, 0) 68%),
        radial-gradient(62% 80% at 84% 116%, rgba(174, 73, 58, 0.70), transparent 56%),
        radial-gradient(50% 60% at 10% 8%, rgba(96, 52, 38, 0.30), transparent 60%),
        var(--bg);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: center;
    width: 100%;
}
.hero__content { text-align: left; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.hero__title .accent { color: #f0a25b; }
.hero__desc {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 0 32px;
}
.hero__desc strong { color: var(--text); }
.hero__actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.hero__note {
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* Portrait — rises out of the glow, fully visible so the quote sits on it */
.hero__portrait {
    position: relative;
    align-self: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero__portrait img {
    display: block;
    width: 100%;
    max-width: 540px;
    max-height: 84vh;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}
/* Quote card riding on the photo */
.hero__quote {
    position: absolute;
    left: -18px;
    bottom: 18px;
    z-index: 3;
    max-width: 270px;
    margin: 0;
    padding: 15px 18px 13px;
    background: rgba(14, 9, 10, 0.70);
    backdrop-filter: blur(9px);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
    text-align: left;
}
.hero__quote blockquote {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.38;
    color: var(--text);
    margin: 0 0 8px;
}
.hero__quote figcaption {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--accent-2);
}
/* Shown only if the real photo hasn't been added yet */
.hero__portrait--empty {
    align-self: center;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(20, 14, 15, 0.75);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 24px;
}

/* --- Generic card --- */
.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

/* --- Footer --- */
.footer {
    position: relative;
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-bar);
}
.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    margin-bottom: 36px;
}
.footer__brand { max-width: 300px; }
.footer__brand .nav__brand { font-size: 1.2rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.footer__col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin-bottom: 16px;
}
.footer__col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--accent-2); }
.footer__socials { display: flex; gap: 14px; margin-top: 16px; }
.footer__socials a {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.footer__socials a:hover { color: var(--accent); border-color: var(--border-strong); }
.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* --- Forms (shared) --- */
.field { margin-bottom: 16px; text-align: left; }
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
}
.field input {
    width: 100%;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(223, 135, 67, 0.18);
}
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 12px; text-align: center; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 860px) {
    .hero {
        min-height: 0;
        padding: 84px 0 0;
        /* Stacked layout: move the glow to the bottom, behind the portrait,
           so the headline above stays on near-black and readable. */
        background:
            radial-gradient(85% 46% at 50% 116%, #fcbe44 0%, #df8743 24%, rgba(174, 73, 58, 0.60) 46%, rgba(20, 14, 15, 0) 74%),
            radial-gradient(70% 34% at 78% 102%, rgba(174, 73, 58, 0.55), transparent 62%),
            var(--bg);
    }
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    .hero__content { text-align: center; padding-bottom: 8px; }
    .hero__content .eyebrow { margin-inline: auto; }
    .hero__desc { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__note { text-align: center; }
    .hero__portrait { align-items: flex-end; }
    .hero__portrait img { max-width: min(420px, 90vw); max-height: none; margin: 0 auto; }
    .hero__portrait--empty { margin: 0 auto; }
    .hero__quote {
        left: 50%;
        right: auto;
        bottom: 8px;
        transform: translateX(-50%);
        width: min(88%, 320px);
        max-width: none;
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--accent);
    }
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .nav__links a:not(.nav__cta) { display: none; }
}
