/* ==========================================================================
   Ana Vitória Lúcio — Nutricionista em Fortaleza
   Estrutura: tokens · base · componentes · seções · movimento · responsivo
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0908;
  --bg-raised: #110e0c;
  --text: #f4eee8;
  --text-soft: #d5cac1;
  --muted: #ab9e94;
  --subtle: #8b7f76;
  --accent: #efb17f;
  --accent-light: #f5c69f;
  --accent-deep: #e6a06c;
  --bronze: #9a5d37;
  --champagne: #f2d5be;
  --border: rgba(239, 177, 127, .18);
  --border-strong: rgba(239, 177, 127, .36);
  --border-soft: rgba(255, 255, 255, .08);

  --serif: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --serif-italic: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: clamp(20px, 5vw, 76px);
  --container: 1320px;
  --header-h: 80px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --section-space: clamp(88px, 10vw, 148px);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

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

::selection { background: rgba(239, 177, 127, .32); color: #fff; }

html.menu-open,
html.menu-open body { overflow: hidden; }

.container {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #17100c;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform .4s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--brand { fill: currentColor; stroke: none; }

/* Textura: ruído quase imperceptível sobre toda a página */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #dcb898;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 177, 127, .12), 0 0 14px rgba(239, 177, 127, .55);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2.5rem, 1.55rem + 2.9vw, 4.25rem);
  line-height: 1.02;
}
.section-title em { font-size: 1.06em; line-height: .9; }
.section-title .line { display: block; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(135deg, rgba(42, 33, 26, .6), rgba(17, 13, 11, .44));
  border: 1px solid rgba(239, 188, 143, .15);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 222, .08),
    0 28px 60px -28px rgba(0, 0, 0, .75);
}

/* ---------- Botões ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .5s var(--ease),
    box-shadow .5s var(--ease),
    background-color .35s ease,
    border-color .35s ease;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 1.8; transition: transform .5s var(--ease); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13px; }

.btn-primary {
  color: #1b130d;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  box-shadow: 0 12px 30px -12px rgba(226, 145, 88, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 244, 234, .38), rgba(255, 244, 234, 0) 65%);
  opacity: 0;
  transition: opacity .4s ease;
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, .2);
  background-color: rgba(14, 11, 9, .3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost .icon--brand { width: 15px; height: 15px; }

.btn:active { transform: scale(.98); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(226, 145, 88, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
  .btn-primary:hover::after { opacity: 1; }
  .btn-ghost:hover { border-color: rgba(239, 177, 127, .5); background-color: rgba(34, 26, 20, .5); }
  .btn:hover .icon-shift { transform: translateX(4px); }
  .btn:hover .icon-diag { transform: translate(2px, -2px); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
}
/* Degradê de leitura no topo (sobre a foto) e fundo translúcido ao rolar */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.site-header::before { background: linear-gradient(180deg, rgba(6, 5, 4, .5), rgba(6, 5, 4, 0)); }
.site-header::after {
  opacity: 0;
  background: rgba(11, 9, 8, .66);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled::after { opacity: 1; }
html.menu-open .site-header::after,
html.menu-open .site-header::before { opacity: 0; }

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  border-radius: 8px;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.14em;
  padding-right: .14em;
  color: var(--accent);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 12px;
  border-left: 1px solid rgba(239, 177, 127, .28);
  line-height: 1;
}
.brand-text b { font-size: 12.5px; font-weight: 600; letter-spacing: .22em; }
.brand-text small { font-size: 8.5px; letter-spacing: .32em; color: #bba898; }

.nav ul { display: flex; gap: clamp(22px, 2.5vw, 38px); }
.nav a {
  display: block;
  padding: 10px 2px;
  border-radius: 6px;
  color: rgba(238, 228, 220, .7);
  font-size: 13.5px;
  transition: color .3s ease;
}
.nav a:hover,
.nav a.is-active { color: var(--text); }

.header-cta { justify-self: end; }

.menu-toggle { display: none; }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 20px) var(--pad) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 80% 50% at 85% 0%, rgba(154, 93, 55, .22), transparent 70%),
    rgba(9, 7, 6, .82);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
html.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease), visibility 0s;
}

.mobile-menu__nav li {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
html.menu-open .mobile-menu__nav li { opacity: 1; transform: none; }
html.menu-open .mobile-menu__nav li:nth-child(1) { transition-delay: .08s; }
html.menu-open .mobile-menu__nav li:nth-child(2) { transition-delay: .13s; }
html.menu-open .mobile-menu__nav li:nth-child(3) { transition-delay: .18s; }
html.menu-open .mobile-menu__nav li:nth-child(4) { transition-delay: .23s; }
html.menu-open .mobile-menu__nav li:nth-child(5) { transition-delay: .28s; }

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: clamp(34px, 9.5vw, 48px);
  line-height: 1.05;
  color: var(--text);
  transition: color .3s ease;
}
.mobile-menu__nav a span {
  min-width: 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent);
}
.mobile-menu__nav a:active { color: var(--accent-light); }

.mobile-menu__footer {
  display: grid;
  gap: 20px;
  margin-top: auto;
  padding-top: 36px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
html.menu-open .mobile-menu__footer { opacity: 1; transform: none; transition-delay: .32s; }
.mobile-menu__footer .btn { width: 100%; }
.mobile-menu__meta { color: var(--muted); font-size: 13px; text-align: center; }
.mobile-menu__meta a { color: var(--text-soft); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hero-shift: clamp(0px, 12vw, 320px);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: clamp(640px, 100svh, 960px);
  padding-block: calc(var(--header-h) + 40px) clamp(128px, 15vh, 176px);
  overflow: hidden;
  background: var(--bg);
}

/* Fotografia full-bleed: o lado da pessoa fica preservado, o lado do texto escurece */
.hero-media {
  position: absolute;
  inset: 0 0 0 var(--hero-shift);
  z-index: -3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}
.hero-media picture,
.hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover;
  object-position: 40% 34%;
  filter: saturate(.94) contrast(1.04) brightness(.9);
  animation: hero-image-in 2.4s var(--ease) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, .5) 0%, rgba(10, 9, 8, 0) 20%, rgba(10, 9, 8, 0) 58%, rgba(10, 9, 8, .78) 88%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 9, 8, .9) 16%, rgba(10, 9, 8, .66) 34%, rgba(10, 9, 8, .2) 54%, rgba(10, 9, 8, 0) 70%, rgba(10, 9, 8, .28) 100%),
    radial-gradient(ellipse 50% 60% at 66% 42%, rgba(214, 140, 86, .1), transparent 70%);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: -1;
  width: 100%;
  height: clamp(120px, 14vw, 200px);
  pointer-events: none;
}
.hero-wave path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 3.2s .6s var(--ease) forwards;
}

.hero-inner { position: relative; }

.hero-copy {
  max-width: min(640px, 48vw);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.hero-title {
  font-size: clamp(3.2rem, 1.05rem + 4.5vw, 6rem);
  line-height: .96;
  letter-spacing: -.02em;
}
.hero-title .line { display: block; }
.hero-title em { font-size: 1.08em; }

.hero-lead {
  max-width: 520px;
  margin: 28px 0 36px;
  color: #d8cdc4;
  font-size: clamp(15.5px, .85rem + .3vw, 18px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
  color: #c9bdb3;
  font-size: 13px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--accent); }

/* Entrada do hero (CSS puro, não depende de JS) */
.hero .eyebrow,
.hero-title .line,
.hero-lead,
.hero-actions,
.hero-meta { animation: rise-in 1.1s var(--ease) both; }
.hero .eyebrow { animation-delay: .15s; }
.hero-title .line:nth-child(1) { animation-delay: .25s; }
.hero-title .line:nth-child(2) { animation-delay: .34s; }
.hero-title .line:nth-child(3) { animation-delay: .43s; }
.hero-lead { animation-delay: .56s; }
.hero-actions { animation-delay: .66s; }
.hero-meta { animation-delay: .76s; }

/* ==========================================================================
   Especialidades
   ========================================================================== */
.specialties {
  position: relative;
  z-index: 3;
  margin-top: -84px;
}

.specialties-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px;
  border-radius: var(--radius);
}
.specialties-panel li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 22px 12px;
  text-align: center;
}
.specialties-panel li + li::before {
  content: "";
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .12), transparent);
}

.spec-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  color: var(--accent);
  border: 1px solid rgba(239, 177, 127, .2);
  background: radial-gradient(circle at 50% 30%, rgba(239, 177, 127, .16), rgba(239, 177, 127, .02) 70%);
}
.spec-icon .icon { width: 22px; height: 22px; }

.spec-text { min-width: 0; line-height: 1.35; }
.spec-text b { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.spec-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Seções
   ========================================================================== */
.section {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
}

/* ---------- Sobre ---------- */
.about { padding-bottom: clamp(72px, 8vw, 112px); }
.about::before {
  content: "";
  position: absolute;
  top: 6%;
  left: -12%;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(154, 93, 55, .17), transparent 64%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(56px, 8vw, 128px);
}

.about-media {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  margin: 0 28px 0 0;
}
/* Moldura editorial deslocada */
.about-media::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1px solid rgba(239, 177, 127, .2);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 500 / 455;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #1a1411;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.86) contrast(1.05) saturate(.9) sepia(.08);
}
.about-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0) 50%, rgba(10, 9, 8, .6) 100%),
    linear-gradient(135deg, rgba(154, 93, 55, .16), rgba(154, 93, 55, 0) 55%);
}

.about-quote {
  position: absolute;
  right: -28px;
  bottom: 30px;
  width: min(260px, 66%);
  padding: 20px 22px;
  border-radius: 18px;
  color: #efd6c2;
  font-family: var(--serif-italic);
  font-size: 19px;
  font-style: italic;
  line-height: 1.32;
}

.about-copy { max-width: 580px; }
.about-copy .section-title { margin-bottom: 28px; }
.about-text { color: var(--text-soft); font-size: 17px; line-height: 1.75; }
.credential {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 22px 0 36px;
  color: var(--subtle);
  font-size: 13.5px;
  letter-spacing: .02em;
}
.credential::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-right: 6px;
  background: var(--border-strong);
}

/* ---------- Métricas ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--header-h) + 40px);
}
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 44px) clamp(18px, 2.4vw, 36px);
}
.metric:first-child { padding-left: 0; }
.metric + .metric::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 1px;
  background: var(--border-soft);
}
.metric-value {
  color: var(--champagne);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.7rem + 1.7vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.metric-label {
  max-width: 24ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* ---------- Serviços ---------- */
.services {
  border-top: 1px solid var(--border-soft);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(154, 93, 55, .1), transparent 70%),
    linear-gradient(180deg, var(--bg-raised), var(--bg) 75%);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-heading .section-title { margin: 0; }
.section-heading > p {
  max-width: 380px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
}
.cards > li { display: flex; min-width: 0; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(239, 177, 127, .14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 22, 18, .9), rgba(14, 11, 9, .96));
  box-shadow: inset 0 1px 0 rgba(255, 238, 222, .05);
  transition: border-color .5s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease);
}

.service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #16110e;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.06) brightness(.8) sepia(.14);
  transition: transform 1.1s var(--ease), filter .7s ease;
}
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 11, 9, 0) 38%, rgba(18, 14, 11, .96) 100%),
    linear-gradient(135deg, rgba(154, 93, 55, .2), rgba(154, 93, 55, 0) 55%);
  transition: opacity .7s ease;
}

.service-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: -40px;
  padding: 0 clamp(20px, 1.8vw, 26px) clamp(20px, 1.8vw, 26px);
}
.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--accent);
  border: 1px solid rgba(239, 177, 127, .28);
  background: rgba(18, 14, 11, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.service-icon .icon { width: 22px; height: 22px; }
.service-index { color: var(--accent); font-size: 11px; letter-spacing: .22em; }

.service-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 1.15rem + .6vw, 1.95rem);
  line-height: 1.08;
}
.service-link { border-radius: 4px; }
/* Link expandido: o card inteiro é clicável */
.service-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
}
.service-link:focus-visible { outline: none; }
.service-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }

.service-card p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.service-arrow {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 42px;
  height: 42px;
  margin-top: auto;
  border-radius: 50%;
  border: 1px solid rgba(239, 177, 127, .3);
  color: var(--accent);
  transition: transform .5s var(--ease), border-color .4s ease, background-color .4s ease;
}
.service-arrow .icon { width: 17px; height: 17px; }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(255, 238, 222, .07), 0 30px 60px -34px rgba(0, 0, 0, .95);
  }
  .service-card:hover .service-media img {
    transform: scale(1.04);
    filter: saturate(.9) contrast(1.06) brightness(.9) sepia(.1);
  }
  .service-card:hover .service-media::after { opacity: .88; }
  .service-card:hover .service-arrow {
    transform: translate(3px, -3px);
    border-color: rgba(239, 177, 127, .6);
    background-color: rgba(239, 177, 127, .1);
  }
}

/* ---------- CTA final ---------- */
.cta { padding-bottom: clamp(72px, 9vw, 128px); }

.cta-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 46vw, 660px);
  overflow: hidden;
  border: 1px solid rgba(239, 177, 127, .14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 55% 75% at 12% 60%, rgba(154, 93, 55, .2), transparent 70%),
    #0c0a09;
  box-shadow: inset 0 1px 0 rgba(255, 238, 222, .05), 0 60px 120px -60px rgba(0, 0, 0, .9);
}

.cta-media {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36%);
}
.cta-media img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 58% 80%;
  filter: saturate(.86) contrast(1.08) brightness(.84) sepia(.1);
}
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, .35), rgba(12, 10, 9, 0) 35%, rgba(12, 10, 9, 0) 70%, rgba(12, 10, 9, .55)),
    radial-gradient(ellipse 60% 50% at 60% 62%, rgba(214, 140, 86, .12), transparent 70%);
}

.cta-copy {
  position: relative;
  max-width: 600px;
  padding: clamp(40px, 5.5vw, 88px);
}
.cta-copy .section-title { margin-bottom: 24px; }
.cta-text {
  max-width: 460px;
  margin-bottom: 36px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.quote-card {
  position: absolute;
  right: clamp(24px, 3vw, 44px);
  bottom: clamp(24px, 3vw, 44px);
  width: min(290px, 30%);
  padding: 26px 26px 24px;
  border-radius: 20px;
}
.quote-mark {
  display: block;
  height: 30px;
  color: var(--accent);
  font-family: var(--serif-italic);
  font-size: 64px;
  line-height: 1;
}
.quote-card p {
  margin: 8px 0 16px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
}
.quote-card footer {
  color: #d9b99f;
  font-family: var(--serif-italic);
  font-size: 17px;
  font-style: italic;
}
.quote-card footer::before { content: "— "; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg), #080706);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px 48px;
  padding-block: 52px 40px;
}
.footer-brand { display: grid; gap: 18px; justify-items: start; }
.footer-brand p { color: var(--subtle); font-size: 13px; line-height: 1.7; }

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { color: var(--muted); font-size: 13.5px; transition: color .3s ease; }
.footer-nav a:hover { color: var(--text); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 24px;
}
.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text-soft);
  transition: color .35s ease, border-color .35s ease, background-color .35s ease, transform .5s var(--ease);
}
.social .icon { width: 17px; height: 17px; }

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.footer-cta .icon { width: 16px; height: 16px; transition: transform .5s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .social a:hover {
    color: var(--accent);
    border-color: var(--border-strong);
    background-color: rgba(239, 177, 127, .07);
    transform: translateY(-2px);
  }
  .footer-cta:hover .icon { transform: translate(2px, -2px); }
  .to-top:hover { color: var(--accent); border-color: var(--border-strong); }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-soft);
  color: var(--subtle);
  font-size: 12.5px;
}
.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text-soft);
  transition: color .35s ease, border-color .35s ease;
}
.to-top .icon { width: 17px; height: 17px; }

/* ==========================================================================
   Movimento
   ========================================================================== */
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes hero-image-in {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* Scroll reveal (só esconde quando o JS está ativo) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity .9s var(--ease),
    transform 1.1s var(--ease),
    filter 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="blur"] { filter: blur(8px); }
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(14% 0 0 0 round var(--radius-lg));
  transition: clip-path 1.4s var(--ease);
}
.js [data-reveal="clip"] img {
  transform: scale(1.12);
  transition: transform 1.8s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.js [data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js [data-reveal="clip"].is-visible img { transform: none; }

[data-parallax] { will-change: transform; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

/* Desktop compacto */
@media (max-width: 1199px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-media { aspect-ratio: 16 / 10; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(odd) { padding-left: 0; }
  .metric:nth-child(3)::before { display: none; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--border-soft); }
  .metric-label { max-width: 30ch; }
}

/* Navegação vira menu */
@media (max-width: 1023px) {
  :root { --header-h: 72px; }

  .nav,
  .header-cta { display: none; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }

  .menu-toggle {
    position: relative;
    display: inline-grid;
    place-content: center;
    gap: 6px;
    justify-self: end;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(14, 11, 9, .38);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .5s var(--ease);
  }
  html.menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  html.menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .quote-card p { font-size: 19px; }

  .specialties-panel li { padding: 20px 6px; }
  .spec-text b { font-size: 13.5px; }
  .spec-text small { font-size: 12px; }
}

/* Hero empilhado: tablets em pé e celulares */
@media (max-width: 767px), (orientation: portrait) and (max-width: 1100px) {
  .hero {
    --hero-img-h: clamp(440px, 80vw, 740px);
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--hero-img-h) - 180px) 128px;
  }
  .hero-media {
    inset: 0 0 auto;
    height: var(--hero-img-h);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  }
  .hero-media img { object-position: 56% 30%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 9, 8, .5) 0%, rgba(10, 9, 8, 0) 18%, rgba(10, 9, 8, 0) calc(var(--hero-img-h) * .45), rgba(10, 9, 8, .8) calc(var(--hero-img-h) - 110px), var(--bg) var(--hero-img-h));
  }
  .hero-copy { max-width: 640px; }
  .hero-title { font-size: clamp(2.9rem, 1.1rem + 5.4vw, 4.6rem); }
  .hero-wave { bottom: 56px; opacity: .7; }

  .specialties { margin-top: -64px; }
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .about-media { max-width: 480px; justify-self: start; }
  .about-copy { max-width: 620px; }

  .cta-stage {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .cta-media {
    inset: 0 0 auto;
    height: clamp(280px, 64vw, 480px);
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  }
  .cta-media img { object-position: 50% 64%; }
  .cta-copy {
    max-width: none;
    padding: calc(clamp(280px, 64vw, 480px) - 64px) clamp(24px, 5vw, 48px) 32px;
  }
  .quote-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px);
  }

  .footer-top { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; }
  .footer-contact { grid-row: 1; grid-column: 2; }
}

/* Celular */
@media (max-width: 767px) {
  :root { --section-space: clamp(80px, 20vw, 104px); }

  .hero {
    --hero-img-h: clamp(420px, 122vw, 620px);
    padding-block: calc(var(--hero-img-h) - 150px) 56px;
  }
  .hero-media img { object-position: 50% 26%; }
  .hero-title { font-size: clamp(2.6rem, 11.4vw, 3.4rem); line-height: .98; }
  .hero-lead { margin: 20px 0 28px; font-size: 15.5px; line-height: 1.65; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { flex-direction: column; gap: 10px; margin-top: 26px; }
  .hero-wave { display: none; }

  .specialties { margin-top: 0; }
  .specialties-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 18px;
  }
  .specialties-panel li {
    flex-direction: row;
    gap: 16px;
    padding: 14px 0;
    text-align: left;
  }
  .specialties-panel li + li::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .1) 30%, rgba(255, 255, 255, .02));
  }
  .spec-icon { width: 42px; height: 42px; }
  .spec-icon .icon { width: 20px; height: 20px; }
  .spec-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
  .spec-text b { font-size: 15px; }
  .spec-text small { margin: 0; font-size: 13.5px; }

  .section-title { font-size: clamp(2.35rem, 10vw, 2.9rem); }

  .about-media { margin: 0 18px 44px 0; }
  .about-media::before { inset: 18px -18px -18px 18px; }
  .about-quote {
    right: -18px;
    bottom: -40px;
    width: min(250px, 78%);
    padding: 16px 18px;
    font-size: 17px;
  }
  .about-text { font-size: 16px; }
  .credential { margin: 20px 0 30px; }
  .about .actions .btn { width: 100%; }

  .section-heading > p { font-size: 15.5px; padding: 0; }

  .cta-text { font-size: 16px; margin-bottom: 30px; }
  .cta .actions { flex-direction: column; }
  .cta .actions .btn { width: 100%; }
  .quote-card { padding: 22px; }
  .quote-card p { font-size: 19px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px 32px; }
  .footer-nav { grid-row: auto; }
  .footer-contact { grid-row: auto; grid-column: auto; justify-content: space-between; }
  .footer-bottom { flex-direction: column; align-items: flex-start; position: relative; padding-right: 60px; }
  .to-top { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .service-media { aspect-ratio: 16 / 10; }

  .metrics { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .metric,
  .metric:nth-child(odd) {
    display: grid;
    grid-template-columns: minmax(0, 7.4rem) minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    padding: 22px 0;
  }
  .metric + .metric::before { display: none; }
  .metric:nth-child(n + 2) { border-top: 1px solid var(--border-soft); }
  .metric:last-child { border-bottom: 1px solid var(--border-soft); }
  .metric-value { font-size: clamp(2rem, 9vw, 2.35rem); }
  .metric-label { max-width: none; font-size: 14px; }
}

@media (max-width: 380px) {
  .brand-text b { font-size: 11.5px; letter-spacing: .18em; }
  .brand-mark { font-size: 30px; }
  .metric,
  .metric:nth-child(odd) { grid-template-columns: minmax(0, 6.4rem) minmax(0, 1fr); column-gap: 14px; }
  .metric-value { font-size: 1.95rem; }
  .metric-label { font-size: 13.5px; }
}

/* Telas muito largas */
@media (min-width: 1680px) {
  :root { --container: 1440px; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-reveal="clip"],
  .js [data-reveal="clip"] img {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
  [data-parallax] { transform: none !important; will-change: auto; }
}
