@import url('fonts.css');

:root {
  --primary-fixed-dim: #ff595f;
  --on-tertiary-container: #576057;
  --surface-container-highest: #dfdcdc;
  --primary-dim: #a30021;
  --on-tertiary: #ecf5e9;
  --primary-container: #ff7576;
  --surface-container-lowest: #ffffff;
  --on-secondary-fixed-variant: #674d00;
  --on-tertiary-fixed-variant: #616a61;
  --surface-container-high: #e4e2e1;
  --on-error-container: #520c00;
  --error-container: #f95630;
  --on-error: #ffefec;
  --secondary-fixed-dim: #f5bb00;
  --primary: #b71029;
  --surface-bright: #f9f6f5;
  --inverse-primary: #ff525a;
  --error-dim: #b92902;
  --surface-tint: #b71029;
  --tertiary-container: #f0f9ed;
  --on-primary: #ffefee;
  --tertiary-dim: #495249;
  --secondary-container: #f0b400; /* Darker yellow for 4.5:1 contrast on Primary Red */
  --on-background: #2f2f2e;
  --surface-container-low: #f9f6f5;
  --on-primary-container: #4e000a;
  --background: #f9f6f5;
  --on-primary-fixed: #000000;
  --inverse-surface: #0e0e0e;
  --tertiary-fixed: #f0f9ed;
  --primary-fixed: #ff7576;
  --on-surface-variant: #4a4a4a; /* Darker grey for accessibility */
  --outline-variant: #afadac;
  --surface-variant: #f9f6f5;
  --secondary-dim: #654c00;
  --on-surface: #2f2f2e;
  --secondary: #614a00; /* Darker for better contrast on background */
  --on-tertiary-fixed: #454d45;
  --on-primary-fixed-variant: #60000f;
  --tertiary-fixed-dim: #e2ebdf;
  --surface-dim: #f9f6f5;
  --surface: #f9f6f5;
  --on-secondary-container: #5b4400;
  --outline: #787676;
  --on-secondary-fixed: #443100;
  --inverse-on-surface: #9e9c9c;
  --error: #b02500;
  --secondary-fixed: #ffca44;
  --tertiary: #555e55;
  --on-secondary: #fff1da;
  --surface-container: #f9f6f5;
  
  /* Bootstrap overrides */
  --bs-body-font-family: 'Be Vietnam Pro', sans-serif;
  --bs-heading-font-family: 'Plus Jakarta Sans', sans-serif;
  --bs-primary: #b71029;
}

body { 
    font-family: 'Be Vietnam Pro', sans-serif !important; 
    background-color: var(--background) !important; 
    color: var(--on-background) !important; 
}

h1, h2, h3, h4, h5, h6, .font-headline { 
    font-family: 'Plus Jakarta Sans', sans-serif !important; 
}
.font-body, .font-label {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* Base custom classes mapped from tailwind colors - ADDED !important to avoid Bootstrap conflicts */
.bg-background { background-color: var(--background) !important; }
.text-on-background { color: var(--on-background) !important; }
.bg-surface-container-low { background-color: var(--surface-container-low) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-surface-container-highest { background-color: var(--surface-container-highest) !important; }
.bg-surface-variant { background-color: var(--surface-variant) !important; }
.bg-secondary-container { background-color: var(--secondary-container) !important; }
.text-on-secondary-container { color: var(--on-secondary-container) !important; }
.text-on-surface-variant { color: var(--on-surface-variant) !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-on-primary { color: var(--on-primary) !important; }
.text-secondary-container { color: var(--secondary-container) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }

/* Typography modifiers */
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-tighter { letter-spacing: -0.05em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.leading-none { line-height: 1 !important; }
.leading-relaxed { line-height: 1.625 !important; }

/* Custom Utilities */
.gradient-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-fixed) 100%) !important; }
.glass-panel { background: rgba(249, 246, 245, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.ambient-shadow { box-shadow: 0 8px 32px rgba(47, 47, 46, 0.06) !important; }
.ghost-border { border: 1px solid rgba(175, 173, 172, 0.15) !important; }

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Nav */
.navbar-glass {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    z-index: 1030;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 2.5rem; /* Significantly slimmer */
}

/* Scrolled state for the bar */
.navbar-scrolled {
    top: 1rem !important;
    padding: 0.4rem 2.5rem !important; /* Even slimmer on scroll */
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Mobile specific Navbar - Always Glass & Fixed Top */
@media (max-width: 768px) {
    .navbar-glass {
        width: 100% !important;
        top: 0 !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        padding: 0.6rem 1.25rem !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.05) !important;
    }
}

.nav-logo-container {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.navbar-logo {
    height: 2.8rem; /* Standard slim height */
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 3.5rem !important; /* Aggressively increased for mobile visibility */
    }
}

.navbar-scrolled .navbar-logo {
    height: 2.2rem; /* Restored to original web size */
}

@media (max-width: 768px) {
    .navbar-scrolled .navbar-logo {
        height: 2.5rem; /* Maintain mobile enlargement */
    }
}

/* Hero Section Big Logo */
.hero-logo {
    height: 10rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-logo {
        height: 9rem; /* Reduced from 12rem for better balance */
    }
}

.nav-links-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link-custom {
    color: white !important;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .nav-link-custom {
        color: #2f2f2e !important;
        text-shadow: none !important;
    }
}

.navbar-scrolled .nav-link-custom {
    color: #57534e !important;
    text-shadow: none !important;
}

/* Mobile Menu Animation */
.mobile-menu-wrapper {
    position: fixed;
    top: 3.5rem; /* Adjusted for slimmer bar */
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1020;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mobile-menu-wrapper.is-open {
    max-height: 100vh;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    padding: 2.5rem 1.5rem;
    transform: translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-wrapper.is-open .mobile-menu-inner {
    transform: translateY(0);
}

.nav-link-custom:hover {
    color: #ff7576 !important; /* Lighter red for hover on transparent */
    transform: scale(1.05);
}

.navbar-scrolled .nav-link-custom:hover {
    color: #dc2626 !important; /* Darker red for hover on scrolled */
}

.nav-link-active {
    color: #fbbf24 !important; /* Amber initially for better visibility */
    border-bottom: 2px solid #fbbf24 !important;
    padding-bottom: 0.25rem;
    text-decoration: none;
    font-weight: 600;
}

.navbar-scrolled .nav-link-active {
    color: #b91c1c !important; /* Deep red when scrolled */
    border-bottom: 2px solid #fbbf24 !important;
}

#mobile-menu-btn {
    color: white !important; /* White icon initially on hero */
    transition: color 0.5s;
}

.navbar-scrolled #mobile-menu-btn {
    color: var(--primary) !important; /* Primary red when scrolled */
}

@media (max-width: 768px) {
    #mobile-menu-btn {
        color: var(--primary) !important; /* Always primary on mobile since bg is white */
    }
}

/* Buttons */
.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-fixed) 100%) !important;
    color: var(--on-primary) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.025em;
    border: none;
    text-decoration: none;
}
.btn-hover-scale {
    transition: transform 0.3s;
}
.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* Home Section Swiper */
.swiper-hero {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.swiper-hero .swiper-slide {
    width: 100%;
    height: 100%;
}
.swiper-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 10;
}
.hero-badge {
    font-size: 0.875rem; /* Restored to original web size */
}
@media (max-width: 768px) {
    .hero-badge {
        font-size: 1.125rem; /* Larger on mobile for legibility */
        padding: 0.75rem 1.5rem !important;
    }
}
.hero-title {
    font-size: clamp(2rem, 10vw, 3rem); /* Further optimized to ensure no wrapping */
    line-height: 1.1; 
    text-shadow: 0 10px 40px rgba(0,0,0,0.4);
    width: 100%;
    white-space: nowrap; 
}

@media (min-width: 768px) { 
    .hero-title { 
        font-size: clamp(1.75rem, 4vw, 2.5rem); /* Restored to original size */
        line-height: 1.1;
    } 
}
@media (min-width: 1024px) { 
    .hero-title { 
        font-size: clamp(2.25rem, 5vw, 3.25rem); /* Restored to original size */
        line-height: 1.1;
    } 
}

/* Gallery CSS Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    height: auto;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        height: 800px;
    }
    .col-span-2 { grid-column: span 2 / span 2; }
    .col-span-1 { grid-column: span 1 / span 1; }
    .row-span-2 { grid-row: span 2 / span 2; }
    .row-span-1 { grid-row: span 1 / span 1; }
}

.gallery-item {
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Map Pin */
.map-pin-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pulse-ring {
    width: 2rem;       /* 8 */
    height: 2rem;      /* 8 */
    background-color: var(--secondary-container) !important;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Misc Layout Overrides */
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-10 { margin-bottom: 2.5rem; }
.gap-16 { gap: 4rem; }
.aspect-4-5 { aspect-ratio: 4/5; }
.aspect-1-1 { aspect-ratio: 1/1 !important; }
.blur-3xl { filter: blur(64px) !important; }
.w-64 { width: 16rem !important; }
.h-64 { height: 16rem !important; }
.max-w-7xl { max-width: 80rem !important; }
.max-w-5xl { max-width: 64rem !important; }
.fw-black { font-weight: 900 !important; }

/* Divide Y/X implementation mimicking Tailwind */
.divide-custom > :not(:first-child) {
    border-top: 1px solid rgba(175, 173, 172, 0.2) !important;
}
@media (min-width: 768px) {
    .divide-custom > :not(:first-child) {
        border-top: 0 !important;
        border-left: 1px solid rgba(175, 173, 172, 0.2) !important;
    }
}

/* Swiper Custom Pagination */
.custom-swiper-pagination {
    bottom: 2rem !important;
    z-index: 20 !important; /* Ensure it's above the Hero overlay */
}

.custom-swiper-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); /* Make it pop against the photo */
}

.custom-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-container) !important; /* Match brand yellow */
    width: 48px;
}

/* Testimonial Slider (Red Theme) */
.testimonial-section {
    background: var(--primary);
    padding: 3.5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonial-quote {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
    max-width: 54rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 2rem;
}

.testimonial-source {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.custom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: all 0.3s;
}

.custom-nav-btn:hover {
    color: var(--secondary-container);
    transform: translateY(-50%) scale(1.2);
}

.custom-prev { left: 5%; }
.custom-next { right: 5%; }

/* Parallax Divider */
.parallax-divider {
    height: auto;
    padding: 6rem 0;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
#gallery {
    z-index: 2;
    background: white;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
}
#contact {
    z-index: 2;
    background: white;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
}

.floating-order-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: white !important;
    z-index: 1050;
    border-radius: 8px 0 0 8px;
    box-shadow: -10px 0 30px rgba(183, 16, 41, 0.4);
    transition: background-color 0.3s ease;
    animation: btn-pulse 2s infinite;
    padding: 10px;
}

.floating-order-btn span {
    font-size: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-order-btn:hover {
    background-color: #d1122d;
    cursor: pointer;
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(183, 16, 41, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(183, 16, 41, 0); }
    100% { box-shadow: 0 0 0 0 rgba(183, 16, 41, 0); }
}

/* Fast Food Atmosphere: Marquee */
.marquee-container {
    background-color: var(--primary);
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    border-top: 2px solid rgba(255,255,255,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .floating-order-btn {
        width: 70px;
        height: 70px;
        top: 50%;
        bottom: auto;
        left: auto;
        right: 0;
        transform: translateY(-50%);
        border-radius: 8px 0 0 8px;
        box-shadow: -10px 0 30px rgba(183, 16, 41, 0.4);
        padding: 10px;
    }
    
    .floating-order-btn span {
        font-size: 0.75rem;
        display: block;
        line-height: 1.2;
    }
    
    .floating-order-btn span br {
        display: block; /* Back to stacked "ORDER ONLINE" */
    }
}
