/* =====================================================
   CK Clínica do Sono — CSS
   ===================================================== */

:root {
  --verde:      #002921;
  --verde-med:  #0a3d2e;
  --areia:      #f1ebe0;
  --areia-dark: #e8ddd0;
  --ouro:       #c9a96e;
  --text:       #1a1a17;
  --muted:      #6e6a62;
  --rule:       #ddd6cb;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --ease:  cubic-bezier(.4, 0, .2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* WRAPPER */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

/* =====================================================
   TIPOGRAFIA
   ===================================================== */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(48px, 6vw, 88px); }
h2 { font-size: clamp(36px, 4.5vw, 56px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 16px;
}

/* =====================================================
   BOTÕES
   ===================================================== */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--ouro);
  color: var(--verde);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 2px;
  transition: background .2s var(--ease), transform .15s;
}
.btn-primary:hover { background: #dfc190; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(241,235,224,.35);
  color: var(--areia);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(241,235,224,.7); background: rgba(241,235,224,.08); }

.btn-nav {
  display: inline-block;
  padding: 10px 22px;
  background: var(--ouro);
  color: var(--verde);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: 2px;
  transition: background .2s;
}
.btn-nav:hover { background: #dfc190; }

.btn-full { width: 100%; text-align: center; padding: 16px; }

/* =====================================================
   HEADER / NAV
   ===================================================== */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
#siteHeader.scrolled {
  background: rgba(0, 41, 33, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: rgba(241,235,224,.75);
  transition: color .2s;
}
.nav-links a:hover { color: var(--areia); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--areia);
  transition: transform .25s, opacity .25s;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 100vw);
  height: 100%;
  background: var(--verde);
  z-index: 200;
  padding: 80px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mobile-menu.open { transform: none; }

.mobile-logo { display: flex; }
.mobile-logo .logo-img { height: 36px; width: auto; }

.mobile-menu ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu ul a {
  font-size: 18px;
  color: var(--areia);
  font-family: var(--serif);
}

.menu-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--areia);
  font-size: 20px;
  opacity: .7;
  transition: opacity .2s;
}
.menu-close:hover { opacity: 1; }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  background: var(--verde);
  overflow: hidden;
  padding: 0 max(48px, calc((100vw - 1120px) / 2 + 48px));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ouro);
  flex-shrink: 0;
}

.hero-content h1 { color: var(--areia); }
.hero-content h1 em { font-style: italic; color: var(--ouro); }

.hero-sub {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(241,235,224,.7);
  max-width: 440px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* foto lado direito */
.hero-foto-wrap {
  position: relative;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-foto {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =====================================================
   SOBRE
   ===================================================== */
.sobre {
  padding: 120px 0;
  background: #fff;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sobre-foto {
  aspect-ratio: 3/4;
  background: var(--areia-dark);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,41,33,.1);
}
.sobre-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-text h2 { color: var(--verde); margin-bottom: 8px; }

.sobre-crm {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ouro);
  margin-bottom: 20px;
}

.sobre-bio {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
}

.creds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.creds li {
  font-size: 14px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}
.creds li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--ouro);
}

/* =====================================================
   EXAMES
   ===================================================== */
.exames {
  padding: 120px 0;
  background: var(--verde);
}

.section-head { margin-bottom: 48px; }
.exames .section-head .label { color: rgba(201,169,110,.8); }
.exames .section-head h2 { color: var(--areia); }

.exames-grupo {
  margin-bottom: 56px;
}
.exames-grupo:last-child { margin-bottom: 0; }

.exames-grupo-titulo {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(201,169,110,.7);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.exames-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: var(--verde);
}

.exame-card {
  flex: 0 0 calc(25% - 1px);
  min-width: 0;
  box-sizing: border-box;
  background: var(--verde);
  padding: 36px 28px;
  transition: background .2s;
}
.exame-card:hover { background: var(--verde-med); }

.exame-num {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ouro);
  margin-bottom: 14px;
}
.exame-card h3 { color: var(--areia); font-size: 17px; margin-bottom: 10px; }
.exame-card p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(241,235,224,.55);
}
.exame-card--breve { opacity: .65; }
.tag-breve {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ouro);
  border: 1px solid rgba(201,169,110,.4);
  border-radius: 20px;
  padding: 2px 8px;
  vertical-align: middle;
  margin-left: 4px;
}

/* =====================================================
   DIFERENCIAIS
   ===================================================== */
.diferenciais {
  padding: 120px 0;
  background: var(--areia);
}
.diferenciais .section-head .label { color: var(--ouro); }
.diferenciais .section-head h2 { color: var(--verde); }

.dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.dif {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .2s;
}
.dif:hover { background: var(--areia-dark); }
.dif h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--verde);
  margin-bottom: 10px;
}
.dif p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

/* =====================================================
   ESPECIALIDADES
   ===================================================== */
.especialidades {
  padding: 120px 0;
  background: #fff;
}
.especialidades .section-head h2 { color: var(--verde); }

.esp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.esp-item {
  flex: 0 0 calc(25% - 11px);
  min-width: 0;
  box-sizing: border-box;
  padding: 22px 20px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color .2s, background .2s, transform .2s;
}
.esp-item:hover {
  border-color: var(--ouro);
  background: var(--areia);
  transform: translateY(-2px);
}
.esp-item span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--verde);
}

/* =====================================================
   PROBLEMAS TRATADOS
   ===================================================== */
.problemas {
  background: #fff;
  overflow: hidden;
}

.prob-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 max(48px, calc((100vw - 1120px) / 2 + 48px));
  gap: 64px;
  align-items: center;
}

.prob-list {
  padding: 120px 0;
}

.prob-list .section-head { margin-bottom: 48px; }
.prob-list .section-head h2 { color: var(--verde); }

.prob-items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.prob {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.prob h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--verde);
  margin-bottom: 4px;
  font-family: var(--sans);
}
.prob p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.prob-foto {
  position: relative;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.prob-foto img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,41,33,.1);
}

/* =====================================================
   DIVISOR
   ===================================================== */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
}

/* =====================================================
   CONTATO
   ===================================================== */
.contato {
  padding: 120px 0;
  background: #fff;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contato-info .label { color: var(--ouro); }
.contato-info h2 { color: var(--verde); margin-bottom: 20px; }
.contato-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 40px;
}

.info-items { display: flex; flex-direction: column; gap: 24px; }
.info-item { display: flex; flex-direction: column; gap: 6px; }
.info-item strong {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ouro);
}
.info-item a,
.info-address {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  transition: color .2s;
}
.info-item a:hover,
.info-address:hover { color: var(--verde); }

/* FORM */
.contato-form {
  background: #fff;
  border-left: 3px solid var(--ouro);
  border-radius: 0 4px 4px 0;
  padding: 40px 40px 40px 44px;
  box-shadow: -2px 0 0 0 var(--ouro), 4px 8px 32px rgba(0,41,33,.06);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(110,106,98,.35); }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--ouro); }

.erro { font-size: 12px; color: #c0392b; min-height: 16px; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--verde);
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(241,235,224,.4);
}

.footer-nav-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 16px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(241,235,224,.5);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--areia); }

.footer-address {
  display: block;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(241,235,224,.5);
  margin-bottom: 16px;
  transition: color .2s;
}
.footer-address:hover { color: var(--areia); }

.footer-wpp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
  color: #4ade80;
  transition: opacity .2s;
}
.footer-wpp:hover { opacity: .8; }

.footer-bottom { padding: 16px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 11px; font-weight: 300; color: rgba(241,235,224,.28); }
.footer-bottom a { color: rgba(201,169,110,.55); }
.footer-bottom a:hover { color: var(--ouro); }

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-content { padding: 100px 48px 60px 48px; }
  .prob-list { padding: 100px 60px 100px 0; }
}

@media (max-width: 960px) {
  .wrap { padding: 0 32px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 32px;
    gap: 0;
  }
  .hero-foto-wrap { order: -1; padding: 80px 0 32px; }
  .hero-content { padding: 0 0 72px; }
  .hero-foto {
    aspect-ratio: unset;
    max-width: 100%;
    height: auto;
  }
  .hero-foto img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .exame-card { flex: 0 0 calc(50% - 1px); }
  .esp-item { flex: 0 0 calc(33.33% - 10px); }

  .sobre-grid,
  .contato-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-foto {
    aspect-ratio: unset;
    height: auto;
  }
  .sobre-foto img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .prob-inner { grid-template-columns: 1fr; }
  .prob-foto { padding: 0; order: -1; margin-top: 80px; }
  .prob-foto img {
    max-width: 100%;
    aspect-ratio: unset;
    height: auto;
    object-fit: unset;
  }
  .prob-list { padding: 80px 32px; max-width: 100%; margin: 0; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .wrap { padding: 0 24px; }

  .diferenciais, .sobre, .exames, .especialidades, .contato { padding: 80px 0; }
  .esp-item { flex: 0 0 calc(50% - 7px); }
  .contato-form { padding: 28px 20px; }
  .dif-grid { grid-template-columns: 1fr; }
  .exame-card { flex: 0 0 100%; }
}

@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { text-align: center; }
}
