/* ---------------------------------------------------------------
   Irrawaddy Tea Emporium
   Palette drawn from the hero still life: lacquer-green tea box,
   brass embossing, brewed amber, charcoal leaf, porcelain cream.
--------------------------------------------------------------- */

:root {
  --pine: #16261d;          /* near-black lacquer green */
  --pine-soft: #1f3a2a;     /* deep jade green */
  --jade: #3d7a58;          /* leaf jade accent */
  --gold: #c2a04f;          /* brass embossing */
  --gold-soft: #d8bc78;
  --amber: #b05a1e;         /* brewed tea */
  --cream: #f6f1e5;         /* porcelain warm cream */
  --cream-deep: #ece3d0;
  --porcelain: #fdfaf3;
  --ink: #21261f;           /* body text */
  --ink-soft: #5c6156;
  --line: #ddd2ba;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--pine);
  line-height: 1.12;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5em; }

h2 em, h1 em { font-style: italic; color: var(--amber); }

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

a { color: var(--amber); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Eyebrow labels — "01 · Origin" etc. */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin-left: 14px;
  vertical-align: middle;
  opacity: 0.6;
}

/* -------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself
   would turn it into the containing block for the fixed mobile overlay. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 241, 229, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header.scrolled { box-shadow: 0 6px 24px rgba(22, 38, 29, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; text-decoration: none; }

.logo-lockup { height: 52px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a.nav-cta {
  border: 1px solid var(--pine);
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--pine);
  transition: background 0.3s ease, color 0.3s ease;
}

.main-nav a.nav-cta::after { display: none; }

.main-nav a.nav-cta:hover {
  background: var(--pine);
  color: var(--cream);
}

/* Hamburger — two bars folding into an X */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--pine);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }

.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* -------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 26, 20, 0.82) 0%, rgba(15, 26, 20, 0.55) 46%, rgba(15, 26, 20, 0.22) 100%);
}

.hero-content {
  position: relative;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 40px) 140px;
}

.hero .eyebrow { color: var(--gold-soft); }

.hero h1 {
  color: var(--porcelain);
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 480;
  max-width: 12ch;
  margin: 0 0 26px;
}

.hero h1 em { color: var(--gold-soft); }

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: rgba(246, 241, 229, 0.88);
  margin: 0 0 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(246, 241, 229, 0.65);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--gold-soft);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}

@keyframes cue-drop {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* -------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--pine);
}

.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost {
  border: 1px solid rgba(246, 241, 229, 0.55);
  color: var(--cream);
}

.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.btn-pine {
  background: var(--pine);
  color: var(--cream);
}

.btn-pine:hover { background: var(--pine-soft); }

/* -------------------------------------------------- Sections */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section.alt { background: var(--cream-deep); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 { margin-bottom: 0; }

.section-head .lede {
  color: var(--ink-soft);
  margin: 0;
  padding-bottom: 6px;
}

/* Asymmetric feature rows — 5/7 split, offset framed image */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.feature.reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature.reverse .feature-media { order: -1; }

.feature-text p { color: var(--ink-soft); max-width: 52ch; }

.feature-media { position: relative; }

.feature-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 2px;
}

/* Offset brass frame behind the image */
.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transform: translate(18px, 18px);
}

.feature.reverse .feature-media::before { transform: translate(-18px, 18px); }

blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--pine-soft);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin: 32px 0 0;
  line-height: 1.5;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* -------------------------------------------------- Tea collection */
.tea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.tea-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s ease;
}

.tea-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 48px -18px rgba(22, 38, 29, 0.28);
}

.tea-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.tea-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.tea-card:hover .tea-card-media img { transform: scale(1.06); }

.tea-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: rgba(22, 38, 29, 0.82);
  color: var(--gold-soft);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.tea-card-body { padding: 22px 22px 0; flex: 1; }

.tea-card-body h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  transition: color 0.3s ease;
}

.tea-card:hover .tea-card-body h3 { color: var(--amber); }

.tea-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tea-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 22px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.tea-card-cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

.tea-card-cta .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.tea-card:hover .tea-card-cta .arrow { transform: translateX(5px); }

/* -------------------------------------------------- Partners marquee */
.partners-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.partners-head .eyebrow::after { display: none; }
.partners-head .lede { color: var(--ink-soft); max-width: 54ch; margin: 0 auto; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.partner {
  margin: 0;
  width: clamp(180px, 22vw, 240px);
  flex-shrink: 0;
  text-align: center;
}

.partner img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.partner figcaption {
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Reduced motion: stop the marquee, let it wrap */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [data-marquee-clone] { display: none; }
  .scroll-cue span { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: none !important; }
}

/* -------------------------------------------------- CTA band */
.section.cta {
  background:
    radial-gradient(120% 160% at 85% 0%, rgba(194, 160, 79, 0.16) 0%, transparent 55%),
    var(--pine);
  color: var(--cream);
  text-align: center;
}

.section.cta .eyebrow { color: var(--gold-soft); }
.section.cta .eyebrow::after { display: none; }
.section.cta h2 { color: var(--porcelain); }
.section.cta p { color: rgba(246, 241, 229, 0.8); max-width: 46ch; margin: 0 auto 34px; }

/* -------------------------------------------------- Product page */
.breadcrumb {
  padding: 26px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { color: var(--gold); margin: 0 10px; }
.breadcrumb .current { color: var(--pine); }

.product-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.product-media { position: relative; }

.product-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.product-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transform: translate(18px, 18px);
}

.product-info h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin: 0 0 18px;
}

.product-info .lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }

.details {
  margin: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.details p {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
}

.details strong {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
}

.product-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.back-link:hover { color: var(--amber); }

/* -------------------------------------------------- Contact page */
.contact-info {
  text-align: center;
  padding: clamp(90px, 12vw, 150px) 0;
}

.contact-info h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 12px; }
.contact-info > .container > p { color: var(--ink-soft); }

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 44px;
}

.contact-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 46px;
  min-width: 260px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -18px rgba(22, 38, 29, 0.25);
}

.contact-card .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-card a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--pine);
  text-decoration: none;
}

.contact-card a:hover { color: var(--amber); }

/* -------------------------------------------------- Footer */
.site-footer {
  background: var(--pine);
  color: rgba(246, 241, 229, 0.72);
  padding: clamp(56px, 7vw, 88px) 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.footer-logo { width: min(220px, 60%); height: auto; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(246, 241, 229, 0.72);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* -------------------------------------------------- Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* Stagger cards inside a revealed grid */
.tea-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.tea-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.tea-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.tea-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* -------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .feature,
  .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }

  .section-head { grid-template-columns: 1fr; gap: 12px; }

  .product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--pine);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-open .main-nav { opacity: 1; visibility: visible; }

  .main-nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .main-nav a {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  }

  .main-nav a::after { background: var(--gold-soft); }

  .nav-open .main-nav a { opacity: 1; transform: none; }

  .nav-open .main-nav li:nth-child(1) a { transition-delay: 0.08s; }
  .nav-open .main-nav li:nth-child(2) a { transition-delay: 0.14s; }
  .nav-open .main-nav li:nth-child(3) a { transition-delay: 0.20s; }
  .nav-open .main-nav li:nth-child(4) a { transition-delay: 0.26s; }
  .nav-open .main-nav li:nth-child(5) a { transition-delay: 0.32s; }

  .main-nav a.nav-cta {
    border-color: var(--gold);
    color: var(--gold-soft);
  }

  .main-nav a.nav-cta:hover { background: var(--gold); color: var(--pine); }

  /* Nav toggle bars turn cream over the green overlay */
  .nav-open .nav-toggle span { background: var(--cream); }

  .hero { min-height: 82vh; }
  .hero-content { padding: 90px clamp(20px, 4vw, 40px) 110px; }
  .hero-actions .btn { padding: 13px 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .tea-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .details p { flex-direction: column; gap: 2px; }
  .details strong { align-self: flex-start; }
}

@media (max-width: 480px) {
  .tea-grid { grid-template-columns: 1fr; }
  .hero-sub { font-size: 0.95rem; }
  .contact-card { width: 100%; }
}
