/* =========================================================
   Good Food Travels — stylesheet
   Design tokens, component styles, and responsive rules.

   Sections:
     1. Design tokens (CSS variables)
     2. Reset / base
     3. Navbar
     4. Mobile nav drawer
     5. Hero
     6. Buttons
     7. Shared section utilities
     8. Intro section
     9. Event details
    10. Partners
    11. CTA section
    12. Footer
    13. Responsive (≤ 768px)
========================================================= */

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

/* =========================================================
   1. Design Tokens
   Change brand colors and surface levels here — everything
   else in the file references these variables.
========================================================= */
:root {
    --gold: #FECD06;         /* Grub Trucks brand yellow */
    --gold-dim: #c9a405;     /* Darker gold for hover states */
    --bg: #0f0f0f;           /* Page background */
    --surface: #1a1a1a;      /* Elevated card/section background */
    --surface-2: #242424;    /* Second-level surface (nested cards) */
    --border: rgba(255,255,255,0.08);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #555555;
}

/* =========================================================
   2. Reset / Base
========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enables smooth anchor scrolling (e.g. #event) */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* =========================================================
   3. Navbar
   Fixed frosted-glass bar, 68px tall.
   Desktop: shows full nav links.
   Mobile: hides nav links, shows hamburger button.
========================================================= */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 68px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-nav .brand img {
    height: 40px;
    width: auto;
}

.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.site-nav .nav-links a:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

/* Primary CTA pill inside the navbar */
.site-nav .nav-links .btn-nav {
    background: var(--gold);
    color: #000 !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
}

.site-nav .nav-links .btn-nav:hover {
    background: #ffd94d;
    color: #000 !important;
}

/* Hidden on desktop; shown on mobile via media query */
.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
}

/* =========================================================
   4. Mobile Nav Drawer
   Full-screen overlay toggled by .open class via JS.
   Sits directly below the navbar (top: 68px).
========================================================= */
.nav-drawer {
    display: none;           /* Hidden by default; JS adds .open to show */
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 999;
    padding: 2rem;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.nav-drawer.open {
    display: flex;
}

.nav-drawer a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.nav-drawer a:last-child {
    border-bottom: none;
}

.nav-drawer .btn-primary-gold {
    margin-top: 1rem;
    justify-content: center;
}

/* =========================================================
   5. Hero
   Full-viewport section. The Bootstrap carousel sits as the
   background; .hero-overlay is absolutely positioned on top
   with a gradient fade toward the bottom.
========================================================= */
.hero {
    position: relative;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 68px; /* Offset for the fixed navbar */
}

/* Make the carousel fill the full hero height */
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    height: 100%;
}

/* Dim the carousel images so overlay text is readable */
.hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.45);
}

/* Text/CTA container centered over the carousel */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom, transparent 40%, rgba(15,15,15,0.8) 100%);
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(254, 205, 6, 0.15);
    border: 1px solid rgba(254, 205, 6, 0.4);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 1.2rem;
}

/* "Travels" in the title rendered in brand gold */
.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 560px;
    line-height: 1.6;
    margin: 0 0 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Carousel prev/next arrows — circular frosted buttons */
.carousel-control-prev,
.carousel-control-next {
    z-index: 15;
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.carousel-control-prev { left: 1.5rem; }
.carousel-control-next { right: 1.5rem; }

/* =========================================================
   6. Buttons
   Two variants used throughout the page:
   .btn-primary-gold — filled gold, black text
   .btn-ghost        — transparent with a subtle border
========================================================= */
.btn-primary-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Inter', sans-serif;
}

.btn-primary-gold:hover {
    background: #ffd94d;
    color: #000;
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    font-family: 'Inter', sans-serif;
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* =========================================================
   7. Shared Section Utilities
   .section       — vertical padding for every page section
   .section-inner — max-width container, centered
   .section-label — small gold uppercase label above headings
   .section-title — large bold section heading
========================================================= */
.section {
    padding: 5rem 0;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
}

/* =========================================================
   8. Intro Section
   Slightly elevated surface between the hero and event details.
========================================================= */
.intro-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 760px;
}

.intro-text strong {
    color: var(--text-primary);
}

/* =========================================================
   9. Video Section
   Responsive 16:9 YouTube embed with rounded corners.
========================================================= */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   10. Event Details (was 9)
   Two-column grid: map image | event info card.
   Collapses to a single column on mobile.
========================================================= */
.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.event-map img {
    width: 100%;
    border-radius: 16px;
    display: block;
    border: 1px solid var(--border);
}

.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

/* Gold pill showing the event date */
.event-card .event-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 205, 6, 0.12);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(254, 205, 6, 0.25);
}

.event-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.event-card .event-time {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Venue address block — rendered on a nested surface card */
.event-card address {
    font-style: normal;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.event-card address strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.event-card address a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.event-card address a:hover {
    text-decoration: underline;
}

.event-card .app-prompt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Apple badge has no extra whitespace in the image file */
.apple-badge img {
    height: 42px;
    width: auto;
    border-radius: 10px;
}

/* Google Play badge PNG has ~15% whitespace baked in,
   so it needs a taller height to appear the same visual size */
.play-badge img {
    height: 56px;
    width: auto;
    border-radius: 10px;
}

.event-card .event-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* =========================================================
   10. Partners
   Gold background section. Logo images have their own
   baked-in backgrounds (yellow/white), so no CSS color
   filter is applied — they render with original colors.
========================================================= */
.partners-section {
    background: var(--gold);
    border-top: none;
    border-bottom: none;
}

/* Override default gold/white text colors for readability on yellow */
.partners-section .section-label {
    color: rgba(0,0,0,0.5);
}

.partners-section .section-title {
    color: #000;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
}

.partner-logo {
    border-radius: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.partner-logo img {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 6px;
}

/* =========================================================
   11. CTA Section
   Centered card with a decorative gold line at the top edge
   (rendered via ::before pseudo-element).
========================================================= */
.cta-section {
    text-align: center;
}

.cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Decorative gold gradient line across the top of the card */
.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.cta-card .cta-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.cta-card .cta-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   12. Footer
   Minimal two-item bar: copyright on the left, credit on right.
========================================================= */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-copy a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-copy a:hover {
    color: var(--gold);
}

.footer-made {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-made a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-made a:hover {
    color: var(--gold);
}

.footer-made .heart {
    color: #e05;
}

/* =========================================================
   13. Responsive — Mobile (≤ 768px)
   - Navbar collapses to hamburger
   - Hero height reduced
   - Event grid goes single-column
   - Section padding reduced
   - Footer stacks vertically
========================================================= */
@media (max-width: 768px) {
    .site-nav .nav-links { display: none; }
    .hamburger { display: flex; align-items: center; }

    .hero { height: 75vh; }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .section { padding: 3.5rem 0; }

    .cta-card { padding: 2.5rem 1.5rem; }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}
