/* =========================================================================
   Next On The Tee — Editorial Redesign
   Inspired by premium marketplace layouts (AcePlace / boutique brand sites)
   Tee Time orange palette, Playfair Display + Inter typography.
   ========================================================================= */

/* Google Fonts import removed. Every family it pulled — Inter,
   Oswald, Fraunces, Caveat, Playfair Display — has been replaced by
   Manrope, the app's typeface, self-hosted in tokens.css. Nothing
   referenced them any more, so this was downloading several font
   families on every page load to render none of them. */

:root {
    /* ── Tee Time brand palette (aligned with admin tool) ── */
    --orange:        #C8601C;
    --orange-light:  #D4722A;
    --orange-mid:    #A84E14;
    --orange-deep:   #6B2E06;
    --orange-xlight: #FEF0E4;

    --cream:         #F0C4A0;
    --cream-light:   #FDF6EE;
    --cream-hover:   #DCA87E;

    /* ── Neutrals ── */
    --bg:            #FAF5EE;   /* warm cream page background */
    --bg-elev:       #FFFFFF;   /* elevated surfaces (cards) */
    --dark:          #2A1200;   /* warm dark brown for high-contrast text */
    --text:          #1C1410;   /* body copy */
    --text-muted:    #7A6A5A;
    --border:        #E8DDD0;
    --white:         #FFFFFF;

    /* ── Semantic ── */
    --success:       #1a6e35;
    --danger:        #b32323;

    /* ── Legacy aliases (keep old class names working) ── */
    --primary-green:       var(--orange-deep);
    --primary-green-light: var(--orange-mid);
    --accent-gold:         var(--orange);
    --accent-gold-hover:   var(--orange-mid);
    --light-bg:            var(--bg);
    --section-bg:          var(--cream-light);
    --text-dark:           var(--text);
    --border-color:        var(--border);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-mid); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin: 0 0 20px; }
h3 { font-size: 1.35rem; margin: 0 0 12px; }
h4 { font-size: 1.05rem; margin: 0 0 10px; }

p { margin: 0 0 16px; }

/* ── Layout utilities ───────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.text-center { text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange-mid);
    font-weight: 600;
    margin-bottom: 14px;
}

.lead {
    font-size: 1.18em;
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.75;
}

.section-subtitle {
    max-width: 640px;
    margin: 0 auto 56px;
    font-size: 1.08em;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
}

.section { padding: 100px 0; }
.section-tight { padding: 60px 0; }
.bg-light { background: var(--cream-light); }
.bg-cream { background: var(--orange-xlight); }
.bg-dark  { background: var(--dark); color: rgba(255,255,255,.85); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ── Navigation (sticky, transparent-on-hero, solid on scroll) ──────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    background: transparent;
    transition: background .3s, box-shadow .3s, padding .3s;
    backdrop-filter: blur(0);
}
.navbar.scrolled {
    background: rgba(42, 18, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.nav-logo {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}
.nav-logo:hover { color: var(--cream); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6em;
    cursor: pointer;
    padding: 4px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 34px;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--cream);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--cream);
}
.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(42, 18, 0, 0.98);
        padding: 20px 24px 28px;
        gap: 12px;
        backdrop-filter: blur(10px);
    }
    .nav-links.open { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 180px 24px 120px;
    color: var(--white);
    overflow: hidden;
    background: var(--dark);
}
.hero > .container { position: relative; z-index: 2; }

.hero-home {
    background:
        linear-gradient(180deg, rgba(42,18,0,0.55) 0%, rgba(42,18,0,0.75) 60%, rgba(42,18,0,0.9) 100%),
        url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&q=80&w=2400') center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 80px;
}
.hero-about {
    background:
        linear-gradient(180deg, rgba(42,18,0,0.6) 0%, rgba(42,18,0,0.85) 100%),
        url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&q=80&w=2400') center/cover;
    padding: 200px 24px 120px;
}
.hero-involve, .hero-contact {
    background:
        linear-gradient(135deg, rgba(42,18,0,0.75) 0%, rgba(107,46,6,0.9) 100%),
        url('https://images.unsplash.com/photo-1591491719565-9b3a4c38e498?auto=format&fit=crop&q=80&w=2400') center/cover;
    padding: 200px 24px 120px;
}

.hero .eyebrow {
    color: var(--cream);
    display: block;
    margin-bottom: 22px;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    max-width: 900px;
    text-transform: none;
}
.hero-home h1 { font-style: italic; font-weight: 400; }
.hero-home h1 em { font-style: normal; font-weight: 700; color: var(--cream); }
.hero .tagline {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    color: rgba(255,255,255,0.86);
    font-family: var(--font-body);
    max-width: 620px;
    margin: 0 0 40px;
    line-height: 1.65;
    font-style: normal;
}
.hero-home .tagline { max-width: 640px; }
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-home .hero-buttons, .hero-home .tagline { justify-content: flex-start; text-align: left; }
.hero-home h1 { text-align: left; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    border: 1.5px solid transparent;
    line-height: 1;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn::after {
    content: '→';
    font-size: 1.1em;
    transition: transform .25s;
}
.btn.no-arrow::after { display: none; }
.btn:hover::after { transform: translateX(3px); }

.btn-gold {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    box-shadow: 0 6px 20px rgba(200,96,28,0.3);
}
.btn-gold:hover {
    background: var(--orange-mid);
    border-color: var(--orange-mid);
    color: var(--white);
    box-shadow: 0 8px 26px rgba(200,96,28,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}
.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-large { padding: 18px 36px; font-size: 1.05rem; }

/* ── Editorial split section (two-col) ──────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

.two-col h2 { margin: 0 0 24px; }
.two-col .lead { text-align: left; margin: 0; max-width: none; }

.editorial-image {
    background:
        linear-gradient(180deg, transparent 0%, rgba(42,18,0,0.15) 100%),
        url('https://images.unsplash.com/photo-1592919505780-303950717480?auto=format&fit=crop&q=80&w=1200') center/cover;
    border-radius: 12px;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 60px rgba(107,46,6,0.15);
    position: relative;
}

@media (max-width: 860px) {
    .two-col, .two-col-reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
}

/* ── Statistics panel ───────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 40px;
}
.stat {
    background: var(--bg-elev);
    padding: 38px 24px;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--orange-deep);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Large impact stats (single row of big numbers) */
.impact-strip {
    padding: 70px 0;
    background: var(--dark);
    color: var(--cream);
}
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.impact-num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.impact-lbl {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(240,196,160,0.85);
    font-weight: 500;
}
@media (max-width: 720px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

/* ── Marquee scroller (partner logos / metrics) ─────────────────────────── */
.marquee-band {
    background: var(--orange-xlight);
    padding: 24px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.marquee {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--orange-deep);
    font-style: italic;
}
.marquee-item::before {
    content: '⛳';
    font-style: normal;
    font-size: 1.1rem;
    opacity: 0.6;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-elev);
    padding: 36px 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(107,46,6,0.06);
    border: 1px solid var(--border);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(107,46,6,0.12);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s;
}
.card:hover::before { transform: scaleY(1); }

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    display: block;
    line-height: 1;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.card-gold { border-top: 4px solid var(--orange); padding-top: 32px; }

/* Numbered step cards */
.step-card {
    background: var(--bg-elev);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    transition: transform .3s, box-shadow .3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(107,46,6,0.1); }
.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}
.step-card h3 { margin: 0 0 14px; }
.step-card p { color: var(--text-muted); margin: 0; }

/* ── Featured quote / testimonial ───────────────────────────────────────── */
.quote-block {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}
.quote-block .eyebrow { color: var(--orange); }
.quote-mark {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--orange);
    line-height: 0.5;
    margin-bottom: 10px;
    display: block;
    opacity: 0.4;
}
.quote-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--dark);
    line-height: 1.45;
    margin: 0 0 24px;
    font-weight: 400;
}
.quote-attr {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── Sponsor / Foundation banner ────────────────────────────────────────── */
.foundation-banner {
    background:
        linear-gradient(135deg, rgba(42,18,0,0.85) 0%, rgba(107,46,6,0.92) 100%),
        url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&q=80&w=2400') center/cover;
    color: var(--white);
    padding: 110px 24px;
    text-align: center;
}
.foundation-banner h2, .foundation-banner h3 { color: var(--white); }
.foundation-banner p { color: rgba(255,255,255,0.9); max-width: 720px; margin: 0 auto 24px; font-size: 1.08rem; }
.foundation-banner .btn-outline { border-color: var(--cream); color: var(--cream); }
.foundation-banner .btn-outline:hover { background: var(--cream); color: var(--dark); }

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
    background: var(--dark);
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 18px; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto 32px; font-size: 1.08rem; }
.cta-banner .hero-buttons { justify-content: center; }

/* ── "Involve" and sponsor cards from get-involved.html ─────────────────── */
.involve-grid, .sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.involve-card {
    background: var(--bg-elev);
    padding: 36px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s;
}
.involve-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(107,46,6,0.1); }
.involve-card h3 { color: var(--dark); margin: 0 0 12px; }
.involve-card p { color: var(--text-muted); margin: 0 0 24px; line-height: 1.7; }

.sponsor-card {
    background: var(--bg-elev);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
}
.sponsor-card h3 { color: var(--dark); margin: 0 0 10px; }
.sponsor-price {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 14px;
}
.sponsor-card ul { text-align: left; padding: 0 0 0 20px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.9; }
.sponsor-card.featured {
    border: 2px solid var(--orange);
    box-shadow: 0 20px 50px rgba(200,96,28,0.15);
    transform: translateY(-8px);
}

/* ── Forms (intake / contact / host-signup) ────────────────────────────── */
form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
form input, form select, form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.98rem;
    background: var(--white);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(200,96,28,0.15);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin: 0 0 14px;
    font-size: 1.5rem;
}
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.7; max-width: 380px; }

.footer-links h4, .footer-contact h4 {
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 20px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: color .2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--cream); }
.footer-contact p { margin: 0 0 12px; font-size: 0.95rem; }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
    .site-footer { padding: 60px 0 24px; }
}

/* ── Reduce motion for users who prefer it ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
