/* =========================================================
   Carla Parreira | Psicóloga Clínica
   Landing page — estilos
   ========================================================= */

/* ---------- Fontes (auto-hospedadas, licença SIL OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/allura-latin-400-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Paleta oficial */
  --marrom-escuro: #6B3A2A;   /* títulos, texto de destaque, botão principal */
  --marrom-medio: #8A6B5D;    /* detalhes, ícones */
  --marrom-cinza: #7F6A60;
  --bege-cinza: #BFA897;
  --bege-quente: #C7B19F;     /* fundos secundários */
  --bege-claro: #D3C6B6;      /* fundo principal */
  --rose: #B99684;            /* destaques */

  /* Variações sutis derivadas da paleta (legibilidade e profundidade) */
  --texto: #4E2A1E;           /* marrom escuro aprofundado para parágrafos */
  --bege-luz: #DFD4C7;        /* superfície de cards sobre o fundo principal */
  --creme: #F4EEE7;           /* texto claro sobre marrom */
  --linha: rgba(107, 58, 42, .16);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --script: "Allura", "Segoe Script", cursive;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9rem);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bege-claro);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;         /* 17px — confortável no celular */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--marrom-escuro); font-weight: 500; }
p { margin: 0 0 1.1em; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
svg use { fill: currentColor; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--marrom-escuro); color: var(--creme);
  padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

:focus-visible {
  outline: 2px solid var(--marrom-escuro);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.section-title {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: .6em;
  text-wrap: balance;
}
.section-lead {
  font-size: 1.125rem;
  max-width: 34rem;
  color: var(--marrom-escuro);
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--marrom-escuro);
  --btn-fg: var(--creme);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px;
  padding: .9rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .45s var(--ease), color .45s var(--ease),
              box-shadow .45s var(--ease), transform .45s var(--ease), border-color .45s var(--ease);
}
.btn-icon { width: 20px; height: 20px; flex: none; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(107, 58, 42, .55);
}
.btn:active { transform: translateY(0); }

.btn-primary:hover { --btn-bg: #5A2F21; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--marrom-escuro);
  border-color: var(--marrom-escuro);
}
.btn-ghost:hover { --btn-bg: var(--marrom-escuro); --btn-fg: var(--creme); }

.btn-light {
  --btn-bg: var(--creme);
  --btn-fg: var(--marrom-escuro);
}
.btn-light:hover { --btn-bg: var(--bege-claro); box-shadow: 0 14px 30px -16px rgba(0,0,0,.45); }
.btn-light:focus-visible { outline-color: var(--creme); }

.btn-lg { min-height: 58px; padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-xl { min-height: 62px; padding: 1.1rem 2.25rem; font-size: 1.125rem; text-align: center; }
@media (max-width: 480px) {
  .btn-xl { width: 100%; padding-inline: 1rem; gap: .5rem; font-size: 1rem; }
}

.text-link {
  color: var(--marrom-escuro);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .3s var(--ease), text-underline-offset .3s var(--ease);
}
.text-link:hover { text-decoration-color: var(--marrom-escuro); text-underline-offset: 7px; }

.note-icon { width: 18px; height: 18px; flex: none; color: var(--rose); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(211, 198, 182, 0);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(211, 198, 182, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linha);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height .5s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 64px; }

.brand { display: block; flex: none; border-radius: 8px; position: relative; z-index: 60; }
.brand img { height: 56px; width: auto; transition: height .5s var(--ease); }
.site-header.is-scrolled .brand img { height: 46px; }

/* hamburger */
.nav-toggle {
  position: relative; z-index: 60;
  width: 48px; height: 48px;
  display: grid; place-content: center; gap: 7px;
  background: transparent; border: 0; border-radius: 50%;
  cursor: pointer; color: var(--marrom-escuro);
}
.nav-toggle-bar {
  display: block; width: 26px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.nav-toggle-bar:last-child { width: 18px; justify-self: end; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { width: 26px; transform: translateY(-4.25px) rotate(-45deg); }

/* menu mobile */
.site-nav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--bege-claro);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.site-nav ul { display: grid; gap: .5rem; }
.site-nav ul a {
  display: inline-block; padding: .35rem 0;
  font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1.2;
  color: var(--marrom-escuro); text-decoration: none;
}
.site-nav .nav-cta { align-self: flex-start; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; inset: auto; padding: 0;
    flex-direction: row; align-items: center; gap: 2.25rem;
    background: none; opacity: 1; visibility: visible;
  }
  .site-nav ul { display: flex; gap: 2rem; }
  .site-nav ul a {
    position: relative;
    font-family: var(--sans); font-size: .95rem; font-weight: 400; letter-spacing: .02em;
    padding: .5rem 0;
  }
  .site-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .2rem;
    height: 1px; background: var(--rose);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease);
  }
  .site-nav ul a:hover::after,
  .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
  /* o CTA do menu aparece só no menu mobile; no desktop o header fica discreto */
  .site-nav .nav-cta { display: none; }
  .brand img { height: 72px; }
  .site-header.is-scrolled .brand img { height: 52px; }
  :root { --header-h: 92px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {           /* halo orgânico suave, bege quente */
  content: ""; position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax; right: -30vmax; top: -20vmax;
  background: radial-gradient(closest-side, rgba(199, 177, 159, .55), rgba(199, 177, 159, 0));
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.hero-text { text-align: center; display: grid; justify-items: center; }
.hero-title { font-weight: 500; }
.hero-name {
  display: block;
  font-size: clamp(2.8rem, 11vw, 5rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.hero-role {
  display: block;
  margin-top: .5rem;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 5.4vw, 2.1rem);
  line-height: 1.2;
  color: var(--marrom-escuro);
}
.hero-sub {
  margin: 1.1rem 0 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  color: var(--texto);
}
.hero-actions { margin-top: 1.75rem; display: grid; gap: .9rem; justify-items: center; }
.hero-note { margin: 0; font-size: .9rem; letter-spacing: .04em; color: var(--marrom-escuro); }

.hero-visual {
  position: relative;
  width: min(92%, 400px);
  justify-self: center;
  padding: 0 5% 5% 0;
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px;     /* arco: remete à copa da árvore */
  overflow: hidden;
  background: var(--bege-quente);
  box-shadow: 0 40px 60px -40px rgba(78, 42, 30, .45);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.arch-frame {
  position: absolute; inset: 6% 0 0 6%;
  border: 1px solid var(--rose);
  border-radius: 999px 999px 28px 28px;
  pointer-events: none;
}
.leaf { position: absolute; color: var(--rose); pointer-events: none; }
.leaf-1 { width: 26px; height: 44px; top: 4%;  left: -6%;  color: var(--marrom-escuro); transform: rotate(-32deg); }
.leaf-2 { width: 18px; height: 30px; top: 18%; left: -12%; color: var(--rose); transform: rotate(18deg); }
.leaf-3 { width: 22px; height: 36px; top: -3%; right: 14%; color: var(--marrom-medio); transform: rotate(38deg); }
.leaf-4 { width: 14px; height: 24px; bottom: 16%; right: -1%; color: var(--bege-cinza); transform: rotate(-20deg); }

@media (min-width: 720px) and (max-width: 899px) {  /* tablet: foto já ao lado do texto */
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
  .hero-visual { width: 100%; order: 2; }
}
@media (min-width: 900px) {
  .hero { padding-top: clamp(2rem, 5vw, 4rem); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .hero-visual { justify-self: end; width: min(100%, 470px); order: 2; }
}

@media (min-width: 720px) {
  .hero-text { text-align: left; justify-items: start; }
  .hero-actions { justify-items: start; }
  .hero-name { font-size: clamp(3.4rem, 6.4vw, 5.6rem); }
}

/* ---------- Acolhimento (frase de abertura) ---------- */
.welcome { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.welcome-inner { display: grid; justify-items: center; text-align: center; }
.welcome-leaf { width: 18px; height: 30px; color: var(--rose); margin-bottom: 1.75rem; transform: rotate(-18deg); }
.welcome-title { font-weight: 500; max-width: 46rem; text-wrap: balance; }
.welcome-lead {
  display: block;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  margin-bottom: .8rem;
}
.welcome-main {
  display: block;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.welcome-sub {
  margin: 1.75rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
}

/* ---------- Sobre ---------- */
.about { padding-top: clamp(1rem, 4vw, 4rem); }
.about-grid { display: grid; gap: clamp(3rem, 8vw, 6rem); align-items: center; }
.about-visual {
  position: relative;
  width: min(100%, 420px);
  justify-self: center;
  padding: 0 0 8% 8%;
}
.about-backdrop {                  /* bloco rosé deslocado, formato de folha */
  position: absolute; left: 0; bottom: 0; width: 82%; height: 82%;
  background: var(--rose); opacity: .45;
  border-radius: 160px 20px 160px 20px;
}
.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 160px 20px 160px 20px;   /* recorte em folha */
  overflow: hidden;
  background: var(--bege-quente);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.about-text { max-width: 36rem; }
@media (max-width: 899px) { .about-visual { order: 2; } }
.about-intro {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--marrom-escuro);
  margin-bottom: .9em;
}
.approach {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--rose);
}
.approach h3 { font-size: 1.65rem; line-height: 1.2; margin-bottom: .5rem; }
.approach p { margin: 0; }
.signature {
  margin: 2.25rem 0 0;
  font-family: var(--script);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--marrom-medio);
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .about-visual { justify-self: start; }
}

/* ---------- Como posso te ajudar ---------- */
.help { background: var(--bege-quente); position: relative; }
.help::before {                           /* transição orgânica entre seções */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(40px, 6vw, 80px);
  background: var(--bege-claro);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.help-head { text-align: center; display: grid; justify-items: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.help-head .section-title { margin-bottom: .35em; }
.help-cards { display: grid; gap: 1.25rem; max-width: 960px; margin-inline: auto; }
.card {
  position: relative;
  padding: clamp(2rem, 5vw, 2.75rem);
  background: var(--bege-luz);
  border: 1px solid transparent;
  border-radius: 28px;
  transition: transform .6s var(--ease-slow), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.card:nth-child(2) { border-radius: 28px 28px 28px 90px; }
.card:nth-child(1) { border-radius: 28px 90px 28px 28px; }
.card-icon {
  width: 64px; height: 64px; margin-bottom: 1.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--rose); border-radius: 50%;
  color: var(--marrom-escuro);
  transition: background-color .6s var(--ease);
}
.card-icon svg { width: 40px; height: 40px; }
.card-leaf { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .8s var(--ease-slow); }
.card h3 { font-size: 1.9rem; line-height: 1.15; margin-bottom: .6rem; }
.card p { margin: 0; }
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(185, 150, 132, .6);
    box-shadow: 0 30px 50px -40px rgba(78, 42, 30, .5);
  }
  .card:hover .card-icon { background: rgba(185, 150, 132, .22); }
  .card:hover .card-leaf { transform: rotate(-8deg); }
}
.help-cta {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem;
  text-align: center;
}
.help-cta p { margin: 0; font-family: var(--serif); font-size: 1.45rem; color: var(--marrom-escuro); font-style: italic; }

@media (min-width: 720px) {
  .help-cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ---------- Atendimento ---------- */
.care { background: var(--bege-quente); padding-top: 0; }
.care-title { max-width: 18ch; }
.care-grid { display: grid; gap: 1.25rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.care-online, .care-presencial {
  position: relative;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: 32px;
  overflow: hidden;
}
.care-online {
  background: var(--marrom-escuro);
  color: var(--creme);
  border-radius: 32px 140px 32px 32px;
}
.care-online h3 { color: var(--creme); font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.05; margin-bottom: .4rem; }
.care-kicker {
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; line-height: 1.35;
  color: #E5CFC2;           /* rosé claro — contraste AA sobre o marrom */
  margin-bottom: 1.25rem;
}
.care-online p:not(.care-kicker) { max-width: 30rem; font-size: 1.0625rem; margin-bottom: 2rem; }
.care-online .care-icon { color: #E5CFC2; border-color: rgba(229, 207, 194, .5); }
.care-leaves {
  position: absolute; right: -10px; top: -10px; width: 220px; height: 220px;
  color: var(--rose); opacity: .35; pointer-events: none;
}

.care-presencial {
  background: var(--bege-luz);
  border: 1px solid var(--linha);
}
.care-presencial h3 { font-size: clamp(1.8rem, 3.4vw, 2.2rem); line-height: 1.1; margin-bottom: .75rem; }
.care-icon {
  width: 60px; height: 60px; margin-bottom: 1.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--rose); border-radius: 50%;
  color: var(--marrom-escuro);
}
.care-icon svg { width: 36px; height: 36px; }
.care-address {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: 1.5rem 0 1.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--linha);
  line-height: 1.6; color: var(--marrom-escuro);
}
.care-address .note-icon { margin-top: .25rem; }

@media (min-width: 900px) {
  .care-grid { grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: stretch; }
  .care-online { padding: 3.75rem 3.5rem; }
}

/* ---------- Conexão ---------- */
.connection {
  position: relative;
  background: var(--bege-claro);
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;   /* permite a foto "subir" sobre a seção anterior */
}
.connection::before {    /* grande forma orgânica atrás da foto */
  content: ""; position: absolute; z-index: 0;
  width: min(620px, 110vw); aspect-ratio: 1;
  left: -18%; bottom: -22%;
  background: var(--bege-cinza); opacity: .35;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
}
.connection-grid { position: relative; z-index: 1; display: grid; gap: clamp(3rem, 8vw, 5rem); align-items: center; }
.connection-photo {
  width: min(100%, 380px);
  justify-self: center;
  aspect-ratio: 3 / 4;
  border-radius: 28px 28px 999px 999px;   /* arco invertido: diálogo com o hero */
  overflow: hidden;
  background: var(--bege-quente);
  box-shadow: 0 40px 60px -40px rgba(78, 42, 30, .45);
}
.connection-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.connection-text { max-width: 34rem; }
@media (max-width: 899px) {
  .connection { padding-top: 0; }
  .care { padding-bottom: 7rem; }
  .connection-photo { margin-top: -3.5rem; width: min(86%, 360px); }
}
.connection-title {
  font-style: italic; font-weight: 400;
  font-size: clamp(2.1rem, 4.8vw, 3.3rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.connection-text > p { font-size: 1.125rem; }
.connection-close {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.85rem) !important;
  line-height: 1.3;
  color: var(--marrom-escuro);
  margin: 1.75rem 0 2rem;
}

@media (min-width: 900px) {
  .connection { padding-top: 0; }
  .connection-grid { grid-template-columns: .85fr 1.15fr; }
  .connection-photo { justify-self: start; margin-top: -7rem; }   /* sobreposição elegante ao fundo anterior */
  .care { padding-bottom: 12rem; }
}

/* ---------- CTA final ---------- */
.final-cta {
  position: relative;
  background: var(--marrom-escuro);
  color: var(--creme);
  padding-block: clamp(5rem, 12vw, 8.5rem);
  text-align: center;
  overflow: hidden;
  border-radius: clamp(32px, 6vw, 72px) clamp(32px, 6vw, 72px) 0 0;
}
.final-leaves {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--rose); opacity: .22; pointer-events: none;
}
.final-inner { position: relative; display: grid; justify-items: center; }
.final-title {
  color: var(--creme);
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.final-text { max-width: 32rem; font-size: 1.125rem; font-weight: 400; margin-bottom: 2.5rem; }
.final-cta .btn-light:hover { --btn-bg: #E9DDD2; }

.contact-list {
  margin-top: clamp(3rem, 7vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 238, 231, .2);
  display: grid; gap: .75rem;
  width: 100%; max-width: 820px;
}
.contact-list a {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 44px; padding: .25rem .5rem;
  color: var(--creme); text-decoration: none;
  border-radius: 10px;
  transition: color .3s var(--ease);
}
.contact-list a:hover { color: #E5CFC2; }
.contact-list a:focus-visible { outline-color: var(--creme); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: #E5CFC2; }
.contact-label { display: block; font-size: .8rem; letter-spacing: .06em; opacity: .75; text-align: left; line-height: 1.3; }
.contact-list a > span { text-align: left; line-height: 1.4; word-break: break-word; }

@media (min-width: 760px) {
  .contact-list { grid-template-columns: repeat(3, auto); justify-content: center; gap: 2.5rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--marrom-escuro);
  color: var(--creme);
  padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); /* espaço p/ botão flutuante */
}
.footer-inner {
  display: grid; gap: 1.5rem; justify-items: center; text-align: center;
  padding-top: 3rem; padding-bottom: 2rem;
  border-top: 1px solid rgba(244, 238, 231, .15);
}
.footer-logo {
  width: 190px; height: auto;
  background: var(--bege-claro);
  padding: .9rem 1.1rem; border-radius: 18px;
}
.footer-info p { margin: 0; font-size: .95rem; }
.footer-name { font-family: var(--serif); font-size: 1.3rem !important; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.footer-links a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  color: var(--creme); text-decoration: none; font-size: .95rem;
  text-decoration-color: transparent;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rose); }
.footer-links a:focus-visible { outline-color: var(--creme); }
.footer-links svg { width: 18px; height: 18px; color: #E5CFC2; }
.footer-bottom p { margin: 0; text-align: center; font-size: .85rem; opacity: .75; }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; gap: 2rem; align-items: center; }
  .footer-logo { width: 180px; }
}

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .6rem;
  height: 58px; min-width: 58px; padding: 0 17px;
  border-radius: 999px;
  background: var(--marrom-escuro); color: var(--creme);
  text-decoration: none; font-size: .95rem; font-weight: 500;
  box-shadow: 0 16px 34px -14px rgba(78, 42, 30, .7), 0 0 0 1px rgba(244, 238, 231, .12) inset;
  transition: transform .45s var(--ease), background-color .45s var(--ease), opacity .6s var(--ease);
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float-label { display: none; }
.wa-float:hover { transform: translateY(-3px); background: #5A2F21; }
.wa-float:focus-visible { outline-offset: 4px; }
@media (min-width: 900px) {
  .wa-float { right: 2rem; bottom: 2rem; padding: 0 22px 0 18px; }
  .wa-float-label { display: inline; }
}
/* some quando o CTA final está na tela, para não competir com ele */
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* =========================================================
   Movimento — calmo, e só quando o usuário permite
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-intro] { opacity: 0; transform: translateY(14px); }
  .js .is-ready [data-intro] {
    opacity: 1; transform: none;
    transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow);
  }
  .js .is-ready [data-intro="2"] { transition-delay: .15s; }
  .js .is-ready [data-intro="3"] { transition-delay: .35s; }
  .js .is-ready [data-intro="4"] { transition-delay: .5s; }

  /* a foto do hero "abre" de baixo para cima, como uma janela */
  .js .hero-photo { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); }
  .js .hero-photo img { transform: scale(1.08); }
  .js .is-ready .hero-photo {
    clip-path: inset(0 0 0 0 round 999px 999px 28px 28px);
    transition: clip-path 1.6s var(--ease-slow) .2s;
  }
  .js .is-ready .hero-photo img { transform: scale(1); transition: transform 2.2s var(--ease-slow) .2s; }
  .js .arch-frame { opacity: 0; transform: translate(-10px, -10px); }
  .js .is-ready .arch-frame { opacity: 1; transform: none; transition: opacity 1.4s var(--ease) .9s, transform 1.6s var(--ease-slow) .9s; }

  /* folhas: balanço lento, como ao vento */
  .leaf { animation: sway 9s ease-in-out infinite; }
  .leaf-2 { animation-duration: 11s; animation-delay: -3s; }
  .leaf-3 { animation-duration: 10s; animation-delay: -6s; }
  .leaf-4 { animation-duration: 12s; animation-delay: -2s; }
  @keyframes sway {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 3px 7px; rotate: 6deg; }
  }

  /* revelação no scroll */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-slow), transform 1s var(--ease-slow); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* leve deslocamento das fotos ao rolar (definido via JS) */
  [data-drift] img { will-change: transform; }
}

/* Deslocamento suave das fotos (valor --drift definido via JS) */
[data-drift] img {
  height: calc(100% + 32px) !important;
  margin-top: -16px;
  translate: 0 var(--drift, 0px);
}

/* ---------- Rodapé: aviso de emergência e links legais ---------- */
.footer-bottom { display: grid; gap: 1rem; justify-items: center; }
.footer-emergency {
  max-width: 44rem; margin: 0; text-align: center;
  font-size: .9rem !important; opacity: 1 !important; line-height: 1.6;
  padding: .9rem 1.25rem; border-radius: 16px;
  background: rgba(244, 238, 231, .08);
}
.footer-emergency a { color: var(--creme); font-weight: 500; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.footer-legal a, .link-button {
  display: inline-flex; align-items: center; min-height: 44px;
  font: inherit; font-size: .9rem; color: var(--creme);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(244, 238, 231, .35); text-underline-offset: 4px;
}
.footer-legal a:hover, .link-button:hover { text-decoration-color: var(--creme); }
.footer-legal a:focus-visible, .link-button:focus-visible { outline-color: var(--creme); }

/* ---------- Aviso de cookies (só aparece se houver tags de medição configuradas) ---------- */
.cookie-banner {
  position: fixed; z-index: 70;
  left: calc(1rem + env(safe-area-inset-left, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
  padding: 1.25rem 1.4rem;
  background: var(--creme); color: var(--texto);
  border: 1px solid var(--linha); border-radius: 22px;
  box-shadow: 0 24px 50px -24px rgba(78, 42, 30, .55);
  font-size: .95rem; line-height: 1.55;
}
.cookie-banner p { margin: 0 0 1rem; }
.cookie-banner a { color: var(--marrom-escuro); font-weight: 500; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { min-height: 44px; padding: .6rem 1.3rem; font-size: .95rem; }
.cookie-actions .btn:hover { transform: none; }
@media (min-width: 900px) { .cookie-banner { left: 2rem; bottom: 2rem; right: auto; } }

/* ---------- Páginas legais ---------- */
.legal-header { border-bottom: 1px solid var(--linha); }
.legal-header .header-inner { height: 84px; }
.legal-header .brand img { height: 60px; }
.legal-back { color: var(--marrom-escuro); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 5px; }
.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal-inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1.08; margin-bottom: .5rem; }
.legal-updated { color: var(--marrom-escuro); font-size: .95rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.5rem, 3.4vw, 1.85rem); line-height: 1.2; margin: 2.6rem 0 .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .45em; }
.legal a { color: var(--marrom-escuro); text-underline-offset: 3px; }
.legal-note {
  margin-top: 2.5rem; padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--rose); background: var(--bege-luz); border-radius: 0 16px 16px 0;
}
.legal-alert {
  padding: 1.25rem 1.4rem; margin-bottom: 1.5rem;
  background: var(--marrom-escuro); color: var(--creme); border-radius: 18px;
}
.legal-alert a { color: var(--creme); font-weight: 500; }
.legal-footer { padding-top: 2.5rem; }

/* ---------- Página 404 ---------- */
.not-found { text-align: center; display: grid; justify-items: center; min-height: 70svh; align-content: center; }
.not-found-logo { width: 200px; height: auto; margin-bottom: 2rem; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }
