/* ==========================================================================
   RESTAURANTS KIT - PREMIUM LIGHT DESIGN SYSTEM, MULTILINGUAL & BLOG UPGRADE
   Exact Color Palette: #ffffff, #f7f8fb, #0b1324, #101c33, #5b6b8a, #e6eaf2,
                        #059669, #047857, #d1fae5, #ecfdf5, #10b981, #fef3c7, #92400e
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-alt: #f7f8fb;
  --bg-navy: #0b1324;
  --bg-offer-tint: linear-gradient(135deg, #fef9e7cc, #ffffff);

  --ink-heading: #0b1324;
  --ink-body: #101c33;
  --ink-secondary: #5b6b8a;
  --border-clean: #e6eaf2;

  --emerald: #f5b800;
  --emerald-hover: #e0a600;
  --emerald-light: #fef3c7;
  --emerald-tint: #fffbeb;
  --emerald-ring: #f5b800;
  --gold-ink: #b45309;

  --warm-bg: #fef3c7;
  --warm-text: #92400e;

  --card-radius: 24px;
  --shadow-soft: 0 1px 2px rgba(16, 28, 51, 0.04), 0 8px 24px -8px rgba(16, 28, 51, 0.10);
  --shadow-lift: 0 2px 4px rgba(16, 28, 51, 0.05), 0 20px 40px -12px rgba(16, 28, 51, 0.18);

  /* Override legacy tokens so existing components harmonize cleanly */
  --bg-main: #ffffff;
  --bg-surface: #f7f8fb;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-light: #f7f8fb;
  --bg-light-card: #ffffff;
  --text-primary: #101c33;
  --text-secondary: #5b6b8a;
  --text-muted: #5b6b8a;
  --text-dark: #0b1324;
  --text-dark-secondary: #5b6b8a;
  --border-subtle: #e6eaf2;
  --gold-primary: #f5b800;
  --gold-secondary: #e0a600;
  --gold-light: #ffd54f;
  --gold-dark: #b45309;
  --gold-gradient: linear-gradient(135deg, #ffd54f 0%, #f5b800 100%);
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   STRICT ZERO HORIZONTAL OVERFLOW & BASE TYPOGRAPHY
   ========================================================================== */
html, body {
  overflow-x: clip !important;
  max-width: 100% !important;
  overflow-wrap: break-word;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  background-color: var(--bg-page) !important;
  color: var(--ink-body) !important;
}

html[dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="rtl"] {
  direction: rtl !important;
  text-align: right !important;
}

/* Prevent any grid or flex child from causing sideways overflow */
.container,
section,
header,
footer,
.hero-grid,
.problem-grid,
.comparison-grid,
.package-cards-grid,
.multi-angle-grid,
.video-grid,
.menus-slider-grid,
.recipes-showcase-grid,
.why-cards-grid,
.offer-features-grid,
.footer-grid,
.blog-grid,
.delivery-options-grid {
  min-width: 0;
}

.hero-grid > *,
.problem-grid > *,
.comparison-grid > *,
.package-cards-grid > *,
.multi-angle-grid > *,
.video-grid > *,
.menus-slider-grid > *,
.recipes-showcase-grid > *,
.why-cards-grid > *,
.offer-features-grid > *,
.footer-grid > *,
.blog-grid > *,
.delivery-options-grid > * {
  min-width: 0;
}

/* ==========================================================================
   TOP UTILITY BAR (Announcement + Language + Market/Currency)
   ========================================================================== */
.top-utility-bar {
  background-color: var(--bg-navy);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  position: relative;
  z-index: 1050;
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  flex-wrap: wrap;
}

.utility-lang-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.lang-btn.active {
  background: var(--emerald);
  color: #0b1324;
  border-color: var(--emerald-ring);
  box-shadow: 0 0 0 2px rgba(245, 184, 0, 0.3);
}

.utility-currency-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-select {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  max-width: 100%;
}

.currency-select option {
  background-color: var(--bg-navy);
  color: #ffffff;
}

/* ==========================================================================
   STICKY NAVBAR (Clean White, High Trust)
   ========================================================================== */
.navbar {
  position: sticky !important;
  top: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-clean) !important;
  box-shadow: 0 2px 12px rgba(16, 28, 51, 0.04);
  z-index: 1000;
}

.brand-logo .logo-icon-wrap {
  background: var(--emerald) !important;
  color: #0b1324 !important;
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.35) !important;
}

.brand-logo .logo-title {
  color: var(--ink-heading) !important;
  font-weight: 900 !important;
}

.brand-logo .logo-sub {
  color: var(--ink-secondary) !important;
}

.nav-links .nav-link {
  color: var(--ink-body) !important;
  font-weight: 700 !important;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: var(--emerald) !important;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-clean) !important;
  background: var(--bg-alt) !important;
  color: var(--ink-heading) !important;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   BUTTONS & BADGES (Emerald #059669 & Warm #fef3c7/#92400e)
   ========================================================================== */
.btn-gold {
  background: var(--emerald) !important;
  color: #0b1324 !important;
  border: 1px solid var(--emerald) !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 20px -6px rgba(245, 184, 0, 0.5) !important;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-gold:hover {
  background: var(--emerald-hover) !important;
  border-color: var(--emerald-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(224, 166, 0, 0.55) !important;
}

.btn-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  border: 1px solid #25d366 !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.4) !important;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-whatsapp:hover {
  background: #1ebe5d !important;
  border-color: #1ebe5d !important;
  transform: translateY(-2px);
}

.btn-gold-outline {
  background: #ffffff !important;
  color: #0b1324 !important;
  border: 2px solid var(--emerald) !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
}

.btn-gold-outline:hover {
  background: var(--emerald-tint) !important;
  color: #0b1324 !important;
}

.hero-eyebrow,
.section-badge {
  background: var(--warm-bg) !important;
  color: var(--warm-text) !important;
  border: 1px solid rgba(146, 64, 14, 0.15) !important;
  font-weight: 800 !important;
}

.gold-divider span {
  background: var(--emerald) !important;
}

/* ==========================================================================
   ALTERNATING SECTIONS (#ffffff and #f7f8fb) & TYPOGRAPHY
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%) !important;
  padding-top: 48px !important;
  padding-bottom: 64px !important;
}

.hero-bg-overlay {
  display: none !important;
}

.hero-title,
.section-title,
.problem-quote,
.solution-bridge-title,
.comparison-title,
.pack-card-title,
.why-card-title,
.modal-title {
  color: var(--ink-heading) !important;
  font-weight: 900 !important;
}

.hero-title .gold-highlight {
  color: var(--emerald) !important;
  background: none !important;
  -webkit-text-fill-color: var(--emerald) !important;
}

.hero-description,
.section-subtitle,
.problem-quote-sub,
.solution-bridge-sub,
.pack-card-desc,
.why-card-text,
.modal-subtitle {
  color: var(--ink-secondary) !important;
}

.trust-item {
  color: var(--ink-body) !important;
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-light);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-item svg {
  color: var(--emerald) !important;
}

/* Alternating section backgrounds */
.problem-section,
.package-contents-section,
.video-showcase-section,
.social-section,
.recipes-section,
.faq-section {
  background-color: var(--bg-alt) !important;
}

#recipes .angle-feature-item h4 {
  color: var(--ink-heading) !important;
}

#recipes .angle-feature-item p {
  color: var(--ink-secondary) !important;
}

.comparison-section,
.multi-angle-section,
.menus-section,
.why-section,
.blog-section {
  background-color: var(--bg-page) !important;
}

.offer-section {
  background: var(--bg-offer-tint) !important;
}

/* ==========================================================================
   CARDS & ELEVATION (24px radius, 1px #e6eaf2, soft/lift shadows)
   ========================================================================== */
.problem-card,
.comparison-card,
.pack-card,
.video-card,
.menu-item-card,
.why-card,
.faq-item,
.angle-feature-item,
.solution-bridge,
.blog-card {
  background: #ffffff !important;
  border: 1px solid var(--border-clean) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--ink-body) !important;
}

.problem-card h3,
.video-card-body h3,
.menu-card-info h4,
.angle-feature-item h4,
.faq-question {
  color: var(--ink-heading) !important;
}

.problem-card p,
.video-card-body p,
.faq-answer p,
.comparison-item span {
  color: var(--ink-secondary) !important;
}

.pack-num-badge {
  background: var(--emerald) !important;
  color: #0b1324 !important;
  font-weight: 900 !important;
}

.comparison-card.after-card,
.pricing-box {
  background: var(--bg-offer-tint) !important;
  border: 2px solid var(--emerald-ring) !important;
  border-radius: 26px !important;
  box-shadow: var(--shadow-lift) !important;
}

.pricing-ribbon {
  background: var(--emerald) !important;
  color: #0b1324 !important;
  font-weight: 900 !important;
}

.current-price {
  color: var(--ink-heading) !important;
}

.price-currency {
  color: var(--emerald) !important;
}

.old-price,
.price-subtext {
  color: var(--ink-secondary) !important;
}

.timer-box {
  background: #ffffff !important;
  border: 1px solid var(--border-clean) !important;
  color: var(--ink-heading) !important;
}

.timer-num {
  color: var(--emerald) !important;
}

.feature-check-item {
  color: var(--ink-body) !important;
}

.feature-check-item svg {
  color: var(--emerald) !important;
}

.filter-tab-btn {
  background: #ffffff !important;
  color: var(--ink-body) !important;
  border: 1px solid var(--border-clean) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.filter-tab-btn.active,
.filter-tab-btn:hover {
  background: var(--emerald) !important;
  color: #0b1324 !important;
  border-color: var(--emerald) !important;
}

.canva-edit-pill {
  background: var(--emerald-tint) !important;
  color: #92400e !important;
  border: 1px solid var(--emerald-light) !important;
}

/* Final Urgency Banner & Footer (#0b1324 Midnight Navy) */
.final-banner-section,
.bottom-trust-strip,
.site-footer {
  background: var(--bg-navy) !important;
  color: #ffffff !important;
}

.final-banner-section .urgency-headline,
.final-banner-section .urgency-sub,
.site-footer h4,
.site-footer .logo-title {
  color: #ffffff !important;
}

.site-footer .footer-links a,
.site-footer .footer-links span,
.site-footer p,
.site-footer .footer-bottom {
  color: #cbd5e1 !important;
}

.site-footer .footer-links a:hover {
  color: var(--emerald-ring) !important;
}

/* ==========================================================================
   SEO BLOG SECTION & ARTICLE READING MODAL
   ========================================================================== */
.blog-section {
  padding-block: 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  margin-top: 36px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift) !important;
}

.blog-cover-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-cover-wrap img {
  transform: scale(1.04);
}

.blog-cat-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--warm-bg);
  color: var(--warm-text);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

.blog-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink-heading);
  line-height: 1.45;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  flex: 1;
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 0 0;
  cursor: pointer;
}

.blog-read-btn:hover {
  color: var(--emerald-hover);
}

/* Blog Reader Modal */
.blog-modal-card {
  max-width: 780px !important;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff !important;
  color: var(--ink-body) !important;
  border: 1px solid var(--border-clean) !important;
  border-radius: 26px !important;
  padding: 28px !important;
}

.blog-article-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 20px;
}

.blog-article-content h4 {
  color: var(--ink-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 18px 0 8px;
}

.blog-article-content p {
  color: var(--ink-body);
  line-height: 1.8;
  margin-bottom: 12px;
}

.blog-article-cta {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-offer-tint);
  border: 1px solid var(--emerald-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* ==========================================================================
   ORDER MODAL (Clean Light Theme)
   ========================================================================== */
.modal-card {
  background: #ffffff !important;
  border: 1px solid var(--border-clean) !important;
  border-radius: 26px !important;
  color: var(--ink-body) !important;
  box-shadow: var(--shadow-lift) !important;
}

.modal-close-btn {
  color: var(--ink-heading) !important;
  background: var(--bg-alt) !important;
  border: 1px solid var(--border-clean) !important;
}

.form-label {
  color: var(--ink-heading) !important;
  font-weight: 700 !important;
}

.form-input {
  background: var(--bg-alt) !important;
  color: var(--ink-heading) !important;
  border: 1px solid var(--border-clean) !important;
  border-radius: 12px !important;
}

.form-input:focus {
  border-color: var(--emerald) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}

.delivery-option-label {
  background: var(--bg-alt) !important;
  border: 1px solid var(--border-clean) !important;
  border-radius: 16px !important;
  color: var(--ink-heading) !important;
}

.delivery-radio-row,
.delivery-radio-row span {
  color: var(--ink-heading) !important;
  font-weight: 800 !important;
}

.delivery-option-label:has(input:checked) {
  background: var(--emerald-tint) !important;
  border-color: var(--emerald) !important;
}

.delivery-subtext {
  color: var(--ink-secondary) !important;
}

.badge-cod-pill {
  background: var(--emerald-light) !important;
  color: #9a3412 !important;
  border-color: var(--emerald-ring) !important;
}

#cust-payment,
#cust-payment option {
  background: var(--bg-alt) !important;
  color: var(--ink-heading) !important;
}

.modal-success-box h3,
.success-summary-box,
.success-summary-box strong {
  color: var(--ink-heading) !important;
}

.modal-success-box p {
  color: var(--ink-secondary) !important;
}

.success-summary-box {
  background: var(--bg-alt) !important;
  border: 1px solid var(--border-clean) !important;
}

/* ==========================================================================
   RESPONSIVE GRIDS & MOBILE HAMBURGER / STICKY BAR
   ========================================================================== */
.problem-grid,
.video-grid,
.menus-slider-grid,
.why-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

.package-cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 960px) {
  .package-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .package-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .package-cards-grid .pack-card {
    padding: 16px 12px !important;
  }

  .package-cards-grid .pack-card-title {
    font-size: 0.95rem !important;
  }

  .package-cards-grid .pack-card-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }
}

.mobile-sticky-order-bar {
  background: #ffffff !important;
  border-top: 1px solid var(--border-clean) !important;
  box-shadow: 0 -8px 24px rgba(16, 28, 51, 0.12) !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.mobile-sticky-order-bar.is-hidden-by-observer {
  transform: translateY(120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mobile-price-tag {
  color: var(--ink-heading) !important;
}

@media (max-width: 960px) {
  .mobile-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-clean);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    padding: 16px 24px 22px;
    gap: 12px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex !important;
  }

  .offer-features-grid {
    grid-template-columns: 1fr !important;
  }

  .offer-features-grid > div[style*="grid-column"] {
    grid-column: auto !important;
  }

  .delivery-options-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px !important;
  }

  .utility-bar-inner {
    justify-content: center;
  }

  .nav-cta-btn span {
    font-size: 0.82rem;
  }
}
