/* Clínica Seren — página de demonstração */

:root {
  --bg: #FBF7F3;
  --accent: #8C5A4A;
  --accent-deep: #6E4335; /* texto pequeno sobre o bege: contraste ~6:1 */
  --support: #E9D9CC;
  --ink: #2E2420;
  --muted: #6B5A53;
  --muted-deep: #574841; /* descrições e rótulos */
  --olive: #3F4A3C;      /* segunda cor de apoio, usada só com body.oliva */
  --rule: rgba(46, 36, 32, .18);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: 20px;
  --gap: 20px;
  --space: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 900px) {
  :root { --pad: 40px; --gap: 24px; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 450;
  margin: 0;
  color: inherit;
}
/* Títulos grandes: tamanho óptico fixo em 72 para não afinar demais os traços */
h1, h2 {
  font-weight: 400;
  font-variation-settings: "opsz" 72;
}
h2 {
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
em { font-style: italic; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Pequeno texto em caixa alta acima dos títulos */
.kicker {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.25rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

/* Numeração dos tratamentos e dos passos: mesmo estilo */
.treat__num,
.steps__num {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--accent);
}

/* Botões: retos, sem sombra */
.btn {
  display: inline-block;
  padding: 1.05rem 1.7rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; border-color: var(--bg); color: var(--bg); }
.btn--line:hover { background: var(--bg); border-color: var(--bg); color: var(--accent); }

/* Topo */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: .9rem;
}
.logo {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.25rem;
  font-size: .875rem;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) {
  .topbar__inner { padding-block: 1.1rem; }
  .nav { display: flex; }
}

/* 1. Hero */
.hero { padding-block: 2.25rem var(--space); overflow: hidden; }
.hero__grid { display: grid; }
.hero__title {
  font-size: clamp(3.4rem, 8.5vw, 8rem);
  line-height: .98;
  letter-spacing: -.03em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0 .12em .08em 0;
}
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--accent); }

.hero__text {
  max-width: 32ch;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
}
.hero__text p { margin-bottom: 1.5rem; }

.hero__figure {
  width: 82%;
  margin: 3rem 0 0 auto;
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 640 / 880;
  object-fit: cover;
  background: var(--support);
}
figcaption {
  margin-top: .8rem;
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero { padding-top: 3.5rem; }
  .hero__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }
  /* Título e texto ficam nas colunas 1–7; a foto, nas colunas 8–12, sem sobreposição */
  .hero__kicker { grid-column: 1 / 8; grid-row: 1; }
  .hero__title  { grid-column: 1 / 8; grid-row: 2; }
  .hero__text   { grid-column: 1 / 7; grid-row: 3; margin-top: 2.25rem; }
  .hero__figure {
    grid-column: 8 / 13;
    grid-row: 1 / 5;
    width: auto;
    margin: 0;
  }
}

/* Animação de entrada: só no hero, só uma vez */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: rise 1.1s var(--ease) both; }
  .hero__title .line + .line > span { animation-delay: .12s; }
  .hero__figure img { animation: unveil 1.4s var(--ease) .15s both; }
  .hero__figure figcaption,
  .hero__text { animation: fade .9s ease .7s both; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Seções */
.block { padding-block: var(--space); }

/* Quem somos */
.about { padding-top: 0; }
.about__grid { display: grid; gap: 2.5rem; }
.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--support);
}
.about__letter { max-width: 52ch; margin-top: 1.75rem; }
.about__sign {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  margin: 1.75rem 0 0;
}
.about__principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.about__principles li { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.about__principles h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: .4rem; }
.about__principles p { color: var(--muted); margin: 0; max-width: 36ch; }

@media (max-width: 899px) {
  .about__text { order: -1; }
  .about__figure { margin-left: 15%; margin-right: calc(var(--pad) * -1); }
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    row-gap: 4.5rem;
    align-items: center;
  }
  .about__figure { grid-column: 1 / 6; grid-row: 1; }
  .about__text { grid-column: 7 / 13; grid-row: 1; font-size: 1.125rem; }
  .about__principles {
    grid-column: 1 / 13;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gap);
  }
}

/* 2. Tratamentos */
.treat { padding-top: 0; }
.treat__grid { display: grid; gap: 2.25rem; }
.treat__head h2 { max-width: 14ch; }

.treat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.treat__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-template-areas: "num title" ". details";
  column-gap: 1rem;
  padding-block: 2rem 1.75rem;
  border-top: 1px solid var(--rule);
}
.treat__num { grid-area: num; padding-top: .7rem; }
.treat__item h3 {
  grid-area: title;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  transition: color .3s ease;
}
.treat__item:hover h3 { color: var(--accent); }
.treat__details { grid-area: details; }

/* Linhas curtas para escanear: rótulo à esquerda, informação à direita */
.treat__facts { margin: 1.1rem 0 0; }
.treat__facts > div {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: .9rem;
  padding-block: .6rem;
  border-top: 1px solid rgba(46, 36, 32, .1);
}
.treat__facts > div:first-child { border-top: 0; padding-top: 0; }
.treat__facts dt {
  padding-top: .3rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-deep);
}
.treat__facts dd { margin: 0; color: var(--muted-deep); line-height: 1.55; max-width: 44ch; }
.treat__how { margin: 0; padding-left: 1.15em; }
.treat__how li::marker { color: var(--accent); font-size: .85em; }

.treat__cta {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}
.treat__cta:hover { color: var(--accent); }

.treat__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--support);
  overflow: hidden;
}
.treat__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.treat__frame img:first-child { opacity: 1; }
/* A foto acompanha o tratamento sob o cursor */
.treat__grid:has(.treat__item:hover) .treat__frame img { opacity: 0; }
.treat__grid:has(.treat__item:nth-child(1):hover) .treat__frame img:nth-child(1),
.treat__grid:has(.treat__item:nth-child(2):hover) .treat__frame img:nth-child(2),
.treat__grid:has(.treat__item:nth-child(3):hover) .treat__frame img:nth-child(3),
.treat__grid:has(.treat__item:nth-child(4):hover) .treat__frame img:nth-child(4) { opacity: 1; }

/* Celular: foto pequena em cada item; a foto grande fica só no desktop */
.treat__thumb {
  grid-area: thumb;
  width: 84px;
  aspect-ratio: 192 / 240;
  object-fit: cover;
  background: var(--support);
}
@media (max-width: 899px) {
  .treat__figure { display: none; }
  .treat__item {
    grid-template-columns: 1fr 84px;
    grid-template-areas: "num thumb" "title thumb" "details details";
    grid-template-rows: auto 1fr auto;
    column-gap: 1.1rem;
    row-gap: .35rem;
    padding-block: 1.6rem 1.5rem;
  }
  .treat__num { padding-top: 0; }
  .treat__details { margin-top: .5rem; }
  .treat__facts > div { grid-template-columns: 5.75rem 1fr; }
}
@media (min-width: 900px) {
  .treat__thumb { display: none; }
  .treat__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    row-gap: 3rem;
    align-items: start;
  }
  .treat__head { grid-column: 1 / 8; }
  .treat__list { grid-column: 1 / 8; grid-row: 2; }
  .treat__figure {
    grid-column: 9 / 13;
    grid-row: 2;
    position: sticky;
    top: 2rem;
  }
}

/* Foto larga */
.band img {
  width: 100%;
  aspect-ratio: 800 / 520;
  object-fit: cover;
  background: var(--support);
}
@media (min-width: 700px) { .band img { aspect-ratio: 1400 / 560; } }

/* 3. Como agendar */
.steps__grid { display: grid; gap: 2.5rem; }
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.steps__list li { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.steps__num { display: block; margin-bottom: 1rem; }
.steps__list h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.steps__list p { color: var(--muted); margin: 0; max-width: 34ch; }

@media (min-width: 900px) {
  .steps__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: end;
  }
  .steps__head { grid-column: 1 / 5; }
  .steps__list {
    grid-column: 6 / 13;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gap);
  }
}

/* Desktop: descrições dos tratamentos e dos passos em 18px, um pouco mais escuras
   (fica depois das regras base dessas listas para prevalecer) */
@media (min-width: 900px) {
  .treat__facts dd,
  .steps__list p { font-size: 1.125rem; color: var(--muted-deep); }
}

/* 4. Horários */
.hours { background: var(--support); }
.hours .kicker { color: var(--accent-deep); }
.hours__grid { display: grid; gap: 2rem; }
.hours__table { margin: 0; border-bottom: 1px solid var(--rule); }
.hours__table div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.hours__table dt { font-size: 1.0625rem; }
.hours__table dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 450;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
}
.hours__note { margin: 1.1rem 0 0; color: var(--muted); }

@media (min-width: 900px) {
  .hours__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }
  .hours__head { grid-column: 1 / 6; }
  .hours__body { grid-column: 7 / 13; }
}

/* 5. Mapa */
.place__grid { display: grid; gap: 1.75rem; }
.place__map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--support);
}
/* Fica por baixo do iframe: só aparece enquanto o mapa não é desenhado */
.place__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.place__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.9) sepia(.18) contrast(.95);
}
.place__text h2 { text-wrap: balance; }
.place__link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}
.place__link:hover { color: var(--ink); }
@media (max-width: 899px) {
  .place__text { order: -1; }
}
@media (min-width: 900px) {
  .place__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: end;
  }
  .place__map { grid-column: 1 / 8; aspect-ratio: 16 / 11; }
  .place__text { grid-column: 9 / 13; }
}

/* 6. CTA final */
.cta {
  background: var(--accent);
  color: var(--bg);
  padding-block: var(--space);
}
.cta__grid { display: grid; gap: 2rem; }
.cta h2 {
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: -.025em;
  max-width: 11ch;
}
.cta__side p { max-width: 30ch; margin-bottom: 1.75rem; }
@media (min-width: 900px) {
  .cta__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: end;
  }
  .cta h2 { grid-column: 1 / 9; }
  .cta__side { grid-column: 9 / 13; }
}

/* 7. Rodapé */
.footer {
  padding-block: 2.5rem 6.5rem;
  font-size: .875rem;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  gap: 1rem;
  padding-top: 2rem;
  /* linha só na largura do conteúdo, sem invadir a margem */
  background: linear-gradient(var(--rule), var(--rule)) var(--pad) 0 / calc(100% - var(--pad) * 2) 1px no-repeat;
}
.footer__logo {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0;
}
.footer__demo { color: var(--ink); margin: 0; }
.footer__credits { max-width: 60ch; margin: 0; }
@media (min-width: 900px) {
  .footer { padding-bottom: 3rem; }
  .footer__grid { grid-template-columns: 3fr 4fr 5fr; column-gap: var(--gap); align-items: baseline; }
}

/* Botão fixo de WhatsApp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--bg);
  transition: background-color .25s ease;
}
.wa-float:hover { background: var(--ink); }
@media (min-width: 900px) { .wa-float { right: 32px; bottom: 32px; } }

/* Variante com verde-oliva: fundo do "Quem somos" e sublinhado dos links */
.oliva .about {
  background: var(--olive);
  color: var(--bg);
  padding-top: var(--space);
}
.oliva .treat { padding-top: var(--space); }
.oliva .about .kicker { color: var(--support); }
.oliva .about figcaption,
.oliva .about__principles p { color: rgba(251, 247, 243, .78); }
.oliva .about__principles li { border-top-color: rgba(251, 247, 243, .28); }
.oliva .treat__cta,
.oliva .place__link,
.oliva .footer a { text-decoration-color: var(--olive); }

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