/* ==========================================================================
   Kalina Freitas — Nutricionista em Guarabira-PB
   Estrutura: 1. Fontes · 2. Tokens · 3. Base · 4. Componentes · 5. Header
              6. Hero · 7. Seções · 8. Footer · 9. Animações
   Breakpoints (iguais à referência): mobile < 810px · tablet 810–1199px · desktop ≥ 1200px
   ========================================================================== */

/* 1. FONTES -------------------------------------------------------------------
   Manrope (Google Fonts, ver <link> no <head> com preconnect + display=swap)
   é a família do site: sans moderna, arredondada e premium, usada em
   títulos, textos, botões e navegação. O arquivo local de Inter em
   assets/fonts/ ficou sem uso e pode ser removido. */

/* 2. TOKENS ----------------------------------------------------------------- */
:root {
  /* Paleta da marca (manual de identidade) */
  --c-brown: #8a4e2f;      /* terracota / caramelo — cor de ação */
  --c-brown-700: #6e3f26;  /* textos de destaque sobre fundos claros */
  --c-brown-900: #3b2a20;  /* marrom café — rodapé e contraste */
  --c-tint: #e4dbd0;       /* taupe claro */
  --c-beige: #efe6d6;
  --c-offwhite: #f7f1e7;
  --c-paper: #fbf8f2;
  --c-sand-100: #eedfd1;
  --c-taupe: #a49d96;
  --c-terracota: #8a4e2f;
  --c-ink: #2b221d;
  --c-text: #4a413b;
  --c-muted: #665b53;
  --c-line: #ddd3c4;
  --c-line-strong: #c9bcac;
  --c-white: #fff;

  /* Título e texto usam a mesma família — Manrope — a pedido do cliente. */
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: var(--f-sans);

  --container: 1200px;
  --gutter: 25px;
  --section-y: 88px;
  --header-h: 76px;

  --radius-sm: 6px;
  --radius: 15px;
  --radius-lg: 20px;
  --radius-xl: 25px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --shadow-soft: 0 30px 60px -40px rgba(59, 42, 32, 0.35);
}
@media (min-width: 810px) {
  :root { --gutter: 50px; --section-y: 120px; }
}
@media (min-width: 1200px) {
  :root { --section-y: 140px; }
}

/* 3. BASE ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }

h1, h2, h3, .serif {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.125rem); }
/* Manrope não tem itálico no Google Fonts; a palavra de destaque usa só a cor da marca */
h1 em, h2 em, .serif em { font-style: normal; color: var(--c-terracota); }
h3 { font-size: 1rem; line-height: 1.3; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--c-brown-900);
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 2px solid var(--c-terracota);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--c-brown); color: var(--c-white); }

/* 4. COMPONENTES ------------------------------------------------------------ */

/* Etiquetas e sobretítulos */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--c-tint);
  color: var(--c-brown-700);
  font: 600 0.8125rem/1.2 var(--f-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--hero {
  padding: 4px 14px 4px 4px;
  border-radius: var(--radius-sm);
  background: var(--c-brown);
  color: var(--c-white);
  letter-spacing: 0.05em;
}
.tag__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--c-offwhite);
  color: var(--c-brown);
}
.tag__icon .icon { width: 17px; height: 17px; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--c-terracota);
  font: 600 0.8125rem/1.3 var(--f-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Botões — preenchimento circular no hover, como na referência */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-brown-900);
  --btn-border: transparent;
  --btn-fill: var(--c-brown-900);
  --btn-fg-hover: var(--c-white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.9375rem/1.25 var(--f-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease-out);
}
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn:active { transform: scale(0.98); }
@media (hover: hover) {
  .btn:hover { color: var(--btn-fg-hover); border-color: var(--btn-fill); }
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); }
  .btn:hover .icon { transform: translateX(3px); }
}
.btn--primary {
  --btn-bg: var(--c-brown);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-brown);
}
.btn--outline {
  --btn-border: var(--c-brown-900);
}
.btn--light {
  --btn-bg: var(--c-offwhite);
  --btn-fg: var(--c-brown-900);
  --btn-border: var(--c-offwhite);
  --btn-fill: var(--c-beige);
  --btn-fg-hover: var(--c-brown-900);
}
.btn--sm { min-height: 46px; padding: 10px 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* Link com seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  color: var(--c-brown-900);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.link-arrow .icon { transition: transform 0.4s var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover span { background-size: 100% 1px; }
  .link-arrow:hover .icon { transform: translateX(4px); }
}

/* Círculos de ícone (alternam sálvia / areia, como roxo / verde na referência) */
.icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-brown-700);
}
.icon-circle .icon { width: 22px; height: 22px; }
.icon-circle--sand { background: var(--c-sand-100); color: var(--c-terracota); }
.icon-circle--light { background: var(--c-paper); color: var(--c-brown-700); }
.icon-circle--strong { background: var(--c-brown); color: var(--c-white); }
.icon-circle--lg { width: 56px; height: 56px; }
.icon-circle--lg .icon { width: 24px; height: 24px; }

/* Cabeçalho de seção */
.section-head { max-width: 640px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow):not(.tag) { margin-top: 16px; color: var(--c-muted); }

/* 5. HEADER ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 231, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-color: var(--c-line);
  box-shadow: 0 10px 30px -24px rgba(43, 34, 29, 0.45);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--c-ink);
  line-height: 1;
  text-decoration: none;
}
.logo__mark {
  height: 46px;
  width: auto;
  transition: opacity 0.3s;
}
.logo:hover .logo__mark { opacity: 0.85; }
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__list { display: flex; gap: 30px; }
.nav__list a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: var(--c-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__list a:hover,
.nav__list a.is-active { color: var(--c-ink); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  padding: 12px var(--gutter) 28px;
  background: var(--c-offwhite);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 30px 40px -30px rgba(43, 34, 29, 0.35);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__list { margin-bottom: 24px; }
.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-size: 1.875rem;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu__meta {
  margin-top: 16px;
  color: var(--c-muted);
  font-size: 0.8125rem;
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header__cta { margin-left: auto; }
}
@media (max-width: 599px) {
  :root { --header-h: 68px; }
  .site-header__cta { display: none; }
  .logo__mark { height: 38px; }
}

/* 6. HERO ------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-beige);
}
.hero__media {
  position: absolute;
  z-index: 0; /* contexto próprio: as camadas de fade ficam acima da foto e abaixo do texto */
  inset: 0 0 0 auto;
  width: 51%;
  overflow: hidden;
}
.hero__media picture,
.hero__media img { width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover;
  object-position: 50% 16%;
}
/* A foto nunca recebe transform/scale: o fade é uma camada separada, só na
   borda esquerda (32% da largura), na cor exata do fundo do Hero. Termina
   antes de alcançar a Kalina, então ela fica sempre nítida e descoberta. */
.hero__media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(
    to right,
    var(--c-beige) 0%,
    rgba(239, 230, 214, 0.9) 20%,
    rgba(239, 230, 214, 0.62) 45%,
    rgba(239, 230, 214, 0.28) 72%,
    rgba(239, 230, 214, 0) 100%
  );
  pointer-events: none;
}
/* Aquece o cinza do fundo da foto para conversar com o bege da marca */
.hero__media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--c-beige);
  mix-blend-mode: multiply;
  opacity: 0.22;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(580px, calc(100svh - var(--header-h) - 24px), 720px);
  padding-block: 56px 132px;
}
.hero__content { width: 54%; max-width: 640px; }
.hero__title .tag { margin-bottom: 22px; }
.hero__headline {
  display: block;
  /* Mínimo em 2.25rem (36px): em telas de 320–400px o título de 46px quebrava
     em linhas curtas e desequilibradas. Cresce normalmente a partir daí. */
  font-size: clamp(2.25rem, 1.1rem + 4.4vw, 4.75rem);
  line-height: 1.06; /* um pouco mais folgado que 0.98 para não cortar o "ç" itálico */
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* Destaque "evolução": única palavra do site em serifada itálica, igual à referência da marca */
/* Destaque "evolução": mesma fonte, peso e espaçamento do título — só
   inclinada e na cor da marca. (A Manrope não tem itálico próprio; o
   navegador gera a versão inclinada da mesma fonte.) */
.hero-highlight {
  font-style: italic;
  color: var(--c-terracota);
}
.hero__lead {
  max-width: 30em;
  margin-top: 22px;
  color: var(--c-text);
  font-size: 1.0625rem;
}
.hero .btn-row { margin-top: 32px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-top: 26px;
  color: var(--c-ink);
  font-size: 0.875rem;
}
.hero__meta li { display: flex; align-items: center; }
.hero__meta li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline: 16px;
  border-radius: 50%;
  background: var(--c-brown);
}

/* Faixa de confiança */
.trust {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: -72px auto 0;
  padding: 26px 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
  box-shadow: var(--shadow-soft);
}
.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.trust__item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--c-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 1199px) {
  .hero__content { width: 54%; }
  .hero__media { width: 48%; }
}
@media (max-width: 1023px) {
  .trust { grid-template-columns: repeat(2, 1fr); gap: 22px 24px; }
}
@media (max-width: 809px) {
  .hero { display: flex; flex-direction: column; }
  /* Com a foto acima, o texto recebe menos respiro no topo (o degradê da foto
     já cria a transição) e mais embaixo, antes da faixa de confiança. */
  .hero__inner { min-height: 0; padding-block: 4px 32px; }
  .hero__content { width: 100%; max-width: 560px; }
  /* No mobile a foto vem PRIMEIRO: no DOM ela já é o primeiro filho de .hero,
     então basta não reordenar (o order: 2 anterior é que a jogava para baixo). */
  .hero__media {
    position: relative;
    width: 100%;
    height: clamp(380px, 112vw, 560px);
  }
  .hero__media img { object-position: 50% 12%; }
  /* Com a foto acima do texto, a fusão acontece na BASE da imagem: o degradê
     sobe de baixo para cima, dissolvendo o rodapé da foto no bege da seção. */
  .hero__media::before {
    inset: auto 0 0 0;
    width: auto;
    height: 28%;
    background: linear-gradient(
      to top,
      var(--c-beige) 0%,
      rgba(239, 230, 214, 0.9) 20%,
      rgba(239, 230, 214, 0.62) 45%,
      rgba(239, 230, 214, 0.28) 72%,
      rgba(239, 230, 214, 0) 100%
    );
  }
  /* A quebra fixa do título ("...a sua" | "evolução?") é pensada para o
     desktop. No celular ela criaria linhas desequilibradas — a quebra sai e o
     text-wrap: balance distribui as linhas (o espaço já está no HTML). */
  .hero__headline .br-desktop { display: none; }
  /* A lista de credenciais sai inteira do Hero no mobile: o CRN aparece logo
     abaixo, com destaque e explicação, na faixa de confiança; "Nutrição
     clínica e esportiva" também está na faixa e na seção de atuação.
     No desktop a lista continua (lá há espaço de sobra). */
  .hero__meta { display: none; }
  /* Etiqueta do Hero mais discreta no celular: texto, ícone e paddings
     reduzidos juntos, para a proporção interna não quebrar. */
  .hero__title .tag--hero {
    margin-bottom: 16px;
    padding: 3px 11px 3px 3px;
    gap: 8px;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
  }
  .hero__title .tag--hero .tag__icon { width: 24px; height: 24px; }
  .hero__title .tag--hero .tag__icon .icon { width: 14px; height: 14px; }
  .hero .btn-row { flex-direction: column; }
  .hero .btn { width: 100%; }
  /* A sobreposição negativa existia para a faixa invadir a foto no fim do
     hero. Com a foto no topo, o hero termina em texto — subir a faixa o
     cobriria, então aqui ela apenas segue o fluxo. */
  .trust { margin-top: 0; padding: 22px 20px; gap: 22px 16px; }
  .trust__item { flex-direction: column; gap: 10px; }
}

/* 7. SEÇÕES ------------------------------------------------------------------ */
.section--flush-top { padding-top: 0; }

/* Áreas de atuação */
.areas { padding-top: clamp(64px, 8vw, 100px); }
.areas__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}
.areas__intro h2 { margin-top: 18px; }
.areas__intro > p:last-child { max-width: 28em; margin-top: 18px; color: var(--c-muted); }
.areas__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
  padding-top: 12px;
}
.feature h3 { margin-top: 24px; font-size: 1.0625rem; }
.feature p { margin-top: 6px; color: var(--c-muted); font-size: 0.9375rem; line-height: 1.5; }

/* Método + Sobre */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.72fr) minmax(0, 0.72fr);
  gap: 25px;
}
.method-card {
  display: flex;
  flex-direction: column;
  padding: 32px 26px 36px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-beige);
}
.method-card__title { max-width: 14em; font-size: clamp(1.875rem, 1.3rem + 1.4vw, 2.625rem); }
.method-card__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: auto;
  padding-top: 56px;
}
.method-card__list h3 { margin-top: 22px; }
.method-card__list p { margin-top: 6px; color: var(--c-muted); font-size: 0.9375rem; line-height: 1.5; }
.about__photo {
  overflow: hidden;
  min-height: 380px;
  border-radius: 8px;
  background: var(--c-taupe);
}
.about__photo picture,
.about__photo img { width: 100%; height: 100%; }
.about__photo img { object-fit: cover; object-position: 50% 20%; }
.about__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.about__title { margin-top: 14px; font-size: clamp(1.875rem, 1.45rem + 1.1vw, 2.375rem); }
.about__crn { margin-top: 10px; color: var(--c-brown-700); font-size: 0.9375rem; font-weight: 600; }
.about__text p:not(.tag):not(.about__crn) { color: var(--c-muted); font-size: 0.9375rem; }
.about__text p + p { margin-top: 12px; }
.about__text .link-arrow { margin-top: 12px; }

/* Atendimentos */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 48px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-paper);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s;
}
.service-card__head { display: flex; align-items: center; gap: 22px; }
.service-card__title {
  font-family: var(--f-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
}
.service-card__sub { margin-top: 5px; color: var(--c-brown-700); font-size: 0.9375rem; font-weight: 600; }
.service-card__text {
  flex: 1;
  margin: 22px 0 28px 78px;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

/* Como funciona */
.steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px 64px;
  align-items: center;
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 48px;
  margin-top: 44px;
}
.step { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-brown-700);
  font-size: 1.0625rem;
  font-weight: 500;
}
.step__title { margin-top: 6px; font-family: var(--f-serif); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.step p { margin-top: 6px; color: var(--c-muted); font-size: 0.9375rem; line-height: 1.5; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -36px;
  width: 20px;
  height: 18px;
  background: var(--c-brown-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chat-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-beige);
}
.chat-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line-strong);
}
.chat-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-card__top strong { display: block; color: var(--c-ink); font-size: 0.9375rem; }
.chat-card__top span { color: var(--c-muted); font-size: 0.8125rem; }
.chat-card__wa { width: 22px; height: 22px; margin-left: auto; color: var(--c-brown); }
.chat-card__bubble {
  align-self: flex-end;
  max-width: 92%;
  padding: 14px 16px;
  border-radius: 14px 14px 4px 14px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 10px 24px -18px rgba(43, 34, 29, 0.55);
}

/* Cabeçalho dividido (título à esquerda, apoio à direita) */
.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 64px;
}
.split-head > p { max-width: 440px; color: var(--c-muted); font-size: 0.9375rem; }
.split-head > .link-arrow { flex: none; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Depoimentos — carrossel (3 por página no desktop, com scroll-snap).
   As setas ficam ancoradas nas laterais do carrossel, centralizadas na
   altura dos cards — não numa barra separada abaixo. */
.testimonials-carousel {
  position: relative;
  margin-top: 48px;
  padding-inline: 64px;
}
.testimonials__grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 1fr;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.testimonials__grid::-webkit-scrollbar { display: none; }
.testimonials__grid > .quote-card { scroll-snap-align: start; height: 100%; }

.carousel-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: var(--c-paper);
  color: var(--c-brown-900);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s, border-color 0.3s, transform 0.2s var(--ease-out), opacity 0.3s;
}
.carousel-arrow .icon { transform: rotate(180deg); }
.carousel-arrow--next .icon { transform: none; }
.carousel-arrow:active { transform: scale(0.94); }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .carousel-arrow:not(:disabled):hover { background: var(--c-brown); border-color: var(--c-brown); color: var(--c-white); }
}
.carousel-arrow--side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: var(--shadow-soft);
}
.carousel-arrow--side:active { transform: translateY(-50%) scale(0.94); }
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }

.testimonials-carousel__dots { display: flex; justify-content: center; gap: 2px; margin-top: 20px; }
/* O ponto é pequeno, mas o botão tem 36x36 de área invisível ao redor:
   alvo de toque confortável no celular sem mudar o visual. */
.testimonials-carousel__dots button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.testimonials-carousel__dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-line-strong);
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}
.testimonials-carousel__dots button.is-active::before { background: var(--c-brown); transform: scale(1.25); }

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 25px 28px;
  border-radius: var(--radius);
  background: var(--c-tint);
}
.quote-card--sand { background: var(--c-sand-100); }
.quote-card__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  color: var(--c-brown-700);
}
.quote-card blockquote { flex: 1; }
.quote-card blockquote p {
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-size: 1.625rem;
  line-height: 1.18;
}
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption strong { display: block; color: var(--c-ink); font-size: 0.9375rem; }
.quote-card figcaption span span { color: var(--c-muted); font-size: 0.8125rem; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-paper);
  color: var(--c-brown-700);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Entenda melhor */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 40px;
}
.insight-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-paper);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.insight-card__art {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 190px;
  background: var(--c-tint);
  color: var(--c-brown);
}
.insight-card__art > * { transition: transform 1.2s var(--ease-out); }
.insight-card__art svg { width: 100%; height: 100%; }
.insight-card__art--sand { background: var(--c-sand-100); color: var(--c-terracota); }
.insight-card__art--dark { background: var(--c-brown-900); color: var(--c-beige); }
.insight-card__word {
  font-family: var(--f-serif);
  font-size: 4.25rem;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
}
.insight-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 25px 20px; }
.insight-card__cat {
  color: var(--c-terracota);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.insight-card__title {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.08;
}
.insight-card__body > p:not(.insight-card__cat) { margin-top: 12px; color: var(--c-muted); font-size: 0.9375rem; }
.insight-card__body .link-arrow { margin-top: auto; padding-top: 18px; }
.checklist { display: grid; gap: 8px; margin-top: 14px; }
.checklist li { display: flex; gap: 10px; color: var(--c-text); font-size: 0.9375rem; line-height: 1.45; }
.checklist .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-brown); stroke-width: 2; }

@media (hover: hover) {
  .js .service-card.is-visible:hover,
  .js .insight-card.is-visible:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
  }
  .service-card:hover { border-color: var(--c-brown); }
  .insight-card:hover .insight-card__art > * { transform: scale(1.06); }
}

/* FAQ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 48px 56px;
  max-width: 940px;
}
.faq__title { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); }
.faq__intro > p:not(.eyebrow) { margin-top: 16px; color: var(--c-muted); font-size: 0.9375rem; }
.faq__help {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line-strong);
}
.faq__help strong { display: block; color: var(--c-ink); }
.link-arrow--accent { padding-block: 2px; color: var(--c-brown-700); }
.faq__list { display: grid; gap: 10px; align-content: start; }
.faq-item {
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-paper);
  transition: border-color 0.3s, background-color 0.3s;
}
.faq-item[open] { border-color: var(--c-brown); background: var(--c-white); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--radius);
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-brown);
  color: var(--c-white);
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.faq-item__icon .icon { width: 18px; height: 18px; stroke-width: 2; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--c-terracota); }
@media (hover: hover) {
  .faq-item:not([open]):hover { border-color: var(--c-brown); }
}
.faq-item__body { padding: 0 22px 18px 60px; color: var(--c-muted); font-size: 0.9375rem; }
/* Abertura suave onde houver suporte (Chrome/Edge recentes); nos demais abre normalmente */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* CTA final */
.cta__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 6vw, 76px) clamp(22px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--c-beige);
  text-align: center;
}
.cta__box .icon-circle { margin-bottom: 22px; }
.cta__box h2 { max-width: 15em; }
.cta__box > p:not(.eyebrow):not(.cta__meta) { max-width: 34em; margin-top: 18px; color: var(--c-muted); }
.cta__box .btn-row { justify-content: center; margin-top: 30px; }
.cta__meta { margin-top: 22px; color: var(--c-muted); font-size: 0.8125rem; letter-spacing: 0.02em; }
.cta { padding-bottom: clamp(32px, 4vw, 50px); }

/* 8. FOOTER ----------------------------------------------------------------- */
.site-footer { padding: var(--section-y) 0 25px; }
.cta + .site-footer, main + .site-footer { padding-top: 0; }
.footer__box {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)) 1.15fr;
  gap: 40px 32px;
  padding: 52px 25px 28px;
  border-radius: var(--radius-xl);
  background: var(--c-brown-900);
  color: rgba(247, 241, 231, 0.8);
  font-size: 0.9375rem;
}
/* Logo original é traço escuro sobre fundo transparente: no rodapé
   (fundo --c-brown-900) inverte para branco, senão fica ilegível. */
.logo--light .logo__mark { filter: brightness(0) invert(1); opacity: 0.94; }
.logo--light:hover .logo__mark { opacity: 1; }
.footer__brand p { max-width: 15em; margin-top: 16px; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 241, 231, 0.5);
  border-radius: 50%;
  color: var(--c-offwhite);
  transition: background-color 0.3s, color 0.3s;
}
.footer__social a:hover { background: var(--c-offwhite); color: var(--c-brown-900); }
.footer__heading { margin-bottom: 14px; color: var(--c-offwhite); font-weight: 600; }
.footer__col li + li { margin-top: 2px; }
/* Links do rodapé como blocos com respiro vertical: no celular viram alvos de
   toque confortáveis em vez de linhas de texto coladas. */
.footer__col a {
  display: inline-block;
  padding-block: 7px;
  color: inherit;
  text-decoration: none;
}
.footer__col li:not(:has(a)) { padding-block: 7px; }
.footer__col a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 4px; }
.footer__cta p { margin-bottom: 14px; color: var(--c-offwhite); font-weight: 600; }
.footer__bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 231, 0.16);
  font-size: 0.8125rem;
  text-align: center;
}

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 100px;
  background: var(--c-brown);
  color: var(--c-white);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 32px -14px rgba(59, 42, 32, 0.7);
  transition: transform 0.5s var(--ease-out), opacity 0.4s, background-color 0.3s, visibility 0.4s;
}
.wa-float .icon { width: 24px; height: 24px; }
.js .wa-float:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
}
@media (hover: hover) { .wa-float:hover { background: var(--c-brown-900); } }

/* Seções — responsivo */
@media (max-width: 1199px) {
  .areas__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .method-card { grid-column: 1 / -1; }
  .about__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .steps__grid { grid-template-columns: 1fr; }
  .chat-card { max-width: 480px; }
  .footer__box { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand, .footer__cta { grid-column: 1 / -1; }
  .footer__cta { max-width: 360px; }
}
@media (max-width: 1023px) {
  .services__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .split-head { flex-direction: column; align-items: flex-start; }
  .testimonials-carousel { padding-inline: 60px; }
  .testimonials__grid { grid-auto-columns: calc((100% - 20px) / 2); }
  .insights__grid { grid-template-columns: 1fr 1fr; }
  .insight-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 809px) {
  .areas__list { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .feature h3 { margin-top: 18px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-height: 520px; }
  .method-card { padding: 26px 22px 28px; }
  .method-card__list { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
  .method-card__list li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; }
  .method-card__list .icon-circle { grid-row: span 2; }
  .method-card__list h3 { margin-top: 2px; }
  .service-card__head { gap: 16px; }
  .service-card__head .icon-circle { width: 48px; height: 48px; }
  .service-card__title { font-size: 1.5rem; }
  .service-card__text { margin-left: 0; }
  .steps__list { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .step:not(:last-child)::after { display: none; }
  .split-head { flex-direction: column; align-items: flex-start; }
  /* No celular as setas sobrepostas às laterais encostavam na borda da tela e
     cobriam o texto do card. Aqui elas descem para a linha dos indicadores
     (prev · pontos · next) e o carrossel usa toda a largura do container. */
  .testimonials-carousel {
    display: grid;
    /* minmax(0,…) nas três colunas: sem isso o conteúdo mínimo das setas
       (44px + 44px + gaps) criava um piso de largura que estourava o
       container em telas de 360–375px, empurrando o card para fora. */
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    grid-template-areas:
      "track track track"
      "prev  dots  next";
    align-items: center;
    column-gap: 10px;
    row-gap: 20px;
    margin-top: 36px;
    padding-inline: 0;
  }
  .testimonials__grid {
    grid-area: track;
    grid-auto-columns: 100%;
    margin-top: 0;
    min-width: 0; /* o track pode encolher com o container */
  }
  .carousel-arrow--side {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    box-shadow: none;
  }
  .carousel-arrow--side:active { transform: scale(0.94); }
  .carousel-arrow--prev { grid-area: prev; }
  .carousel-arrow--next { grid-area: next; }
  .testimonials-carousel__dots { grid-area: dots; margin-top: 0; }
  .insights__grid { grid-template-columns: 1fr; margin-top: 36px; }
  .insight-card:last-child { grid-column: auto; }
  .insight-card__art { height: 160px; }
  .quote-card blockquote p { font-size: 1.5rem; }
  .faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-item__body { padding-left: 22px; }
  .cta__box .btn-row { flex-direction: column; width: 100%; }
  .cta__box .btn { width: 100%; }
  .footer__box { grid-template-columns: 1fr 1fr; padding: 40px 22px 24px; border-radius: var(--radius-lg); }
  .footer__col:nth-of-type(3) { grid-column: 1 / -1; }
  .wa-float { min-height: 56px; }
}
@media (max-width: 380px) {
  .areas__list { grid-template-columns: 1fr; }
  /* O layout do carrossel (setas na linha dos indicadores) já vem de ≤809px;
     aqui só apertamos um pouco o espaçamento. */
  .testimonials-carousel { column-gap: 8px; }
}
@media (max-width: 340px) {
  .wa-float__label { display: none; }
  .wa-float { padding: 0 16px; }
}

/* 9. ANIMAÇÕES ----------------------------------------------------------------
   Referência (Framer): elementos sobem 100px com fade ao entrar na tela;
   o conteúdo do hero aparece com escala 0.9 → 1 e mola suave (1.2s). */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible {
  animation: reveal 1.1s var(--ease-out) calc(var(--d, 0) * 110ms) backwards;
}
[data-reveal="left"] { --rx: -100px; }
[data-reveal="right"] { --rx: 100px; }
@keyframes reveal {
  from { opacity: 0; transform: translate3d(var(--rx, 0), var(--ry, 100px), 0); }
}
.js [data-appear] {
  animation:
    appear-fade 0.9s ease-out 0.1s backwards,
    appear-scale 1.2s var(--ease-spring) 0.1s backwards;
}
@keyframes appear-fade { from { opacity: 0.001; } }
@keyframes appear-scale { from { transform: scale(0.9); } }
@media (max-width: 809px) {
  [data-reveal] { --ry: 48px; }
  [data-reveal="left"], [data-reveal="right"] { --rx: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
