/* =========================================================
   Diógenes Corteletti — Psicólogo em Novo Hamburgo
   Paleta: verde-sálvia + areia. Dourado reservado ao bloco
   corporativo, que é a única seção com registro diferente.
   ========================================================= */

:root {
  --sand:       #F6F4EE;
  --sand-deep:  #EDEAE1;
  --paper:      #FFFFFF;

  --ink:        #202725;
  --ink-soft:   #4B5450;
  --muted:      #707974;

  --sage:       #3C5E4C;
  --sage-mid:   #5B7F69;
  --sage-pale:  #E5EBE4;

  --gold:       #B98F35;
  --gold-soft:  #E7C87E;
  --forest:     #1C2A22;

  --line:       #DEDACF;
  --line-soft:  #EAE6DC;

  --wa:         #25D366;

  --shadow-sm:  0 1px 2px rgba(32, 39, 37, .06);
  --shadow-md:  0 12px 32px -18px rgba(32, 39, 37, .38);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --shell: 68rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sage); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sage);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 200;
}
.skip:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.shell--narrow { max-width: 46rem; }

/* ---------------------- tipografia ---------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(1.95rem, 5.2vw, 3.1rem); }

.h-section { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }

h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.3rem);
  margin-top: .5rem;
}

p { margin: 0; max-width: 66ch; }

.eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.eyebrow--corp { color: var(--gold-soft); }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--ink-soft);
}

.sub {
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ------------------------ topbar ------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 238, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.25;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__crp {
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 .55rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav a {
  display: block;
  padding: .6rem .25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.nav a:hover { color: var(--sage); }

.nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: .75rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 60rem) {
  .burger { display: none; }
  .nav { display: block; }
  .nav ul { flex-direction: row; gap: 1.6rem; }
  .nav a { border-bottom: 0; padding: .25rem 0; }
  .nav.is-open {
    position: static;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
}

/* ------------------------ botões ------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--sage); color: #fff; border-color: var(--sage); }
.btn--primary:hover { background: #33513F; border-color: #33513F; }

.btn--ghost { background: transparent; color: var(--sage); border-color: var(--sage-mid); }
.btn--ghost:hover { background: var(--sage-pale); }

.btn--corp { background: var(--gold); color: var(--forest); border-color: var(--gold); width: 100%; }
.btn--corp:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btnrow, .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.link-arrow {
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--sage);
  border-bottom: 1px solid var(--sage-mid);
  padding-bottom: 2px;
  align-self: flex-start;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: #33513F; }

/* ------------------------- hero ------------------------- */

.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, var(--sage-pale) 0%, rgba(229, 235, 228, 0) 62%),
    var(--sand);
  border-bottom: 1px solid var(--line);
}

.hero__in {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-block: 3rem 3.5rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hero__cta { margin-top: .5rem; }

.hero__figure {
  margin: 0;
  max-width: 22rem;
  align-self: center;
}
.hero__figure img {
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 58rem) {
  .hero__in {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding-block: 4.5rem 5rem;
  }
  .hero__text { flex: 1 1 58%; }
  .hero__figure { flex: 0 0 20rem; max-width: 20rem; align-self: auto; }
}

/* ------------------- seções genéricas ------------------- */

.sec { padding-block: 3.5rem; border-bottom: 1px solid var(--line-soft); }
.sec--warm { background: var(--paper); }

.sec__in {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.sec__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sec__figure { margin: 0; }
.sec__figure img { border-radius: 4px; box-shadow: var(--shadow-md); }
.sec__figure figcaption {
  margin-top: .6rem;
  font-size: .84rem;
  color: var(--muted);
  max-width: 34ch;
}

/* Duas imagens empilhadas: a coluna cresce e deixa de ser fixa,
   senão a segunda foto fica fora da tela ao rolar. */
.sec__figure--stack {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* As duas cadelas lado a lado, recortadas em quadrado para
   emparelharem apesar das proporções diferentes. */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.duo img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

@media (min-width: 58rem) {
  .sec { padding-block: 4.5rem; }
  .sec__in { flex-direction: row; align-items: flex-start; gap: 3.5rem; }
  .sec__body { flex: 1 1 60%; }
  .sec__figure { flex: 0 0 19rem; position: sticky; top: 6rem; }
  .sec__in--rev { flex-direction: row-reverse; }
  .sec__figure--stack { flex: 0 0 23rem; position: static; }
}

.band {
  padding-block: 3.5rem;
  background: var(--sand-deep);
  border-bottom: 1px solid var(--line);
}
.band .h-section { margin-bottom: .6rem; }
.band--deep { background: var(--sage-pale); }

@media (min-width: 58rem) {
  .band { padding-block: 4.5rem; }
}

/* ------------------------ cards ------------------------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 48rem) {
  .cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  border-radius: 3px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card__tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.card__title { font-size: 1.25rem; }
.card__addr { color: var(--ink-soft); font-size: .95rem; }
.card__hours { color: var(--muted); font-size: .9rem; }

/* ------------------------ sobre ------------------------- */

.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about__figure { margin: 0; max-width: 15rem; }
.about__figure img { border-radius: 50%; box-shadow: var(--shadow-md); }
.about__body { display: flex; flex-direction: column; gap: 1rem; }

@media (min-width: 52rem) {
  .about { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .about__figure { flex: 0 0 15rem; }
}

/* ------------------- como funciona ---------------------- */

.steps {
  list-style: none;
  counter-reset: passo;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
}

.steps li {
  counter-increment: passo;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--sage-pale);
}
.steps li::before {
  content: counter(passo, decimal-leading-zero);
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--sage-mid);
  letter-spacing: .04em;
}
.steps h3 { margin: 0; }

.notice {
  margin-top: 2.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--sage-pale);
  border-left: 3px solid var(--sage);
  border-radius: 2px;
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------------------- corporativo --------------------- */

.corp {
  background: var(--forest);
  color: #E4E9E4;
  padding-block: 4rem;
}
.corp .h-section,
.corp h3 { color: #F2F0E8; }
.corp p { color: #C3CCC5; }
.corp strong { color: #F2F0E8; }
.lede--corp { color: #D3DBD4; max-width: 60ch; }

.corp__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.corp__main { display: flex; flex-direction: column; gap: 1rem; }
.corp__main h3 { margin-top: 1.25rem; }
.corp__main h3:first-child { margin-top: 0; }

.themes {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  color: #C3CCC5;
  max-width: 60ch;
}
.themes li::marker { color: var(--gold); }

@media (min-width: 62rem) {
  .corp { padding-block: 5.5rem; }
  .corp__grid { flex-direction: row; align-items: flex-start; gap: 3.5rem; }
  .corp__main { flex: 1 1 58%; }
  .corp__form { flex: 0 0 23rem; position: sticky; top: 6rem; }
}

/* ----------------------- formulário --------------------- */

.corp__form {
  background: #26362C;
  border: 1px solid #3A4C40;
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
}
.corp__formnote { font-size: .9rem; margin-bottom: 1.25rem; }

.corp__form form {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.corp__form label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #A9B6AC;
  margin-top: .85rem;
}
.corp__form input,
.corp__form select,
.corp__form textarea {
  width: 100%;
  padding: .65rem .75rem;
  background: #1B2820;
  border: 1px solid #3F5245;
  border-radius: 3px;
  color: #EDF1EC;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.5;
}
.corp__form textarea { resize: vertical; }
.corp__form input:focus,
.corp__form select:focus,
.corp__form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.corp__form .btn--corp { margin-top: 1.5rem; }

.hp { position: absolute; left: -9999px; }

/* -------------------------- FAQ ------------------------- */

.faq {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sage-mid);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 1rem 1.35rem 0;
  color: var(--ink-soft);
  font-size: .97rem;
}

/* ---------------------- contato ------------------------- */

.card--nap { border-top-color: var(--sage-mid); }

.contactline {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  font-size: .95rem;
  font-weight: 600;
}
.contactline a { text-decoration: none; border-bottom: 1px solid var(--sage-mid); padding-bottom: 2px; }

/* ----------------------- rodapé ------------------------- */

.foot {
  background: var(--forest);
  color: #B7C2B9;
  padding-block: 2.75rem 5.5rem;
}
.foot__in { display: flex; flex-direction: column; gap: .4rem; }
.foot p { font-size: .9rem; max-width: 60ch; }
.foot__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: #F2F0E8;
}
.foot__disc { margin-top: 1rem; font-size: .82rem; color: #8D9A90; }

/* -------------------- WhatsApp fixo --------------------- */

.wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4);
  transition: transform .2s ease;
}
.wa:hover { transform: scale(1.06); }

@media (min-width: 60rem) {
  .wa { right: 1.75rem; bottom: 1.75rem; }
}

/* O campo de mensagem carrega um exemplo; sem isto o texto de apoio
   fica escuro demais sobre o fundo escuro do formulário. */
.corp__form ::placeholder {
  color: #909E95;
  opacity: 1;
}

/* Aviso de falha no envio do formulário, inserido pelo JavaScript. */
.corp .form-erro {
  margin-bottom: 1rem;
  padding: .7rem .85rem;
  background: #4A2A22;
  border: 1px solid #8C5140;
  border-radius: 3px;
  color: #F3D9D0;
  font-size: .88rem;
}
