/* --- GLOBAL MOBILE FIXES --- */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* --- INTELLIGENT EMBED SIZING --- */
iframe, video {
    max-width: 100%;
}

/* On Mobile: Force full width */
@media (max-width: 768px) {
    .instagram-media {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }
}

/* On Desktop: Keep them small and side-by-side */
@media (min-width: 769px) {
    .instagram-media {
        width: 326px !important; /* Standard Insta Reel width */
        min-width: 326px !important;
        margin: 0 !important; /* Removes Instagram's default centering margin */
    }
}
/* --- THEME VARIABLES --- */
:root {
    --primary-brown: #8b6f47;
    --dark-brown: #5c4033;
    --light-tan: #d4a574;
    --cream: #f5e6d3;
    --rust: #c85a54;
    --wood: #6b4423;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--cream);
    color: var(--dark-brown);
    line-height: 1.6;
}

/* --- LAYOUT --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Side padding for mobile */
}

/* --- HEADER & NAV --- */
header {
    background: linear-gradient(135deg, var(--wood) 0%, var(--primary-brown) 100%);
    color: var(--cream);
    padding: 1rem 0;
    border-bottom: 4px solid var(--rust);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

header h1 {
    color: var(--cream);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.8rem; /* Scaled down slightly for mobile safety */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    flex-wrap: wrap; /* Allows links to stack on tiny phones */
    justify-content: center;
}

nav a {
    color: var(--cream);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-size: 0.9rem;
}

nav a:hover, nav a.active {
    color: var(--rust);
}

/* --- TYPOGRAPHY & BUTTONS --- */
h1, h2, h3 {
    font-family: 'Georgia', serif;
    color: var(--dark-brown);
    text-transform: uppercase;
    letter-spacing: 2px;
}

button, .btn {
    background-color: var(--rust);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* --- SECTIONS --- */
.service-section {
    padding: 3rem 0;
    text-align: center;
}

hr {
    border: 0;
    height: 1px;
    background: var(--light-tan);
    margin: 2rem 0;
}

/* Wood Panel (Welcome Box) */
.wood-panel {
    background: linear-gradient(90deg, #6b4423 0%, #8b5a3c 50%, #6b4423 100%);
    border: 2px solid var(--dark-brown);
    border-radius: 8px;
    padding: 2rem;
    color: var(--cream);
    text-align: center;
    margin: 2rem 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.wood-panel h2 {
    color: var(--cream);
    border-bottom: 2px solid var(--rust);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* --- SOCIAL MEDIA BUTTONS --- */
.social-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
    min-width: 200px;
    text-align: center;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.facebook { background-color: #1877F2; }
.youtube { background-color: #FF0000; }
.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }

/* --- INSTAGRAM ROW --- */
.insta-row, .reel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    width: 100%;
}

/* --- MENU CARD STYLES --- */
.menu-card {
    background-color: white;
    border: 1px solid var(--light-tan);
    padding: 2rem; /* Reduced padding for mobile */
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.menu-section { margin-bottom: 2rem; }

.menu-section h3 {
    color: var(--rust);
    border-bottom: 2px solid var(--wood);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.menu-note {
    font-style: italic;
    color: var(--wood);
    margin-bottom: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: bold;
    color: var(--dark-brown);
    margin-bottom: 0.25rem;
    border-bottom: 1px dotted var(--light-tan);
}

.item-name, .item-price {
    background-color: white;
    padding: 0 5px;
}

.item-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

/* --- PACKING SECTION --- */
.packing-section {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}

.packing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .packing-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #8b5a2b;
}

.location-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.5rem 0;
    justify-content: center; /* Center badges on mobile */
}

@media (min-width: 768px) {
    .location-list { justify-content: flex-start; }
}

.location-list li {
    background-color: #8b5a2b;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
}

#packing-inquiry-btn {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s;
}

#packing-inquiry-btn:hover { background-color: #555; }

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--dark-brown);
    color: var(--cream);
    margin-top: 2rem;
}

/* --- MOBILE REPAIRS (Paste at bottom of CSS) --- */

/* 1. Fix Navigation Overflow */
nav ul {
    flex-wrap: wrap;       /* Allows links to stack on two lines if needed */
    justify-content: center; /* Centers them perfectly */
    row-gap: 10px;         /* Adds space between the stacked rows */
}

@media (max-width: 768px) {
    /* 2. Widen the "Channels" (Reduce Padding) */
    .container {
        padding: 0 15px;
    }

    .wood-panel, .menu-card, .packing-section {
        padding: 1.5rem 1rem !important; /* Much less padding = More room for text */
    }

    /* 3. Fix "The Chuckwagon Menu" Header Wrapping */
    h1, h2 {
        font-size: 1.5rem;   /* Smaller header font for mobile */
        letter-spacing: 1px; /* Less spacing so words fit */
        word-wrap: break-word;
    }

    /* 4. Center the Menu Items (Name, Price, Desc) */
    .item-header {
        flex-direction: column; /* Stack Name on top of Price */
        justify-content: center;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .item-name {
        font-size: 1.3rem;
        margin-bottom: 5px;
        padding: 0;
    }
    
    .item-price {
        font-size: 1.1rem;
        color: var(--rust); /* Highlight price in red/rust */
        padding: 0;
    }
    
    .item-desc, .menu-note {
        text-align: center; /* Center the descriptions */
    }
}