/* ===========================
   TEE TIME LIVE — Base Design System
   Toptracer-inspired: clean, sporty, bold
   Orange accent palette
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Oswald:wght@500;600;700&display=swap');

:root {
    /* --- Foundation --- */
    --bg-dark: #1b2430;
    --bg-dark-deep: #131a24;
    --bg-white: #ffffff;
    --bg-light: #f5f6f8;
    --bg-off-white: #fafbfc;

    /* --- Orange Accent Palette (replacing Toptracer teal) --- */
    --orange: #e8793c;
    --orange-light: #f4a261;
    --orange-soft: #ffca99;
    --orange-bright: #ff914d;
    --orange-dark: #c9602a;
    --orange-vivid: #ff7b2e;

    /* --- Text --- */
    --text-dark: #1b2430;
    --text-body: #4a5568;
    --text-muted: #8896a6;
    --text-white: #ffffff;
    --text-white-soft: rgba(255, 255, 255, 0.75);

    /* --- Borders & Shadows --- */
    --border-light: #e2e6ea;
    --border-color: #e2e6ea;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* --- Legacy compatibility --- */
    --primary-green: var(--orange);
    --primary-green-light: var(--orange-light);
    --accent-gold: var(--orange);
    --accent-gold-hover: var(--orange-dark);
    --light-bg: var(--bg-white);
    --section-bg: var(--bg-light);
    --white: #ffffff;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--orange-dark);
    text-decoration: none;
}

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

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

/* --- Typography --- */
.text-center { text-align: center; }

.lead {
    font-size: 1.15em;
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-body);
    line-height: 1.8;
    font-weight: 400;
}

.section-subtitle {
    max-width: 640px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section h2 {
    font-family: 'Oswald', 'Inter', sans-serif;
    color: var(--text-dark);
    font-size: 3em;
    margin: 0 0 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.section h2 strong,
.section h2 em {
    color: var(--orange);
    font-style: normal;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ===========================
   NAVIGATION — Toptracer style
   Dark bar, uppercase links, clean
   =========================== */
.navbar {
    background: var(--bg-dark-deep);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--orange);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.nav-logo {
    color: var(--text-white);
    font-family: 'Oswald', 'Inter', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-logo:hover {
    color: var(--orange);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-white-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82em;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
    text-decoration: none;
}

.nav-links a.nav-logout {
    color: #e53e3e;
    font-size: 0.85em;
    opacity: 0.85;
}
.nav-links a.nav-logout:hover {
    color: #c53030;
    opacity: 1;
}

/* ===========================
   HERO — Full-width, dark overlay
   Bold condensed type like Toptracer
   =========================== */
.hero {
    color: var(--text-white);
    text-align: left;
    padding: 160px 24px 120px;
    position: relative;
    overflow: hidden;
}

.hero-live {
    background:
        linear-gradient(
            135deg,
            rgba(27, 36, 48, 0.88) 0%,
            rgba(27, 36, 48, 0.75) 50%,
            rgba(27, 36, 48, 0.92) 100%
        ),
        url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&q=80&w=2070') center/cover;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-size: 5em;
    margin: 0 0 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
    max-width: 700px;
}

.hero h1 strong,
.hero h1 em {
    color: var(--orange);
    font-style: normal;
}

.hero .tagline {
    font-size: 1.15em;
    color: var(--text-white-soft);
    font-style: normal;
    font-weight: 400;
    max-width: 550px;
    margin: 0 0 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* Center hero variant for CTA sections */
.hero.text-center .hero-buttons,
.cta-banner .hero-buttons {
    justify-content: center;
}

/* ===========================
   BUTTONS — Rounded pill, Toptracer style
   =========================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.82em;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-gold:hover {
    background-color: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(232, 121, 60, 0.35);
}

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

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

/* On light backgrounds */
.section:not(.cta-banner) .btn-outline {
    color: var(--orange);
    border-color: var(--orange);
}

.section:not(.cta-banner) .btn-outline:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-large {
    padding: 18px 50px;
    font-size: 0.88em;
}

/* ===========================
   CARDS — Clean white, subtle shadow
   =========================== */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.card {
    background: var(--bg-white);
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    padding: 40px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--orange);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2.8em;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Oswald', 'Inter', sans-serif;
    color: var(--text-dark);
    font-size: 1.3em;
    margin: 0 0 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card p {
    color: var(--text-body);
    margin: 0;
    font-size: 0.92em;
    line-height: 1.7;
}

.card-gold {
    border-top-color: var(--orange-light);
}

/* ===========================
   CTA BANNER — Dark bg like Toptracer hero
   =========================== */
.cta-banner {
    background:
        linear-gradient(
            135deg,
            rgba(27, 36, 48, 0.92),
            rgba(19, 26, 36, 0.95)
        ),
        url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&q=80&w=2070') center/cover;
    color: var(--text-white);
    text-align: center;
}

.cta-banner h2 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.cta-banner p {
    max-width: 600px;
    margin: 0 auto 35px;
    font-size: 1.1em;
    color: var(--text-white-soft);
}

/* ===========================
   TWO-COL — Toptracer content layout
   =========================== */
.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.two-col > * {
    flex: 1;
    min-width: 300px;
}

/* ===========================
   LIVE BADGE
   =========================== */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    font-size: 0.7em;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.live-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}

/* ===========================
   STATS BAR
   =========================== */
.live-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    padding: 30px 0;
}

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

.live-stat .stat-number {
    display: block;
    font-family: 'Oswald', 'Inter', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.live-stat .stat-label {
    font-size: 0.78em;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===========================
   HUB CARDS
   =========================== */
.hub-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.hub-card {
    background: var(--bg-white);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 50px 36px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.hub-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.hub-card:hover::after {
    transform: scaleX(1);
}

.hub-card-icon {
    font-size: 3.2em;
    margin-bottom: 20px;
}

.hub-card h3 {
    font-family: 'Oswald', 'Inter', sans-serif;
    color: var(--text-dark);
    font-size: 1.6em;
    margin: 0 0 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hub-card p {
    color: var(--text-body);
    margin: 0 0 24px;
    line-height: 1.7;
    font-size: 0.95em;
}

.hub-card .card-link {
    color: var(--orange);
    font-weight: 800;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hub-card-gold::after {
    background: var(--orange-light);
}

/* ===========================
   FOOTER — Dark, clean
   =========================== */
.site-footer {
    background-color: var(--bg-dark-deep);
    color: var(--text-white-soft);
    padding: 70px 0 35px;
    font-size: 0.92em;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-brand h3 {
    font-family: 'Oswald', 'Inter', sans-serif;
    color: var(--text-white);
    font-size: 1.2em;
    margin: 0 0 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-brand p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-white-soft);
}

.footer-links,
.footer-contact {
    flex: 1;
    min-width: 180px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--orange);
    margin: 0 0 16px;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-white-soft);
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links ul li a:hover {
    color: var(--orange);
    text-decoration: none;
}

.footer-contact p {
    margin: 10px 0;
    color: var(--text-white-soft);
}

.footer-contact a {
    color: var(--text-white-soft);
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark-deep);
        padding: 20px 24px 30px;
        gap: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links.open { display: flex; }

    .hero { padding: 130px 24px 90px; text-align: center; }
    .hero h1 { font-size: 3em; max-width: 100%; }
    .hero .tagline { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .section { padding: 70px 0; }
    .section h2 { font-size: 2.2em; }
    .card { min-width: 100%; max-width: 100%; }
    .hub-card { min-width: 100%; }
    .two-col > * { min-width: 100%; }
    .live-stats-bar { gap: 30px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4em; }
    .hero { padding: 110px 20px 70px; }
    .btn { padding: 14px 30px; font-size: 0.78em; }
    .section h2 { font-size: 1.9em; }
}
