/* ═══════════════════════════════════════════════════════════════
   The Home Chef Bakes — Premium Motion & Polish Layer
   Layered on top of styles.css — does not override existing rules
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   PWA — Install banner & iOS hint
   ═══════════════════════════════════════════════════════════════ */
#hcb-install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 980;
  background: #fff;
  border: 1px solid rgba(200, 98, 30, 0.20);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(42, 22, 8, 0.22), 0 4px 12px rgba(42, 22, 8, 0.10);
  opacity: 0;
  transform: translateY(140%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
#hcb-install-banner.is-visible { opacity: 1; transform: translateY(0); }
.hcb-install-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.hcb-install-banner__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #fff7ee;
}
.hcb-install-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.hcb-install-banner__text strong {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.hcb-install-banner__text span {
  font-size: 12px;
  color: var(--ink-soft);
}
.hcb-install-banner__btn {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, #e08844 0%, #c8621e 100%);
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(200, 98, 30, 0.30);
  -webkit-tap-highlight-color: transparent;
}
.hcb-install-banner__close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.hcb-install-banner__close:hover { background: rgba(0,0,0,0.05); }

[data-theme="dark"] #hcb-install-banner {
  background: #1f1308;
  border-color: rgba(200, 98, 30, 0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

/* iOS hint — bottom toast pointing at Share button */
#hcb-ios-hint {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 980;
  background: rgba(20, 12, 6, 0.92);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(140%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#hcb-ios-hint.is-visible { opacity: 1; transform: translateY(0); }
.hcb-ios-hint__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.hcb-ios-hint__inner strong { color: #f0a05a; }
#hcb-ios-hint-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  width: 26px; height: 26px;
  -webkit-tap-highlight-color: transparent;
}

/* When the app is launched in standalone mode (already installed),
   leave a tiny bottom safe-area for the home indicator on iOS */
.hcb-pwa-installed body { padding-bottom: env(safe-area-inset-bottom); }

/* ── Performance: tell the browser to skip rendering off-screen
   sections until they're needed. Massive win on long pages where
   the GPU is busy compositing many transforms & filters. ───────── */
.section,
.hcb-south-section,
.features-strip,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
/* GPU-promote items the browser animates constantly so they don't
   re-layer on every paint. */
.hero__title, .hero__subtitle, .hero__actions, .hero__badges,
.scroll-progress, .features-strip__inner {
  will-change: transform;
  backface-visibility: hidden;
}
/* Mobile: kill heavy blurs and reduce animation count. Saves the
   GPU & main-thread budget where touch devices need it most. */
@media (max-width: 767px) {
  /* The mouse glow & magnetic cursor are desktop-only — disable here
     defensively in case any global rule paints them. */
  .mouse-glow { display: none !important; }

  /* Smoother native scrolling on iOS/Android */
  html, body { -webkit-overflow-scrolling: touch; }

  /* Prefer simple transforms over filter blurs which can cost
     a lot to composite. */
  .hcb-glass-menu { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
  .hcb-glass-card { backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
}

/* ── Scroll Progress Bar ─────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm), var(--gold), var(--accent-warm));
  background-size: 200% 100%;
  z-index: 10000;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  animation: shimmerGradient 3s linear infinite;
  will-change: width;
}
@keyframes shimmerGradient {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

/* ── Mouse Glow (desktop only) ───────────────────────────────── */
.mouse-glow {
  position: fixed;
  pointer-events: none;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(200, 98, 30, 0.055) 0%,
    rgba(224, 133, 53, 0.03) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
  will-change: left, top;
  transition: left 1s cubic-bezier(0.16, 1, 0.3, 1),
              top  1s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 767px) { .mouse-glow { display: none; } }

/* ── Hero Orbs (JS-injected) ─────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: orbAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}
.hero-orb--1 {
  width: 480px; height: 480px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(200, 98, 30, 0.10) 0%, transparent 65%);
  filter: blur(50px);
  animation-delay: 0.1s;
}
.hero-orb--2 {
  width: 340px; height: 340px;
  bottom: -60px; left: 5%;
  background: radial-gradient(circle, rgba(184, 136, 42, 0.09) 0%, transparent 65%);
  filter: blur(36px);
  animation-delay: 0.3s;
}
.hero-orb--3 {
  width: 220px; height: 220px;
  top: 40%; right: 18%;
  background: radial-gradient(circle, rgba(224, 133, 53, 0.07) 0%, transparent 65%);
  filter: blur(24px);
  animation-delay: 0.5s;
}
@keyframes orbAppear {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Hero Content — Staggered Entrance ───────────────────────── */
.hero__eyebrow {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.hero__title {
  animation: fadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.hero__subtitle {
  animation: fadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}
.hero__actions {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}
.hero__badges {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}
.hero__note {
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.64s both;
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient italic text in hero title */
.hero__title em {
  background: linear-gradient(
    135deg,
    var(--accent)      0%,
    var(--accent-warm) 45%,
    var(--gold)        100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

/* ── Badge Float on Hover ────────────────────────────────────── */
.hero__badge {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  cursor: default;
}
.hero__badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(200, 98, 30, 0.2);
}

/* ── Header Scroll State ─────────────────────────────────────── */
.header {
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  box-shadow: 0 6px 40px rgba(42, 29, 18, 0.13);
  background: rgba(255, 252, 247, 0.98) !important;
}
.header--scrolled .header__inner {
  height: 60px;
}

/* ── Reveal Animation System ─────────────────────────────────── */
.hcb-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.hcb-reveal.hcb-from-left  { transform: translateX(-32px); }
.hcb-reveal.hcb-from-right { transform: translateX(32px); }
.hcb-reveal.hcb-scale      { transform: scale(0.93) translateY(18px); }

.hcb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.hcb-d1 { transition-delay: 0.05s; }
.hcb-d2 { transition-delay: 0.12s; }
.hcb-d3 { transition-delay: 0.19s; }
.hcb-d4 { transition-delay: 0.26s; }
.hcb-d5 { transition-delay: 0.33s; }
.hcb-d6 { transition-delay: 0.40s; }

/* ── Card GPU Optimization ───────────────────────────────────── */
.card {
  will-change: transform;
  transition:
    transform  0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

/* ── Button Ripple Keyframe ──────────────────────────────────── */
@keyframes rippleAnim {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(4); opacity: 0; }
}

/* ── Button Active Press ─────────────────────────────────────── */
.btn:active {
  transform: translateY(0) scale(0.97) !important;
}

/* ── Section Eyebrow Shine ───────────────────────────────────── */
.section__eyebrow {
  transition: letter-spacing 0.4s ease;
}
.section__eyebrow.is-visible {
  letter-spacing: 3px;
}

/* ══════════════════════════════════════════════════════════════
   SHAKURO FX — added by shakuro-fx.js
   ══════════════════════════════════════════════════════════════ */

/* ── Split-text word mask ────────────────────────────────────── */
.hero__title.hcb-split-done {
  animation: none !important;
}
.hcb-ww {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hcb-w {
  display: inline-block;
}

/* ── Magnetic cursor (desktop / pointer only) ────────────────── */
#hcb-cur-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100001;
  mix-blend-mode: multiply;
  will-change: transform;
}
#hcb-cur-ring {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition:
    width  0.32s cubic-bezier(0.22,1,0.36,1),
    height 0.32s cubic-bezier(0.22,1,0.36,1),
    background 0.25s ease,
    border-color 0.25s ease;
}
#hcb-cur-ring.is-hover {
  width: 72px; height: 72px;
  background: rgba(224,136,68,0.13);
}
#hcb-cur-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;
  white-space: nowrap;
}
[data-theme="dark"] #hcb-cur-ring.is-hover {
  background: rgba(224,136,68,0.22);
}
@media (max-width: 767px), (hover: none) {
  #hcb-cur-dot, #hcb-cur-ring { display: none !important; }
}

/* ── Infinite marquee ticker ─────────────────────────────────── */
.hcb-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  width: max-content;
  animation: hcbMarquee 30s linear infinite;
}
.features-strip:hover .hcb-marquee-track {
  animation-play-state: paused;
}
@keyframes hcbMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Stats section ───────────────────────────────────────────── */
.hcb-stats-section {
  background: linear-gradient(135deg, #2a1d12 0%, #3d2a1a 60%, #2e2010 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.hcb-stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hcb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
@media (max-width: 767px) {
  .hcb-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.hcb-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hcb-stat-card:last-child { border-right: none; }
@media (max-width: 767px) {
  .hcb-stat-card { border-right: none; padding: 22px 12px; }
  .hcb-stat-card:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.08); }
  .hcb-stat-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
.hcb-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent-warm, #e89848), var(--gold, #c49c38));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hcb-stat-lbl {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(240,228,206,0.58);
}
@media (max-width: 767px) {
  .hcb-stat-num { font-size: 38px; }
}

/* ── Page Load Fade ──────────────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: pageFadeIn 0.45s ease both;
}

/* ── Features Strip Subtle Entrance ─────────────────────────── */
.features-strip {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* ── Footer Reveal ───────────────────────────────────────────── */
.footer {
  transition: opacity 0.6s ease;
}

/* ── Page Color Refinement — Remove dot grain texture ───────── */
body {
  background-image: none !important;
}
.background-image {
  background:
    radial-gradient(ellipse 70% 45% at 95% 0%,  rgba(200,98,30,0.07)  0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0%  100%, rgba(184,136,42,0.05) 0%, transparent 55%),
    linear-gradient(160deg, #fdfaf6 0%, #faf7f2 50%, #fdfaf6 100%);
  z-index: -1;
}

/* ── Apple-style Hover Mega Menu ─────────────────────────────── */
.hcb-mega {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.hcb-mega.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.hcb-mega__backdrop {
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(20, 12, 6, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}
.hcb-mega__panel {
  position: relative;
  background: rgba(255, 252, 247, 0.97);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  border-bottom: 1px solid rgba(227, 203, 176, 0.6);
  box-shadow: 0 12px 48px rgba(42, 29, 18, 0.14);
  padding: 26px 0 30px;
  transform: translateY(-10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.hcb-mega.is-open .hcb-mega__panel {
  transform: translateY(0);
}
.hcb-mega__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hcb-mega__label {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.hcb-mega__see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 5px 14px;
  border: 1.5px solid currentColor;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hcb-mega__see-all:hover {
  background: var(--accent);
  color: #fff;
}
.hcb-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hcb-mega-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid transparent;
  transition:
    background  0.18s ease,
    border-color 0.18s ease,
    transform   0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hcb-mega-item:hover {
  background: rgba(200, 98, 30, 0.07);
  border-color: rgba(200, 98, 30, 0.2);
  transform: translateY(-2px);
}
.hcb-mega-item.is-active {
  background: rgba(200, 98, 30, 0.10);
  border-color: rgba(200, 98, 30, 0.28);
}
.hcb-mega-item__img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid rgba(227, 203, 176, 0.5);
}
.hcb-mega-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease;
}
.hcb-mega-item:hover .hcb-mega-item__img img {
  transform: scale(1.08);
}
.hcb-mega-item__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.hcb-mega-item__text small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Hide old dropdown on desktop; hide mega on mobile */
@media (min-width: 768px) {
  .nav-menu-dropdown { display: none !important; }
}
@media (max-width: 767px) {
  .hcb-mega { display: none !important; }
}

/* ── Accessibility: Reduce Motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .hero-orb,
  .mouse-glow { display: none !important; }

  .hero__eyebrow, .hero__title, .hero__subtitle,
  .hero__actions, .hero__badges, .hero__note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hcb-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SOUTH INDIA DELIVERY SECTION — dark showcase panel
   ═══════════════════════════════════════════════════════════════ */
.hcb-south-section {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74,114,200,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #1a1d2c 0%, #161929 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Heading block */
.hcb-south-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.hcb-south-head .section__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #c8a47e;
}
.hcb-south-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
}
.hcb-south-title em {
  background: linear-gradient(120deg, #f0a05a 0%, #d4a544 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 700;
}
.hcb-south-head .section__divider {
  margin: 18px auto;
  background: linear-gradient(90deg, #d4a544, #c25151);
}
.hcb-south-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin: 0 auto;
  max-width: 580px;
}

/* === Map card === */
.hcb-south-map-card {
  position: relative;
  max-width: 540px;
  margin: 36px auto 24px;
  background:
    radial-gradient(circle at 75% 30%, rgba(74,114,200,0.12) 0%, transparent 55%),
    linear-gradient(160deg, #1f2333 0%, #131725 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 22px 18px 18px;
  aspect-ratio: 600 / 700;
}
.hcb-south-truck {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212,165,68,0.18);
  border: 1px solid rgba(212,165,68,0.36);
  color: #f0c878;
  display: grid;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}
.hcb-south-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hcb-state {
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.hcb-south-ocean-lbl-svg {
  fill: rgba(255,255,255,0.18);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.hcb-pudu-lbl {
  fill: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.hcb-pin { transform-box: fill-box; transform-origin: center; }
.hcb-pin-pulse {
  opacity: 0.32;
  transform-origin: center;
  animation: hcbPinPulse 2.2s ease-out infinite;
}
.hcb-pin-dot {
  stroke: rgba(255,255,255,0.85);
  stroke-width: 1.6;
}
.hcb-pin-lbl {
  fill: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(15,18,30,0.85);
  stroke-width: 3px;
  stroke-linejoin: round;
}
@keyframes hcbPinPulse {
  0%   { transform: scale(0.5); opacity: 0.55; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* === Stat tiles === */
.hcb-south-stats {
  max-width: 540px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hcb-south-stat {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hcb-south-stat__num {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.15;
}
.hcb-south-stat__lbl {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

/* === State list cards === */
.hcb-south-states-list {
  max-width: 540px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hcb-south-state-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.hcb-south-state-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}
.hcb-south-state-card__ico {
  font-size: 24px;
  width: 38px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}
.hcb-south-state-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hcb-south-state-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcb-south-state-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hcb-south-state-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.1px;
}
.hcb-south-state-card__cities {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.hcb-south-state-card__badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #4ade80;
  background: rgba(74,222,128,0.10);
  border: 1px solid rgba(74,222,128,0.25);
}

/* Legacy classes from earlier iteration — hide if anything lingers */
.hcb-south-grid, .hcb-south-copy, .hcb-south-map, .hcb-south-list, .hcb-south-foot {
  display: none !important;
}

/* Dark mode just deepens the same panel */
[data-theme="dark"] .hcb-south-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74,114,200,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #14172a 0%, #0e1122 100%);
}

@media (max-width: 767px) {
  .hcb-south-section { padding: 56px 0; }
  .hcb-south-head { margin-bottom: 28px; }
  .hcb-south-lead { font-size: 14.5px; }
  .hcb-south-map-card { padding: 18px 14px 14px; border-radius: 22px; }
  .hcb-south-truck { width: 34px; height: 34px; top: 12px; right: 12px; }
  .hcb-south-stats {
    gap: 8px;
    /* Nudge the row in from the screen edges so the trio reads as a centered cluster. */
    max-width: 440px;
    padding: 0 6px;
  }
  .hcb-south-stat {
    padding: 14px 12px;
    text-align: center;     /* Centre the number + label inside each tile */
    align-items: center;
  }
  .hcb-south-stat__num { font-size: 15.5px; }
  .hcb-south-stat__lbl { font-size: 10.5px; }

  .hcb-south-states-list {
    /* Narrower track on mobile so the row of icon+text+badge sits as a
       balanced, centered cluster rather than spanning edge-to-edge. */
    max-width: 440px;
    padding: 0 6px;
  }
  .hcb-south-state-card {
    padding: 12px 14px;
    gap: 12px;
    justify-content: center;
  }
  .hcb-south-state-card__ico { font-size: 22px; width: 30px; }
  .hcb-south-state-card__body {
    /* Centre the title row & cities visually inside the available space */
    align-items: center;
    text-align: center;
  }
  .hcb-south-state-card__head { justify-content: center; }
  .hcb-south-state-card__name { font-size: 14.5px; }
  .hcb-south-state-card__cities { font-size: 12px; }
  .hcb-south-state-card__badge { padding: 4px 10px; font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   FAB DOCK MENU — horizontal pill, slides up from bottom
   Reference: floating dock with circular icon chips inside a pill.
   ═══════════════════════════════════════════════════════════════ */
.hcb-dock {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 130%);
  z-index: 900;
  width: calc(100% - 32px);
  max-width: 460px;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease;
}
.hcb-dock.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.hcb-dock-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(200, 164, 126, 0.35);
  border-radius: 100px;
  box-shadow:
    0 20px 50px rgba(42, 22, 8, 0.25),
    0 4px 14px rgba(42, 22, 8, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
.hcb-dock-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1f1208;
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: transform 0.18s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.hcb-dock-close:active { transform: scale(0.92); }
.hcb-dock-scroller {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 6px 2px 2px;
  scrollbar-width: none;
  flex: 1;
}
.hcb-dock-scroller::-webkit-scrollbar { display: none; }
.hcb-dock-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.hcb-dock-chip:active { transform: scale(0.92); }
.hcb-dock-chip__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff7ee;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 3px 10px rgba(42,22,8,0.18);
  display: block;
}
.hcb-dock-chip__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hcb-dock-chip__lbl {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: #3a1e08;
  white-space: nowrap;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

/* Stagger chip entry */
.hcb-dock.is-open .hcb-dock-chip {
  animation: hcbDockChipIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hcb-dock.is-open .hcb-dock-chip:nth-child(1) { animation-delay: 0.10s; }
.hcb-dock.is-open .hcb-dock-chip:nth-child(2) { animation-delay: 0.16s; }
.hcb-dock.is-open .hcb-dock-chip:nth-child(3) { animation-delay: 0.22s; }
.hcb-dock.is-open .hcb-dock-chip:nth-child(4) { animation-delay: 0.28s; }
.hcb-dock.is-open .hcb-dock-chip:nth-child(5) { animation-delay: 0.34s; }
.hcb-dock.is-open .hcb-dock-chip:nth-child(6) { animation-delay: 0.40s; }
.hcb-dock.is-open .hcb-dock-chip:nth-child(7) { animation-delay: 0.46s; }
.hcb-dock.is-open .hcb-dock-chip:nth-child(8) { animation-delay: 0.52s; }
@keyframes hcbDockChipIn {
  from { opacity: 0; transform: translateY(20px) scale(0.6); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

[data-theme="dark"] .hcb-dock-pill {
  background: rgba(35, 21, 10, 0.92);
  border-color: rgba(200, 164, 126, 0.28);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.55),
    0 4px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="dark"] .hcb-dock-close {
  background: var(--accent);
  color: #1a0f06;
}
[data-theme="dark"] .hcb-dock-chip__lbl { color: #f5e2cc; }
[data-theme="dark"] .hcb-dock-chip__img {
  border-color: rgba(255,255,255,0.15);
  background: #2a1a0a;
}

/* ═══════════════════════════════════════════════════════════════
   GLASSMORPHISM 3D COVER-FLOW MENU
   Full-screen overlay with morphing blob backdrop, glass cards
   arranged on a horizontal 3D curve, spring-eased transitions.
   ═══════════════════════════════════════════════════════════════ */
.hcb-glass-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(200,98,30,0.20), transparent 70%),
    rgba(12, 6, 2, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              backdrop-filter 0.45s ease;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 45%;
}
.hcb-glass-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Morphing blob backdrop ────────────────────────────────────── */
.hcb-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.7s ease;
  animation: hcbBlobSway 18s ease-in-out infinite;
}
.hcb-glass-menu.is-open .hcb-blob { opacity: 0.85; }
@keyframes hcbBlobSway {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg)  scale(1);   }
  33%      { transform: translate(-50%, -50%) rotate(12deg) scale(1.08); }
  66%      { transform: translate(-50%, -50%) rotate(-10deg) scale(0.95); }
}

/* ── Close button (top-right) ──────────────────────────────────── */
.hcb-glass-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 20;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, background 0.22s ease;
  opacity: 0;
  transform: scale(0.7);
  -webkit-tap-highlight-color: transparent;
}
.hcb-glass-menu.is-open .hcb-glass-close {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.15s;
}
.hcb-glass-close:active { transform: scale(0.92); background: rgba(255,255,255,0.22); }

/* ── Heading (top-center) ──────────────────────────────────────── */
.hcb-glass-heading {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  text-align: center;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hcb-glass-menu.is-open .hcb-glass-heading {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.2s;
}
.hcb-glass-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hcb-glass-title-h {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ── 3D card stage ─────────────────────────────────────────────── */
.hcb-glass-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  transform-style: preserve-3d;
  pointer-events: none;
}

/* ── Individual glass card ─────────────────────────────────────── */
.hcb-glass-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 296px;
  margin: 0;
  padding: 28px 18px 22px;
  border-radius: 32px;
  background: linear-gradient(155deg,
              rgba(255,250,240,0.22) 0%,
              rgba(255,250,240,0.06) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow:
    0 28px 60px rgba(0,0,0,0.40),
    0 8px 18px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  color: #fff;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    box-shadow 0.45s ease;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.hcb-glass-card.is-active {
  box-shadow:
    0 42px 80px rgba(0,0,0,0.50),
    0 14px 28px rgba(200,98,30,0.35),
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(0,0,0,0.20);
  animation: hcbCardBreathe 4s ease-in-out infinite;
}
@keyframes hcbCardBreathe {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.06) saturate(1.1); }
}

.hcb-glass-card__glow {
  position: absolute;
  inset: -4px;
  border-radius: 36px;
  background: linear-gradient(135deg, #f0a05a 0%, #c8621e 100%);
  z-index: -1;
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.6s ease;
}
.hcb-glass-card.is-active .hcb-glass-card__glow { opacity: 0.75; }

.hcb-glass-card__img {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.55);
  box-shadow: 0 12px 24px rgba(0,0,0,0.38);
  background: #fff7ee;
  display: block;
}
.hcb-glass-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hcb-glass-card__title {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  max-width: 190px;
  letter-spacing: 0.2px;
}
.hcb-glass-card__cta {
  padding: 7px 16px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}
.hcb-glass-card.is-active .hcb-glass-card__cta {
  background: #fff;
  color: #3a1e08;
  border-color: #fff;
}

/* ── Dots & swipe hint ─────────────────────────────────────────── */
.hcb-glass-dots {
  position: absolute;
  bottom: 94px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hcb-glass-menu.is-open .hcb-glass-dots {
  opacity: 1;
  transition-delay: 0.35s;
}
.hcb-glass-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.32);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.hcb-glass-dot.is-active {
  background: #fff;
  width: 22px;
  border-radius: 6px;
}
.hcb-glass-hint {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hcb-glass-menu.is-open .hcb-glass-hint {
  opacity: 1;
  transition-delay: 0.45s;
}

/* ── Card entrance stagger when menu opens ─────────────────────── */
.hcb-glass-menu.is-open .hcb-glass-card {
  animation: hcbGlassCardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.hcb-glass-menu.is-open .hcb-glass-card:nth-child(1) { animation-delay: 0.10s; }
.hcb-glass-menu.is-open .hcb-glass-card:nth-child(2) { animation-delay: 0.16s; }
.hcb-glass-menu.is-open .hcb-glass-card:nth-child(3) { animation-delay: 0.22s; }
.hcb-glass-menu.is-open .hcb-glass-card:nth-child(4) { animation-delay: 0.28s; }
.hcb-glass-menu.is-open .hcb-glass-card:nth-child(5) { animation-delay: 0.34s; }
.hcb-glass-menu.is-open .hcb-glass-card:nth-child(n+6) { animation-delay: 0.40s; }
@keyframes hcbGlassCardIn {
  from {
    opacity: 0;
    /* Use the same translate(-50%, -50%) base; JS layout overrides afterwards */
    transform: translate(-50%, -50%) translateY(60px) scale(0.4);
    filter: blur(8px);
  }
  to { filter: blur(0); }
}
