/* ============================================================
   Os 3 Odontologia — Landing
   Design system: Inter typography + preto/cinza monocromático
   ============================================================ */

:root {
  /* Cores — paleta sóbria alinhada ao logo Os3 */
  --c-bg: #ffffff;
  --c-bg-soft: #fafaf9;
  --c-bg-dark: #0a0a0a;
  --c-text: #0a0a0a;
  --c-text-muted: #525252;
  --c-text-subtle: #737373;
  --c-text-on-dark: #fafafa;
  --c-line: #e7e5e4;
  --c-line-strong: #d4d4d8;
  --c-accent: #0a0a0a;
  --c-accent-hover: #262626;

  /* WhatsApp (exceção justificada — marca universal de contato) */
  --c-wa: #25D366;
  --c-wa-hover: #1ebe5b;

  /* Banner aviso */
  --c-aviso-bg: #fef3c7;
  --c-aviso-text: #713f12;
  --c-aviso-border: #fcd34d;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06), 0 1px 3px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.04);

  /* Layout */
  --maxw: 1200px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 9999px;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10, 10, 10, 0.25);
  transition: text-decoration-color 0.15s ease;
}
a:hover { text-decoration-color: rgba(10, 10, 10, 0.95); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.1; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.375rem; line-height: 1.3; }

p { margin: 0; }

section { padding: clamp(56px, 8vw, 96px) 0; }

/* ============================================================
   BANNER AVISO (instabilidade Copa)
   ============================================================ */

.aviso {
  background: var(--c-aviso-bg);
  border-bottom: 1px solid var(--c-aviso-border);
  color: var(--c-aviso-text);
  padding: 12px 24px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
}
.aviso p { max-width: 920px; margin: 0 auto; }
.aviso a { color: var(--c-aviso-text); font-weight: 600; }
.aviso a:hover { text-decoration-color: var(--c-aviso-text); }

/* ============================================================
   HEADER
   ============================================================ */

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line);
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--c-text);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}
.logo-text-main {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.logo-text-sub {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--c-text-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.menu {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  color: var(--c-text);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.menu a:hover { opacity: 1; text-decoration: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: linear-gradient(180deg, var(--c-bg-soft) 0%, #ffffff 80%);
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(10, 10, 10, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(10, 10, 10, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero-lead {
  color: var(--c-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.cta-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: white;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--c-accent);
  transition: all 0.15s ease;
}
.cta:hover {
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cta-secondary {
  background: white;
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.cta-secondary:hover {
  background: var(--c-bg-soft);
  border-color: var(--c-text);
  color: var(--c-text);
}

/* ============================================================
   STATS / TRUST SECTION
   ============================================================ */

.stats {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: rgba(250, 250, 250, 0.65);
  font-weight: 500;
}

/* ============================================================
   UNIDADES
   ============================================================ */

.unidades {
  background: var(--c-bg);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p {
  color: var(--c-text-muted);
  font-size: 17px;
  margin-top: 12px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}
.card-head h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-bg-soft);
  color: var(--c-text-muted);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
}
.info-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.info-body { flex: 1; min-width: 0; }
.info-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-subtle);
  margin-bottom: 2px;
}
.info-value {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.45;
}
.info-value a { font-weight: 500; }

.card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--r-md);
  margin-top: 8px;
  filter: grayscale(0.2);
  transition: filter 0.2s ease;
}
.card:hover iframe { filter: grayscale(0); }

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.btn-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--c-line-strong);
  background: white;
  color: var(--c-text);
  transition: all 0.15s ease;
}
.btn-card:hover {
  background: var(--c-text);
  color: white;
  border-color: var(--c-text);
  text-decoration: none;
}
.btn-card.primary {
  background: var(--c-text);
  color: white;
  border-color: var(--c-text);
}
.btn-card.primary:hover {
  background: var(--c-accent-hover);
  color: white;
}
.btn-card.wa {
  background: var(--c-wa);
  color: white;
  border-color: var(--c-wa);
}
.btn-card.wa:hover {
  background: var(--c-wa-hover);
  border-color: var(--c-wa-hover);
  color: white;
}
.btn-card svg { width: 16px; height: 16px; }

/* Ícone WhatsApp colorido nos info-items */
.info-icon.wa { background: rgba(37, 211, 102, 0.1); color: var(--c-wa); }

/* ============================================================
   PLANOS
   ============================================================ */

.planos { background: var(--c-bg-soft); }

.grid-planos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.plano {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 36px 20px;
  text-align: center;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.plano:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-line-strong);
  transform: translateY(-1px);
}
.plano img {
  max-width: 92%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease;
}
.plano:hover img {
  filter: grayscale(0) opacity(1);
}
.plano-wm {
  display: block;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--c-text);
}
.plano-sub {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.planos-extra {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.planos-extra-title {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--c-text);
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-subtle);
}
.lista-planos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lista-planos li {
  background: var(--c-bg-soft);
  color: var(--c-text-muted);
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.lista-planos li:hover {
  background: white;
  border-color: var(--c-line);
  color: var(--c-text);
}
.lp-name { font-weight: 600; color: var(--c-text); }
.lp-tag {
  font-weight: 500;
  font-size: 0.85em;
  color: var(--c-text-subtle);
  margin-left: 4px;
}

.planos-particular {
  text-align: center;
  margin: 24px 0 0;
  font-size: 14.5px;
  color: var(--c-text-muted);
}
.planos-particular strong { color: var(--c-text); font-weight: 600; }

.footnote {
  color: var(--c-text-muted);
  font-size: 14px;
  text-align: center;
  margin: 32px 0 0;
}

/* ============================================================
   SOBRE
   ============================================================ */

.sobre { background: var(--c-bg); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.sobre-text p {
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.sobre-text p:last-child { margin-bottom: 0; }
.diferenciais {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dif-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.dif-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--c-text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dif-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.dif-body h4 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.dif-body p { color: var(--c-text-muted); font-size: 14.5px; line-height: 1.55; }

/* ============================================================
   CONTATO
   ============================================================ */

.contato {
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  text-align: center;
}
.contato .section-head { color: white; }
.contato h2 { color: white; }
.contato .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}
.contato p { color: rgba(250, 250, 250, 0.75); }
.contato-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.contato-actions .cta {
  background: white;
  color: var(--c-text);
  border-color: white;
}
.contato-actions .cta:hover {
  background: var(--c-bg-soft);
  color: var(--c-text);
  border-color: var(--c-bg-soft);
}
.contato-actions .cta-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}
.contato-actions .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: white;
  color: white;
}
.contato .redes {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(250, 250, 250, 0.5);
}
.contato .redes a { color: white; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--c-bg-dark);
  color: rgba(250, 250, 250, 0.55);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer p { margin: 0; }
footer a { color: rgba(250, 250, 250, 0.75); }

/* ============================================================
   FAB — WhatsApp flutuante (mobile)
   ============================================================ */

.fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-wa);
  color: white;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fab-in 0.4s ease-out 0.6s both;
}
.fab:hover, .fab:focus {
  transform: scale(1.05);
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.fab svg { width: 28px; height: 28px; stroke-width: 2; }
.fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: fab-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes fab-in {
  from { transform: translateY(40px) scale(0.6); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ============================================================
   REVEAL — entrada suave dos blocos
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .fab { animation: none; opacity: 1; transform: none; }
  .fab::after { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-planos { grid-template-columns: repeat(2, 1fr); }

  /* Header mobile — logo à esquerda */
  header nav { padding: 18px 20px; justify-content: flex-start; }
  .menu { display: none; }
  .logo { gap: 12px; }
  .logo-mark { width: 52px; height: 52px; }
  .logo-text-main { font-size: 12.5px; }
  .logo-text-sub { font-size: 10.5px; }

  /* Hero mobile */
  .hero { padding: 56px 0 48px; }
  .eyebrow { font-size: 11.5px; padding: 5px 12px; margin-bottom: 18px; }
  .hero-lead { margin-bottom: 28px; padding: 0 8px; }

  /* CTAs mobile */
  .cta-group { flex-direction: column; width: 100%; }
  .cta, .cta-secondary { width: 100%; justify-content: center; padding: 16px 24px; font-size: 16px; min-height: 52px; }

  /* Stats mobile */
  .stats { padding: 36px 0; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.625rem; }
  .stat-label { font-size: 11.5px; line-height: 1.3; }

  /* Cards mobile */
  .card { padding: 24px; }
  .card iframe { height: 180px; }
  .card-head h3 { font-size: 1.25rem; }
  .info-item { gap: 12px; }
  .info-icon { width: 34px; height: 34px; }
  .info-icon svg { width: 16px; height: 16px; }
  .info-value { font-size: 14.5px; }

  /* Card actions mobile */
  .card-actions { gap: 8px; }
  .btn-card { padding: 13px 14px; font-size: 14px; min-height: 48px; }

  /* Section heads mobile */
  .section-head { margin-bottom: 36px; }

  /* FAB WhatsApp visível em mobile */
  .fab { display: inline-flex; }

  /* Contato mobile */
  .contato-actions { flex-direction: column; width: 100%; }
  .contato-actions .cta { width: 100%; }
  .contato .redes { font-size: 13.5px; line-height: 1.8; }

  /* Footer mobile */
  footer .container { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 540px) {
  header nav { padding: 16px 18px; }
  .logo-mark { width: 48px; height: 48px; }
  .logo-text-main { font-size: 11.5px; }
  .logo-text-sub { font-size: 9.5px; }

  .grid-planos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plano { padding: 20px 12px; font-size: 14px; }
  .card { padding: 20px; }
  .card-head { gap: 10px; }
  .badge { font-size: 10px; padding: 3px 8px; }
  .fab { width: 56px; height: 56px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0)); }
  .fab svg { width: 26px; height: 26px; }
  .lista-planos li { font-size: 12.5px; padding: 6px 12px; }
}
