/* ==========================================================================
   Alpina Eucaliptos — home
   ========================================================================== */

/* ---------- Fontes (auto-hospedadas) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f3f1ea;
  --paper: #fbfaf6;
  --ink: #142114;
  --ink-2: #3b463b;
  --muted: #696e67;
  --line: rgba(20, 33, 20, 0.12);
  --forest-900: #1a3a1a;
  --forest-700: #2d5e2d;
  --dark: #122812;
  --dark-line: rgba(243, 241, 234, 0.14);
  --brand: #1d8a4c;
  --wa: #1fae55;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --frame: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea { font: inherit; color: inherit; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }

::selection { background: rgba(45, 94, 45, 0.2); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--forest-700);
  outline-offset: 3px;
}

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

[id] { scroll-margin-top: 96px; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
/* <picture> só troca o formato da foto (WebP com JPG de reserva); não interfere no layout */
picture { display: contents; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { background: var(--forest-900); color: #fff; }
.btn--dark:hover { background: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline { border: 1px solid var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 20px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}
.arrow-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
a:hover .arrow-link svg, .arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Tipografia de seção ---------- */
.eyebrow { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.eyebrow--light { color: rgba(255, 255, 255, 0.7); }

.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h2 .mute { color: #7a7f78; }
.h2--light { color: #fff; }

.section { padding-block: clamp(80px, 11vw, 140px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head__text { color: var(--ink-2); font-size: 17px; max-width: 440px; justify-self: end; }
.section-head__text p + .arrow-link { margin-top: 20px; }

.section-bar {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 14.5px; color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: var(--frame); }

.hero__frame {
  position: relative;
  height: calc(100svh - var(--frame) * 2);
  min-height: 620px;
  max-height: 1100px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--forest-900);
  color: #fff;
  touch-action: pan-y;   /* o arraste lateral fica com o carrossel, o vertical rola a página */
}

.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide img { -webkit-user-drag: none; user-select: none; }
.hero__slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.98);
  transform: scale(1.06);
  transition: transform 8s linear;
}
.hero__slide.is-active img { transform: scale(1); }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 14, 6, 0.5) 0%, rgba(6, 14, 6, 0.18) 14%, rgba(6, 14, 6, 0) 28%),
    linear-gradient(to top, rgba(6, 14, 6, 0.8) 0%, rgba(6, 14, 6, 0.45) 32%, rgba(6, 14, 6, 0) 64%);
  pointer-events: none;
}

/* ---------- Navegação ---------- */
.site-nav {
  position: absolute;
  top: 20px; left: 24px; right: 24px;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav__logo { display: block; flex-shrink: 0; }
.site-nav__logo img { height: 38px; width: auto; filter: brightness(0) invert(1); transition: filter .3s ease; }

.site-nav__menu { display: flex; align-items: center; gap: 6px; }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }

.nav-item { position: relative; }

.nav-pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.nav-pill:hover, .nav-item:focus-within > .nav-pill { background: rgba(255, 255, 255, 0.3); }
.nav-pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }

.nav-cta {
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: #fff; color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.nav-cta:hover { background: var(--paper); }

.nav-toggle { display: none; gap: 8px; }
.nav-toggle svg { width: 16px; height: 16px; stroke-width: 2; opacity: 1; }

.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  padding-top: 8px;
  min-width: 220px;
  visibility: hidden; opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-dropdown__panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(10, 25, 10, 0.14);
  padding: 6px;
  max-height: 70vh; overflow: auto;
}
.nav-dropdown__panel a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 15px; color: var(--ink);
  white-space: nowrap;
}
.nav-dropdown__panel a:hover { background: rgba(45, 94, 45, 0.08); }

/* Barra fixa depois do hero */
.site-nav.is-stuck {
  position: fixed;
  top: 10px; left: 10px; right: 10px;
  padding: 8px 10px 8px 18px;
  border-radius: 18px;
  background: rgba(251, 250, 246, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(20, 33, 20, 0.06), 0 12px 30px rgba(10, 25, 10, 0.08);
  animation: navIn .45s var(--ease) both;
}
.site-nav.is-stuck .site-nav__logo img { filter: none; height: 32px; }
.site-nav.is-stuck .nav-pill { color: var(--ink); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-nav.is-stuck .nav-pill:hover,
.site-nav.is-stuck .nav-item:focus-within > .nav-pill { background: rgba(20, 33, 20, 0.06); }
.site-nav.is-stuck .nav-toggle { background: rgba(20, 33, 20, 0.06); }
.site-nav.is-stuck .nav-cta { background: var(--forest-900); color: #fff; }
.site-nav.is-stuck .nav-cta:hover { background: var(--ink); }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Conteúdo do hero ---------- */
.hero__content {
  position: absolute;
  left: clamp(20px, 3.4vw, 48px);
  right: 160px;
  bottom: clamp(24px, 3.4vw, 48px);
  z-index: 2;
}
.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}
.hero__meta {
  display: grid;
  grid-template-columns: 180px minmax(0, 360px) auto;
  align-items: start;
  gap: 16px 40px;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.hero__tag { color: #fff; }
.hero__caption { transition: opacity .4s ease; }
.hero__caption.is-swapping { opacity: 0; }

.hero__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: #fff;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  justify-self: start;
}
.hero__link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.hero__link:hover svg { transform: translateX(3px); }

/* Contador 01 / 02 / 03 */
.hero__counter {
  position: absolute;
  right: clamp(20px, 3.4vw, 48px);
  bottom: clamp(24px, 3.4vw, 48px);
  z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.hero__counter button {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
  transition: color .3s ease, font-size .3s ease;
}
.hero__counter button::after {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
  transition: width .4s var(--ease);
}
.hero__counter button:hover { color: rgba(255, 255, 255, 0.9); }
.hero__counter button.is-active { color: #fff; font-size: 17px; }
.hero__counter button.is-active::after { width: 32px; }

/* ==========================================================================
   MENU MOBILE
   ========================================================================== */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 80;
  width: min(360px, 100%);
  display: flex; flex-direction: column;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.mobile-menu.open { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18); }
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__head img { height: 26px; width: auto; }
.mobile-menu__close { width: 40px; height: 40px; border-radius: 999px; background: rgba(20, 33, 20, 0.06); display: grid; place-items: center; }
.mobile-menu__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-menu__body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px; }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  font-family: var(--font-display); font-size: 20px;
  cursor: pointer; list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-family: var(--font-body); font-size: 18px; color: var(--muted); transition: transform .3s ease; }
.mobile-menu details[open] summary::after { transform: rotate(45deg); }
.mobile-menu details > div { padding: 0 0 14px; display: grid; gap: 2px; }
.mobile-menu details > div a { padding: 7px 0; font-size: 16px; color: var(--ink-2); }
.mobile-menu__single {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display); font-size: 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__foot { padding: 16px 20px 24px; }
.menu-overlay { position: fixed; inset: 0; z-index: 75; background: rgba(10, 20, 10, 0.45); }

/* ==========================================================================
   FAIXA ROLANDO
   ========================================================================== */
.marquee {
  overflow: hidden;
  margin: 0 var(--frame);
  border-radius: var(--r-md);
  background: var(--forest-900);
  padding: 16px 0;
}
.marquee__track {
  display: flex; gap: 40px;
  width: max-content;
  white-space: nowrap;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(243, 241, 234, 0.72);
  animation: marquee 40s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.manifesto {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 26em;
  margin: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px) clamp(0px, 12vw, 180px);
  text-indent: clamp(0px, 8vw, 120px);
}
.js .manifesto .w { color: #b9bcb5; transition: color .35s ease; }
.js .manifesto .w.is-on { color: var(--ink); }

.about__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: rgba(251, 250, 246, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.about__badge strong { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.about__badge span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.facts dd { font-size: 15.5px; color: var(--ink-2); }

.about { padding-bottom: 0; }
.about__note {
  margin-top: clamp(40px, 5vw, 56px);
  max-width: 600px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ==========================================================================
   ESPECIALIDADES
   ========================================================================== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.spec-card { display: flex; flex-direction: column; }
.spec-card__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 22px; }
.spec-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.spec-card:hover .spec-card__img img { transform: scale(1.04); }
.spec-card__num { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.spec-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.spec-card p { font-size: 16.5px; color: var(--ink-2); margin-bottom: 20px; max-width: 34ch; }
.spec-card .arrow-link { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   PROCESSO (abas)
   ========================================================================== */
.process { padding-top: 0; }
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.process__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}
.process__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.process__media img.is-active { opacity: 1; }

.tabs { display: flex; flex-direction: column; margin-bottom: 28px; }
.tabs [role="tab"] {
  text-align: left;
  padding: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color .3s ease, border-color .3s ease;
}
.tabs [role="tab"]:hover { color: var(--ink-2); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-panels { min-height: 5.2em; margin-bottom: 24px; }
.tab-panels p { font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }

/* ==========================================================================
   CATÁLOGO (escuro)
   ========================================================================== */
.section--dark {
  margin: 0 var(--frame);
  border-radius: var(--r-lg);
  background: var(--dark);
  color: #f3f1ea;
}
.section--dark .h2 { color: #f3f1ea; }
.section--dark .h2 .mute { color: rgba(243, 241, 234, 0.45); }
.section--dark .eyebrow { color: rgba(243, 241, 234, 0.55); }
.section--dark .section-head__text { color: rgba(243, 241, 234, 0.7); }

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--dark-line);
}
.catalog li { border-bottom: 1px solid var(--dark-line); }
.catalog a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  transition: padding .4s var(--ease), color .3s ease;
}
.catalog__num { font-size: 13px; color: rgba(243, 241, 234, 0.55); font-variant-numeric: tabular-nums; }
.catalog__name { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; }
.catalog__desc { font-size: 14.5px; color: rgba(243, 241, 234, 0.55); text-align: right; }
.catalog a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: opacity .3s ease, transform .4s var(--ease); }
.catalog a:hover { padding-left: 8px; }
.catalog a:hover svg { opacity: 1; transform: translate(2px, -2px); }

.section-cta { margin-top: clamp(40px, 5vw, 56px); text-align: center; }

/* ==========================================================================
   GALERIA
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 20vw, 280px);
  gap: clamp(10px, 1.2vw, 16px);
}
.gallery__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}
.gallery__item--big { grid-column: span 2; grid-row: span 2; border-radius: var(--r-lg); }
/* segundo bloco espelhado: foto grande à direita */
.gallery__item--right { grid-column: 3 / span 2; grid-row: 3 / span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item span {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 14.5px; font-weight: 500; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 50% 0 0 0;
  background: linear-gradient(to top, rgba(6, 14, 6, 0.45), transparent);
  pointer-events: none;
}
.gallery__item span { z-index: 1; }

/* ==========================================================================
   MEIO AMBIENTE
   ========================================================================== */
.feature { padding: 0 var(--frame); }
.feature__frame {
  position: relative;
  min-height: min(92svh, 820px);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--forest-900);
}
.feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 14, 6, 0.82) 0%, rgba(6, 14, 6, 0.45) 45%, rgba(6, 14, 6, 0.15) 100%);
}
.feature__content {
  position: relative; z-index: 1;
  width: 100%;
  padding: clamp(24px, 4vw, 56px);
}
.feature__text { max-width: 520px; margin-top: 24px; color: rgba(255, 255, 255, 0.8); }
.feature__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  margin: 40px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.feature__stats > div { padding-top: 20px; }
.feature__stats > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.feature__stats dt { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.feature__stats dd { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.contact__lead { margin-top: 24px; color: var(--ink-2); max-width: 400px; }
.contact__lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.stores { margin-top: 40px; border-top: 1px solid var(--line); }
.stores li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  row-gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stores h3 { font-size: 20px; letter-spacing: -0.02em; }
.stores h3 a { font-size: inherit; color: var(--ink); }
.stores address { grid-column: 1 / -1; grid-row: 2; font-style: normal; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.footer h3 a { color: inherit; }
.stores a { font-size: 15.5px; color: var(--ink-2); }
.stores a:hover { color: var(--ink); }
/* WhatsApp único da Alpina (o atendimento distribui entre as lojas) */
.contact__wa {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px; padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s ease, transform .35s var(--ease);
}
.contact__wa:hover { border-color: var(--wa); }
.contact__wa-ico { width: 40px; height: 40px; padding: 9px; border-radius: 999px; background: var(--wa); color: #fff; }
.contact__wa span { display: grid; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.contact__wa strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.contact__small { margin-top: 24px; font-size: 15px; color: var(--muted); }
.contact__small a { color: var(--ink-2); border-bottom: 1px solid var(--line); }

.contact__stage {
  position: relative;
  min-height: 640px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.form-card {
  position: relative;
  width: min(100%, 440px);
  padding: 28px;
  border-radius: 20px;
  background: rgba(251, 250, 246, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(6, 14, 6, 0.28);
  display: grid; gap: 10px;
}
.form-card h3 { font-size: 24px; letter-spacing: -0.03em; text-align: center; }
.form-card__hint { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 6px; }
.form-card__hint--foot { margin: 4px 0 0; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.form-card input, .form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-card textarea { resize: vertical; min-height: 92px; }
.form-card input::placeholder, .form-card textarea::placeholder { color: #6b7069; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(45, 94, 45, 0.14); }
.form-actions { display: grid; margin-top: 6px; }
.form-actions .btn { min-height: 50px; padding: 0 24px; font-size: 15px; }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  margin: 0 var(--frame) var(--frame);
  border-radius: var(--r-lg);
  background: var(--dark);
  color: rgba(243, 241, 234, 0.65);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  font-size: 15.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-line);
}
.footer__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 20px; }
.footer__brand p { max-width: 320px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.footer__social a { color: #f3f1ea; border-bottom: 1px solid var(--dark-line); padding-bottom: 2px; }
.footer h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: #f3f1ea; letter-spacing: 0; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color .2s ease; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px;
  font-size: 14px;
  color: rgba(243, 241, 234, 0.6);
}

/* ==========================================================================
   VÍDEOS (home e páginas internas)
   ========================================================================== */
.videos__grid { display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 32px); align-items: start; }
.videos__col { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.video { margin: 0; }
.video__box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--forest-900); }
.video--v .video__box { aspect-ratio: 540 / 672; background: #000; }
.video__box video, .video__box iframe, .video__yt, .video__yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__box video { object-fit: contain; }
.video__yt img { object-fit: cover; transition: transform 1s var(--ease); }
.video__yt:hover img { transform: scale(1.03); }
.video__play {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 12px 30px rgba(6, 14, 6, 0.3);
  transition: transform .35s var(--ease);
}
.video__play svg { width: 28px; height: 28px; fill: var(--forest-900); margin-left: 4px; }
.video__yt:hover .video__play, .video__yt:focus-visible .video__play { transform: scale(1.08); }
.video__yt:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video figcaption { margin-top: 14px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.video figcaption strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }

/* ==========================================================================
   FLUTUANTES: WhatsApp, música, cookies
   ========================================================================== */
.wa-fab, .music-fab {
  position: fixed; bottom: 20px; z-index: 60;
  width: 52px; height: 52px;
  border-radius: 999px;
  display: grid; place-items: center;
  transition: transform .35s var(--ease), bottom .35s ease, background-color .2s ease, color .2s ease;
}
.wa-fab { right: 20px; background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(31, 174, 85, 0.35); }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab:hover { transform: scale(1.06); }

.music-fab { left: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(10, 25, 10, 0.12); }
.music-fab:hover { background: var(--forest-900); color: #fff; }
.music-fab.is-playing { background: var(--forest-700); color: #fff; border-color: transparent; }
.music-fab__icon { width: 18px; height: 18px; }

/* No hero os botões flutuantes ficam escondidos, para a foto respirar */
html.js:not(.past-hero) .wa-fab,
html.js:not(.past-hero) .music-fab { opacity: 0; transform: translateY(24px); pointer-events: none; }
.wa-fab, .music-fab { transition: transform .45s var(--ease), opacity .3s ease, bottom .35s ease, background-color .2s ease, color .2s ease; }
html.lgpd-open .wa-fab { bottom: 172px; }
@media (max-width: 767px) { html.lgpd-open .wa-fab, html.lgpd-open .music-fab { bottom: 196px; } }

.cookie {
  position: fixed; right: 12px; bottom: 12px; z-index: 70;
  width: min(380px, calc(100% - 24px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(18, 40, 18, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(243, 241, 234, 0.82);
  font-size: 14.5px;
  transition: transform .5s var(--ease), opacity .5s ease;
}
.cookie[hidden] { display: none; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie .btn { flex-shrink: 0; }
.cookie.is-leaving { transform: translateY(calc(100% + 24px)); opacity: 0; }
.cookie__actions { display: flex; gap: 8px; }
.cookie__no { color: #fff; border: 1px solid rgba(243, 241, 234, 0.45); }
.cookie__no:hover { border-color: #fff; }
.footer__cookies { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__cookies:hover { color: #fff; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
/* menu completo cabe a partir de ~1350px; entre 1261 e 1380 as pílulas ficam mais justas */
@media (max-width: 1380px) {
  .site-nav__menu { gap: 2px; }
  .nav-pill { padding: 0 10px; }
}
@media (max-width: 1260px) {
  .site-nav__menu { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 1024px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head__text { justify-self: start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .process__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .hero__meta { grid-template-columns: 160px minmax(0, 1fr); }
  .hero__link { grid-column: 2; }
}

@media (max-width: 767px) {
  :root { --frame: 8px; --r-lg: 20px; }
  .hero__frame { min-height: 560px; }
  .site-nav { top: 14px; left: 14px; right: 14px; }
  .site-nav__logo img { height: 30px; }
  .site-nav.is-stuck { top: 8px; left: 8px; right: 8px; padding-left: 14px; }
  .hero__content { right: 20px; }
  .hero__title { font-size: clamp(2.2rem, 9.6vw, 3.2rem); line-height: 1.06; }
  .hero__title br { display: none; }
  .hero__meta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero__tag { display: none; }
  .hero__link { grid-column: auto; }
  .hero__counter {
    top: 76px; bottom: auto; right: 20px;
    flex-direction: row; align-items: center; gap: 14px;
  }
  .hero__counter button::after { display: none; }
  .hero__counter button.is-active { font-size: 15px; }

  .manifesto { margin-left: 0; text-indent: 0; }
  .about__media { aspect-ratio: 4 / 3; }
  .about__badge { left: 14px; bottom: 14px; padding: 12px 16px; }
  .about__badge strong { font-size: 32px; }
  .videos__grid { grid-template-columns: minmax(0, 1fr); }
  .video--v { width: min(100%, 420px); }

  .spec-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .spec-card__img { aspect-ratio: 4 / 3; }

  .catalog a { grid-template-columns: 28px minmax(0, 1fr) 18px; }
  .catalog__desc { display: none; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .gallery__item--right { grid-column: span 2; grid-row: span 2; }

  .feature__frame { min-height: 640px; }
  .feature__stats > div + div { padding-left: 14px; }

  .stores li { grid-template-columns: minmax(0, 1fr) auto; }
  .stores h3 { grid-column: 1 / -1; }
  .contact__stage { min-height: 0; padding: 12px; }
  .form-card { padding: 22px 18px; }
  .form-row, .form-actions { grid-template-columns: minmax(0, 1fr); }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cookie { align-items: stretch; }
  .cookie__actions .btn { flex: 1; }
  /* aviso aberto no celular em pé: o texto do topo sobe para não ficar coberto */
  html.lgpd-open .hero__content { bottom: calc(var(--cookie-h, 120px) + 20px); }
  .wa-fab, .music-fab { width: 46px; height: 46px; bottom: 14px; }
  .wa-fab { right: 14px; }
  .music-fab { left: 14px; }
  .wa-fab svg { width: 23px; height: 23px; }
}

@media (max-width: 420px) {
  .nav-cta { display: none; }
}

/* Telas de toque: links pequenos ganham área maior para o dedo (o visual não muda) */
@media (pointer: coarse) {
  .footer ul { gap: 0; }
  .footer ul a, .footer__bottom a, .footer__cookies { display: inline-block; padding: 7px 0; }
  .footer h3 a { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .stores li a { display: inline-block; padding: 6px 0; margin: -6px 0; }
  .footer__social a { display: inline-block; padding: 8px 0 4px; }
  .hero__counter button { padding: 8px 4px; margin: -8px -4px; }
  .gal-back { padding: 8px 0; }
}

/* Celular deitado (tela baixa): o hero cabe na tela com o título visível e o menu fica compacto */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__frame { min-height: 330px; height: calc(100svh - var(--frame) * 2); }
  .site-nav { top: 12px; }
  .site-nav.is-stuck { top: 6px; padding-top: 6px; padding-bottom: 6px; }
  .hero__content { right: 150px; bottom: 18px; }
  .hero__title { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.06; }
  .hero__title br { display: inline; }
  .hero__meta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 24px; margin-top: 12px; font-size: 13.5px; }
  .hero__tag { display: none; }
  .hero__link { grid-column: auto; }
  .hero__counter { top: auto; bottom: 18px; right: 20px; flex-direction: column; align-items: flex-end; gap: 6px; }
  .hero__counter button::after { display: block; }
  .feature__frame { min-height: 0; }
  .mobile-menu__head { padding: 10px 20px; }
  .mobile-menu summary, .mobile-menu__single { padding: 11px 0; font-size: 18px; }
  .mobile-menu__foot { padding: 10px 20px 12px; }
  .wa-fab, .music-fab { width: 42px; height: 42px; bottom: 10px; }
  html.lgpd-open .wa-fab, html.lgpd-open .music-fab { bottom: 10px; }
  .cookie { left: auto; right: 64px; bottom: 10px; width: min(420px, calc(100% - 140px)); flex-direction: row; align-items: center; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .hero__slide img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
