/* --- GLOBAL VARIABLES & RESET --- */
:root {
  --brand-blue: #0b4aa2;
  --brand-blue-2: #002366;
  --brand-red: #c4161c;
  --bg-light: #f8fafc;
  --text-dark: #334155;
  --white: #ffffff;
  --font-main: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-main);
  background: var(--bg-light); color: var(--text-dark);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-top: 72px; /* Header Space */
}
body[data-page="home"] { padding-top: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s; }

/* --- HEADER --- */
.siteHeader {
  background: var(--white); position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; height: 72px; border-bottom: 1px solid #eee;
}
.headerInner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 100%; width: 100%; max-width: 100%;
}
@media(min-width: 900px) { .headerInner { padding: 0 40px; } }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brandTag { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #000; text-transform: uppercase; }

/* --- DESKTOP NAV --- */
.nav { display: flex; align-items: center; gap: 10px; }
.nav > a:not(.btn) { 
  font-weight: 700; font-size: 15px; color: var(--brand-blue-2);
  padding: 8px 18px; border-radius: 50px; transition: all 0.2s;
}
.nav > a:not(.btn):hover { background: #f1f5f9; }
.nav > a.active { background-color: #e0f2fe; color: var(--brand-blue); }

/* --- HOME PAGE OVERRIDES --- */
body[data-page="home"] .siteHeader { background: transparent; border: none; }
body[data-page="home"] .brandTag { color: white; }
@media (min-width: 801px) {
  body[data-page="home"] .nav > a:not(.btn) { color: white; }
  body[data-page="home"] .nav > a:not(.btn):hover { background: rgba(255,255,255,0.2); }
  body[data-page="home"] .nav > a.active { background: white; color: var(--brand-red); } 
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 4px; font-weight: 700; cursor: pointer;
  font-size: 14px; border: 1px solid transparent; transition: all 0.2s;
}
.btn.primary { background: var(--brand-red); color: white; border-color: var(--brand-red); }

/* --- MOBILE MENU --- */
.mobileToggle { 
  display: none; background: none; border: none; 
  font-size: 28px; cursor: pointer; color: var(--brand-blue-2);
  position: relative; z-index: 9999; line-height: 1;
}
body[data-page="home"] .mobileToggle { color: white; }

@media (max-width: 800px) {
  .mobileToggle { display: block; }
  body[data-page="home"] .mobileToggle.open { color: var(--brand-blue-2); }

  .nav {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: auto;
    background: white;
    flex-direction: column;
    align-items: flex-start !important; 
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 80px 20px 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9998;
  }
  .nav.open { display: flex; }

  .nav > a:not(.btn) {
    display: block; width: 100%;
    text-align: left !important;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
    border-radius: 0;
    color: var(--brand-blue-2) !important;
    font-size: 1.1rem;
    background: transparent !important;
  }

  .nav > a.active {
    color: var(--brand-red) !important;
    font-weight: 800;
  }

  .nav .btn { margin-top: 20px; width: 100%; }
}

/* --- LOCATIONS PAGE LAYOUT --- */
.locationsLayout {
  display: grid; grid-template-columns: 350px 1fr;
  height: calc(100vh - 72px); position: relative; z-index: 10; background: white;
}
.locSidebar { overflow-y: auto; padding: 20px; border-right: 1px solid #e2e8f0; }
.mapContainer { position: relative; width: 100%; height: 100%; }
#map { width: 100%; height: 100%; }

@media (max-width: 800px) {
  .locationsLayout { display: block; height: auto; }
  .locSidebar { 
    width: 100%; height: auto; 
    border-right: none; 
    overflow-y: visible; 
  }
  .mapContainer { width: 100%; height: 400px; }
}

/* --- OTHER PAGES --- */
.bg-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; }
.bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 0; }
.hero { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }

.container { width: 100%; padding: 0 20px; margin: 0 auto; max-width: 1200px; }
.pageTitle { background: var(--bg-light); padding: 40px 0 20px; text-align: center; }
.pageTitle h1 { margin: 0 0 10px; color: var(--brand-blue-2); font-size: 2.5rem; }

.menuToolbar { padding: 15px 0; position: sticky; top: 72px; background: var(--bg-light); z-index: 90; border-bottom: 1px solid #eee; }
.menuToolbar .container { display: flex; align-items: center; gap: 15px; }
.searchContainer { flex: 0 0 220px; }
.searchContainer input { width: 100%; padding: 10px; border-radius: 20px; border: 1px solid #ccc; }
#catWrap { display: flex; gap: 10px; overflow-x: auto; flex: 1; scrollbar-width: none; }
#catWrap::-webkit-scrollbar { display: none; }

/* --- CATEGORY BUTTONS --- */
.catBtn { 
  background: white; 
  border: 1px solid #e2e8f0; 
  padding: 8px 16px; 
  border-radius: 20px; 
  font-weight: 600; 
  cursor: pointer; 
  white-space: nowrap; 
  color: var(--text-dark) !important; 
}
.catBtn.active { 
  background: #e0f2fe; 
  border-color: var(--brand-blue);
  color: var(--brand-blue) !important; 
}

/* --- MENU GRID --- */
.menuGrid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 20px; 
  padding-top: 20px; 
}

@media (max-width: 600px) {
  .menuToolbar .container { flex-direction: column; align-items: stretch; }
  .searchContainer { flex: auto; width: 100%; }
  .menuGrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #catWrap {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
  }
  .catBtn { flex-shrink: 0; }
  .menuOrderNowBtn { display: flex !important; }
}
.menuOrderNowBtn {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: #c4161c;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  justify-content: center;
  align-items: center;
}

.card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.locCard { padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; }
.locCard:hover { background: #f8fafc; }
.menuCard .img { height: 200px; overflow: hidden; background: #eee; }
.menuCard .img img { width: 100%; height: 100%; object-fit: cover; }
.menuCard .body { padding: 15px; }

footer { position: relative; z-index: 20; background: #061826; color: #e0f2fe; padding: 60px 0 0; }
.footerGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 50px; }
footer h3, footer h4 { color: white; margin: 0 0 16px; }
footer a { color: #e0f2fe; }
footer p { margin: 0 0 10px; }
footer p:last-child { margin: 0; }
.footerBottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footerBottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footerCta { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 24px; }
.footerCta p { color: #94a3b8; font-size: 0.9rem; margin: 0 0 14px; }
.footerCtaBtn { display: inline-flex; align-items: center; gap: 6px; background: #c4161c; color: white !important; padding: 9px 18px; border-radius: 4px; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.footerCtaBtn:hover { background: #a01217; }

/* =========================================
   DELIVERY BANNER SECTION
   ========================================= */
.deliveryBanner {
  position: relative;
  width: 100%;
  height: 800px; 
  
  /* The White Divider Line */
  border-top: 50px solid white;
  
  /* Image Settings */
  background-image: url('../assets/menu_delivey.jpg'); 
  background-size: cover;      
  background-repeat: no-repeat;
  background-position: center left; 
  
  display: flex;
  justify-content: flex-end; /* Horizontal: Right */
  align-items: flex-start;   /* Vertical: Top */
  
  /* Spacing */
  padding-top: 200px; 
  padding-right: 10%;
  padding-left: 10%;
  padding-bottom: 0;
}

.deliveryContent {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center; 
  text-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.deliveryContent h2 {
  font-size: 4rem !important;
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 20px 0;
  color: #ffffff;
}

.deliveryContent p {
  font-size: 2rem !important;
  font-weight: 800;
  margin: 0 0 30px 0;
  color: #ebebef;
  line-height: 1.4;
}

.deliveryContent .btn.primary {
  background-color: #c4161c !important;
  border-color: #c4161c !important;
  color: white !important;
  padding: 14px 40px;
  font-size: 1.2rem;
  border-radius: 4px;
}

.deliveryContent .btn.primary:hover {
  background-color: #a01217 !important;
}

/* Mobile Banner */
@media (max-width: 900px) {
  .deliveryBanner { 
    height: 500px; 
    align-items: flex-end; 
    padding: 40px 20px;
    justify-content: center;
    background-position: 30% center; 
  }
  .deliveryContent {
    text-align: center;
    background: rgba(6, 24, 38, 0.8);
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    text-shadow: none;
  }
  .deliveryContent h2 { font-size: 2.8rem !important; }
  .deliveryContent p { font-size: 1.1rem !important; }
}

/* =========================================
   FEATURES SECTION (Consolidated & Clean)
   ========================================= */
.homeScrollSection {
  background: #f8fafc;
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Widen the container specifically for this section */
.homeScrollSection .container {
  max-width: 1600px !important; 
  width: 95%; 
  padding: 0 40px; 
}

/* Header Styling */
.sectionHeader {
  max-width: 1600px;
  margin: 0 auto 60px; 
}

.sectionHeader h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-blue-2);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.sectionHeader h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-red); 
  margin: 15px auto 0;
  border-radius: 5px;
}

.sectionHeader p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
}

/* Button Styling (Force Red) */
.homeScrollSection .btn.primary {
  background-color: #c4161c !important;
  border: 1px solid #c4161c !important;
  color: white !important;
  opacity: 1 !important;
  box-shadow: 0 4px 10px rgba(196, 22, 28, 0.3) !important;
  display: inline-block;
  /* Margins are handled in HTML inline styles for precise control */
}

.homeScrollSection .btn.primary:hover {
  background-color: #a01217 !important;
  transform: translateY(-2px);
}

/* Grid Layout (Wide & 3 Columns) */
.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
  gap: 40px;
  padding: 0 10px;
  width: 100%;
  align-items: stretch; 
}

/* Feature Cards */
.featureCard {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid transparent; 
}

.featureCard:hover {
  transform: translateY(-10px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-top-color: var(--brand-red); 
}

/* Icon Styling */
.featureIcon {
  width: 200px;
  height: 200px;
  margin-bottom: 25px;
  display: inline-block;
  background: transparent; 
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.featureIcon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Text Styling */
.featureCard h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-blue-2);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featureCard p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .homeScrollSection { padding: 60px 0; }
  .sectionHeader h2 { font-size: 2rem; }
  .featureCard { padding: 30px 20px; }
  
  /* Stack grid on mobile */
  .featureGrid {
    grid-template-columns: 1fr; 
    gap: 40px;
  }
}