/* ============================================================
   Habibtea landing page — page-level styles
   (ported from the design handoff's <helmet> block)
   ============================================================ */

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

/* Scroll-triggered reveal: content stays visible without JS; when JS runs it
   adds .js to <html> and fades each .reveal in as it enters the viewport. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Announcement bar ---------- */
.announce { position: relative; background: var(--c-maroon); color: var(--c-cream); }
.announce[hidden] { display: none; }
.announce-link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 52px; text-align: center; color: var(--c-cream); text-decoration: none;
  font-size: 14px; font-weight: 500; line-height: 1.35;
  transition: background 220ms var(--ease-out);
}
.announce-link:hover { background: var(--c-maroon-deep); color: var(--c-cream); }
.announce-cta { font-weight: 600; color: var(--c-gold); white-space: nowrap; }
.announce-close {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: rgba(245,230,220,0.12); color: var(--c-cream);
  font-size: 14px; line-height: 1; cursor: pointer; transition: background 220ms var(--ease-out);
}
.announce-close:hover { background: rgba(245,230,220,0.24); }

/* ---------- Nav ---------- */
#hbt-nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px; background: #FBF3EC; border-bottom: 1px solid rgba(122,31,43,0.08);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 46px; width: auto; display: block; }
.nav-wordmark {
  font-family: var(--ff-display); font-weight: 600; font-size: 24px; color: var(--c-maroon);
  font-variation-settings: 'opsz' 40; letter-spacing: -0.01em;
}
.hbt-navlinks { display: flex; gap: 30px; align-items: center; }
.hbt-navlinks .nav-link { font-size: 14px; font-weight: 500; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.hbt-navlinks .nav-link:hover { color: var(--c-henna); }
.nav-cta { padding: 11px 22px; font-size: 14px; }

/* ---------- Hero ---------- */
#top { position: relative; min-height: 82vh; }
.hero-bloom {
  position: absolute; top: 8%; right: -6%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,47,0.14), rgba(232,93,47,0) 70%); pointer-events: none;
}
.hbt-hero-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start;
  max-width: 1320px; margin: 0 auto; padding: 56px 48px 72px;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.hero-eyebrow-bar { display: inline-block; width: 26px; height: 2px; background: var(--accent); }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.6rem); margin: 18px 0 0; line-height: 1.04; }
.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: 1.18rem; line-height: 1.55; color: var(--c-ink); max-width: 30ch; margin: 24px 0 0; }
.hero-sub strong { color: var(--c-maroon); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-btn {
  font-size: 1rem;
  transition: box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.hero-btn.btn-primary { padding: 15px 28px; }
.hero-btn.btn-secondary { padding: 15px 26px; }
.hero-btn.btn-primary:hover {
  color: var(--c-cream);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-maroon) 24%, transparent), 0 8px 24px color-mix(in srgb, var(--c-maroon) 38%, transparent);
}
.hero-btn.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-maroon) 32%, transparent); }
.hero-btn.btn-secondary:hover {
  color: var(--c-maroon);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 6px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.hero-btn.btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Subtle hover bounce on the hero CTAs (explicit client request) */
@keyframes ctaBounce { 0% { transform: translateY(0); } 35% { transform: translateY(-6px); } 60% { transform: translateY(-1px); } 80% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.hero-btn:hover { animation: ctaBounce 480ms var(--ease-out); }

.hbt-hero-media { position: sticky; top: 96px; align-self: start; }
.hero-frame { position: relative; will-change: transform; }
.hbt-video {
  position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 9;
  overflow: hidden; background: transparent; border-radius: 16px; box-shadow: var(--shadow-md);
}
.hbt-video video { width: 100%; height: 100%; object-fit: contain; display: block; }

.video-end[hidden] { display: none; }
.video-end { position: absolute; inset: 0; pointer-events: none; }
.video-end-link {
  position: absolute; inset: 0; display: block; cursor: pointer; pointer-events: auto;
  background: transparent; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow var(--dur-base) var(--ease-out);
}
.video-end-link:hover {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent);
}
.video-chip {
  position: absolute; z-index: 2; pointer-events: auto; border: 0; cursor: pointer;
  background: rgba(26,20,16,0.42); color: var(--c-cream);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-replay {
  left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 7px 14px; font-family: var(--ff-body); font-size: 12px; font-weight: 600;
}
.video-sound {
  bottom: 14px; right: 14px; width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
}

/* Pour connector — a drip that travels down into the next section */
.pour-connector { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 36px; }
.pour-label { color: var(--c-ink-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.pour-line { position: relative; width: 2px; height: 72px; border-radius: 999px; background: rgba(122,31,43,0.12); overflow: hidden; }
.pour-drip {
  position: absolute; left: 0; top: 0; width: 100%; height: 46%; border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: pourDrip 2.8s var(--ease-out) infinite;
}
@keyframes pourDrip {
  0%   { transform: translateY(-110%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}

/* ---------- Shared section bits ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 96px 48px; }
.section-head { text-align: center; margin: 0 auto; }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 0; }
.section-title-lg { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; }
.section-lede { font-size: 1.08rem; color: var(--c-ink-muted); margin: 16px 0 0; }
.band { background: var(--c-maroon); color: var(--c-cream); }
.band-inner { max-width: 1140px; margin: 0 auto; padding: 96px 48px; }
.band-inner-narrow { max-width: 760px; text-align: center; }

/* ---------- 01 What we pour ---------- */
.pour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pour-grid-narrow { max-width: 900px; margin: 0 auto; }
#pour article { text-align: left; transition: transform 340ms var(--ease-out), box-shadow 340ms var(--ease-out); }
#pour article:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-stripe { position: absolute; top: 0; left: 0; right: 0; height: 8px; }
.card-title { font-family: var(--ff-display); color: var(--c-maroon); font-size: 1.6rem; font-weight: 500; margin: 6px 0 10px; }
.card-body { color: var(--c-ink-muted); margin: 0; line-height: 1.55; }
.pour-subsection { margin-top: 72px; }

/* ---------- 02 Difference carousel ---------- */
.dz { max-width: 720px; margin: 0 auto; }
.dz-stack { display: grid; align-items: stretch; }
.dz-slide {
  grid-area: 1 / 1; position: relative; background: #FBEFE6; border-radius: var(--r-xl);
  padding: 58px 52px 50px; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(122,31,43,0.18), 0 28px 66px rgba(0,0,0,0.32);
  opacity: 0; transform: translateX(28px); pointer-events: none;
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
}
.dz-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dz-br { position: absolute; width: 40px; height: 40px; pointer-events: none; }
.dz-tl { top: 16px; left: 16px; border-top: 3px solid var(--c-gold); border-left: 3px solid var(--c-gold); border-radius: 12px 0 0 0; }
.dz-bm { bottom: 16px; right: 16px; border-bottom: 3px solid var(--c-gold); border-right: 3px solid var(--c-gold); border-radius: 0 0 12px 0; }
.dz-icon { position: relative; font-family: var(--ff-display); font-size: 2.6rem; line-height: 1; }
.dz-title { position: relative; font-family: var(--ff-display); font-weight: 500; color: var(--c-maroon); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin: 22px 0 0; }
.dz-body { position: relative; color: var(--c-ink-muted); font-size: 1.06rem; line-height: 1.6; max-width: 40ch; margin: 14px auto 0; text-wrap: pretty; }
.dz-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 36px; }
.dz-arrow {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  background: rgba(245,230,220,0.08); color: var(--c-cream); cursor: pointer;
  transition: background 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.dz-arrow:hover { background: rgba(245,230,220,0.16); }
.dz-arrow:active { transform: scale(0.98); }
.dz-dots { display: flex; align-items: center; gap: 10px; }
.dz-dot {
  width: 8px; height: 8px; border: 0; padding: 0; border-radius: 999px; background: rgba(245,230,220,0.28); cursor: pointer;
  transition: width 320ms var(--ease-out), background 220ms ease;
}
.dz-dot:hover { background: rgba(245,230,220,0.6); }
.dz-dot.is-on { width: 30px; background: var(--c-gold); }

/* ---------- 03 Who we pour for ---------- */
.who-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.who-chip {
  background: var(--c-white); color: var(--c-maroon); font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow-sm); border: 0; cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 140ms var(--ease-out);
}
.who-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.who-chip.is-active { background: var(--c-maroon); color: var(--c-cream); box-shadow: var(--shadow-md); }
.who-desc { text-align: center; max-width: 540px; margin: 28px auto 0; color: var(--c-ink); font-size: 1.18rem; line-height: 1.5; min-height: 2.6em; text-wrap: pretty; }

/* ---------- Find us ---------- */
.pill-link {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  border-radius: 999px; text-decoration: none; box-shadow: var(--shadow-md);
  transition: transform 140ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.pill-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.follow-btn {
  background: var(--c-maroon); color: var(--c-cream); letter-spacing: 0.03em; text-transform: uppercase; padding: 17px 32px;
}
.follow-btn:hover { color: var(--c-cream); }
@keyframes followRipple {
  0%   { box-shadow: 0 0 0 0 rgba(232,93,47,0.4), 0 0 0 0 rgba(212,162,76,0.35), var(--shadow-md); }
  100% { box-shadow: 0 0 0 14px rgba(232,93,47,0), 0 0 0 26px rgba(212,162,76,0), var(--shadow-md); }
}
.follow-ripple { animation: followRipple 2.4s var(--ease-out) infinite; }
.ig-feed { min-height: 240px; }

/* ---------- Review ---------- */
.review-stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; color: var(--c-gold); }
.review-btn { background: var(--c-cream); color: var(--c-ink); letter-spacing: 0.02em; padding: 16px 30px; }
.review-btn:hover { color: var(--c-ink); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative; max-width: 1000px; margin: 0 auto; background: var(--c-cream-warm); border-radius: var(--r-xl);
  padding: 72px 32px; text-align: center; overflow: hidden; box-shadow: var(--shadow-md);
}
.final-cta .btn { font-size: 1.06rem; padding: 16px 34px; }
.btn-primary:hover { color: var(--c-cream); }

/* ---------- Footer ---------- */
footer { background: var(--c-maroon); color: var(--c-cream); padding: 56px 48px 36px; }
.footer-top { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-wordmark { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; }
.footer-socials { display: flex; align-items: center; gap: 12px; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(245,230,220,0.10); color: var(--c-cream); text-decoration: none;
  transition: background 220ms var(--ease-out), transform 140ms var(--ease-out);
}
.footer-social:hover { background: var(--c-henna); color: var(--c-cream); transform: translateY(-2px); }
.footer-order-row { max-width: 1140px; margin: 24px auto 0; display: flex; justify-content: flex-end; }
.footer-order { font-size: 14px; font-weight: 600; color: var(--c-gold); text-decoration: none; transition: color 220ms var(--ease-out); }
.footer-order:hover { color: var(--c-cream); }
.footer-bottom {
  max-width: 1140px; margin: 28px auto 0; padding-top: 24px; border-top: 1px solid rgba(245,230,220,0.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(245,230,220,0.7);
}

/* ---------- Responsive ---------- */
/* Nav collapses a little earlier than the rest of the layout: the full link row
   needs ~936px, so below 960px it switches to logo + "Book the cart" instead of
   wrapping links onto two lines. */
@media (max-width: 960px) {
  #hbt-nav { padding: 12px 20px; }
  .hbt-navlinks { gap: 12px; }
  .hbt-navlinks .nav-link { display: none; }
}

/* Design breakpoint: 860px */
@media (max-width: 860px) {
  .hbt-hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .hbt-hero-media { order: -1; position: static; }
  .hbt-pad { padding-left: 22px !important; padding-right: 22px !important; }
  section { padding-top: 64px !important; padding-bottom: 64px !important; }
  #top { min-height: 0; }
  .pour-connector { padding-bottom: 20px; }
  .pour-line { height: 48px; }
  .pour-subsection { margin-top: 44px; }
  footer { padding-left: 24px; padding-right: 24px; }
  .footer-top { flex-wrap: nowrap; gap: 12px; }
  .footer-top > div:first-child { flex: 1 1 auto; min-width: 0; }
  .footer-brand { gap: 10px; }
  .footer-mark img { height: 44px; }
  .footer-wordmark { display: none; }
  .footer-socials { flex: 0 0 auto; gap: 10px; }
  .footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
  .footer-tagline { display: none; }
  .footer-order { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
