/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: only light;   /* tema é só claro: impede o dark-mode automático (Samsung Internet / Chrome Android) */
  --white:     #FFFFFF;
  --noir:      #1A1618;
  --bruma:     #F2EDE8;
  --sombra:    #C0ADA6;
  --sombra-text: #5C4D49; /* darkened for WCAG AA on white and bruma */
  --champagne: #EDD898;
  --rose:      #F0AAAE;
  --coral:     #D4505C;
  --coral-on-light: #C94550; /* AA (4.7:1) coral for small text on white/bruma */
  --coral-on-dark:  #D85A66; /* AA (4.8:1) coral for small text on noir */
  --rubi:      #BE2038;
  --borgonha:  #5E1A28;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --side: max(clamp(24px, 6vw, 80px), calc(50% - 720px));

  --nav-h: 72px;

  /* Section boundaries all show a 110px gap. Because some boundaries carry a
     fixed intrinsic offset (notably the -80px Serviços header pull), the two
     sides of each boundary don't split evenly — each section's padding-top /
     padding-bottom below is tuned so every boundary measures 110px. Values are
     fixed px (not viewport-relative) so the 110px holds at any width. */
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: only light; background: var(--white); color: var(--noir); }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--noir);
  background: var(--white);
  color-scheme: only light;
  -webkit-font-smoothing: antialiased;
}
/* reforço p/ navegadores com dark-mode automático agressivo (ex.: Samsung Internet) */
section, main, header, nav, footer, button, input, textarea, select, a { color-scheme: only light; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── TYPOGRAPHY SCALE ───────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.1;
}

/* ─── NAV ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side);
  /* transparent at the top of the page — links float over the hero;
     gains a solid bar once scrolled (see nav.scrolled) */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
  z-index: 100;
}
nav.scrolled {
  background: var(--white);
  border-bottom-color: var(--bruma);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.nav-brand em { font-style: normal; color: var(--coral-on-light); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sombra-text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--noir); }

/* Hamburger button: hidden on desktop, shown ≤600px (see media query). */
.nav-brand { position: relative; z-index: 101; } /* acima do overlay do menu */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--noir);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ─── SECTION BASE ───────────────────────────────────────────────────────── */
section {
  padding: clamp(80px, 10vw, 140px) var(--side);
}

.label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sombra-text);
  margin-bottom: 20px;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  padding: 0 0 clamp(40px, 6vw, 80px) var(--side);
}

.hero-content {
  max-width: 480px;
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  max-width: 1010px; /* display size; source hero-spectrum.jpg is 1976px wide for crisp Retina */
  height: calc(100svh + clamp(80px, 10vw, 140px) + 80px);
  overflow: hidden;
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* anchor the crop to the bottom so the taça shadow is never cut. On wide/short
     viewports (full screen) cover crops vertically; taking it from the top removes
     only the empty white above the champagne glasses and keeps the full spectrum + shadows */
  object-position: center bottom;
  max-width: none;
  mix-blend-mode: multiply;
}

.hero-title {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.0;
  color: var(--borgonha);
  text-transform: uppercase;   /* CARINA COOPER em maiúsculas */
}
.hero-title em {
  font-style: italic;
  color: var(--coral);
  text-transform: none;        /* mantém "Sommelier." como está */
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--noir);
  line-height: 1.6;
  max-width: 360px;
  margin-top: 32px;
  opacity: 0.75;
}

/* subtle scroll cue: a small chevron at the hero's lower-left, aligned with the
   content margin, that gently bobs down and back */
/* shared round chevron control: a solid warm-gray disc so the borgonha chevron
   reads over any background (white sections, borgonha Contato, noir footer) */
.hero-scroll,
.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E7E1DC;
  box-shadow: 0 2px 12px rgba(40, 20, 25, 0.16);
  color: var(--borgonha);
}
.hero-scroll svg,
.to-top svg { display: block; width: 20px; height: auto; }

.hero-scroll {
  position: absolute;
  left: var(--side);
  bottom: clamp(28px, 4vw, 48px);
  z-index: 3;
}
.hero-scroll svg { animation: hero-scroll-bob 3s ease-in-out infinite; }

/* o arrow do hero é duplicado: --desktop (no círculo, no rodapé do hero) e --mobile
   (chevron puro, alinhado ao fim do texto). Cada um aparece no seu breakpoint. */
.hero-scroll--mobile { display: none; }

/* bob sem alterar opacity (o mobile fica borgonha cheio como o título) */
@keyframes hero-scroll-bob-solid {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* back-to-top: fixed to the lower-right, fades in after the first viewport */
.to-top {
  position: fixed;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--bruma); }

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

@media (prefers-reduced-motion: reduce) {
  .hero-scroll svg { animation: none; }
  .hero-scroll { opacity: 0.7; }
}

/* ─── SOBRE ──────────────────────────────────────────────────────────────── */
#sobre {
  background: transparent;
  position: relative;
  z-index: 10;
  padding-bottom: 95px; /* boundary Sobre → Serviços = 110px (paired w/ servicos pt 95, intrinsic -80) */
}

.sobre-panel {
  background: var(--bruma);
  border-radius: 0;
  padding: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "header ."
    "media  text";
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 0;
}

/* first box meets the hero photo: the hero bleeds exactly 80px into this section;
   offsetting the panel by the same 80px makes its top meet the photo's bottom edge
   flush, so the taça shadow completes with no cut and no white gap */
.sobre-panel--historia { margin-top: 80px; }

/* second box: a compact borgonha card that seals the section with the brand color.
   No photo — just the heading on top and the six credentials in two columns of three. */
.sobre-panel--creds {
  margin-top: clamp(16px, 2vw, 28px);
  background: var(--borgonha);
  padding: clamp(36px, 4vw, 56px) clamp(40px, 5vw, 72px);
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "text";
  row-gap: clamp(20px, 2.5vw, 32px); /* breathing room between heading and awards */
}

/* heading legibility on the dark card */
.sobre-panel--creds .label { color: var(--sombra); }
.sobre-panel--creds .sobre-title {
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--bruma);
}
.sobre-panel--creds .sobre-title em { color: var(--rose); }

/* credentials → two thematic columns, filled column-first:
   column 1 = the six wine formations, column 2 = the five other formations */
.sobre-panel--creds .credential-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: clamp(16px, 2vw, 26px);
}
.sobre-panel--creds .credential-item {
  padding: 14px 0 14px 18px;
  background: transparent;
  border-left: 3px solid var(--rose);
}
.sobre-panel--creds .credential-org { color: var(--rose); margin-bottom: 2px; }
/* second line: org detail (WSET) or continuation + year (ABS/AICEP).
   Same rosé as the first line so the two together read as one label. */
.sobre-panel--creds .credential-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}
.sobre-panel--creds .credential-name {
  font-size: 17px;
  color: var(--bruma);
}

/* CTA do acordeon: só no mobile (ver media query). No desktop a lista fica aberta. */
.creds-toggle { display: none; }

.sobre-header {
  grid-area: header;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.sobre-photo {
  grid-area: media;
  background: var(--white);
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.sobre-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sobre-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  color: var(--sombra);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sobre-body-wrap { grid-area: text; align-self: center; }

.sobre-creds { grid-area: text; align-self: center; }

.sobre-title {
  font-size: clamp(48px, 5.5vw, 80px);
  color: var(--borgonha);
}
.sobre-title em { font-style: italic; color: var(--coral); }
.sobre-title-line1 { font-style: italic; color: var(--coral); }

.sobre-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--noir);
  margin-bottom: 24px;
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

/* ── All credentials: uniform rubi stripe + white card */
.credential-item {
  padding: 18px 22px;
  border-left: 5px solid var(--rubi);
  background: var(--white);
  list-style: none;
}

.credential-org {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rubi);
  margin-bottom: 4px;
}

.credential-award .credential-org {
  margin-bottom: 0;
  margin-top: 6px;
}

.credential-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 300;
  color: var(--noir);
  line-height: 1.25;
}


/* ─── SERVIÇOS ───────────────────────────────────────────────────────────── */
#servicos {
  background: var(--white);
  position: relative;
  overflow: visible;
  padding-top: 95px;    /* boundary Sobre → Serviços = 110px */
  padding-bottom: 55px; /* boundary Serviços → Lady Vinho = 110px */
}

.servicos-deco {
  position: absolute;
  left: 0;
  right: 0;
  /* subiu 100px em relação ao valor anterior (-clamp - 415) */
  top: calc(-1 * clamp(80px, 10vw, 140px) - 415px - 100px);
  height: calc(100% + 2 * clamp(80px, 10vw, 140px) + 415px + 100px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-start; /* alinhada à esquerda */
  align-items: flex-start;
}

.servicos-deco img {
  width: 1500px;
  max-width: 100%;   /* cap: nunca estica além da resolução nativa (1500px) → nítida */
  height: auto;
  mix-blend-mode: multiply;
}

.servicos-header {
  margin-top: -80px;
  margin-bottom: clamp(40px, 5vw, 72px);
  position: relative;
  z-index: 1;
}
.servicos-title {
  font-size: clamp(48px, 5.5vw, 80px);
  color: var(--borgonha);
}
.servicos-title em { font-style: italic; color: var(--coral); }

.servicos-intro {
  font-size: 16px;
  font-weight: 300;
  color: var(--noir);
  line-height: 1.7;
  max-width: 450px;
  margin-top: 20px;
}

/* editorial ledger: a floating bruma panel with one row per service —
   number + name (serif) on the left, description on the right */
.servicos-list {
  position: relative;
  z-index: 1;
  background: var(--bruma);
  padding: clamp(4px, 1vw, 16px) clamp(28px, 4vw, 56px);
}

.servico-item {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(28px, 3.2vw, 44px) 0;
  border-top: 1px solid rgba(94, 26, 40, 0.12);
}
.servicos-list .servico-item:first-child { border-top: none; }

.servico-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.4vw, 22px);
}

.servico-num {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  color: var(--rubi);
  line-height: 1;
}

.servico-name {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--borgonha);
  line-height: 1.05;
}

/* quebra de linha só no mobile (some no desktop) */
.br-mobile { display: none; }
/* quebra de linha só no desktop (some no mobile ≤900px) */
.br-desktop { display: inline; }

.servico-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--sombra-text);
  line-height: 1.65;
  max-width: 54ch;
}

/* ─── LADY VINHO ─────────────────────────────────────────────────────────── */
#ladyvinho {
  background: transparent;
  padding-top: 55px;    /* boundary Serviços → Lady Vinho = 110px */
  padding-bottom: 55px; /* boundary Lady Vinho → Trabalhos = 110px */
  /* sit above the Serviços deco photo, which bleeds down past this section's
     top and would otherwise paint over the box */
  position: relative;
  z-index: 1;
}

.ladyvinho-inner {
  background: var(--noir);
  border-radius: 0;
  padding: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 72px);
}

/* title band on top (CTA at its lower-right), then the text block and the photo
   side by side. The photo matches the height of the TEXT only (paragraphs +
   ficha), not the title. */
.ladyvinho-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
.ladyvinho-head { grid-column: 1; grid-row: 1; }
.ladyvinho-text { grid-column: 1; grid-row: 2; }
.ladyvinho-media { grid-column: 2; grid-row: 2; }

#ladyvinho .label { color: rgba(255,255,255,0.4); }

.ladyvinho-title {
  font-size: clamp(48px, 5.5vw, 80px);
  color: var(--white);
}
.ladyvinho-title em { font-style: italic; color: var(--champagne); }

.ladyvinho-body {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ficha técnica da websérie: rótulo · valor, em duas colunas alinhadas */
.ladyvinho-ficha { margin-top: 8px; }
.ficha-title {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}
.ficha-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(20px, 2.5vw, 36px);
  row-gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.ficha-list dt {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ficha-list dd { color: rgba(255, 255, 255, 0.75); }

/* CTA sits at the lower-right of the title band, just above the photo */
.ladyvinho-cta {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
  transition: color 0.2s;
}
.ladyvinho-cta:hover { color: var(--white); }

.ladyvinho-media {
  border-radius: 0;
  overflow: hidden;
  background: #9A9A9A;
  min-height: 0; /* allow the flex item to fill without an intrinsic floor */
}
.ladyvinho-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keep her face/hands in frame when cropped */
}
.ladyvinho-media-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ─── IMPRENSA ───────────────────────────────────────────────────────────── */
#imprensa {
  background: transparent; /* deixa a foto-espectro do .closing-bg aparecer atrás */
  position: relative;
  overflow: visible;
  padding-top: 55px;    /* boundary Lady Vinho → Trabalhos = 110px */
  padding-bottom: 55px; /* boundary Trabalhos → Contato = 110px */
}

/* faixa (banner) do topo de Trabalhos: contém a foto e o cabeçalho. A base da
   foto coincide com o fundo do banner = topo do box da lista, em qualquer
   largura. O padding-bottom define o espaço entre o título e o box. */
.imprensa-banner {
  position: relative;
  padding-bottom: clamp(40px, 5vw, 72px);
}

/* foto própria de Trabalhos: flat-lay de taças como FAIXA full-bleed. Base = topo
   do box branco da lista; sobe atrás da borda com a Lady Vinho. Opaca: cobre a
   foto-espectro acima dessa linha (o espectro reaparece do topo do box pra baixo). */
.imprensa-deco {
  position: absolute;
  left: 50%;
  width: min(100vw, 1260px);   /* cap: ~1,23× upscale na retina (nativa 2048) — nitidez igual à do Contato */
  transform: translateX(-50%); /* centralizada */
  /* sobe atrás do box da Lady Vinho (conceito do site: taças atrás dos boxes).
     Alcança ~o topo do box; não pode passar acima da seção Lady Vinho (invadiria
     Serviços). Ajustável (knob de "subir/descer"). */
  top: -960px;
  bottom: 0;                   /* base = fundo do banner = topo do box da lista */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.imprensa-deco img {
  position: absolute;
  left: 0;
  bottom: 0;          /* BASE da foto ancorada no topo do box branco, em qualquer tela */
  display: block;
  width: 100%;        /* = largura da faixa (min(100vw, 1260px)) */
  height: auto;       /* aspecto natural (sem cover, sem distorcer o enquadramento) */
  max-width: none;
}

.imprensa-header {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.imprensa-title {
  font-size: clamp(48px, 5.5vw, 80px);
  color: var(--borgonha);
}
.imprensa-title em { font-style: italic; color: var(--coral); }
.imprensa-title-line1 { font-style: italic; color: var(--coral); }

/* editorial ledger: a floating white panel, one row per collaboration —
   client name (serif) with the period right-aligned, description beneath.
   The two anchor works lead the list in a larger size. */
.imprensa-list {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: clamp(6px, 1.2vw, 18px) clamp(28px, 4vw, 60px) clamp(20px, 2.5vw, 36px);
  /* two anchor works span full width; the four supporting works flow into
     two columns so the list stays compact */
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 72px);
}

.imprensa-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  align-content: start;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--bruma);
}
.imprensa-row--featured {
  grid-column: 1 / -1;
  padding: clamp(24px, 2.8vw, 38px) 0;
}
.imprensa-list .imprensa-row:first-child { border-top: none; }

.imprensa-client {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--borgonha);
}

.imprensa-period {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rubi);
  white-space: nowrap;
}

.imprensa-desc {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--sombra-text);
  line-height: 1.6;
  max-width: 62ch;
  margin-top: 10px;
}

.imprensa-row--featured .imprensa-client { font-size: clamp(22px, 2.1vw, 29px); }
.imprensa-row--featured .imprensa-desc { font-size: 15px; margin-top: 10px; }

/* múltiplos cargos na mesma empresa: cada um numa linha própria, texto à
   esquerda e ano (rubi) à direita, alinhado com o período do topo */
.imprensa-role {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  margin-top: 10px;
}
/* cargos consecutivos da mesma empresa ficam mais juntos */
.imprensa-role + .imprensa-role { margin-top: 3px; }
.imprensa-role-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--sombra-text);
  line-height: 1.6;
  max-width: 62ch;
}

/* ─── CONTATO ────────────────────────────────────────────────────────────── */
#contato {
  background: transparent;
  position: relative;
  padding-top: 55px;     /* boundary Trabalhos → Contato = 110px */
  padding-bottom: 110px; /* gap between the "Vamos conversar" box and the footer */
}

/* Trabalhos + Contato compartilham a foto-espectro de fechamento como fundo.
   O wrapper define a área; a foto a cobre por inteiro (object-fit cover),
   ancorada embaixo (glasses no rodapé). Assim não há faixa branca em nenhuma
   resolução — a altura acompanha o conteúdo, não é fixa. */
.closing-bg { position: relative; }

.contato-photo {
  position: absolute;
  left: 0;                    /* alinhada à esquerda */
  bottom: 0;                  /* base da foto = topo do rodapé */
  width: min(100vw, 1350px);  /* cap p/ a foto (nat. 2000×1669) preencher a altura TOTAL do box da lista sem ultrapassar: folga rodapé→topo-do-box ≈ 1143px → largura p/ topo exato ~1370; 1350 encosta no topo com ~17px de margem */
  z-index: 0;                 /* atrás dos boxes (que têm z-index: 1) */
  pointer-events: none;
  line-height: 0;
}
.contato-photo img {
  display: block;
  width: 100%;
  height: auto;               /* aspecto natural, sem esticar */
  max-width: none;
  mix-blend-mode: multiply;
}

.contato-inner {
  position: relative;
  z-index: 1; /* float above the closing photo */
  background: var(--borgonha);
  border-radius: 0;
  padding: clamp(40px, 4.5vw, 64px) clamp(40px, 5vw, 72px);
  display: grid;
  /* same three equal columns as the Trabalhos grid — for rhythm only,
     no card visual */
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.contato-col .label { color: rgba(255,255,255,0.4); }

.contato-title {
  font-size: clamp(40px, 4.4vw, 64px);
  color: var(--white);
  margin-top: 16px;
}
.contato-title em { font-style: italic; color: var(--champagne); }

/* wide body column: the text spans the middle + right columns, with the four
   links laid out in a row beneath it */
.contato-col--body { grid-column: 2 / 4; }

.contato-body {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* the four contact links, spread across the full body-column width so the last
   one (YouTube) ends flush with the column's right edge */
.contato-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: clamp(28px, 3vw, 40px);
}
.contato-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.contato-icon svg { display: block; flex-shrink: 0; overflow: visible; }
.contato-icon-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.contato-icon:hover { color: var(--champagne); }
.contato-icon:hover .contato-icon-label { color: var(--champagne); }

/* copyable email address, between the intro text and the links row */
.contato-email {
  display: inline-block;
  margin-top: clamp(12px, 1.6vw, 18px);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.contato-email:hover { color: var(--champagne); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--noir);
  padding: 32px var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;   /* + z-index p/ pintar acima da foto de fechamento */
  z-index: 1;
  margin-top: -1px;      /* cobre a costura sub-pixel entre a foto e o rodapé na retina */
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.footer-brand em { font-style: normal; color: var(--coral-on-dark); }

.footer-credit {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.3);
}
.footer-credit a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-credit a:hover { color: var(--coral-on-dark); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    padding: 0;               /* sem gap embaixo: base da foto encosta no box do Sobre */
    overflow: hidden;         /* corta o excedente lateral da foto ampliada */
  }
  .hero-content {
    max-width: 100%;
    padding-left: var(--side);
    padding-right: var(--side);
  }
  .hero-sub {
    max-width: 100%;
  }
  .hero-photo {
    position: relative;
    width: 120%;              /* foto do hero +20% */
    max-width: none;          /* remove o cap de 1010px (desktop) p/ o +20% valer no mobile */
    margin-left: -10%;        /* centraliza (sangra 10% cada lado, cortado pelo overflow do #hero) */
    height: auto;
    align-self: stretch;
    margin-top: -3px;  /* -35px do original: fecha o vão do hero, sobe a foto + Sobre + Credenciais */
  }
  .hero-photo img {
    height: auto;
  }
  /* desktop arrow escondido; o mobile aparece dentro do bloco da subtitle, alinhado ao fim do texto */
  .hero-scroll--desktop { display: none; }
  .hero-sub-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;      /* arrow no fim do texto (= final de "humano") */
    width: fit-content;         /* encolhe até a largura da linha mais longa da subtitle */
    max-width: 100%;
  }
  .hero-scroll--mobile {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    margin-top: clamp(26px, 6vw, 36px);  /* desceu ~1 altura de arrow p/ preencher o vão */
    border-radius: 0;
    background: none;           /* sem círculo */
    box-shadow: none;
    color: var(--borgonha);     /* mesmo borgonha do título "Carina Cooper" */
    opacity: 1;
  }
  .hero-scroll--mobile svg { animation: hero-scroll-bob-solid 3s ease-in-out infinite; }

  /* mobile: box do Sobre encosta na base da foto do hero (sem vãos) */
  #sobre { padding-top: 0; }
  .sobre-panel--historia { margin-top: 0; }

  .sobre-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "media"
      "text";
    row-gap: clamp(24px, 4vw, 40px);
  }
  .sobre-photo { aspect-ratio: 3/4; max-height: 560px; margin-top: 0 !important; }
  .sobre-photo img { transform: scale(1.03); }  /* +3%: some o espacinho entre os dedos */
  .sobre-panel--creds .credential-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  /* ── Credenciais: acordeon (mobile) ─────────────────────────────────── */
  .sobre-panel--creds { display: block; }                                    /* empilha header, CTA, lista */
  .sobre-panel--creds .sobre-header { margin-bottom: clamp(16px, 4vw, 22px); } /* título mais perto do CTA/lista */

  .creds-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--champagne);           /* champagne: elegante e diferencia do rótulo (--sombra) */
  }
  .creds-toggle-icon { flex: none; width: 10px; height: auto; transition: transform 0.3s ease; }
  /* CTA de cima: alinhado à direita (na altura do fim de "Premiações") */
  .creds-toggle--top { width: 100%; justify-content: flex-end; margin-bottom: clamp(8px, 2.5vw, 14px); }
  .sobre-panel--creds.is-open .creds-toggle--top .creds-toggle-icon { transform: rotate(180deg); } /* seta pra cima ao abrir */
  /* "Ocultar" do rodapé: aparece só quando aberto, seta pra cima */
  .creds-toggle--bottom { display: none; }
  .sobre-panel--creds.is-open .creds-toggle--bottom {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top: clamp(20px, 5vw, 32px);
  }
  .creds-toggle--bottom .creds-toggle-icon { transform: rotate(180deg); }

  /* lista colapsável (truque grid 0fr↔1fr, animação suave sem número mágico) */
  .sobre-creds {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
  }
  .sobre-creds > .credential-list {
    overflow: hidden;
    min-height: 0;
  }
  .sobre-panel--creds.is-open .sobre-creds { grid-template-rows: 1fr; }

  /* mobile: a foto de taças do Serviços sangra bem menos pra cima, aparecendo
     logo ABAIXO do box das Credenciais (no desktop ela sobe ~595px, escondida atrás do box) */
  .servicos-deco { top: -330px; height: calc(100% + 330px); }
  .servicos-deco img {
    width: calc(100% + 30px);            /* um tico mais larga: permite deslocar sem deixar vão à esquerda */
    max-width: none;
    transform: scaleX(-1) translate(-20px, 10px);  /* espelhada + 20px direita + 10px baixo (só mobile) */
  }

  .servico-item { grid-template-columns: 1fr; row-gap: 12px; }
  .servico-num { font-size: 26px; }   /* mobile: número um pouco maior */
  .servico-name { font-size: 32px; }  /* mobile: título do serviço um pouco maior */
  .br-mobile { display: inline; }     /* ativa a quebra de linha no mobile */
  .br-desktop { display: none; }      /* desativa a quebra de desktop no mobile */
  /* mobile: vira flex column p/ o order funcionar de forma confiável (título → CTA → foto → texto) */
  .ladyvinho-row { display: flex; flex-direction: column; align-items: stretch; row-gap: 14px; }
  .ladyvinho-head { order: 0; }
  .ladyvinho-cta { order: 1; align-self: flex-end; }  /* acima da foto, à direita */
  .ladyvinho-media {
    order: 2;
    display: block;
    width: 100%;
    aspect-ratio: 4/5;   /* crop vertical, mãos entram um pouco */
    max-height: 560px;
  }
  .ladyvinho-media img { height: 100%; transform: scale(1.05); }  /* +5% zoom: tira a pontinha de unha na borda */
  .ladyvinho-text { order: 3; margin-top: 18px; }  /* foto→texto ≈ 32px (14 row-gap + 18) = espaçamento entre parágrafos */
  .imprensa-list { grid-template-columns: 1fr; column-gap: 0; }
  .imprensa-deco img { transform: translate(20px, -20px) scale(2); transform-origin: bottom center; }  /* mobile: flat-lay 2x, +20px direita / +20px cima */
  /* mobile: empilha tudo — cliente → data (rótulo rubi) → cargo (mesmo padrão em toda a lista) */
  .imprensa-row { grid-template-columns: 1fr; }
  .imprensa-row > .imprensa-period { margin-top: 8px; }
  .imprensa-row .imprensa-desc { margin-top: 3px; }
  /* Cia. Tradicional (2 cargos) — cada cargo como [DATA / cargo] */
  .imprensa-role { grid-template-columns: 1fr; margin-top: 12px; }
  .imprensa-role .imprensa-period { order: -1; margin-bottom: 2px; }
  .imprensa-role + .imprensa-role { margin-top: 14px; }
  .contato-inner { grid-template-columns: 1fr; }
  .contato-col--body { grid-column: auto; }
  /* mobile: foto do Contato mais alta (cover) p/ as taças espiarem no vão entre Trabalhos e Contato */
  .contato-photo { height: 680px; }
  .contato-photo img { height: 100%; object-fit: cover; object-position: center bottom; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  .nav-toggle { display: flex; }

  /* ícones do contato em 2 colunas: WhatsApp | Instagram / E-mail | YouTube (YouTube abaixo do Instagram) */
  .contato-links { display: grid; grid-template-columns: 1fr 1fr; }

  /* menu vira overlay full-screen, escondido até abrir (nav.menu-open) */
  .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(20px, 5vh, 40px);
    padding: var(--nav-h) var(--side) 10vh;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 100;
  }
  nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-links a {
    font-family: var(--font-heading);
    font-size: clamp(26px, 8vw, 36px);
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--noir);
  }
  .nav-links a.active { color: var(--coral-on-light); }

  /* barra sólida + botão vira X quando o menu abre */
  nav.menu-open { background: var(--white); }
  nav.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  nav.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─── SCROLL REVEALS (subtle, editorial) ─────────────────────────────────────
   Gated on .reveal-on (added by the head script, removed by its failsafe or
   never added without JS) so content is NEVER left hidden. Elements fade in —
   text also rises slightly; photos fade only. */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-on .reveal--fade { transform: none; } /* opacity-only, for photos */

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

/* ─── DARK MODE: rede de segurança ───────────────────────────────────────────
   O site é tema CLARO. Alguns navegadores (Samsung Internet, auto-dark do Chrome
   Android) ignoram parte do `color-scheme` e invertem as cores quando o aparelho
   está no modo noturno. Aqui re-cravamos os fundos das seções com !important pra
   manter o visual claro/borgonha/noir como projetado. */
@media (prefers-color-scheme: dark) {
  /* ── fundos ── */
  html, body                            { background: var(--white) !important; color: var(--noir) !important; }
  nav.scrolled                          { background: var(--white) !important; }
  #servicos, .imprensa-list             { background: var(--white) !important; }
  .sobre-panel, .servicos-list          { background: var(--bruma) !important; }
  .sobre-panel--creds, .contato-inner   { background: var(--borgonha) !important; }
  .ladyvinho-inner, footer              { background: var(--noir) !important; }
  .hero-scroll--desktop, .to-top        { background: #E7E1DC !important; }  /* só o arrow do desktop tem caixa; o do mobile fica só a seta */
  .ladyvinho-media                      { background: #9A9A9A !important; }

  /* ── textos sobre fundo claro ── */
  .hero-title, .sobre-title, .servicos-title, .imprensa-title,
  .servico-name, .imprensa-client       { color: var(--borgonha) !important; }
  .hero-title em, .sobre-title em, .sobre-title-line1,
  .servicos-title em, .imprensa-title em, .imprensa-title-line1
                                        { color: var(--coral) !important; }
  .nav-brand                            { color: var(--noir) !important; }
  .nav-brand em                         { color: var(--coral-on-light) !important; }
  .nav-links a, .label, .servico-desc,
  .imprensa-desc, .imprensa-role-text   { color: var(--sombra-text) !important; }
  .hero-sub, .sobre-body, .servicos-intro { color: var(--noir) !important; }
  .servico-num, .imprensa-period        { color: var(--rubi) !important; }

  /* ── Credenciais (fundo borgonha) ── */
  .sobre-panel--creds .label            { color: var(--sombra) !important; }
  .sobre-panel--creds .sobre-title,
  .sobre-panel--creds .credential-name  { color: var(--bruma) !important; }
  .sobre-panel--creds .sobre-title em,
  .sobre-panel--creds .credential-org,
  .sobre-panel--creds .credential-sub   { color: var(--rose) !important; }
  .creds-toggle                         { color: var(--champagne) !important; }

  /* ── Lady Vinho (fundo noir) ── */
  #ladyvinho .label                     { color: rgba(255,255,255,0.4) !important; }
  .ladyvinho-title                      { color: var(--white) !important; }
  .ladyvinho-title em                   { color: var(--champagne) !important; }
  .ladyvinho-body                       { color: rgba(255,255,255,0.65) !important; }
  .ladyvinho-cta                        { color: var(--champagne) !important; }

  /* ── Contato (fundo borgonha) ── */
  #contato .label                       { color: rgba(255,255,255,0.4) !important; }
  .contato-title                        { color: var(--white) !important; }
  .contato-title em                     { color: var(--champagne) !important; }
  .contato-body                         { color: rgba(255,255,255,0.65) !important; }
  .contato-email, .contato-icon         { color: rgba(255,255,255,0.85) !important; }

  /* ── Footer (fundo noir) ── */
  .footer-brand                         { color: var(--white) !important; }
  .footer-brand em                      { color: var(--coral-on-dark) !important; }
  .footer-credit, .footer-credit a      { color: rgba(255,255,255,0.55) !important; }
}
