/* ===========================================================================
   Nula Oil — site styles
   Everything below the scroll-driven hero. The hero keeps its own rules in
   styles.css; this file owns the editorial content, header, footer and the
   warm, earthy brand palette drawn from the product photography.
   =========================================================================== */

:root {
  --ink: #2b2018;          /* espresso text */
  --ink-soft: #6f6051;     /* muted brown */
  --cream: #f7f1e7;        /* page background */
  --cream-2: #fbf7ef;      /* lighter card */
  --sand: #eaddc7;         /* (unused fallback) */
  --sand-band: #e7d7c1;    /* warm sand band */
  --sand-deep: #c6a887;    /* backdrop tan */
  --espresso: #2a1d14;     /* dark wood band */
  --amber: #b9761b;        /* honey accent */
  --amber-soft: #d99a39;
  --line: rgba(43, 32, 24, 0.14);
  --line-soft: rgba(43, 32, 24, 0.08);
}

/* The hero stylesheet sets body background:#000; the content sits on cream. */
.site {
  position: relative;
  z-index: 1;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
}

.site img { display: block; max-width: 100%; }

.site a { color: inherit; }

/* ---- Shared type helpers ------------------------------------------------ */
.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--amber);
  margin: 0 0 1.6rem;
}

.display {
  font-family: 'Aboreto', serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.serif-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

/* =========================================================================
   Site header — fades in once the hero has been scrolled past
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  z-index: 50;
  background: rgba(247, 241, 231, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* The logo file is a square with the NULA wordmark centred and ~40% transparent
   padding top/bottom. A fixed-height, overflow-hidden frame crops that padding
   away so only the wordmark band shows; the image is scaled so the wordmark is
   ~22px tall (wordmark ≈ 20% of the square's height). */
.site-brand {
  display: inline-flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo {
  height: 120px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(1.4rem, 2.6vw, 2.8rem);
}

.site-nav a {
  text-decoration: none;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.site-cart {
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}

.site-cart #cartCount { color: var(--amber); }

/* ---- Language switcher ---- */
.lang-switch { position: relative; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: transparent;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover { border-color: var(--amber); }

.lang-toggle .chev {
  width: 11px;
  height: 8px;
  color: var(--ink-soft);
  transition: transform 0.25s ease;
}

.lang-switch.is-open .chev { transform: rotate(180deg); }

.flag-ico {
  width: 1.5em;
  height: 1em;
  flex: none;
  display: inline-flex;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(43, 32, 24, 0.12);
}

.flag-ico svg { width: 100%; height: 100%; display: block; }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 184px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 50px -28px rgba(43, 32, 24, 0.5);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 60;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease;
}

.lang-item:hover { background: rgba(185, 118, 27, 0.1); }
.lang-item[aria-selected='true'] { background: rgba(185, 118, 27, 0.16); }
.lang-item .flag-ico { width: 1.6em; height: 1.06em; }

/* =========================================================================
   RTL + Arabic typography
   ========================================================================= */
[dir='rtl'] .lang-menu { right: auto; left: 0; }

html[lang='ar'] .site,
html[lang='ar'] .site *,
html[lang='ar'] .site-header,
html[lang='ar'] .site-header *,
html[lang='ar'] .hero-nav,
html[lang='ar'] .hero-nav *,
html[lang='ar'] .hero-quote {
  font-family: 'Amiri', serif !important;
}

/* Keep the Latin brand wordmarks and numerals in their display faces. */
html[lang='ar'] .site-brand,
html[lang='ar'] #wordmark,
html[lang='ar'] .shop-copy h2,
html[lang='ar'] .step-num,
html[lang='ar'] .ingredient .num {
  font-family: 'Aboreto', serif !important;
}

/* Arabic script must not be letter-spaced or uppercased. */
html[lang='ar'] .eyebrow,
html[lang='ar'] .btn,
html[lang='ar'] .footer-col h5,
html[lang='ar'] .quote-band cite,
html[lang='ar'] .site-nav a,
html[lang='ar'] .lang-toggle,
html[lang='ar'] .lang-item {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[lang='ar'] .manifesto-lead,
html[lang='ar'] .feature-copy p,
html[lang='ar'] .ingredient p,
html[lang='ar'] .step p {
  line-height: 1.85;
}

/* =========================================================================
   Manifesto
   ========================================================================= */
.manifesto {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(7rem, 16vh, 13rem) clamp(1.5rem, 6vw, 4rem) clamp(5rem, 10vh, 8rem);
  text-align: center;
}

.manifesto-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.1;
  margin: 0 0 2rem;
  letter-spacing: 0.005em;
}

.manifesto-title em {
  font-style: italic;
  color: var(--amber);
}

.manifesto-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================================
   Editorial feature rows (image + copy)
   ========================================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.feature.flip .feature-media { order: 2; }

.feature-media {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -45px rgba(43, 32, 24, 0.45);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.4rem;
}

.feature-copy p {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  max-width: 38ch;
}

.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  color: var(--ink);
}

.feature-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-2px);
}

/* =========================================================================
   Ingredients band
   ========================================================================= */
.ingredients {
  background: var(--sand-band);
  padding: clamp(5rem, 11vh, 9rem) clamp(1.5rem, 5vw, 4rem);
}

.ingredients-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.ingredients-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(3rem, 6vh, 4.5rem);
}

.ingredients-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.ingredient {
  background: var(--cream-2);
  border-radius: 4px;
  padding: 2.4rem 1.8rem;
  border: 1px solid rgba(43, 32, 24, 0.06);
}

.ingredient .num {
  font-family: 'Aboreto', serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  display: block;
  margin-bottom: 1.6rem;
}

.ingredient h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 0.7rem;
  letter-spacing: 0.01em;
}

.ingredient p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* =========================================================================
   The Ritual — three steps
   ========================================================================= */
.ritual {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(5rem, 11vh, 9rem) clamp(1.5rem, 5vw, 4rem);
}

.ritual-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.ritual-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
  max-width: 14ch;
}

.ritual-head p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.step {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.step .step-num {
  font-family: 'Aboreto', serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--amber);
  display: block;
  margin-bottom: 1.4rem;
}

.step h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
}

.step p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================================
   Shop / product card
   ========================================================================= */
.shop {
  background: var(--cream-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.shop-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: 1320px;
  margin: 0 auto;
}

/* The media fills its column by height only. Using aspect-ratio here would let
   a taller (translated) copy column stretch the square wider than its column,
   spilling the image over the text — so the image is absolutely positioned. */
.shop-media {
  position: relative;
  min-height: 520px;
  background: #ffffff;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
}

.shop-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.shop-copy {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.8rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-copy h2 {
  font-family: 'Aboreto', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  margin: 0.4rem 0 0.6rem;
}

.shop-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
}

.shop-price {
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}

.shop-price .unit {
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.shop-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
  max-width: 44ch;
}

.sizes {
  display: flex;
  gap: 0.8rem;
  margin: 0 0 2.2rem;
}

.size-opt {
  flex: none;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.size-opt:hover { border-color: var(--amber); }

.size-opt.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.1rem 2.4rem;
  border: none;
  border-radius: 40px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn:hover { background: var(--amber); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--full { width: 100%; }

.shop-meta {
  margin: 1.6rem 0 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* =========================================================================
   Testimonial / dark band
   ========================================================================= */
.quote-band {
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  padding: clamp(6rem, 14vh, 11rem) clamp(1.5rem, 6vw, 4rem);
}

.quote-band blockquote {
  max-width: 920px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.3;
}

.quote-band .stars {
  letter-spacing: 0.5em;
  color: var(--amber-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.quote-band cite {
  display: block;
  margin-top: 2.4rem;
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 241, 231, 0.6);
}

/* =========================================================================
   Newsletter
   ========================================================================= */
.newsletter {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(5rem, 11vh, 9rem) clamp(1.5rem, 6vw, 4rem);
}

.newsletter h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.newsletter p {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
}

.signup {
  display: flex;
  gap: 0.7rem;
  max-width: 480px;
  margin: 0 auto;
}

.signup input {
  flex: 1;
  padding: 1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--cream-2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--ink);
}

.signup input:focus {
  outline: none;
  border-color: var(--amber);
}

.signup .btn { padding-left: 1.8rem; padding-right: 1.8rem; }

.signup-note {
  min-height: 1.4em;
  margin: 1.1rem 0 0;
  font-size: 1rem;
  color: var(--amber);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--sand-band);
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem) 2.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  justify-content: space-between;
  max-width: 1260px;
  margin: 0 auto 3rem;
}

.footer-brand .site-brand {
  height: 44px;
  margin-bottom: 1rem;
}

.footer-brand .brand-logo {
  height: 165px;
}

.footer-brand p {
  max-width: 30ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h5 {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--amber);
  margin: 0 0 1.2rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.7rem; }

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 1.08rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1260px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.98rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.footer-credit {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.footer-credit a {
  font-family: 'Aboreto', serif;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.12em;
  margin-left: 0.45em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-credit a:hover {
  color: var(--espresso);
  border-bottom-color: var(--amber);
}

/* =========================================================================
   Hero scroll cue
   ========================================================================= */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 4vh, 3rem);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-hint.is-ready { opacity: 0.82; pointer-events: auto; }
.scroll-hint.is-ready:hover { opacity: 1; }
.scroll-hint.is-hidden { opacity: 0 !important; pointer-events: none; }

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: #fff;
  animation: scroll-wheel 1.7s ease-in-out infinite;
}

.scroll-arrow {
  width: 16px;
  height: 10px;
  animation: scroll-bob 1.7s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 0; transform: translateY(-4px); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(8px); }
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-wheel, .scroll-arrow { animation: none; }
}

/* =========================================================================
   Floating WhatsApp button
   ========================================================================= */
.wa-fab {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.9rem);
  right: clamp(1rem, 3vw, 1.9rem);
  z-index: 90;
  width: 58px;
  height: 58px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent; /* no grey/green tap box on mobile */
}

.wa-ico {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease;
}

.wa-ico svg { width: 32px; height: 32px; display: block; }

.wa-fab:hover .wa-ico { transform: scale(1.06); }

/* Absolutely positioned so it never expands the button's touch area. */
.wa-tip {
  position: absolute;
  right: calc(100% + 0.7rem);
  top: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border-radius: 30px;
  box-shadow: 0 10px 22px -12px rgba(43, 32, 24, 0.55);
  opacity: 0;
  transform: translateY(-50%) translateX(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wa-fab:hover .wa-tip,
.wa-fab:focus-visible .wa-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* RTL: anchor to the left and flip the tooltip to the other side. */
[dir='rtl'] .wa-fab {
  right: auto;
  left: clamp(1rem, 3vw, 1.9rem);
}

[dir='rtl'] .wa-tip {
  right: auto;
  left: calc(100% + 0.7rem);
  transform: translateY(-50%) translateX(-10px);
}

[dir='rtl'] .wa-fab:hover .wa-tip {
  transform: translateY(-50%) translateX(0);
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-header { transition: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .site-nav { display: none; }

  .feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature.flip .feature-media { order: 0; }
  .feature-copy p { max-width: none; }

  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 1.8rem 0; }

  .shop-inner { grid-template-columns: 1fr; }
  .shop-media { border-right: none; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 540px) {
  .ingredient-grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .signup input, .signup .btn { width: 100%; }
}
