/* Dr. Caio Rezio — Transplante Capilar em Goiânia
   Clone estático otimizado do site original (drcaiorezio.com.br) */

/* Fontes hospedadas localmente (em vez de fonts.googleapis.com) — elimina
   2 requisições externas (DNS + conexão) que bloqueavam a renderização e
   atrasavam o FCP/LCP no PageSpeed. Só o subconjunto "latin" (cobre acentos
   do português), que é tudo que o site usa. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/notoserifsc-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-heading: "Noto Serif SC", serif;
  --font-body: "Manrope", sans-serif;

  --color-bg: #000000;
  --color-bg-soft: #0a0a0a;
  --color-card: rgba(255, 255, 255, 0.04);
  --color-card-border: rgba(255, 255, 255, 0.1);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.78);
  --color-text-dim: rgba(255, 255, 255, 0.55);

  --silver-gradient: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fafc 15%,
    #dfe5eb 35%,
    #bcc6d0 50%,
    #eef3f7 70%,
    #ffffff 100%
  );

  --radius-btn: 3px;
  --radius-card: 14px;
  --radius-panel: 28px;

  --max-width: 1200px;

  --whatsapp-green: #25d366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

.silver-text {
  background-image: var(--silver-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

p {
  margin: 0;
}

/* ---------- Botão padrão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.1px;
  padding: 16px 34px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.3);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@media (min-width: 900px) {
  .whatsapp-float {
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
  }
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

/* ---------- Header / Logo ---------- */
.site-logo {
  width: 150px;
  height: auto;
  margin: 0 auto 18px;
}

/* ---------- Hero ----------
   Mobile: a foto é uma <img> real em fluxo normal (largura 100%, altura automática),
   então ela nunca é cortada e o texto sempre vem DEPOIS dela — zero chance de
   sobreposição em qualquer aparelho. Isso substitui a 1ª tentativa com
   background-image + vh, que cortava a base da foto em telas reais. Desktop
   continua usando a foto como background, lado a lado com o texto. */
.hero {
  position: relative;
  background-color: #000;
}

.hero-media {
  position: relative;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .hero-media {
    display: none;
  }

  .hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background-image: url("../img/hero-desktop.webp");
    background-size: cover;
    background-position: center right;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.1) 65%);
    pointer-events: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6px 24px 30px;
  text-align: center;
  /* Puxa o bloco de texto pra cima, pra dentro da faixa já preta no final da
     foto (mesmo truque visual do site original) — valor fixo em px, não %,
     então não tem a ambiguidade entre Chrome/Safari que causou o bug anterior. */
  margin-top: -150px;
}

@media (min-width: 900px) {
  .hero-inner {
    max-width: 640px;
    /* Usa MARGIN (não padding) pro deslocamento à esquerda: com padding +
       max-width + border-box, o padding "comia" a largura do texto, e em
       monitores bem largos (2K/ultrawide) a caixa de texto praticamente
       sumia (virou ~100px, uma palavra por linha). Margin não conta contra
       o max-width, então o texto sempre tem os 640px cheios pra quebrar
       linha, não importa a largura da tela — só o deslocamento muda. */
    margin: 0 24px 0 max(64px, calc((100vw - 1200px) / 2));
    padding: 0;
    text-align: left;
  }
}

/* No mobile a logo fica sobreposta na parte já preta do final da foto (igual
   ao site original), usando position:absolute + "bottom" em PIXEL FIXO — não
   porcentagem. O bug anterior era especificamente "top: %" contra um
   contêiner de altura automática (Safari e Chrome resolvem isso de forma
   diferente); "bottom" em px é um deslocamento fixo a partir da borda, sem
   essa ambiguidade em nenhum navegador. */
.hero-logo-mobile {
  position: absolute;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  width: 95px;
  height: auto;
}

.hero-logo-desktop {
  display: none;
}

@media (min-width: 900px) {
  .hero-logo-mobile {
    display: none;
  }

  .hero-logo-desktop {
    display: block;
    width: 130px;
    height: auto;
    margin: 0 0 24px;
  }
}

.hero h1 {
  font-size: clamp(30px, 6vw, 52px);
  margin-bottom: 14px;
}

.hero .lead {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  max-width: 440px;
}

@media (min-width: 900px) {
  .hero .lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero .lead,
.hero h1 {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .hero .lead, .hero h1 {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ---------- Procedimentos ---------- */
.procedures {
  padding: 90px 0;
}

.procedures-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .procedures-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.procedures-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.procedures-head p {
  color: var(--color-text-muted);
  max-width: 320px;
}

.procedures-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .procedures-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .procedures-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

.procedure-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.procedure-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.procedure-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.procedure-card h3 {
  font-size: 23px;
}

.procedure-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  flex: 1;
}

.procedure-card .btn {
  font-size: 15px;
  padding: 12px 22px;
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Naturalidade / texto destaque ---------- */
.feature-text {
  padding: 40px 0 100px;
  text-align: center;
}

.feature-text h2 {
  font-size: clamp(26px, 4vw, 38px);
  max-width: 820px;
  margin: 0 auto 20px;
}

.feature-text p {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--color-text-muted);
  font-size: 17px;
}

/* ---------- Sobre o médico ----------
   Mesma técnica do hero: <img> real em fluxo normal no mobile (nunca corta
   a foto, texto sempre depois dela), background-image só a partir do desktop. */
.about {
  position: relative;
  background-color: #000;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .about-photo {
    display: none;
  }

  .about {
    min-height: 640px;
    display: flex;
    align-items: center;
    background-image: url("../img/about-bg.webp");
    background-size: cover;
    background-position: center right;
  }

  .about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.8) 42%, rgba(0, 0, 0, 0.15) 68%);
    pointer-events: none;
  }
}

.about-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px 64px;
  max-width: 560px;
}

@media (min-width: 900px) {
  .about-inner {
    padding: 0 0 0 64px;
  }
}

.about h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 24px;
}

.about p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 16px;
}

.about .btn {
  margin-top: 16px;
}

/* ---------- Resultados / Depoimentos ---------- */
.results {
  padding: 90px 0;
}

.results-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.results-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.results-head p {
  color: var(--color-text-muted);
  font-size: 16px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.results-cta {
  text-align: center;
  margin-top: 48px;
}

/* Slider interativo de antes/depois. --pos (0-100) é controlado pelo
   input[type=range] via JS e dirige o recorte da camada "depois", a régua
   e a alça — funciona com mouse, touch e teclado de graça (input nativo). */
.before-after {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ba-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  --pos: 50%;
}

.ba-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-placeholder {
  color: var(--color-text-dim);
  font-size: 13px;
  text-align: center;
  max-width: 160px;
  padding: 0 16px;
}

.ba-before {
  background: #141414;
}

.ba-after {
  background: #1d1d1d;
  clip-path: inset(0 0 0 var(--pos));
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.ba-handle svg {
  width: 20px;
  height: 20px;
  color: #111;
}

.ba-tag {
  position: absolute;
  bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 14px;
  border-radius: 20px;
  pointer-events: none;
}

.ba-tag-before {
  left: 14px;
}

.ba-tag-after {
  right: 14px;
}

.ba-range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 42px;
  height: 42px;
  opacity: 0;
}

.ba-range::-moz-range-thumb {
  width: 42px;
  height: 42px;
  opacity: 0;
  border: none;
}

.ba-caption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---------- CTA final ---------- */
.final-cta {
  padding: 0 0 100px;
}

.final-cta-panel {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 70%);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-panel);
  padding: 56px 28px;
  text-align: center;
}

.final-cta-panel .site-logo {
  width: 120px;
}

.final-cta-panel h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 18px;
}

.final-cta-panel .lead {
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 30px;
  font-size: 16px;
}

/* ---------- Footer ---------- */
footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: 15px;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

.footer-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--color-text-dim);
  text-align: center;
  line-height: 1.7;
}

.footer-meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-meta a:hover {
  color: #fff;
}

/* ---------- Páginas internas (política, termos, contato) ---------- */
.page-content {
  padding: 70px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 28px;
}

.page-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
}

.page-content p,
.page-content li {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 14px;
}

.page-content ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--color-text-dim);
  font-size: 15px;
}

.back-link:hover {
  color: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--color-text-muted);
}

.contact-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}
