/* 
   THE CHUCK WAGON FOOD TRUCK CO.
   Premium Cowboy Theme — Mobile-First Overhaul
*/

/* ─── Google Fonts Import ─── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --bg: #1A1209;
    --bg-section: #231A0E;
    --card-bg: #2C2013;
    --parchment: #F5E6C8;
    --gold: #D4A853;
    --rust: #C0542B;
    --cream: #FAF0E0;
    --green: #5A9A3C;
    --text: #F0E4D0;
    --text-muted: #A89880;
    --leather: #6B3A1F;
    --wood: #3D2B18;
    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Outfit', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
    color: var(--gold);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ─── HEADER ─── */
header {
    background: var(--wood);
    border-bottom: 3px solid var(--leather);
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.brand-name {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    white-space: nowrap;
}

/* Desktop Nav */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cream);
    padding: 0.3rem 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
    min-height: 70vh;
    background: linear-gradient(to bottom, rgba(26, 18, 9, 0.4), rgba(26, 18, 9, 0.85)),
        url('../images/hero_truck.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    border-bottom: 4px solid var(--leather);
}

.hero-tagline {
    font-family: var(--heading-font);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--cream);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: var(--rust);
    color: #FFF;
    padding: 0.9rem 2rem;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: #A03D1A;
    transform: translateY(-2px);
}

/* ─── SECTIONS ─── */
.section {
    padding: 3rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-dark {
    background: var(--bg-section);
    padding: 3rem 1.5rem;
}

.section-dark .section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--rust);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Story */
.story-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.story-content strong {
    color: var(--gold);
}

/* ─── CARDS / GRID ─── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.card-header h3 {
    flex: 1;
    font-size: 1.15rem;
}

.price-tag {
    background: var(--green);
    color: #FFF;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ─── MENU CATEGORY ─── */
.menu-category {
    margin-bottom: 3rem;
}

.menu-category h2 {
    color: var(--rust);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--leather);
    display: inline-block;
}

/* ─── TRACKER ─── */
.tracker-box {
    background: var(--card-bg);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(90, 154, 60, 0.15);
    border: 1px solid var(--green);
    color: var(--green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.map-frame {
    border: 2px solid var(--leather);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.map-frame img {
    width: 100%;
    display: block;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.schedule-table th {
    background: var(--wood);
    color: var(--gold);
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 700;
}

.schedule-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.schedule-table tr:hover td {
    background: rgba(212, 168, 83, 0.05);
}

/* ─── ORDER FORM ─── */
.order-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 8px;
    padding: 2rem;
    max-width: 550px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--leather);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.2);
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-item-row span {
    color: var(--text);
}

.order-item-row input[type="number"] {
    width: 60px;
    padding: 0.4rem;
    background: var(--bg);
    border: 1px solid var(--leather);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--body-font);
    text-align: center;
}

/* ─── FOOTER ─── */
footer {
    background: var(--wood);
    border-top: 3px solid var(--leather);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

footer .social-links {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

footer .social-links a {
    color: var(--gold);
    margin: 0 10px;
    transition: opacity 0.2s;
}

footer .social-links a:hover {
    opacity: 0.7;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {

    /* Show hamburger, hide nav */
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--wood);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: none;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
    }

    .nav-overlay.show {
        display: block;
    }

    /* Responsive grid */
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 55vh;
        padding: 2rem 1rem;
    }

    .section,
    .section-dark {
        padding: 2rem 1rem;
    }

    .order-card {
        padding: 1.5rem;
    }

    .tracker-box {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}