/* =========================================================
   Dr. Carlos Nemes — Sophisticated Design System
   ========================================================= */

/* =========================================================
   Fontes self-hosted (subset latin) — elimina o CSS
   render-blocking do fonts.googleapis.com
   ========================================================= */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/manrope-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: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/newsreader-300.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: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-400.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;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

:root {
  --ink: #1B2320;
  --ink-soft: #43524C;
  --ink-mute: #5A6862;
  --sage: #2F5D50;
  --sage-light: #A8C4B8;
  --cream: #F5F2EC;
  --cream-deep: #EDE9E1;
  --paper: #ECE8DF;
  --white: #FFFFFF;
  --error: #B4463A;
  --canvas: #101714;
  --hero-accent: #2F5D50;       /* verde-sálvia: destaque padrão do hero — ~6,9:1 sobre o branco */
  --hero-accent-deep: #26493F;  /* mesmo verde mais escuro — texto corrido, ~9:1 */
  --muted-light: #62716B;  /* texto suave sobre claro — AA 4.6:1 */
  --muted-dark: #8A9994;   /* texto suave sobre escuro — AA 5.4:1 */
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --radius: 12px;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --shadow-card: 0 30px 80px rgba(0,0,0,.28);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--sage); text-decoration: none; transition: color .3s var(--ease-out); }
a:hover { color: var(--ink); }

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Navigation removed */

/* =========================================================
   Hero / 3D Canvas
   ========================================================= */

#topo {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) 32px clamp(56px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero-logo {
  width: 132px;
  height: auto;
  margin-bottom: 14px;
  animation: heroRise .9s var(--ease-out) .05s both;
}
.hero-kicker {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--hero-accent);
  max-width: 14ch;
  text-wrap: balance;
  /* Reserva 2 linhas: a troca de slide não empurra os botões */
  min-height: 2.12em;
  display: flex;
  align-items: flex-end;
  animation: heroRise 1s var(--ease-out) .18s both;
}
.hero-subtitle {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.4;
  color: var(--hero-accent-deep);
  max-width: 34ch;
  min-height: 2.8em;
  text-wrap: pretty;
  animation: heroRise 1s var(--ease-out) .3s both;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin-top: 6px; animation: heroRise 1s var(--ease-out) .42s both; }
.hero-meta {
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--ink-mute);
  animation: heroRise 1s var(--ease-out) .5s both;
}
.hero-dots { display: flex; gap: 10px; }
.dot {
  width: 46px; height: 3px;
  border: 0; padding: 0;
  cursor: pointer;
  border-radius: 2px;
  background: rgba(47,93,80,.25);
  transition: background .4s var(--ease-out), transform .3s var(--ease-out);
}
.dot:hover { transform: scaleY(1.6); }
.dot.active { background: var(--hero-accent); }

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .85;
}
.scroll-indicator span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247,245,240,.6); }
.mouse {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(247,245,240,.5);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 3px; height: 8px;
  border-radius: 999px;
  background: rgba(247,245,240,.7);
  animation: wheel 1.8s var(--ease-out) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .35s var(--ease-out);
}
.btn-primary {
  background: var(--cream);
  color: var(--ink) !important;
}
.btn-primary:hover { background: var(--sage-light); color: var(--ink) !important; transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(247,245,240,.45);
  color: #F7F5F0 !important;
  background: transparent;
}
.btn-outline:hover { background: rgba(247,245,240,.14); color: #fff !important; }
.btn-outline-light {
  border-color: rgba(237,233,225,.28);
  color: #EDE9E1 !important;
  padding: 11px 22px;
  font-size: 13px;
  white-space: nowrap;
}
.btn-outline-light:hover { background: #EDE9E1; color: var(--ink) !important; }

/* =========================================================
   Sections
   ========================================================= */

.section-light {
  background: var(--paper);
  border-top: 1px solid rgba(27,35,32,.06);
  border-bottom: 1px solid rgba(27,35,32,.06);
}
.section-cream { background: var(--cream); }
.section-dark {
  background: var(--ink);
  color: #EDE9E1;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 80% -10%, rgba(47,93,80,.28) 0%, transparent 60%);
  pointer-events: none;
}

.section-light, .section-cream, .section-dark {
  padding: 104px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.section-grid.tight { gap: 56px; }

.section-header.sticky { position: sticky; top: 110px; }
.section-header .eyebrow { display: block; margin-bottom: 12px; }
.section-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.section-dark .section-header h2 { color: #F5F2EC; }
.section-grid.contact-info .section-header h2 { font-size: 48px; }
.section-header .role {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-mute);
}
.profile-extra {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(27,35,32,.10);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 500;
}
.profile-list {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 500;
}
.eyebrow.accent { color: var(--sage); font-weight: 600; }
.eyebrow.light { color: var(--muted-dark); }

/* =========================================================
   Perfil Section — Editorial Design
   ========================================================= */

#perfil {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(36px, 4.6vh, 72px) 0;
}
#perfil .container { width: 100%; }
#perfil::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(54% 46% at 92% -6%, rgba(47,93,80,.13) 0%, transparent 62%),
    radial-gradient(44% 44% at -10% 74%, rgba(47,93,80,.08) 0%, transparent 60%);
}
#perfil .container {
  position: relative;
  z-index: 1;
}

#perfil .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(10px, 1.6vh, 16px);
}
#perfil .eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--sage);
  opacity: .55;
}

.profile-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(22px, 3.4vh, 40px);
  padding-bottom: clamp(14px, 2.2vh, 26px);
  border-bottom: 1px solid rgba(27,35,32,.12);
}

.profile-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
}

.profile-role-block {
  text-align: right;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.profile-role {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-crm {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted-light);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(44px, 4.6vw, 68px);
  align-items: start;
}

/* --- Visual Column --- */

.portrait {
  position: relative;
  z-index: 0;
  margin: 0 0 clamp(38px, 5vh, 56px);
}

/* moldura decorativa deslocada */
.portrait::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -22px;
  top: -22px;
  right: 22px;
  bottom: 22px;
  border: 1px solid rgba(47,93,80,.3);
  border-radius: 22px;
}

.portrait-main {
  position: relative;
  height: clamp(310px, 46vh, 520px);
  border-radius: 20px;
  overflow: hidden;
  background: #E3DED4;
  box-shadow:
    0 40px 80px -34px rgba(27,35,32,.5),
    0 2px 10px rgba(27,35,32,.07);
}

.portrait-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 28%;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}

.portrait:hover .portrait-main img { transform: scale(1.07); }

.portrait-main::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(16,23,20,.5) 0%, rgba(16,23,20,0) 48%);
}

/* Etiqueta de localização: canto inferior esquerdo, fora do rosto */
.portrait-tag {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 9px;
  row-gap: 1px;
  align-items: center;
  padding: 8px 15px 8px 12px;
  border-radius: 12px;
  background: var(--sage);
  box-shadow: 0 10px 24px -10px rgba(27,35,32,.6);
  color: #F5F2EC;
  font-weight: 600;
  white-space: nowrap;
}
.tag-kicker {
  grid-column: 2;
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
  line-height: 1.3;
}
.tag-local {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.3;
}
/* Ponto de "localização ativa" pulsando */
.portrait-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B8E0CC;
  grid-row: 1 / span 2;
  animation: tagPulse 2.4s ease-out infinite;
}
@keyframes tagPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,224,204,.7); }
  70%  { box-shadow: 0 0 0 7px rgba(184,224,204,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,224,204,0); }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-tag::before { animation: none; }
}

.portrait-inset {
  position: absolute;
  z-index: 2;
  right: -26px;
  bottom: -40px;
  width: clamp(132px, 17vh, 180px);
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #E3DED4;
  border: 6px solid var(--paper);
  box-shadow: 0 26px 50px -20px rgba(27,35,32,.5);
}

.portrait-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 30%;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.portrait:hover .portrait-inset img { transform: scale(1.09); }

.profile-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(27,35,32,.12);
}

.profile-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(9px, 1.3vh, 14px) 2px;
  border-bottom: 1px solid rgba(27,35,32,.10);
}

.fact-label {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
  flex: none;
}

.fact-value {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

/* --- Content Column --- */

.profile-content {
  padding-top: 4px;
}

.profile-content .lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.42;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: pretty;
  margin-bottom: clamp(16px, 2.2vh, 24px);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(16px, 2.6vh, 28px);
}

.tag {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(47,93,80,.24);
  background: rgba(47,93,80,.06);
  color: var(--sage);
  font-size: 11.5px;
  letter-spacing: .04em;
  font-weight: 600;
  white-space: nowrap;
}

.profile-divider {
  width: 46px;
  height: 2px;
  background: var(--sage);
  margin-bottom: clamp(16px, 2.6vh, 28px);
}

.profile-content .text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 20px;
}

.profile-content .text-columns p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-soft);
}

.profile-cta {
  margin-top: clamp(18px, 2.8vh, 34px);
  padding-top: clamp(14px, 2vh, 24px);
  border-top: 1px solid rgba(27,35,32,.10);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.profile-cta .btn {
  padding: 14px 32px;
  font-size: 13px;
}


/* Botão primário sobre fundos claros — contraste real */
.section-light .btn-primary,
.section-cream .btn-primary,
.form-card .btn-primary,
.lead-modal .btn-primary {
  background: var(--sage);
  color: #F5F2EC !important;
  box-shadow: 0 16px 32px -14px rgba(47,93,80,.6);
}
.section-light .btn-primary:hover,
.section-cream .btn-primary:hover,
.form-card .btn-primary:hover,
.lead-modal .btn-primary:hover {
  background: #26493F;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}
.form-card .btn-primary:disabled,
.lead-modal .btn-primary:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

/* --- Responsive --- */

@media (min-width: 1025px) {
  .profile-content .text-columns p:last-child {
    padding-left: 36px;
    border-left: 1px solid rgba(27,35,32,.10);
  }
}

@media (max-width: 1024px) {
  #perfil {
    min-height: 0;
    display: block;
    padding: 72px 0;
  }

  .portrait-main {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .profile-role-block {
    text-align: left;
    padding-bottom: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .profile-visual {
    max-width: 520px;
  }

  .profile-content .text-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .portrait {
    margin-bottom: 72px;
  }

  .portrait::before {
    left: -12px;
    top: -12px;
  }

  .portrait-main {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .portrait-inset {
    width: 132px;
    right: -8px;
    bottom: -46px;
    border-width: 5px;
  }

  .portrait-tag {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px 7px 10px;
  }
  .tag-local { font-size: 11px; }

  .profile-cta .btn { width: 100%; text-align: center; }
}

.section-grid.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section-grid.contact-info .section-header {
  max-width: 100%;
}
.section-grid.contact-info .contact-grid {
  width: 100%;
}
.hero-kicker.anim-done,
.hero-subtitle.anim-done {
  animation: none;
  opacity: 1;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.hero-kicker.anim-done.swapping,
.hero-subtitle.anim-done.swapping { opacity: 0; transform: translateY(8px); }

/* Só esconde para revelar via IntersectionObserver se houver JS */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Foco visível para navegação por teclado */
:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}
#topo :where(a, button):focus-visible,
.section-dark :where(a, button):focus-visible,
footer :where(a, button):focus-visible { outline-color: #F5F2EC; }

/* =========================================================
   Perfil content
   ========================================================= */

.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 27px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.section-body .lead { margin-bottom: 44px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #E3DED4; position: relative; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.text-columns p { font-size: 16px; line-height: 1.7; color: #4B5A54; text-wrap: pretty; }
.text-columns em { font-family: var(--serif); font-size: 17.5px; }

/* =========================================================
   Tracks / Audio list
   ========================================================= */

.tracks-container {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(27,35,32,.14);
}
.trk {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 4px;
  border-bottom: 1px solid rgba(27,35,32,.10);
  transition: background .3s ease, padding .3s var(--ease-out);
  border-radius: 6px;
}
.trk:hover { background: rgba(47,93,80,.05); padding-left: 12px; padding-right: 12px; }
.trk-btn {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(27,35,32,.18);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .3s var(--ease-out);
}
.trk-btn:hover { background: var(--sage); color: #F5F2EC; border-color: var(--sage); }
.trk-btn.playing { background: var(--sage); color: #F5F2EC; border-color: var(--sage); }
.trk-info { flex: 1; min-width: 180px; }
.trk-title {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.progress-track { height: 3px; background: rgba(27,35,32,.12); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--sage); border-radius: 2px; transition: width .2s linear; width: 0%; }
.trk-time {
  flex: none;
  font-size: 12.5px;
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
  min-width: 78px;
  text-align: right;
}

/* =========================================================
   Form
   ========================================================= */

.form-card {
  background: #F7F5F0;
  border-radius: 14px;
  padding: 56px;
  margin-bottom: 88px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}
.form-card .section-header h2 { color: var(--ink); font-size: 36px; }
.form-note { margin-top: 14px; font-size: 14.5px; color: var(--ink-mute); }

/* O atributo hidden precisa vencer o display de autor — sem isto,
   form { display: grid } mantém o formulário visível mesmo com hidden. */
[hidden] { display: none !important; }

form { display: grid; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field > span {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.form-field input,
.form-field textarea {
  width: 100%;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid rgba(27,35,32,.18);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  padding: 14px 16px;
  outline: none;
  resize: vertical;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(47,93,80,.14);
}
.error { font-size: 12px; color: var(--error); min-height: 16px; font-weight: 500; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-actions .btn { border: 0; }

.success-message {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(47,93,80,.28);
  border-radius: 10px;
  background: rgba(47,93,80,.07);
}
.success-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: #F7F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.success-title { font-family: var(--serif); font-size: 23px; color: var(--ink); margin-bottom: 4px; }
.success-text { font-size: 14px; color: var(--ink-mute); }

/* =========================================================
   Contact info
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}
.contact-block .eyebrow { display: block; margin-bottom: 14px; }
.address {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 23px;
  line-height: 1.5;
  color: #F5F2EC;
}
.map-links { display: flex; gap: 10px; margin-top: 26px; }
.phone-list { display: flex; flex-direction: column; gap: 2px; }
.phone-list a {
  font-family: var(--serif);
  font-size: 23px;
  color: #F5F2EC;
  padding: 5px 0;
  border-bottom: 1px solid rgba(237,233,225,.12);
}
.phone-list a:hover { color: var(--sage-light); }
.contact-block .eyebrow.light { margin-top: 30px; }
.email-link {
  font-family: var(--serif);
  font-size: 23px;
  color: #F5F2EC;
}
.email-link:hover { color: var(--sage-light); }

/* =========================================================
   Footer
   ========================================================= */

footer {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid rgba(237,233,225,.12);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 34px 32px;
  font-size: 12.5px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 38px; height: auto; }
.back-to-top { color: var(--muted-dark); }
.back-to-top:hover { color: #EDE9E1; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-header.sticky { position: static; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
  .lead { font-size: 21px; }
  .section-header h2 { font-size: 30px; }
  .section-light, .section-cream, .section-dark { padding: 72px 0; }
}
@media (max-width: 700px) {
  .form-card { padding: 36px 22px; }
  .text-columns { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .trk { flex-wrap: wrap; }
  .nav-cta { display: none; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-logo, .hero-kicker, .hero-subtitle, .hero-buttons {
    opacity: 1 !important;
    animation: none !important;
  }
  .slide-img { transition: none !important; }
  .wheel { animation: none; }
}

/* =========================================================
   Complementos: slides do hero, lista de áudios,
   honeypot e estado de erro do formulário
   ========================================================= */

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
#bg0 { opacity: 1; }

.tracks-container { list-style: none; }
.trk-icon { display: block; line-height: 1; }

/* Honeypot anti-spam: fora da tela, invisível para leitores de tela */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.error-message {
  display: none;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  margin-bottom: 22px;
  border: 1px solid rgba(180,70,58,.35);
  border-radius: 10px;
  background: rgba(180,70,58,.07);
}
.error-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--error);
  color: #F7F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.error-title { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 4px; }
.error-text { font-size: 14px; color: var(--ink-soft); }
.error-text a { font-weight: 600; }

/* =========================================================
   Horário de atendimento — seção de contato e rodapé
   ========================================================= */

.hours {
  display: grid;
  gap: 12px;
  margin: 0;
  max-width: 340px;
}
.hours > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(237,233,225,.12);
}
.hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt {
  font-size: 13.5px;
  color: var(--muted-dark);
  white-space: nowrap;
}
.hours dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  color: #F5F2EC;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footer-hours {
  color: var(--muted-dark);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .hours { max-width: none; }
  .footer-inner { justify-content: flex-start; }
}


/* =========================================================
   Lead → WhatsApp: botões, modal e botão flutuante
   ========================================================= */

.ico { width: 18px; height: 18px; flex: none; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
}
.btn-block { width: 100%; }

.lead-privacy { font-size: 12px; color: var(--ink-mute); }
.lead-done { align-items: flex-start; }
.lead-done a { font-weight: 600; }
.lead-config {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #7A4E12;
  background: rgba(181,119,31,.12);
}

.lead-modal {
  /* O reset global (* { margin: 0 }) anula o margin: auto que o navegador
     usa para centralizar o <dialog> — sem isto ele abre no canto. */
  margin: auto;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #F7F5F0;
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
  overflow: auto;
}
.lead-modal::backdrop {
  background: rgba(10,15,13,.62);
  backdrop-filter: blur(3px);
}
.lead-modal[open] { animation: leadIn .35s var(--ease-out); }
@keyframes leadIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
html:has(.lead-modal[open]) { overflow: hidden; }

.lead-body {
  display: grid;
  gap: 12px;
  padding: 40px 36px 32px;
}
.lead-body .eyebrow { margin: 0; }
.lead-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}
.lead-text { font-size: 14.5px; color: var(--ink-mute); margin-bottom: 8px; }
.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.lead-close:hover { background: rgba(27,35,32,.07); }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  cursor: pointer;
  transition: transform .25s var(--ease-out), opacity .25s var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
/* Escondido enquanto o hero (que já tem o botão de WhatsApp) está na tela */
.wa-float.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
.wa-float .ico { width: 30px; height: 30px; }

@media (orientation: portrait) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 32px 20px 56px;
    gap: 36px;
  }
}
@media (max-width: 560px) {
  .lead-body { padding: 36px 22px 24px; }
  .hero-buttons .btn { width: 100%; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-modal[open], .hero-meta { animation: none !important; }
}


/* =========================================================
   Hero claro com imagem de fundo
   As imagens têm a pessoa à DIREITA e o lado esquerdo branco:
   o texto fica direto sobre o branco, no verde-sálvia do site.
   ========================================================= */

.hero-copy { grid-column: 1; }
/* Em telas largas a foto amplia e corta em cima/embaixo: prioriza o topo, onde ficam os rostos */
#topo .slide-img { object-position: 50% 28%; }
.hero-dots { margin-top: 14px; }
.hero-overlay {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#topo .btn-primary {
  background: var(--hero-accent);
  color: #FFFFFF !important;
  box-shadow: 0 16px 32px -14px rgba(47,93,80,.55);
}
#topo .btn-primary:hover { background: var(--hero-accent-deep); color: #FFFFFF !important; }
#topo .btn-outline {
  border-color: rgba(38,73,63,.35);
  color: var(--hero-accent-deep) !important;
}
#topo .btn-outline:hover {
  background: rgba(47,93,80,.08);
  border-color: var(--hero-accent);
  color: var(--hero-accent-deep) !important;
}

/* Retrato (celular e tablet em pé): o recorte da foto fica no topo e se
   dissolve no branco; o texto vem logo abaixo, sem cobrir o rosto. */
@media (orientation: portrait) {
  #topo .slide-img {
    height: auto;
    bottom: auto;
    aspect-ratio: 760 / 950;
    object-position: 50% 20%;
  }
  .hero-overlay {
    display: block;
    background: linear-gradient(180deg,
      rgba(255,255,255,0) 0,
      rgba(255,255,255,0) calc(100vw * 1.25 * .45),
      #FFFFFF calc(100vw * 1.25 * .74),
      #FFFFFF 100%);
  }
  #topo .hero-inner {
    min-height: 0;
    align-content: start;
    padding-top: calc(100vw * 1.25 * .60);
  }
}

/* Celular e tablet em pé: hero centralizado (logo, textos, botões e indicadores) */
@media (orientation: portrait) {
  .hero-copy { align-items: center; text-align: center; }
  .hero-kicker { justify-content: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-buttons,
  .hero-dots { justify-content: center; }
}
