/* ══════════════════════════════════════════
   NamasteImports.ca – Shared Stylesheet
   Nepal Flag Colors: Crimson, Navy, Gold
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Yatra+One&family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');
/* display=swap avoids invisible text while fonts load */

:root {
  --crimson: #C8102E;
  --deep-crimson: #8B0000;
  --navy: #003F87;
  --gold: #D4A017;
  --gold-light: #F5C842;
  --cream: #FDF6E3;
  --white: #FFFFFF;
  --dark: #1A0A00;
  --gray: #666666;
  --light-gray: #f5f5f5;
  --shadow: rgba(139,0,0,0.25);
  --card-shadow: 0 4px 20px rgba(0,0,0,0.09);

  /* Fluid layout tokens (site-wide) */
  --page-max: 1200px;
  --gutter: clamp(12px, 3.5vw, 48px);
  --section-pad-y: clamp(40px, 6vw, 80px);
  --section-pad-x: var(--gutter);
}
@media (max-width: 768px) {
  :root {
    --gutter: clamp(16px, 4vw, 24px);
    --section-pad-y: clamp(40px, 8vw, 60px);
  }
}
@media (max-width: 520px) {
  :root {
    --gutter: clamp(12px, 4vw, 16px);
    --section-pad-y: clamp(32px, 8vw, 44px);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: clip;
  padding-top: 60px;
}
/* Fallback for browsers without overflow-x: clip */
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}
/* Prevent horizontal scroll: images and embeds */
img, video, iframe, object, embed {
  max-width: 100%;
  height: auto;
}
video, iframe, object, embed { max-height: 100vh; }
img { display: block; }
/* Touch-friendly (tablet & mobile): tap highlight, no 300ms delay */
a, button, [role="button"], input, select, textarea, label {
  -webkit-tap-highlight-color: rgba(212, 160, 23, 0.2);
  touch-action: manipulation;
}

/* Keyboard (Windows/Linux/macOS): visible focus ring for accessibility */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Hide text caret (beam) except in real text fields */
* { caret-color: transparent; }
input, textarea { caret-color: auto; }

/* ── SCROLLBAR (WebKit + Firefox) – slim line ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--dark); }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  min-height: 60px; height: auto;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: navSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  overflow: visible;
  gap: 24px;
}
@keyframes navSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-logo {
  font-family: 'Yatra One', cursive;
  font-size: 1.25rem; color: var(--gold);
  letter-spacing: 1px; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.nav-logo-img {
  display: block;
  height: 120px;
  width: 120px;
  min-height: 120px;
  min-width: 120px;
  max-height: 120px;
  max-width: 120px;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
  margin: 0;
}
.nav-logo:has(.nav-logo-img) {
  padding: 0;
}
.nav-logo:has(.nav-logo-img) .nav-logo-text {
  display: none;
}
.nav-logo .nav-logo-shop { color: var(--crimson); }
.nav-logo > span:not(.nav-logo-shop) { color: var(--white); }
.nav-logo > span:not(.nav-logo-shop) span { color: var(--gold); }

/* Custom logo (emblem + text like reference) */
.nav-logo-custom {
  gap: 12px;
  font-family: 'Cinzel', serif;
}
.nav-logo-emblem {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-emblem svg {
  display: block;
  height: 48px;
  width: 48px;
}
.nav-logo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.nav-logo-line {
  white-space: nowrap;
  display: block;
}
.nav-logo-custom .nav-logo-shop {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--crimson);
  line-height: 1.1;
  margin-bottom: 1px;
}
.nav-logo-custom .nav-logo-namaste {
  display: inline-block;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-logo-custom .nav-logo-namaste::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 1.55em;
  font-weight: 800;
  line-height: 0.85;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.45), 0 1px 0 rgba(0, 0, 0, 0.2);
  margin-right: 0.02em;
  vertical-align: -0.04em;
}
.nav-logo-custom .nav-logo-imports {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.nav-logo-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
}
.nav-logo-tagline .nav-logo-tagline-accent { color: var(--gold); }
.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.9); text-decoration: none;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 2px;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--gold); border-radius: 1px;
}
.nav-cart {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  border-radius: 2px;
  position: relative;
}
.nav-cart .cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--crimson); color: white;
  font-size: 0.65rem; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.hamburger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* ── DECORATIVE BORDER ── */
.nepali-border {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--crimson) 0px, var(--crimson) 20px,
    var(--gold) 20px, var(--gold) 24px,
    var(--navy) 24px, var(--navy) 44px,
    var(--gold) 44px, var(--gold) 48px
  );
}

/* ── PAGE HERO BANNER ── */
.page-hero {
  background: linear-gradient(135deg, var(--deep-crimson), var(--crimson) 50%, var(--navy));
  padding: clamp(60px, 8vw, 70px) var(--gutter) clamp(44px, 6vw, 60px);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D4A017' fill-opacity='0.05'%3E%3Cpath d='M40 0l5 15h16l-13 9 5 15-13-9-13 9 5-15-13-9h16z'/%3E%3C/g%3E%3C/svg%3E");
  animation: bgDrift 25s linear infinite;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white); line-height: 1.1;
}
.page-hero h1 span { color: var(--gold-light); }
.page-hero p {
  color: rgba(255,255,255,0.8); font-size: 1.05rem;
  margin: 14px auto 0; max-width: 520px; line-height: 1.7;
}

/* ── SECTION BASE ── */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-block: var(--section-pad-y);
  padding-left: max(var(--section-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--section-pad-x), env(safe-area-inset-right));
}
.section-tag {
  display: inline-block; color: var(--crimson);
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px; margin-bottom: 10px;
}
h2.section-title {
  font-family: 'Cinzel', serif; font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: var(--deep-crimson); margin-bottom: 12px;
}
h2.section-title span { color: var(--navy); }
.section-sub { color: var(--gray); font-size: 1rem; max-width: 560px; line-height: 1.7; margin-bottom: 44px; }

/* ── BUTTONS (touch-friendly: min 44px height) ── */
.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 13px 32px; border: none; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.5px; cursor: pointer;
  text-decoration: none; border-radius: 2px; display: inline-flex;
  align-items: center; justify-content: center;
  min-height: 48px;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Lato', sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,23,0.45); }
.btn-outline {
  border: 2px solid var(--navy); color: var(--navy);
  padding: 11px 28px; font-size: 0.95rem;
  min-height: 48px;
  text-decoration: none; border-radius: 2px; display: inline-flex;
  align-items: center; justify-content: center;
  transition: all 0.2s; font-family: 'Lato', sans-serif; font-weight: 600;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-crimson {
  background: var(--crimson); color: var(--white);
  padding: 13px 32px; border: none; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; text-decoration: none;
  border-radius: 2px; display: inline-flex;
  align-items: center; justify-content: center;
  min-height: 48px;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.btn-crimson:hover { background: var(--deep-crimson); transform: translateY(-2px); }

/* Form controls and submit buttons: touch-friendly on small/touch screens */
@media (max-width: 900px), (hover: none) {
  input:not([type="checkbox"]):not([type="radio"]),
  select, textarea {
    min-height: 44px;
    font-size: 16px; /* prevents iOS zoom on focus (iOS zooms when font-size < 16px) */
  }
  /* Exclude compact icon buttons (e.g. wishlist heart); padding would collapse the 44px hit target */
  button:not(.product-wishlist-btn),
  input[type="submit"],
  input[type="button"],
  .form-submit,
  .submit-btn,
  .add-btn {
    min-height: 48px;
    padding: 14px 20px;
  }
}
input[type="checkbox"], input[type="radio"] {
  min-width: 22px;
  min-height: 22px;
  cursor: pointer;
}

/* ── SALE BADGE (product cards, featured, detail) ── */
.product-badge.sale,
.sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  min-width: 56px;
  padding: 8px 14px 8px 22px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--deep-crimson) 100%);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 50%);
  border: none;
  line-height: 1.2;
}
.product-badge.sale::before,
.sale-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22%;
  background: rgba(0,0,0,0.15);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  pointer-events: none;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: clamp(40px, 6vw, 60px) var(--gutter) 24px;
  color: rgba(255,255,255,0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto 44px;
}
.footer-brand,
.footer-col { min-width: 0; }
.footer-brand .logo { font-family: 'Yatra One', cursive; font-size: 1.4rem; color: var(--gold); }
.footer-brand .logo .footer-logo-shop { color: var(--crimson); }
.footer-brand .logo .footer-logo-namaste { color: var(--white); }
.footer-brand .logo > span:not(.footer-logo-shop):not(.footer-logo-namaste) { color: var(--gold); }
.footer-brand p {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 56ch;
}
.footer-col h4 {
  color: var(--white); font-size: 0.8rem; letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 18px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); text-decoration: none;
  margin-bottom: 10px; font-size: 0.9rem; transition: color 0.2s;
  min-width: 0;
  overflow-wrap: anywhere;
}
.footer-col a .footer-link-icon { display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.footer-col .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  gap: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-col .footer-social a:hover {
  color: var(--gold);
  border-color: rgba(245, 200, 66, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.footer-col .footer-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-bottom {
  text-align: center; border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; font-size: 0.82rem;
  max-width: 1200px; margin: 0 auto;
  color: rgba(255,255,255,0.3);
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}
.footer-bottom span { color: var(--gold); }

/* Footer: ensure logo copy never forces overflow */
footer .nav-logo-copy { min-width: 0; }
footer .nav-logo-line,
footer .nav-logo-tagline { white-space: normal; }
footer .nav-logo-tagline { line-height: 1.35; }

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--navy); color: var(--gold);
  padding: 11px 0; overflow: hidden; white-space: nowrap;
  border-top: 2px solid rgba(212,160,23,0.4);
  border-bottom: 2px solid rgba(212,160,23,0.4);
  contain: layout style paint;
}
.marquee-inner {
  display: inline-block;
  animation: scroll 35s linear infinite;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  will-change: transform;
}
.marquee-inner span { margin: 0 36px; }
.marquee-inner .dot { color: var(--crimson); margin: 0 !important; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: max(30px, env(safe-area-inset-bottom));
  right: max(30px, env(safe-area-inset-right));
  background: var(--navy); color: var(--white);
  padding: 14px 24px; border-radius: 4px;
  border-left: 4px solid var(--gold);
  font-size: 0.92rem; z-index: 9999;
  transform: translateX(120%); transition: transform 0.4s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translateX(0); }

/* ── MOBILE: sticky header already (nav is fixed), overlay + touch targets ── */
body.nav-open { overflow: hidden; }
body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
}
@supports (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px)) {
  body.nav-open::before {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 6px var(--gutter);
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    min-height: 56px;
  }
  body { padding-top: 56px; }
  body.nav-open::before { top: 56px; }
  .nav-logo.nav-logo-custom {
    flex: 1;
    min-width: 0;
    font-size: clamp(0.76rem, 2.9vw, 0.92rem);
    gap: 8px;
  }
  .nav-logo-custom .nav-logo-copy {
    min-width: 0;
    gap: 1px;
  }
  .nav-logo-custom .nav-logo-emblem svg { height: 36px; width: 36px; }
  .nav-logo-custom .nav-logo-tagline {
    display: block;
    white-space: normal;
    line-height: 1.35;
    font-size: clamp(0.42rem, 2.1vw, 0.5rem);
    letter-spacing: 0.05em;
  }
  .nav-logo-img {
    height: 96px; width: 96px;
    min-height: 96px; min-width: 96px;
    max-height: 96px; max-width: 96px;
    margin: 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 20px 24px;
    gap: 2px;
    border-bottom: 3px solid var(--gold);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    min-height: 44px;
    border-radius: 4px;
    font-size: 0.8rem;
  }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.08); }
  .hamburger { display: flex; }
  /* True 2x2 footer on mobile:
     Row 1: Brand + Shop
     Row 2: Info + Help/Contact
  */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand shop"
      "info help";
  }
  .footer-brand { grid-area: brand; }
  .footer-grid > .footer-col:nth-child(2) { grid-area: shop; }
  .footer-grid > .footer-col:nth-child(3) { grid-area: info; }
  .footer-grid > .footer-col:nth-child(4) { grid-area: help; }
  footer {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}
/* iPad Air / foldables (approx 769–900px): use hamburger to prevent nav overflow */
@media (max-width: 900px) and (min-width: 769px) {
  nav {
    padding: 6px 16px 6px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    min-height: 56px;
    gap: 16px;
  }
  body { padding-top: 56px; }
  body.nav-open::before { top: 56px; }

  .nav-logo.nav-logo-custom {
    flex: 1;
    min-width: 0;
    font-size: clamp(0.8rem, 1.6vw, 0.92rem);
    gap: 8px;
  }
  .nav-logo-custom .nav-logo-copy {
    min-width: 0;
    gap: 1px;
  }
  .nav-logo-custom .nav-logo-emblem svg { height: 36px; width: 36px; }
  .nav-logo-custom .nav-logo-tagline {
    display: block;
    white-space: normal;
    line-height: 1.35;
    font-size: clamp(0.44rem, 1.1vw, 0.52rem);
    letter-spacing: 0.05em;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 20px 24px;
    gap: 2px;
    border-bottom: 3px solid var(--gold);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    min-height: 44px;
    border-radius: 4px;
    font-size: 0.8rem;
  }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.08); }

  /* True 2x2 footer on tablet */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand shop"
      "info help";
  }
  .footer-brand { grid-area: brand; }
  .footer-grid > .footer-col:nth-child(2) { grid-area: shop; }
  .footer-grid > .footer-col:nth-child(3) { grid-area: info; }
  .footer-grid > .footer-col:nth-child(4) { grid-area: help; }

  .hamburger { display: flex; }
}
@media (max-width: 520px) {
  /* Keep the 2x2 footer even on small phones */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand shop"
      "info help";
  }
  .footer-brand { grid-area: brand; }
  .footer-grid > .footer-col:nth-child(2) { grid-area: shop; }
  .footer-grid > .footer-col:nth-child(3) { grid-area: info; }
  .footer-grid > .footer-col:nth-child(4) { grid-area: help; }
  body { padding-top: 56px; }
}
/* Very small phones: wrap logo text; tagline stays visible */
@media (max-width: 520px) {
  .nav-logo-line { white-space: normal; }
  .nav-logo-custom .nav-logo-namaste::first-letter {
    font-size: 1.32em;
    text-shadow: 0 0 14px rgba(245, 200, 66, 0.4), 0 1px 0 rgba(0, 0, 0, 0.2);
  }
  .nav-logo.nav-logo-custom {
    font-size: clamp(0.7rem, 3.1vw, 0.82rem);
  }
  .nav-logo-custom .nav-logo-emblem svg { height: 34px; width: 34px; }
  .nav-logo-custom .nav-logo-tagline {
    display: block;
    white-space: normal;
    line-height: 1.35;
    font-size: clamp(0.4rem, 2.2vw, 0.48rem);
    letter-spacing: 0.04em;
  }
  .nav-logo-copy { min-width: 0; max-width: 100%; }
}

/* Extra small screens: tighter logo (must follow 520px so these win) */
@media (max-width: 380px) {
  nav { padding: 0 var(--gutter); }
  .nav-logo.nav-logo-custom {
    font-size: clamp(0.68rem, 3.4vw, 0.78rem);
    gap: 6px;
  }
  .nav-logo-custom .nav-logo-emblem svg { height: 32px; width: 32px; }
  .nav-logo-custom .nav-logo-tagline {
    font-size: clamp(0.38rem, 2vw, 0.45rem);
  }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET (768px – 1024px): full nav, comfortable spacing, no hamburger
═══════════════════════════════════════════════════════════════ */
@media (min-width: 901px) and (max-width: 1024px) {
  nav {
    padding: 8px 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    min-height: 56px;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px 6px;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    max-height: none;
    flex-shrink: 0;
  }
  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 8px 10px;
    min-height: 44px;
    white-space: nowrap;
  }
  .nav-logo-custom .nav-logo-tagline {
    font-size: 0.5rem;
  }
  .nav-logo-custom .nav-logo-emblem svg {
    height: 42px;
    width: 42px;
  }
  .hamburger {
    display: none !important;
  }
  body { padding-top: 56px; }
  .container {
    padding: 56px 32px;
  }
  .page-hero {
    padding: 60px 32px 50px;
  }
  footer {
    padding: 48px 32px 24px;
  }
  .footer-grid {
    gap: 36px 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand shop"
      "info help";
  }
  .footer-brand { grid-area: brand; }
  .footer-grid > .footer-col:nth-child(2) { grid-area: shop; }
  .footer-grid > .footer-col:nth-child(3) { grid-area: info; }
  .footer-grid > .footer-col:nth-child(4) { grid-area: help; }
}

@keyframes bgDrift { from { background-position: 0 0; } to { background-position: 160px 160px; } }
/* Scroll-reveal: GPU layer for smooth opacity/transform */
.reveal { will-change: opacity, transform; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
