/* MGS Odonto — landing page
   Valores (cores, tamanhos, espaçamentos) seguem o protótipo aprovado no Claude Design. */

:root {
  --teal-900: #08363C;
  --teal-700: #0C6E7B;
  --teal-500: #1BA3B4;
  --lime-500: #8CC63E;
  --lime-400: #A2D95C;
  --lime-ink: #16280A;
  --green-wa: #25A34A;
  --green-wa-dark: #1E8B3E;
  --ink: #17272C;
  --ink-900: #0E1B1F;
  --text: #42565B;
  --text-muted: #51666B;
  --surface: #F4F8F8;
  --line: #E1EBEB;

  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Sora', 'DM Sans', system-ui, sans-serif;
  --gutter: 32px;
  --header-h: 73px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--lime-500); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font: 700 16px/1 var(--font-body); text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-lime, .btn-lime:hover { color: var(--lime-ink); }
.btn-lime { background: var(--lime-500); }
.btn-lime:hover { background: var(--lime-400); }
.btn-teal, .btn-teal:hover { color: #fff; }
.btn-teal { background: var(--teal-500); }
.btn-teal:hover { background: var(--teal-700); }
.btn-ghost, .btn-ghost:hover { color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); font-weight: 600; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid #E6EDED;
}
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.nav a:not(.btn) { font: 500 15px/1 var(--font-body); color: var(--ink); }
.nav a:not(.btn):hover { color: var(--lime-500); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--teal-900); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,54,60,.94) 0%, rgba(8,54,60,.84) 48%, rgba(8,54,60,.25) 100%);
}
.hero-content {
  position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px; padding: 80px var(--gutter);
}
.badge {
  display: inline-flex; align-self: flex-start; align-items: center; min-height: 32px; padding: 6px 14px;
  border-radius: 999px; background: rgba(140,198,62,.18); border: 1px solid var(--lime-500);
  color: #D3EFAA; font: 700 13px/1.3 var(--font-body); letter-spacing: .04em;
}
.hero h1 {
  max-width: 720px; color: #fff; letter-spacing: -.02em; text-wrap: pretty;
  font: 700 clamp(34px, 5vw, 58px)/1.05 var(--font-head);
}
.hero p { max-width: 560px; color: #DCEAEC; font: 400 clamp(16px, 2vw, 20px)/1.55 var(--font-body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* ---------- Faixa de números ---------- */
.stats { background: var(--teal-700); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats-grid li { padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.14); }
.stats-grid li:last-child { border-right: 0; }
.stats-grid strong { display: block; color: #fff; font: 700 24px/1.1 var(--font-head); }
.stats-grid span { display: block; margin-top: 6px; color: #B7DDE2; font: 400 14px/1.35 var(--font-body); }

/* ---------- Seções ---------- */
.section { padding: 80px var(--gutter); background: #fff; }
.eyebrow { margin-bottom: 14px; color: #5F9A1E; font: 700 13px/1 var(--font-body); letter-spacing: .12em; }
.eyebrow-light { margin-bottom: 0; color: #B6E07A; }
.section h2 {
  color: var(--ink); letter-spacing: -.02em; text-wrap: pretty;
  font: 700 clamp(28px, 3.4vw, 40px)/1.12 var(--font-head);
}

/* Tratamentos */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { max-width: 620px; }
.link-arrow { color: var(--teal-700); font: 600 16px/1 var(--font-body); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { padding: 30px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.card-num { display: block; margin-bottom: 16px; color: var(--teal-700); font: 700 14px/1 var(--font-head); }
.card h3 { margin-bottom: 10px; color: var(--ink); font: 600 21px/1.25 var(--font-head); }
.card p { color: var(--text-muted); font: 400 15px/1.6 var(--font-body); }

/* SouSmile */
.sousmile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--teal-700); }
.sousmile-text {
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  width: 100%; max-width: 640px; margin-left: auto; padding: 72px var(--gutter);
}
.sousmile h2 { color: #fff; letter-spacing: -.02em; text-wrap: pretty; font: 700 clamp(28px, 3.2vw, 38px)/1.15 var(--font-head); }
.sousmile-text > p:not(.eyebrow) { max-width: 460px; color: #D5E8EB; font: 400 18px/1.6 var(--font-body); }
.sousmile-text .btn { margin-top: 8px; }
.sousmile picture { display: block; min-height: 420px; }
.sousmile-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

/* A clínica */
.clinica { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.clinica h2 { margin-bottom: 20px; font-size: clamp(28px, 3.2vw, 38px); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: 12px; background: var(--surface); }
.gallery picture:nth-child(n+3) img { height: 190px; }
.lead { margin-bottom: 16px; color: var(--text); font: 400 17px/1.7 var(--font-body); }
.lead + .lead { margin-bottom: 28px; }

/* Contato */
.contato { padding: 72px var(--gutter); background: var(--ink); }
.contato-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.contato h2 { margin-bottom: 16px; color: #fff; letter-spacing: -.02em; font: 700 clamp(26px, 3vw, 36px)/1.15 var(--font-head); }
.contato-grid > div > p { max-width: 460px; margin-bottom: 28px; color: #B4C6CA; font: 400 17px/1.65 var(--font-body); }
.contato-info {
  display: flex; flex-direction: column; gap: 18px; padding-left: 36px;
  border-left: 1px solid rgba(255,255,255,.16);
  color: #DCE5E7; font: 400 16px/1.6 var(--font-body);
}
.contato-info strong { display: block; color: #fff; }
.contato-info a { color: #DCE5E7; }
.contato-info a.accent { color: var(--lime-500); }
.contato-info a:hover { color: var(--lime-400); }
.social { display: flex; gap: 12px; padding-top: 4px; }
.social-btn, .social-btn:hover { color: #fff; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  transition: background-color .15s ease, border-color .15s ease;
}
.contato-info .social-btn { color: #fff; }
.social-btn:hover { background: var(--teal-500); border-color: var(--teal-500); }
.social-btn-wa:hover { background: var(--green-wa); border-color: var(--green-wa); }

/* ---------- Footer ---------- */
.site-footer { padding: 32px var(--gutter); background: var(--ink-900); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-grid p { color: #8FA3A8; font: 400 14px/1.6 var(--font-body); }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 20px; font: 500 14px/1 var(--font-body); }
.footer-grid nav a { color: #B7DDE2; }
.footer-grid nav a:hover { color: var(--lime-500); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float, .wa-float:hover { color: #fff; }
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 999px;
  background: var(--green-wa); box-shadow: 0 12px 28px rgba(15,60,30,.32);
  transition: background-color .15s ease;
}
.wa-float:hover { background: var(--green-wa-dark); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Menu mobile: abaixo de 860px os 5 itens não cabem em uma linha */
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: #fff;
    border-bottom: 1px solid #E6EDED; box-shadow: 0 16px 24px rgba(23,39,44,.08);
  }
  /* Sem JS o menu fica sempre visível (progressive enhancement) */
  .js .nav:not(.is-open) { display: none; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { align-self: stretch; margin-top: 16px; height: 52px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 67px; }
  .site-header { padding-top: 11px; padding-bottom: 11px; }

  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(180deg, rgba(8,54,60,.80) 0%, rgba(8,54,60,.92) 100%); }
  .hero-content { padding-top: 56px; padding-bottom: 56px; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid li { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stats-grid li:nth-child(2n) { border-right: 0; }
  .stats-grid li:nth-child(n+3) { border-bottom: 0; }
  .stats-grid strong { font-size: 20px; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px; }

  .sousmile, .clinica, .contato-grid { grid-template-columns: 1fr; }
  .sousmile-text { max-width: none; padding-top: 56px; padding-bottom: 56px; }
  .sousmile picture, .sousmile-img { min-height: 0; height: 300px; }
  .clinica { gap: 36px; }
  .gallery img { height: 170px; }
  .gallery picture:nth-child(n+3) img { height: 140px; }

  .contato { padding-top: 56px; padding-bottom: 96px; }
  .contato-grid { gap: 36px; }
  .contato-info { padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .site-footer { padding-bottom: 104px; } /* espaço para o botão flutuante não cobrir o rodapé */

  .wa-float { right: 16px; bottom: 16px; width: 58px; height: 58px; }
}

@media (max-width: 400px) {
  .hero-actions .btn { align-self: stretch; width: 100%; }
}

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