/* ============================================================
   Dr. Victor Rocha — Odontologia
   Estilos globais — MOBILE FIRST
   A base estiliza o celular; @media (min-width) aprimora telas maiores.
   Breakpoints: 640px (tablet) · 900px (desktop)
   ============================================================ */

:root {
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-50:  #f0fdfa;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;

  --bg:       #ffffff;
  --bg-muted: #f6fbfb;
  --bg-dark:  #0b3b39;

  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 30px rgba(13, 148, 136, .12);
  --shadow-lg: 0 24px 60px rgba(13, 148, 136, .18);
  --maxw: 1140px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* evita o iOS reescalar a fonte no giro de tela */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* trava scroll horizontal acidental no celular */
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
}

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Foco visível para quem navega pelo teclado (WCAG 2.4.7).
   :focus-visible não aparece em clique de mouse, só na navegação por Tab. */
:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible,
.whatsapp-float:focus-visible { outline-color: #fff; }

/* Conteúdo só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Link "pular para o conteúdo": invisível até receber foco (WCAG 2.4.1) */
.skip-link {
  position: fixed;   /* fixed, não absolute: continua visível mesmo com a página rolada */
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); text-decoration: none; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 26px;      /* alvo de toque confortável (~48px de altura) */
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--ink-300);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }

.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #eef2f2;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink-900);
  text-decoration: none;
  min-width: 0; /* deixa o texto encolher em telas estreitas */
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
}
span.brand-mark { background: var(--teal-50); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-size: .98rem; }
.brand-text .accent { color: var(--teal-600); }
.brand-text small { color: var(--ink-500); font-size: .7rem; letter-spacing: .02em; }

/* Nav: no celular vira menu suspenso acionado pelo botão hambúrguer */
.main-nav {
  position: absolute;
  top: 64px; left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #eef2f2;
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  display: none;
}
.main-nav.open { display: flex; }
.main-nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 1rem;
  padding: .95rem 18px; /* linhas altas, fáceis de tocar */
}
.main-nav a:hover { color: var(--teal-600); text-decoration: none; }

.header-cta { display: none; } /* no celular o botão flutuante do WhatsApp já cobre a ação */

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--ink-900);
  border-radius: 3px;
  transition: .25s;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--teal-50), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg-muted));
  padding: clamp(2.5rem, 7vw, 6rem) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: coluna única, texto primeiro */
  gap: 2.2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  letter-spacing: -.02em;
}
.hero .lead {
  font-size: 1.08rem;
  color: var(--ink-700);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.6rem 0 1.8rem;
}
.hero-actions .btn { width: 100%; }  /* mobile: CTA de largura total, fácil no polegar */

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--teal-700);
}
.hero-badges span { color: var(--ink-500); font-size: .88rem; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.hero-blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700));
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  filter: blur(2px);
  opacity: .95;
  animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
  0%,100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  50%     { border-radius: 58% 42% 45% 55% / 55% 58% 42% 45%; }
}
.hero-photo-frame {
  position: relative;
  z-index: 2;
  width: min(88%, 340px);
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, .9);
  background: #eef2f2;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1rem .9rem;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 59, 57, .92));
}
.hero-photo-caption strong {
  font-family: var(--font-head);
  font-size: 1rem;
}
.hero-photo-caption span {
  font-size: .78rem;
  color: #d9f3f0;
}

/* ---------------- Sections ---------------- */
.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
  scroll-margin-top: 74px;
}
.section-muted { background: var(--bg-muted); }

.section-head {
  max-width: 620px;
  margin: 0 auto 2.4rem;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
.section-head p { color: var(--ink-500); font-size: 1.02rem; }

/* ---------------- About ---------------- */
.about-content { max-width: 860px; }
.about-text h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: .6rem;
}
.about-list li { color: var(--ink-700); }
.about-cred { color: var(--ink-500); font-size: .9rem; }

/* ---------------- Cards / Services ---------------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 coluna */
  gap: 1.2rem;
}
.card {
  background: #fff;
  border: 1px solid #eef2f2;
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-400);
}
.card-icon {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--teal-50);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-500); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-category {
  display: inline-flex;
  order: -2;
  margin-bottom: .8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.service-card .card-icon { order: -1; }
.service-card p { margin-bottom: 1.25rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
}
.service-link span { transition: transform .15s ease; }
.service-link:hover span { transform: translateX(3px); }

/* ---------------- Features ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 coluna */
  gap: 1.2rem;
}
.feature {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-muted);
  border: 1px solid #eef2f2;
}
.feature-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal-500);
  margin-bottom: .6rem;
}
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-500); font-size: .95rem; }

/* ---------------- How it works ---------------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.step-card {
  background: #fff;
  border: 1px solid #eef2f2;
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.step-number {
  display: inline-block;
  margin-bottom: .75rem;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-500);
}
.step-card h3 { font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--ink-500); }
.section-cta { margin-top: 2rem; text-align: center; }

/* ---------------- FAQ ---------------- */
.faq-wrap { max-width: 800px; }
.faq-list { display: grid; gap: 1rem; }
.faq-list details {
  background: #fff;
  border: 1px solid #eef2f2;
  border-radius: var(--radius-sm);
  padding: 0 1.3rem;
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-900);
  padding: 1.1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--teal-500);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0 0 1.2rem; color: var(--ink-500); }

/* ---------------- Contact ---------------- */
.section-contact {
  background:
    radial-gradient(900px 400px at 90% 10%, var(--teal-50), transparent 60%),
    var(--bg-muted);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0;
  display: grid;
  gap: 1.1rem;
}
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .25rem;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
}
.ci-icon {
  font-size: 1.2rem;
  width: 42px; height: 42px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-actions .btn { width: 100%; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #eef2f2;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink-700);
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: .4rem;
  padding: 14px;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px; /* >=16px evita o zoom automático do iOS ao focar o campo */
  color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .15);
}
.contact-form select { background: #fff; }
.optional {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-500);
}
.form-note { font-size: .8rem; color: var(--ink-500); margin: .8rem 0 0; text-align: center; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-dark);
  color: #cfeae7;
  padding: 2.6rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;   /* mobile: empilhado e centralizado */
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,.08); }
.footer-brand strong { color: #fff; font-family: var(--font-head); display: block; }
.footer-brand small { color: #8fc4bf; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.footer-nav a { color: #cfeae7; font-size: .95rem; padding: .3rem 0; }
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; text-align: center; color: #7fb3ae; font-size: .85rem; margin: 1.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------------- WhatsApp float ---------------- */
.whatsapp-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 126, .45);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; }
.whatsapp-float svg { display: block; }

/* ============================================================
   ENHANCEMENTS — telas maiores (mobile-first: só aqui usamos min-width)
   ============================================================ */

/* --- Tablet (>= 640px) --- */
@media (min-width: 640px) {
  .container { padding: 0 20px; }

  .hero-actions { gap: 1rem; }
  .hero-actions .btn { width: auto; }  /* botões voltam a ficar lado a lado */
  .hero-badges { gap: 2rem; }
  .hero-badges strong { font-size: 1.5rem; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .contact-actions .btn { width: auto; }

  .footer-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }
  .footer-copy { text-align: center; }
}

/* --- Desktop (>= 900px) --- */
@media (min-width: 900px) {
  .header-inner { height: 74px; gap: 1.5rem; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { font-size: .72rem; }

  /* Nav horizontal; some o hambúrguer, aparece o CTA do topo */
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.6rem;
    margin-left: auto;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .main-nav a { font-size: .95rem; padding: 0; }
  .header-cta { display: inline-flex; padding: 11px 22px; font-size: .9rem; min-height: 0; }

  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .hero .lead { font-size: 1.15rem; max-width: 44ch; }
  .hero-visual { min-height: 430px; }
  .hero-photo-frame { width: min(92%, 360px); aspect-ratio: 4/5; }

  .section-head { margin-bottom: 3rem; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card-featured { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .contact-form { padding: 2rem; }

  .whatsapp-float { right: 22px; bottom: 22px; width: 58px; height: 58px; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card-featured { grid-column: span 2; }
}

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