/* ==========================================================================
   THE ROLLING PEARL - MASTER STYLESHEET
   Design Language: Traditional Sailor-Tattoo / Nautical Artisan Vibe
   ========================================================================== */

/* Base Reset & Smooth Scroll */
* { 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    /* Rich, Deep Teal Body Paint Color from the Truck Wrap */
    background-color: #0d627a; 
    /* Repeating vector wave texture simulation */
    background-image: 
        radial-gradient(circle at 100% 150%, #0d627a 24%, #0a4f63 24%, #0a4f63 28%, #0d627a 28%, #0d627a 36%, #0a4f63 36%, #0a4f63 40%, rgba(0,0,0,0) 40%),
        radial-gradient(circle at 0% 150%, #0d627a 24%, #0a4f63 24%, #0a4f63 28%, #0d627a 28%, #0d627a 36%, #0a4f63 36%, #0a4f63 40%, rgba(0,0,0,0) 40%);
    background-size: 80px 40px;
    color: #f7eed8; /* Aged Parchment/Cream tone for maximum readability */
}

/* --- STICKY NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /* Horizontal gradient compressed to the left: fades cleanly right after your logo sticker */
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.9) 10%, rgba(10, 79, 99, 0.85) 25%, rgba(10, 79, 99, 0.95) 100%);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px; /* Ample vertical room for the sticker logo */
    border-bottom: 2px solid #24d2e6; /* Vibrant Aqua Accent Wave Trim */
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-logo-link:hover {
    transform: scale(1.05);
}

/* Responsive constraints to keep the header sticker elegant and fitted */
.nav-sticker-logo {
    height: 85px; /* Large, bold presentation size */
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: #f7eed8; /* Crisp parchment cream for high readability against the early blue gradient transition */
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-links a:hover { 
    color: #24d2e6; /* Vibrant Aqua from the wave crests */
    border-color: #d64550; /* Coral Red */
}

/* Hidden on desktop layouts */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 34px; 
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 11;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 4px; 
    background-color: #f7eed8; /* Cream to contrast beautifully against the dark section of the header bar */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- SECTION BASE STYLES --- */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Shrikhand', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 50px;
    color: #f7eed8; 
    text-shadow: 
        3px 3px 0px #d64550,
        5px 5px 0px #0a4f63;
    letter-spacing: 1px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    height: 500px; 
    overflow: hidden; /* Slices background video overflow instantly */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(10, 79, 99, 0.2), rgba(13, 98, 122, 0.4)), url('./kevin-kurek-unsplash-sm.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid #24d2e6;
    margin-top: 125px; /* Offset spacing to clear the extra-tall sticky header */
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    z-index: 1; 
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(10, 79, 99, 0.15); 
    z-index: 2; 
}

.hero-container {
    position: relative;
    z-index: 3; 
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo Image Styling Over Video */
.hero-logo {
    width: 100%;
    max-width: 400px; 
    height: auto;
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.6)); 
    animation: logoFadeIn 1.8s ease-out forwards;
}

/* --- PREMIUM CONTAINER CARDS --- */
.placeholder-box {
    background: #0a4f63; 
    border: 3px solid #24d2e6; 
    border-radius: 16px;
    padding: 50px 35px;
    text-align: center;
    color: #f7eed8;
    box-shadow: 
        8px 8px 0px #d64550, 
        0px 15px 30px rgba(0,0,0,0.3);
    max-width: 850px;
    margin: 0 auto;
}

.placeholder-box p strong {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #f7eed8;
    letter-spacing: 0.3px;
}

/* --- EXPANDABLE STORY CARD STYLES --- */
.story-more-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
}

.story-more-content.is-open {
    max-height: 1200px; /* High enough to contain full story */
    opacity: 1;
    margin-top: 15px;
}

.story-toggle-btn {
    background: transparent;
    border: 2px solid #24d2e6;
    color: #24d2e6;
    border-radius: 25px;
    padding: 12px 26px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.story-toggle-btn:hover {
    background-color: #24d2e6;
    color: #0a4f63;
    box-shadow: 0 4px 12px rgba(36, 210, 230, 0.3);
}

.story-toggle-btn .btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.story-toggle-btn.is-open .btn-arrow {
    transform: rotate(180deg);
}

/* --- INTERACTIVE MENU LAYOUT STYLES --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.menu-card {
    position: relative;
    background: #0a4f63; /* Contrasting deep navy-teal */
    border: 3px solid #24d2e6; /* Vibrant Aqua Wave Trim */
    border-radius: 16px;
    padding: 45px 25px 25px 25px; /* Extra top padding gives text tags breathing room */
    color: #f7eed8; /* Parchment Cream */
    box-shadow: 
        6px 6px 0px #d64550, /* Tattoo-ink pop heavy shadow */
        0px 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        10px 10px 0px #d64550, 
        0px 15px 25px rgba(0,0,0,0.3);
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(36, 210, 230, 0.3);
    padding-bottom: 10px;
}

.menu-card h3 {
    font-family: 'Shrikhand', cursive;
    font-size: 1.6rem;
    font-weight: 400; /* Strips browser bolding */
    margin: 0;
    color: #f7eed8;
    letter-spacing: 1px;
}

.menu-price {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #24d2e6;
}

.menu-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(247, 238, 216, 0.9);
    flex-grow: 1;
}

.menu-meta {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #24d2e6;
    text-transform: uppercase;
}

.menu-meta.caffeine-free {
    color: #f7eed8;
    opacity: 0.7;
}

/* Artisan Badges styling */
.menu-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 20px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    border: 2px solid #24d2e6;
    z-index: 2;
}

.menu-badge.best-seller {
    background-color: #d64550; /* Coral Red */
    color: #f7eed8;
    border-color: #f7eed8;
}

.menu-badge.special {
    background-color: #24d2e6; /* Aqua Accent */
    color: #0a4f63;
    border-color: #0a4f63;
}

.menu-badge.refreshing {
    background-color: #0d627a;
    color: #f7eed8;
}

/* --- LIVE MAP SCHEDULE SECTION LAYOUT --- */
.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.map-wrapper {
    background: #0a4f63;
    border: 3px solid #24d2e6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 6px 6px 0px #d64550, 0px 10px 20px rgba(0,0,0,0.2);
    aspect-ratio: 16 / 9; /* Maintains movie-screen map layout proportion */
    min-height: 350px;
    width: 100%;       /* Ensures full fill inside container */
    max-width: 100%;   /* Prevents card from spilling over screen width */
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.schedule-info-card {
    background: #0a4f63;
    border: 3px solid #24d2e6;
    border-radius: 16px;
    padding: 30px;
    color: #f7eed8;
    box-shadow: 6px 6px 0px #d64550;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-info-card h3 {
    font-family: 'Shrikhand', cursive;
    font-size: 1.8rem;
    font-weight: 400; /* Strips browser bolding */
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.schedule-subheading {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #24d2e6;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 15px 0;
}

.schedule-instructions {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(247, 238, 216, 0.9);
}

.schedule-notes {
    font-family: 'Courier New', Courier, monospace;
    border-top: 1px dashed rgba(36, 210, 230, 0.3);
    padding-top: 15px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* --- UPCOMING DYNAMIC EVENT CARDS --- */
.event-card {
    background: #0d627a;
    border: 2px solid #24d2e6;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 3px 3px 0px #d64550;
    transition: transform 0.2s ease;
    text-align: left;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card:hover {
    transform: translateY(-2px);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(36, 210, 230, 0.3);
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.event-title {
    font-family: 'Shrikhand', cursive;
    font-size: 1.3rem;
    color: #f7eed8;
    margin: 0;
    font-weight: 400;
}

.event-date {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #24d2e6;
    text-transform: uppercase;
}

.event-details {
    font-size: 0.9rem;
    color: rgba(247, 238, 216, 0.9);
    line-height: 1.4;
    margin: 0;
}

.event-location {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #24d2e6;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- INSTAGRAM FEED SECTION LAYOUT --- */
.instagram-subheading {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #24d2e6;
    margin-top: -30px;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.instagram-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    min-height: 250px; /* Provides steady container bounds before feed loads */
}

/* ==========================================
   BOOKING / CATERING FORM STYLES
   ========================================== */
.booking-card {
    background: #0a4f63;
    border: 3px solid #24d2e6;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 6px 6px 0px #d64550;
}

.booking-subheading {
    text-align: center;
    font-size: 1rem;
    color: #f7eed8;
    margin-bottom: 30px;
}

/* TRUCK PHOTO STYLING */
.truck-frame-wrapper {
    position: relative;
    max-width: 380px;
    margin: 0 auto 30px auto;
    /* Soft cyan glowing shadow halo behind the custom cutout */
    filter: drop-shadow(0px 8px 12px rgba(36, 210, 230, 0.35)) 
            drop-shadow(4px 4px 0px #d64550);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.truck-frame-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0px 12px 18px rgba(36, 210, 230, 0.5)) 
            drop-shadow(6px 6px 0px #d64550);
}

.truck-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    /* Stylish 8-point geometric ticket/badge cutout shape */
    clip-path: polygon(
        15% 0%, 85% 0%, 
        100% 15%, 100% 85%, 
        85% 100%, 15% 100%, 
        0% 85%, 0% 15%
    );
    /* Subtle color grade filter to match the vintage nautical palette */
    filter: saturate(1.1) contrast(1.05) sepia(0.1);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #24d2e6;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0d627a;
    border: 2px solid #24d2e6;
    border-radius: 8px;
    color: #f7eed8;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #d64550;
    box-shadow: 0 0 8px rgba(214, 69, 80, 0.4);
}

.submit-btn {
    background-color: #d64550;
    color: #f7eed8;
    border: 2px solid #f7eed8;
    border-radius: 8px;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #24d2e6;
    color: #0a4f63;
    border-color: #0a4f63;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
    background: #0a4f63;
    padding: 50px 20px;
    color: #f7eed8;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    border-top: 3px solid #d64550;
}

footer a {
    color: #24d2e6;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

footer a:hover { 
    color: #f7eed8;
    border-bottom: 2px solid #d64550; 
}

/* --- ANIMATIONS --- */
@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- RESPONSIVE TABLET & MOBILE LAYOUT --- */
@media (max-width: 1024px) { 
    header { 
        padding: 15px 20px; 
    }
    
    .nav-sticker-logo {
        height: 65px; 
    }

    .mobile-menu-toggle {
        display: flex; 
    }

    .mobile-menu-toggle .bar {
        background-color: #f7eed8; 
    }

    /* Full-screen overlay slide drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background: rgba(10, 79, 99, 0.85); 
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px); 
        border-left: 3px solid #24d2e6;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        z-index: 10;
        box-shadow: -10px 0px 30px rgba(0,0,0,0.4);
    }

    /* Show state when open */
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.2rem;
        letter-spacing: 3px;
        display: block;
        width: 100%;
        text-align: center;
        color: #f7eed8; 
    }

    /* Animated Hamburger Morph-effects to an 'X' close indicator */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: #d64550;
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: #d64550;
    }

    .hero {
        height: 340px; 
        margin-top: 95px; 
    }
    .hero-logo {
        max-width: 260px; 
    }
    .section-title { 
        font-size: 2.5rem; 
        text-shadow: 2px 2px 0px #d64550, 4px 4px 0px #0a4f63;
    }
    .placeholder-box {
        padding: 35px 20px;
        box-shadow: 5px 5px 0px #d64550;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 769px) {
    .schedule-container {
        flex-direction: row; /* Side-by-side split layout on desktop views */
        align-items: stretch;
    }
    .map-wrapper {
        flex: 1.4; 
    }
    .schedule-info-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .form-group-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .menu-card h3 {
        font-size: 1.4rem;
    }
    .truck-frame-wrapper {
        max-width: 100%;
    }
    .truck-photo {
        height: 210px;
    }
    /* Mobile map frame optimization */
    .map-wrapper {
        min-height: 260px;
        aspect-ratio: 4 / 3;
    }
}

/* --- SUBTLE WAVE HEADER ANIMATION --- */
.section-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-title.wave-active span {
    opacity: 1;
    transform: translateY(0);
    animation: waveTextSwell 1.8s ease-in-out;
    animation-delay: calc(var(--char-index) * 0.04s);
}

@keyframes waveTextSwell {
    0% {
        transform: translateY(15px);
    }
    30% {
        transform: translateY(-8px);
        color: #24d2e6;
    }
    60% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(0);
    }
}