/* ===================================================================
   Dra. Camila Beloto Salomão — Médica Psiquiatra
   Paleta nude / terracota / sage (ajuste em :root conforme o Instagram)
   =================================================================== */

:root {
  /* Paleta extraída do logo: pêssego/coral + verde sálvia + creme */
  --cream:   #FCFAF5;   /* fundo principal */
  --sand:    #F6F0E6;   /* fundo de seções alternadas */
  --beige:   #ECE0CF;   /* bordas / detalhes */
  --peach:   #EFB48C;   /* pêssego claro do logo (preenchimentos suaves) */
  --clay:    #E0A57F;   /* coral suave (detalhes) */
  --terra:   #CE7B4D;   /* destaque principal (botões, links) — coral mais firme p/ contraste */
  --terra-d: #B0623A;   /* hover do destaque */
  --sage:    #9DC384;   /* verde sálvia do logo (secundário) */
  --sage-d:  #7FA868;   /* verde mais firme p/ texto */
  --ink:     #4A453E;   /* texto principal */
  --muted:   #837A6F;   /* texto secundário */
  --white:   #FFFFFF;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(61, 56, 51, 0.10);
  --shadow-sm: 0 6px 18px rgba(61, 56, 51, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 116px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terra-d); }

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

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--clay);
  margin-bottom: 14px;
}
.center { text-align: center; }
.section-lead {
  max-width: 680px; margin: 16px auto 0;
  color: var(--muted); font-size: 1.05rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: .95rem;
  letter-spacing: .02em;
  padding: 14px 30px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all .25s ease;
}
.btn-primary { background: var(--terra); color: var(--white); }
.btn-primary:hover { background: var(--terra-d); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--beige); }
.btn-ghost:hover { background: var(--white); border-color: var(--clay); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 104px; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-logo { height: 86px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand.has-logo .brand-text { display: none; }
.brand-name { font-family: "Great Vibes", cursive; font-size: 1.85rem; font-weight: 400; color: var(--terra); line-height: .9; }
.brand-role { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); text-align: center; }

.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a { color: var(--ink); font-size: .92rem; font-weight: 400; }
.nav a:hover { color: var(--terra); }
.header-cta { padding: 11px 24px; font-size: .88rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(150deg, #F7E6D6 0%, var(--sand) 45%, var(--cream) 100%); padding: 80px 0 90px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin: 22px 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-crm { margin-top: 26px; font-size: .85rem; letter-spacing: .08em; color: var(--clay); }

.hero-photo { display: flex; justify-content: center; }
.photo-frame {
  position: relative; width: 360px; max-width: 100%; aspect-ratio: 4/5;
  border-radius: 200px 200px 18px 18px;
  overflow: hidden; background: var(--beige);
  box-shadow: var(--shadow); border: 6px solid var(--white);
}
.photo-frame.small { width: 320px; border-radius: 18px 18px 200px 200px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-photo .photo-frame img { object-position: 50% 12%; }
.sobre-photo .photo-frame img { object-position: 50% 16%; }
.photo-hint {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: .85rem; padding: 20px;
}
.photo-frame.photo-empty { display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, var(--beige) 12px, var(--beige) 24px); }
.photo-frame.photo-empty .photo-hint { display: flex; }
.photo-hint code { background: rgba(255,255,255,.6); padding: 2px 6px; border-radius: 6px; }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.principios { background: var(--white); }
.especialidades { background: var(--cream); }
.sobre { background: var(--sand); }
.agendamento { background: var(--white); }
.contato { background: var(--ink); color: var(--cream); padding: 64px 0; }

/* ---------- Princípios ---------- */
.principios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px; margin-top: 48px;
}
.principio {
  background: var(--cream); border: 1px solid var(--beige);
  border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, box-shadow .25s;
}
.principio:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.principio h3 { color: var(--terra); margin-bottom: 10px; }
.principio p { font-size: .96rem; color: var(--muted); }

/* ---------- Cards especialidades ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-top: 50px;
}
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--beige); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s; position: relative;
}
.card::before {
  content: ""; position: absolute; left: 28px; top: 0; width: 38px; height: 3px;
  background: var(--sage); border-radius: 0 0 4px 4px;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .95rem; color: var(--muted); }

/* ---------- Sobre ---------- */
.sobre-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.sobre-photo { display: flex; justify-content: center; }
.sobre-text p { color: var(--muted); margin-bottom: 18px; max-width: 600px; }
.sobre-list { list-style: none; margin: 8px 0 28px; }
.sobre-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink); font-size: .98rem;
}
.sobre-list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--sage);
}

/* ---------- Formulário ---------- */
.form { max-width: 720px; margin: 44px auto 0; background: var(--cream);
  padding: 38px; border-radius: var(--radius); border: 1px solid var(--beige); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-size: .88rem; font-weight: 400; color: var(--ink); margin-bottom: 18px; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 7px; padding: 13px 15px; font-family: var(--sans); font-size: .96rem;
  border: 1px solid var(--beige); border-radius: 10px; background: var(--white); color: var(--ink);
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--clay); }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.contato-item h3 { color: var(--white); margin-bottom: 12px; font-size: 1.2rem; }

.map-wrap {
  margin-top: 44px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 4px solid rgba(255, 255, 255, 0.10);
}
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-link { margin-top: 14px; text-align: center; font-size: .92rem; }
.map-link a { color: var(--beige); }
.map-link a:hover { color: var(--white); }
.contato-item p { color: #d9d1c7; font-size: .98rem; }
.contato-item a { color: var(--beige); }
.contato-item a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: #2c2823; color: #cabfb2; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-footer .brand-name { font-family: var(--serif); color: var(--cream); display: block; font-size: 1.15rem; }
.footer-role { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.footer-copy { font-size: .82rem; color: #9a9087; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .25s;
}
.whats-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  html { scroll-padding-top: 84px; }

  /* Cabeçalho compacto (sem faixa vazia acima do logo;
     a folga só aparece em telas com entalhe via safe-area) */
  .header-inner { height: 72px; gap: 12px; }
  .brand-logo { height: 50px; }

  .nav {
    position: fixed; inset: calc(env(safe-area-inset-top, 0px) + 73px) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--beige);
    padding: 8px 24px; transform: translateY(-200%); transition: transform .3s ease;
    visibility: hidden; box-shadow: var(--shadow-sm);
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--beige); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .hero-inner, .sobre-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero { padding: 36px 0 52px; }

  /* Hero centralizado e foto menor no celular */
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .photo-frame { width: 250px; }
  .photo-frame.small { width: 230px; }

  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 26px; }
  .contato-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .map-wrap iframe { height: 260px; }
  .footer-inner { flex-direction: column; text-align: center; }

  .whats-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
