/* ================================================
   NAVBAR RESPONSIVE
   ================================================ */

/* ── Large tablet / small laptop  ≤ 1100px ──
   Reduce link padding + button size so the bar stays in one row
   without triggering the full mobile hamburger layout.         */
@media (max-width: 1100px) {
  .nav-inner {
    gap: 12px;
    padding: 0 20px;
  }

  .nav-link {
    padding: 7px 10px;
    font-size: 13.5px;
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Overlay — hidden by default on all screens */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ── Tablet + Mobile  ≤ 900px ── */
@media (max-width: 900px) {

  /* ---- Navbar bar ---- */
  .nav-inner {
    padding: 0 14px;      /* equal sides; hamburger gets 14 px from edge */
    height: 56px;
    gap: 8px;
  }

  /* Logo — noticeably smaller on mobile so actions have room */
  .nav-logo {
    height: 30px;
    flex: 1;              /* push actions to the right */
  }

  .nav-logo img {
    height: 30px;
  }

  /* Hide desktop centre links */
  .nav-links {
    /* reset flex centering so drawer layout takes over */
    flex: unset;
    justify-content: flex-start;
  }

  /* ---- Slide-in drawer ---- */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 82vw);
    height: 100dvh;
    background: var(--bg-color);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px 36px;
    gap: 2px;
    box-shadow: -6px 0 40px rgba(0, 0, 0, 0.14);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  /* ---- Close button inside drawer ---- */
  .nav-close {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.18s;
    flex-shrink: 0;
  }

  .nav-close:hover {
    background: rgba(128, 128, 128, 0.12);
  }

  /* ---- Drawer links ---- */
  .nav-link {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 400;
    border-radius: 10px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  /* "Find Us" ghost button sits at bottom of drawer */
  .nav-drawer-findbtn {
    display: flex !important;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
  }

  .nav-drawer-findbtn .nav-btn--ghost {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
  }

  /* ---- Right actions bar ---- */
  .nav-actions {
    gap: 4px;
    flex-shrink: 0;
  }

  /* Hide "Find Us" from the top bar — it goes into drawer */
  .nav-btn--ghost {
    display: none;
  }

  /* "Order Now" — compact but always visible */
  .nav-btn--primary {
    padding: 7px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  /* Theme toggle — slightly smaller */
  .nav-theme {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  /* Show hamburger with a small right nudge for natural padding */
  .nav-hamburger {
    display: flex;
    margin-right: 2px;
  }

  /* ---- Overlay ---- */
  .nav-overlay {
    display: block;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── Small mobile  ≤ 480px ── */
@media (max-width: 480px) {
  .nav-inner {
    padding: 0 12px;
    height: 52px;
  }

  .nav-logo img {
    height: 26px;
  }

  .nav-btn--primary {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-theme {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

/* ── Tiny devices  ≤ 360px ── */
@media (max-width: 360px) {
  .nav-inner {
    padding: 0 10px;
    height: 48px;
  }

  .nav-logo img {
    height: 22px;
  }

  /* Keep Order Now visible but bare-minimum size */
  .nav-btn--primary {
    display: inline-flex;
    padding: 5px 8px;
    font-size: 11px;
  }

  .nav-hamburger {
    width: 32px;
    height: 32px;
    margin-right: 0;
  }
}

/* ── Small laptop  ≤ 1300px ──
   Scale the enlarged hero back down so it doesn't overflow on
   narrower desktop/laptop widths before the full column stack.   */
@media (max-width: 1300px) {
  .home-hero { min-height: 600px; gap: 36px; padding: 28px 0 46px; }
  .home-hero-right { height: 600px; }
  .home-title { font-size: clamp(36px, 5.2vw, 76px); }
  .home-glow      { width: 350px; height: 350px; }
  .home-img-main  { width: 310px; height: 310px; }
  .home-img-left,
  .home-img-right { width: 190px; height: 190px; bottom: 52px; }
}

/* ── Tablet  ≤ 900px ── */
@media (max-width: 900px) {

  /* ---- Marquee ---- */
  .home-marquee-track span { font-size: 12px; }

  /* ---- Hero row — true column stack ---- */
  .home-hero {
    flex-direction: column;
    justify-content: flex-start;   /* ← kill desktop space-between */
    align-items: center;
    min-height: auto;
    padding: 28px 0 32px;
    text-align: center;
    gap: 0;
  }

  /* Text block — solid background acts as shield against any bleed */
  .home-hero-left {
    order: 1;
    flex: none;                    /* ← don't let it grow */
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: var(--bg-color);  /* ← solid shield so images can't show through */
    padding-bottom: 12px;
  }
  .home-desc { max-width: 100%; }
  .home-btns { justify-content: center; }

  /* Image block — fixed height, NO flex growth, fully isolated */
  .home-hero-right {
    order: 2;
    flex: none;                    /* ← override desktop flex:1 so it doesn't grow */
    width: 100%;
    height: 300px;
    margin-top: 8px;
    padding-top: 0;
    position: relative;
    z-index: 1;
    isolation: isolate;
  }

  /* Hide chips on tablet/mobile */
  .hero-chip { display: none; }

  /* Size images to fit snugly inside the container */
  .home-img-main  { width: 230px; height: 230px; bottom: 10px; }
  .home-img-left,
  .home-img-right { width: 145px; height: 145px; bottom: 24px; }
  .home-glow      { width: 270px; height: 270px; bottom: 0 !important; }

  /* ---- Features bar — 2×2 card grid ---- */
  .home-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 92%;
    padding: 24px 0 32px;
    border-top: 1px solid rgba(128,128,128,0.15);
  }

  .home-feat-divider { display: none; }

  .home-feat {
    flex: unset;
    min-width: unset;
    background: var(--bg-color);
    border: 1.5px solid rgba(128,128,128,0.13);
    border-radius: 14px;
    padding: 22px 14px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    gap: 10px;
  }

  /* ---- Services cards ---- */
  .services-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .services-card--offset { margin-top: 0; }

  /* ---- Menu section ---- */
  .menu-col p   { width: 100%; }
  .menu-col img { width: 100%; object-fit: contain; }
  .menu-row     { display: flex; gap: 30px; width: 100%; margin: auto; min-height: 220px; }
}


/* ── Mobile  ≤ 600px ── */
@media (max-width: 600px) {

  /* Marquee */
  .home-marquee { padding: 9px 0; }
  .home-marquee-track { gap: 14px; }
  .home-marquee-track span { font-size: 11.5px; }

  /* Hero text */
  .home-title   { font-size: clamp(30px, 10vw, 48px); letter-spacing: -1px; }
  .home-eyebrow { font-size: 12px; }
  .home-desc    { font-size: 13.5px; }

  /* Buttons */
  .home-btn-primary,
  .home-btn-outline { padding: 11px 22px; font-size: 13px; }

  /* Image cluster */
  .home-hero-right { height: 280px; margin-top: 6px; }
  .home-img-main   { width: 210px; height: 210px; bottom: 8px; }
  .home-img-left,
  .home-img-right  { width: 132px; height: 132px; bottom: 22px; }
  .home-glow       { width: 250px; height: 250px; }

  /* Features — keep 2×2 card grid, slightly tighter */
  .home-features { gap: 10px; width: 94%; }
  .home-feat { padding: 18px 12px 15px; border-radius: 12px; }

  /* Services wave thinner */
  .services-wave-top  svg,
  .services-wave-bottom svg { height: 36px; }
}


/* ── Extra small  ≤ 400px ── */
@media (max-width: 400px) {

  .home-title      { font-size: clamp(28px, 9vw, 42px); }
  .home-hero-right { height: 250px; margin-top: 4px; }
  .home-img-main   { width: 184px; height: 184px; bottom: 6px; }
  .home-img-left,
  .home-img-right  { width: 116px; height: 116px; bottom: 16px; }
  .home-glow       { width: 220px; height: 220px; }
}


