/* ============================================================
   ETMO JARDINS — Design System (base)
   Paleta da marca · tipografia de luxo · layout editorial
   ============================================================ */

:root {
  /* --- Brand palette (terrosa / luxo) --- */
  --ink: #261610;          /* marrom quase-preto, quente */
  --brown: #452b1e;        /* marrom profundo (texto, primário) */
  --brown-2: #3d2416;
  --bronze: #80574a;       /* bronze do logotipo */
  --taupe: #83755e;        /* taupe */
  --taupe-2: #6f6453;
  --cream: #e6dece;        /* creme da marca */
  --cream-2: #efe9dc;      /* creme claro */
  --paper: #f7f3ea;        /* papel — fundo de página */
  --paper-2: #fbf9f3;
  --white: #ffffff;

  --line: rgba(69, 43, 30, 0.16);
  --line-soft: rgba(69, 43, 30, 0.10);
  --line-light: rgba(255, 255, 255, 0.28);

  /* --- Type --- */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 80px);

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

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--brown);
  background: var(--paper);
  line-height: 1.62;
  font-size: 1rem;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.container--wide { max-width: 1600px; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Editorial type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow .num {
  font-variant-numeric: tabular-nums;
  color: var(--bronze);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--brown);
  text-wrap: balance;
}
.display em { font-style: italic; }

h1, h2, h3 { font-weight: 300; }

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--brown);
  text-wrap: pretty;
}

p.body { max-width: 46ch; line-height: 1.75; color: var(--taupe-2); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.15em 1.9em;
  border: 1px solid var(--brown);
  color: var(--brown);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease);
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn:hover { color: var(--cream); }
.btn:hover::after { transform: translateY(0); }
.btn .arr { width: 16px; height: 8px; position: relative; z-index: 1; }

.btn--fill { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn--fill::after { background: var(--ink); }
.btn--fill:hover { color: var(--cream); }

.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light::after { background: var(--cream); }
.btn--light:hover { color: var(--brown); }

.link-u {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: border-color 0.4s, gap 0.4s var(--ease);
}
.link-u:hover { border-color: var(--brown); gap: 0.95em; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.5s var(--ease);
  color: var(--cream);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 84px;
  padding-inline: var(--pad);
  border-bottom: 1px solid var(--line-light);
  transition: border-color 0.5s, height 0.5s var(--ease);
}
.brand { display: flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand__logo { height: 46px; width: auto; filter: brightness(0) invert(1); transition: filter 0.5s var(--ease); }
.brand__wm { display: flex; flex-direction: column; gap: 4px; }
.brand__mark {
  font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: 0.12em; line-height: 1;
}
.brand__sub {
  font-family: var(--sans); font-weight: 300; font-size: 0.6rem;
  letter-spacing: 0.42em; text-transform: uppercase; opacity: 0.85; line-height: 1;
}
.brand__div { width: 1px; height: 30px; background: currentColor; opacity: 0.28; margin: 0 0.3rem; }
.brand__by { display: flex; flex-direction: column; gap: 5px; }
.brand__bylabel { font-size: 0.5rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.6; line-height: 1; }
.brand__plaenge { height: 12px; width: auto; filter: brightness(0) invert(1); transition: filter 0.5s var(--ease); }
.site-header.is-solid .brand__logo,
.site-header.is-solid .brand__plaenge { filter: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem); }
.nav > a, .nav__top {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400;
  position: relative; padding: 6px 0; opacity: 0.9; transition: opacity 0.3s; color: inherit;
  display: inline-flex; align-items: center; gap: 0.55em; cursor: pointer;
}
.nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width 0.4s var(--ease);
}
.nav > a:hover { opacity: 1; }
.nav > a:hover::after { width: 100%; }
.nav__top svg { transition: transform 0.35s var(--ease); }
.nav__item { position: relative; }
.nav__item:hover .nav__top { opacity: 1; }
.nav__item:hover .nav__top svg { transform: rotate(180deg); }
.nav__top { padding-bottom: 22px; margin-bottom: -16px; }
.nav__menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 200px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 26px 54px -26px rgba(38,22,16,0.55); padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__item:hover .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a {
  display: block; color: var(--brown); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 10px 14px; transition: background 0.25s, padding 0.25s var(--ease);
}
.nav__menu a:hover { background: var(--cream); padding-left: 18px; }
.header-cta { display: flex; align-items: center; gap: 1.2rem; }
.header-cta .btn { padding: 0.85em 1.5em; }

/* scrolled state */
.site-header.is-solid {
  background: var(--paper);
  color: var(--brown);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(38,22,16,0.5);
}
.site-header.is-solid .site-header__inner { height: 70px; border-color: transparent; }

.burger { display: none; width: 30px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: currentColor; transition: 0.4s var(--ease); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

/* ============================================================
   HERO  (3 variações comutáveis)
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,12,8,0.55) 0%, rgba(20,12,8,0.05) 32%, rgba(20,12,8,0.15) 64%, rgba(20,12,8,0.78) 100%);
}

.hero__content { position: relative; z-index: 2; height: 100%; color: var(--cream); }

/* shared hero atoms */
.hero-spec {
  display: flex; flex-wrap: wrap; gap: 0 clamp(1.4rem, 3vw, 3rem);
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 300;
}
.hero-spec span { display: inline-flex; align-items: center; gap: 0.9em; opacity: 0.92; }
.hero-spec span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; margin-right: 0.9em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); opacity: 0.85;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--cream), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--cream); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* --- Variant A: Cinematic centered --- */
.hero[data-variant="a"] .hv { display: none; }
.hero[data-variant="a"] .hv--a { display: flex; }
.hv--a {
  height: 100%; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad);
}
.hv--a .kicker { font-size: 0.82rem; letter-spacing: 0.36em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1.6rem; }
.hv--a .wordmark {
  font-family: var(--serif); font-weight: 300; letter-spacing: 0.02em;
  font-size: clamp(3rem, 8.5vw, 8rem); line-height: 1.0; margin: 0;
}
.hv--a .wordmark em { font-style: italic; }
.hv--a .place { font-size: 0.84rem; letter-spacing: 0.46em; text-transform: uppercase; opacity: 0.9; margin-top: 1.8rem; }
.hv--a .hero-spec { justify-content: center; margin-top: 1.5rem; }

/* --- Variant B: Editorial split --- */
.hero[data-variant="b"] { background: var(--cream-2); }
.hero[data-variant="b"] .hv { display: none; }
.hero[data-variant="b"] .hv--b { display: grid; }
.hero[data-variant="b"] .hero__media { left: auto; right: 0; width: 56%; }
.hero[data-variant="b"] .hero__scrim { left: auto; right: 0; width: 56%; background: linear-gradient(90deg, var(--cream-2), transparent 22%, rgba(20,12,8,0.25)); }
.hv--b {
  height: 100%; width: 100%;
  grid-template-columns: 44% 56%; align-items: center;
}
.hv--b__text { padding: 0 clamp(28px, 5vw, 96px); color: var(--brown); max-width: 640px; }
.hv--b__text .eyebrow { color: var(--bronze); }
.hv--b__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5.5vw, 5.4rem); line-height: 0.98; letter-spacing: -0.01em; margin: 1.1rem 0 1.6rem; }
.hv--b__title em { font-style: italic; }
.hv--b__text .hero-spec { color: var(--taupe-2); margin-bottom: 2rem; }
.hv--b__text .hero-spec span { opacity: 1; }

/* --- Variant C: Typographic oversize --- */
.hero[data-variant="c"] .hv { display: none; }
.hero[data-variant="c"] .hv--c { display: flex; }
.hero[data-variant="c"] .hero__scrim { background: linear-gradient(180deg, rgba(20,12,8,0.45), rgba(20,12,8,0.2) 45%, rgba(20,12,8,0.82)); }
.hv--c { height: 100%; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) clamp(40px, 8vh, 110px); }
.hv--c__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hv--c__big {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em;
  font-size: clamp(3.6rem, 13vw, 13rem); line-height: 0.84;
}
.hv--c__big em { font-style: italic; display: block; }
.hv--c__aside { max-width: 320px; padding-bottom: 1.4rem; }
.hv--c__aside p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; margin-bottom: 1.3rem; opacity: 0.95; }
.hv--c .hero-spec { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); }

/* hero variant switcher (controle de comparação) */
.hero-switch {
  position: absolute; z-index: 6; right: var(--pad); bottom: 30px;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(20,12,8,0.34); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 100px;
}
.hero-switch__label { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.7); padding: 0 0.7em 0 0.9em; }
.hero-switch button {
  width: 32px; height: 32px; border-radius: 50%; color: var(--cream);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.05em;
  display: grid; place-content: center; transition: 0.35s var(--ease); opacity: 0.7;
}
.hero-switch button:hover { opacity: 1; }
.hero-switch button.is-active { background: var(--cream); color: var(--brown); opacity: 1; }

@media (max-width: 900px) {
  .hero[data-variant="b"] .hero__media { width: 100%; }
  .hero[data-variant="b"] .hero__scrim { width: 100%; background: linear-gradient(180deg, rgba(20,12,8,0.2), rgba(20,12,8,0.85)); }
  .hv--b { grid-template-columns: 1fr; align-items: end; }
  .hv--b__text { color: var(--cream); padding-bottom: 8vh; }
  .hv--b__text .eyebrow { color: var(--cream); }
  .hv--b__text .hero-spec { color: var(--cream); }
  .hero[data-variant="b"] { background: var(--ink); }
  .hv--c__big { font-size: clamp(3rem, 16vw, 6rem); }
}

@media (max-width: 760px) {
  .brand__div, .brand__by { display: none; }
}
@media (max-width: 420px) {
  .brand__logo { height: 38px; }
  .brand__mark { font-size: 1.2rem; }
}
