/* =========================================================
   Casa Gratia · paleta Terra e seda
   Mobile first: os estilos base são para o celular.
   As telas maiores recebem ajustes nos @media (min-width).
   Pontos de quebra: 760px (tablet) e 1000px (computador).
   ========================================================= */
:root {
  --areia: #EFE6DA;
  --creme: #F7F1E9;
  --borda: #D8CBBB;
  --salvia: #9AA88A;
  --terracota: #C46A55;
  --terracota-clara: #D98B76;
  --terracota-escura: #A0503D;
  --bordo: #5A1A2B;
  --bordo-hover: #6B2336;
  --chocolate: #241815;
  --texto-suave: #5B4A42;
  --texto-claro: #D9C9BC;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --largura: 1180px;
  --suave: cubic-bezier(.2, .7, .2, 1);
}

/* ===== Acessibilidade ===== */
.so-leitor { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--areia); color: var(--chocolate); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.container { width: min(var(--largura), 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.estreito { width: min(900px, 100% - 40px); }

.pular { position: absolute; left: -999px; top: 8px; background: var(--bordo); color: var(--areia); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.pular:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; }

.kicker { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--terracota-escura); margin-bottom: 16px; }
.kicker-claro { color: var(--terracota-clara); }
h2 { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.01em; max-width: 15ch; }
h2.titulo-linha { max-width: none; }

/* ===== Slides ===== */
.slide { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 80px; position: relative; overflow: hidden; }

/* ===== Botões e links ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--bordo); color: var(--areia); font-weight: 500; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--sans); transition: background .25s, transform .25s var(--suave); }
.btn:hover { background: var(--bordo-hover); transform: translateY(-2px); }
.btn-pequeno { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-claro { background: var(--areia); color: var(--bordo); }
.btn-claro:hover { background: #fff; }
.btn[disabled] { opacity: .7; cursor: wait; }
.link-seta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; color: var(--bordo); background: linear-gradient(currentColor, currentColor) left 80% / 0 1.5px no-repeat; transition: background-size .35s var(--suave); }
.link-seta:hover { background-size: 100% 1.5px; }
.link-seta span { transition: transform .3s var(--suave); }
.link-seta:hover span { transform: translateX(4px); }
.link-claro { color: var(--areia); text-decoration: none; border-bottom: 1px solid rgba(239, 230, 218, .35); line-height: 2.4; }
.link-claro:hover { border-color: var(--terracota-clara); color: var(--terracota-clara); }

/* ===== Topo e menu (celular) ===== */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.topo.rolou { background: rgba(239, 230, 218, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--borda); }
.topo.escuro:not(.rolou) .marca { color: var(--areia); }
.topo.escuro:not(.rolou) .menu-btn span { background: var(--areia); }
.topo-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 24px; }
.menu-btn { display: block; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--chocolate); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 72px 0 auto 0; background: var(--areia); display: flex; flex-direction: column; padding: 8px 20px 26px; border-bottom: 1px solid var(--borda); transform: translateY(-130%); visibility: hidden; transition: transform .35s var(--suave), visibility 0s .35s; }
.menu.aberto { transform: none; visibility: visible; transition: transform .35s var(--suave); }
.menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--borda); font-size: 17px; text-decoration: none; color: var(--texto-suave); }
.menu .btn { margin-top: 18px; }

/* ===== Linhas abstratas ===== */
.linhas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.linhas-hero { opacity: .22; }
.traco { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--comp, 2400); stroke-dashoffset: var(--comp, 2400); }
.organico { stroke: var(--terracota); stroke-width: 2.2; }
.digital { stroke: var(--bordo); stroke-width: 1.6; }
.fino { stroke-width: 1; opacity: .55; }
.claro.organico { stroke: var(--terracota-clara); opacity: .6; }
.encontro { fill: var(--bordo); opacity: 0; }
.encontro-halo { fill: none; stroke: var(--terracota); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.visivel .traco { animation: desenhar 2.6s var(--suave) forwards; }
.visivel .digital { animation-delay: .5s; }
.visivel .fino { animation-delay: .9s; }
.visivel .encontro { animation: surgir .6s 2.4s forwards; }
.visivel .encontro-halo { animation: halo 2.4s 2.8s ease-out 3; }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes surgir { to { opacity: 1; } }
@keyframes halo { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }

/* ===== Abertura ===== */
.hero { justify-content: flex-start; padding-top: 140px; }
.titulo-digitado { font-family: var(--serif); font-size: clamp(48px, 7.4vw, 112px); line-height: .98; letter-spacing: -.015em; min-height: 2em; }
.titulo-digitado em { font-style: italic; color: var(--bordo); white-space: nowrap; }
.cursor { display: inline-block; width: 3px; height: .8em; background: var(--terracota); margin-left: 6px; vertical-align: -.05em; animation: piscar 1s steps(1) infinite; }
.cursor.fim { animation: piscar 1s steps(1) 3 forwards; }
@keyframes piscar { 50% { opacity: 0; } }
.hero-sub { font-size: 17px; color: var(--texto-suave); max-width: 470px; margin: 26px 0 30px; }
.hero-acoes { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.depois-digitar { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--suave), transform .8s var(--suave); }
.digitou .depois-digitar { opacity: 1; transform: none; }
.digitou .hero-acoes { transition-delay: .2s; }
.rolar { display: none; position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; border: 1.5px solid var(--texto-suave); border-radius: 20px; transform: translateX(-50%); }
.rolar span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--texto-suave); animation: descer 1.8s ease-in-out 4; }
@keyframes descer { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ===== Animações de entrada ===== */
.aparece { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--suave), transform .9s var(--suave); transition-delay: var(--d, 0s); }
.visivel .aparece { opacity: 1; transform: none; }
.palavras .p { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(4px); transition: opacity .7s var(--suave), transform .7s var(--suave), filter .7s var(--suave); }
.visivel .palavras .p { opacity: 1; transform: none; filter: none; }
.sem-js .aparece, .sem-js .palavras .p, .sem-js .depois-digitar { opacity: 1; transform: none; filter: none; }
.sem-js .traco { stroke-dashoffset: 0; }

/* ===== Manifesto ===== */
.manifesto { background: var(--bordo); color: var(--areia); }
.manifesto-texto { font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); line-height: 1.2; margin-bottom: 24px; }
.manifesto-texto.destaque { color: var(--terracota-clara); font-style: italic; }
.manifesto-assinatura { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--texto-claro); margin: 36px 0 0; display: flex; align-items: center; gap: 14px; }
.manifesto-assinatura::before { content: ""; width: 40px; height: 1px; background: var(--terracota-clara); flex-shrink: 0; }

/* ===== Valores ===== */
.valores { list-style: none; padding: 0; margin: 40px 0 0; }
.valores li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--borda); transition: padding .4s var(--suave); }
.valores li:last-child { border-bottom: 1px solid var(--borda); }
.valor-nome { font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); line-height: 1; transition: color .3s; }
.valores li:hover .valor-nome { color: var(--bordo); font-style: italic; }
.valor-desc { color: var(--texto-suave); }

/* ===== Serviços ===== */
.servicos-slide { background: var(--creme); }
.servicos-grade { display: grid; gap: 44px; }
.planos-chamada { color: var(--texto-suave); margin: 28px 0 14px; max-width: 420px; }
.planos-chamada em { font-family: var(--serif); font-size: 1.25em; color: var(--bordo); }
.servicos { list-style: none; padding: 0; margin: 0; }
.servicos li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 24px 0; border-top: 1px solid var(--borda); }
.servicos li:last-child { border-bottom: 1px solid var(--borda); }
.servico-num { font-family: var(--serif); font-size: 20px; color: var(--terracota-escura); padding-top: 6px; }
.servicos h3 { font-family: var(--serif); font-size: clamp(27px, 3vw, 38px); line-height: 1.1; margin-bottom: 8px; transition: color .3s; }
.servicos li:hover h3 { color: var(--bordo); }
.servicos p { color: var(--texto-suave); margin: 0; max-width: 520px; }

/* ===== Linha do tempo (vertical no celular) ===== */
.linha-tempo { list-style: none; margin: 44px 0 0; padding: 0 0 0 34px; display: grid; position: relative; }
.linha-tempo::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1.5px; background: var(--terracota); transform: scaleY(0); transform-origin: top; transition: transform 2s var(--suave) .3s; }
.visivel .linha-tempo::before, .sem-js .linha-tempo::before { transform: scaleY(1); }
.linha-tempo li { position: relative; padding-bottom: 32px; }
.marco { position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--areia); border: 2px solid var(--bordo); }
.linha-tempo h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin-bottom: 8px; }
.linha-tempo p { color: var(--texto-suave); font-size: 15.5px; margin: 0; }

/* ===== Quem somos: fotos grandes em arco ===== */
.pessoas { display: grid; gap: 56px; margin-top: 44px; }
.arco { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; margin-bottom: 24px; background: var(--creme); }
.arco img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .9s var(--suave); }
.pessoa:hover .arco img { transform: scale(1.03); }
.arco-vazio { display: grid; place-items: center; border: 1px dashed var(--borda); }
.arco-vazio span { font-family: var(--serif); font-size: clamp(72px, 9vw, 120px); color: var(--terracota-escura); }
.pessoa h3 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; }
.papel { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terracota-escura); margin: 8px 0 14px; }
.pessoa p:last-child { color: var(--texto-suave); max-width: 520px; }
.pessoa-texto p + p { margin-top: 14px; }
.sozinha .pessoa-texto p:not(.papel) { color: var(--texto-suave); max-width: 560px; }

/* ===== Contato ===== */
.contato-slide { background: var(--bordo); color: var(--areia); }
.contato { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; }
.contato h2 { font-size: clamp(34px, 4vw, 56px); max-width: 16ch; }
.redes { display: flex; gap: 14px; margin-top: 30px; }
.rede { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--areia); border: 1.5px solid rgba(239, 230, 218, .6); transition: background .25s, color .25s, border-color .25s, transform .25s var(--suave); }
.rede svg { width: 24px; height: 24px; }
.rede:hover { background: var(--areia); color: var(--bordo); border-color: var(--areia); transform: translateY(-3px); }
.formulario { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.campo input, .campo select, .campo textarea { min-width: 0; }
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo label { font-size: 13px; letter-spacing: .06em; color: var(--texto-claro); }
.campo input, .campo select, .campo textarea { font: inherit; font-size: 17px; color: var(--areia); background: transparent; border: 0; border-bottom: 1.5px solid rgba(239, 230, 218, .6); border-radius: 0; padding: 10px 0; min-height: 48px; transition: border-color .3s; }
.campo select option { color: var(--chocolate); }
.campo textarea { resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(239, 230, 218, .65); opacity: 1; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--terracota-clara); }
.campo.erro input { border-bottom-color: #F2A08B; }
.campo .msg-erro { font-size: 13px; color: #F7B8A6; }
.armadilha { position: absolute; left: -9999px; }
.nota-obrigatorio { font-size: 13px; color: var(--texto-claro); margin: 0; }
.form-status { margin: 14px 0 0; min-height: 1.5em; color: var(--texto-claro); }

/* ===== Rodapé ===== */
.rodape { background: var(--chocolate); color: var(--texto-claro); padding: 44px 0; font-size: 15px; }
.rodape-inner { display: grid; gap: 24px; }
.rodape-marca { display: flex; gap: 14px; align-items: center; }
.rodape-marca strong { display: block; color: var(--areia); font-weight: 500; }
.rodape-links { display: flex; gap: 22px; flex-wrap: wrap; }
.rodape-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.rodape-links a:hover { color: var(--terracota-clara); }
.rodape-legal { font-size: 13px; color: #8A7A70; margin: 0; border-top: 1px solid #3E2E28; padding-top: 20px; }

/* =========================================================
   TABLET (a partir de 760px)
   ========================================================= */
@media (min-width: 760px) {
  body { font-size: 17px; }
  .container { width: min(var(--largura), 100% - 64px); }
  .estreito { width: min(900px, 100% - 64px); }
  .slide { padding: 120px 0 90px; }

  .menu-btn { display: none; }
  .menu { position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; border: 0; transform: none; visibility: visible; transition: none; }
  .menu a:not(.btn) { padding: 0; border: 0; font-size: 15px; transition: color .2s; }
  .menu a:not(.btn):hover { color: var(--bordo); }
  .menu .btn { margin-top: 0; }
  .topo.escuro:not(.rolou) .menu a:not(.btn) { color: var(--areia); }
  .topo-inner { min-height: 76px; }
  .marca { font-size: 26px; }

  .hero { justify-content: center; padding-top: 120px; }
  .linhas-hero { left: auto; right: 0; width: 58%; opacity: 1; }
  .hero-sub { font-size: 19px; margin: 30px 0 36px; }
  .rolar { display: block; }

  .valores li { grid-template-columns: minmax(200px, 1fr) 1.4fr; gap: 30px; align-items: baseline; padding: 22px 0; }
  .valores li:hover { padding-left: 14px; }

  .servicos li { grid-template-columns: 54px 1fr; gap: 10px; padding: 28px 0; }
  .servico-num { font-size: 22px; }

  .pessoas { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .pessoas.sozinha { grid-template-columns: 1fr; }
  .sozinha .pessoa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .sozinha .arco { margin-bottom: 0; }

  .formulario { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
  .campo-largo { grid-column: 1 / -1; }

  .rodape-inner { grid-template-columns: 1fr auto; align-items: center; }
  .rodape-legal { grid-column: 1 / -1; }
}

/* =========================================================
   COMPUTADOR (a partir de 1000px)
   ========================================================= */
@media (min-width: 1000px) {
  html { scroll-snap-type: y proximity; }
  .slide { scroll-snap-align: start; }

  .servicos-grade { grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }

  .linha-tempo { grid-template-columns: repeat(5, 1fr); gap: 28px; margin-top: 70px; padding: 0; }
  .linha-tempo::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1.5px; transform: scaleX(0); transform-origin: left; }
  .visivel .linha-tempo::before, .sem-js .linha-tempo::before { transform: scaleX(1); }
  .linha-tempo li { padding-bottom: 0; }
  .marco { position: relative; left: 0; top: 0; display: block; margin-bottom: 26px; }
  .linha-tempo h3 { font-size: 30px; }

  .pessoas { gap: 72px; margin-top: 56px; }
  .arco { aspect-ratio: 5 / 5.6; margin-bottom: 30px; }

  .contato { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
}

/* ===== Acessibilidade: menos movimento ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aparece, .palavras .p, .depois-digitar { opacity: 1 !important; transform: none !important; filter: none !important; }
  .traco { stroke-dashoffset: 0 !important; }
  .encontro { opacity: 1; }
}
