/* ═══════════════════════════════════════════════════════════
   WINETOBE — warm cellar editorial
   Handcrafted CSS. No framework, no CDN, no build step.
   ═══════════════════════════════════════════════════════════ */

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --ink:        #170a0e;   /* page base — warm wine-black */
  --panel:      #21101a;   /* raised panels — deep burgundy */
  --panel-2:    #2b1322;   /* elevated / hover */
  --line:       rgba(244, 236, 227, 0.13);
  --line-soft:  rgba(244, 236, 227, 0.07);

  --cream:      #f4ece3;   /* primary text */
  --taupe:      #c9b4a7;   /* secondary text */
  --taupe-dim:  #9a8478;   /* tertiary / captions */

  --wine:       #c02a44;   /* claret — primary accent */
  --wine-bright:#e0245f;   /* logo magenta — sparing highlight */
  --wine-deep:  #6e1f2e;   /* oxblood — fills */
  --plum:       #9a3a86;   /* logo purple — the education arm */
  --gold:       #d8a25a;   /* warm candle highlight, used rarely */

  --maxw: 1160px;
  --gutter: clamp(22px, 5vw, 56px);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset / base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm candle-light bloom — the cellar glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(64vw 54vh at 82% -10%, rgba(192, 42, 68, 0.20), transparent 68%),
    radial-gradient(52vw 52vh at 6% 6%,    rgba(154, 58, 134, 0.12), transparent 66%),
    radial-gradient(60vw 60vh at 50% 116%,  rgba(110, 31, 46, 0.28), transparent 70%);
}
/* Fine grain — tactile, hand-made feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--wine); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--wine-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Typography helpers ──────────────────────────────────── */
.display {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--wine-bright);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ─── Reveal on scroll ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(23, 10, 14, 0.78);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--taupe);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__cta {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--cream);
  padding: 9px 22px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__cta:hover { background: var(--wine); transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 26px;
  background: rgba(23, 10, 14, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--taupe);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile a:last-child { border-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  width: 100%;
}
.hero__eyebrow { margin-bottom: 30px; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 540;
  font-size: clamp(2.9rem, 7.4vw, 5.8rem);
  line-height: 0.99;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--wine-bright);
}
.hero__lede {
  margin-top: 32px;
  max-width: 46ch;
  color: var(--taupe);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}
.hero__actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn {
  font-family: var(--f-display);
  font-size: 1.02rem;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn--solid { background: var(--wine); color: var(--cream); }
.btn--solid:hover { background: var(--wine-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--wine); color: var(--wine-bright); transform: translateY(-2px); }
.btn--text {
  font-style: italic;
  color: var(--taupe);
  padding: 13px 4px;
}
.btn--text:hover { color: var(--wine-bright); }

/* Hero provenance card — a tasting/cellar note, not a dashboard */
.cellar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(165deg, rgba(43, 19, 34, 0.9), rgba(23, 10, 14, 0.7));
  padding: 38px 36px 34px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.cellar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--wine-bright), var(--wine-deep));
}
.cellar__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe-dim);
}
.cellar__route {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
  margin: 16px 0 18px;
}
.cellar__route span { font-style: italic; font-weight: 400; color: var(--wine-bright); }
.cellar__note {
  color: var(--taupe);
  font-size: 0.98rem;
  line-height: 1.7;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.cellar__list { list-style: none; display: grid; gap: 14px; margin: 22px 0 26px; }
.cellar__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--cream);
}
.cellar__list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wine);
  flex: 0 0 auto;
}
.cellar__link {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--wine-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s var(--ease);
}
.cellar__link:hover { gap: 14px; }

/* ═══════════════════════════════════════════════════════════
   SECTION SHELL
   ═══════════════════════════════════════════════════════════ */
.section { padding: clamp(80px, 12vw, 144px) 0; position: relative; }
.section--panel { background: linear-gradient(180deg, rgba(43, 19, 34, 0.45), rgba(23, 10, 14, 0)); }

.s-head { max-width: 660px; margin-bottom: 60px; }
.s-head.center { margin-inline: auto; text-align: center; }
.s-head h2 {
  font-family: var(--f-display);
  font-weight: 540;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  margin-top: 18px;
  letter-spacing: -0.018em;
}
.s-head h2 em { font-style: italic; font-weight: 400; color: var(--wine-bright); }
.s-head p { margin-top: 20px; color: var(--taupe); font-size: 1.06rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   THE JOURNEY — staged, as elegant editorial (not gauges)
   ═══════════════════════════════════════════════════════════ */
.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stage {
  padding: 8px 30px 8px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  position: relative;
}
.stage:first-child { border-left: 0; padding-left: 0; }
.stage__no {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--wine);
  line-height: 1;
}
.stage__where {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-dim);
  margin: 16px 0 12px;
}
.stage h3 {
  font-family: var(--f-display);
  font-weight: 540;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.stage p { color: var(--taupe); font-size: 0.94rem; line-height: 1.65; }
.stage__temp {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--gold);
}
.chain__note {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--cream);
  max-width: 40ch;
}
.chain__note b { font-style: italic; font-weight: 400; color: var(--wine-bright); }

/* ═══════════════════════════════════════════════════════════
   ABOUT — two arms
   ═══════════════════════════════════════════════════════════ */
.arms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.arm {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 38px 42px;
  background: linear-gradient(180deg, rgba(43, 19, 34, 0.4), rgba(23, 10, 14, 0.15));
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.arm:hover { border-color: rgba(192, 42, 68, 0.4); transform: translateY(-3px); }
.arm--edu:hover { border-color: rgba(154, 58, 134, 0.45); }
.arm__tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine-bright);
  margin-bottom: 24px;
}
.arm--edu .arm__tag { color: var(--plum); }
.arm h3 {
  font-family: var(--f-display);
  font-weight: 540;
  font-size: 1.9rem;
  margin-bottom: 18px;
}
.arm p { color: var(--taupe); font-size: 0.98rem; line-height: 1.7; margin-bottom: 14px; }
.arm__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-size: 0.76rem;
  color: var(--taupe);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}
.arm__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--wine-bright);
  transition: gap 0.25s var(--ease);
}
.arm--edu .arm__link { color: var(--plum); }
.arm__link:hover { gap: 14px; }

/* ─── Stats strip ─────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 30px;
}
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat__n {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--cream);
  letter-spacing: -0.015em;
}
.stat__l {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe-dim);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — brand marquee
   ═══════════════════════════════════════════════════════════ */
.marquees { display: flex; flex-direction: column; gap: 20px; }
.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 20px; }
.marquee--l .marquee__track { animation: slide-l 46s linear infinite; }
.marquee--r .marquee__track { animation: slide-r 54s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide-l { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@keyframes slide-r { from { transform: translateX(calc(-50% - 10px)); } to { transform: translateX(0); } }

.brand {
  flex: 0 0 auto;
  width: 188px;
  height: 120px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.brand:hover { border-color: rgba(192, 42, 68, 0.4); background: rgba(192, 42, 68, 0.06); }
.brand img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.75) contrast(1.05);
  opacity: 0.62;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.brand:hover img { filter: none; opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.reach { display: grid; gap: 18px; align-content: start; }
.reach__card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(43, 19, 34, 0.35);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.reach__card:hover { transform: translateY(-2px); }
.reach__card--mail:hover { border-color: rgba(192, 42, 68, 0.5); background: rgba(192, 42, 68, 0.07); }
.reach__card--wa:hover   { border-color: rgba(37, 211, 102, 0.5); background: rgba(37, 211, 102, 0.06); }
.reach__icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.reach__icon svg { width: 20px; height: 20px; }
.reach__card--mail .reach__icon { color: var(--wine-bright); border-color: rgba(192, 42, 68, 0.35); }
.reach__card--wa   .reach__icon { color: #25d366; border-color: rgba(37, 211, 102, 0.35); }
.reach__k {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-dim);
}
.reach__v { font-family: var(--f-display); font-size: 1.12rem; color: var(--cream); margin-top: 4px; }
.reach__arrow { margin-left: auto; color: var(--taupe-dim); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.reach__card:hover .reach__arrow { transform: translateX(4px); color: var(--cream); }

.offices { display: grid; gap: 18px; align-content: start; }
.office {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 30px;
  background: linear-gradient(180deg, rgba(43, 19, 34, 0.35), transparent);
}
.office__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.office__pin {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(192, 42, 68, 0.12);
  color: var(--wine-bright);
}
.office__pin svg { width: 17px; height: 17px; }
.office h4 { font-family: var(--f-display); font-weight: 540; font-size: 1.3rem; }
.office__co { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--taupe-dim); text-transform: uppercase; }
.office address { font-style: normal; color: var(--taupe); font-size: 0.95rem; line-height: 1.75; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}
.footer__logo { height: 46px; width: auto; margin-bottom: 22px; }
.footer__blurb { color: var(--taupe); font-size: 0.96rem; max-width: 34ch; line-height: 1.7; }
.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--taupe);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover { color: var(--wine-bright); border-color: var(--wine); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }
.footer h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe-dim);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: grid; gap: 13px; }
.footer ul a { color: var(--taupe); font-size: 0.94rem; transition: color 0.25s var(--ease); }
.footer ul a:hover { color: var(--cream); }
.footer__bar {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--taupe-dim);
}
.footer__bar em { font-family: var(--f-display); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOAT
   ═══════════════════════════════════════════════════════════ */
.wa {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #1eae54;
  color: #fff;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.96rem;
  box-shadow: 0 16px 40px -10px rgba(30, 174, 84, 0.55);
  transition: transform 0.25s var(--ease), opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.wa svg { width: 21px; height: 21px; }
.wa:hover { transform: translateY(-3px) scale(1.03); }
.wa.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cellar { max-width: 480px; }
  .chain { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .stage { border-left: 0; padding-left: 0; }
  .stage { border-top: 1px solid var(--line); padding-top: 24px; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .arms { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .chain { grid-template-columns: 1fr; gap: 28px; }
  .wa__label { display: none; }
  .brand { width: 150px; height: 104px; }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
