/* =========================================================
   Oral Design — Estética Dental
   Paleta e tipografia baseadas no wallpaper da marca
   ========================================================= */

:root {
  /* Cores da marca (extraídas da logo oficial) */
  --oral:        #005b7e;   /* teal do dente e do "oral" */
  --oral-deep:   #00425b;   /* teal escuro / hover */
  --navy:        #0a3242;   /* serifa dos títulos */
  --accent:      #1b8fba;   /* teal claro p/ gradientes e destaques */
  --blue:        #005da5;   /* azul do ponto da logo */
  --gray:        #949599;   /* cinza do "design" */
  --gray-soft:   #6f7d85;   /* texto secundário */

  /* Fundos */
  --bg:          #f4f9fb;
  --bg-soft:     #eaf3f6;
  --bg-card:     #ffffff;
  --line:        rgba(26, 110, 142, 0.12);
  --line-strong: rgba(16, 54, 68, 0.10);

  /* Tipografia */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", system-ui, sans-serif;
  --body:  "Inter", system-ui, sans-serif;

  --radius: 16px;
  --shadow-sm: 0 4px 20px rgba(16, 54, 68, 0.06);
  --shadow-md: 0 18px 50px rgba(16, 54, 68, 0.10);
  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--gray-soft);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* ---------- Tipografia compartilhada ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oral);
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: var(--accent); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--oral); }
.section-title.on-dark { color: #fff; }
.section-title.on-dark em { color: var(--accent); }

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section-lead, .section-head .eyebrow { margin-left: auto; margin-right: auto; }
.section-lead { font-size: 1.08rem; margin-top: 18px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 15px 32px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--oral), var(--accent));
  color: #fff; box-shadow: 0 10px 26px rgba(26, 110, 142, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(26, 110, 142, 0.42); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--oral); }
.btn-ghost:hover { border-color: var(--oral); background: rgba(26,110,142,0.05); }
.btn-block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(244, 249, 251, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 42px; width: auto; display: block; transition: height 0.35s var(--ease); }
.site-header.scrolled .logo-img { height: 34px; }
.logo--footer .logo-img { height: 40px; filter: brightness(0) invert(1); opacity: 0.95; }
.logo-tooth { width: 30px; height: 33px; }
.tooth-path { fill: none; stroke: var(--oral); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.tooth-dot  { fill: none; stroke: var(--oral); stroke-width: 3; }
.logo-word { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.logo-oral { color: var(--oral); }
.logo-design { color: var(--gray); }

/* Nav */
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--navy);
  position: relative; transition: color 0.25s;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--oral); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--oral); color: #fff !important; padding: 10px 22px; border-radius: 100px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--oral-deep); transform: translateY(-1px); }

/* Toggle mobile */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 0 90px;
  background:
    radial-gradient(120% 80% at 50% 0%, #ffffff 0%, var(--bg) 45%, var(--bg-soft) 100%);
  overflow: hidden;
}
/* barra superior em gradiente (como no wallpaper) */
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--oral-deep), var(--accent) 55%, #bfe6ef);
  z-index: 3;
}
/* Imagem de fundo opcional (definida no painel administrativo).
   Só existe no HTML quando uma imagem é configurada — sem imagem definida,
   o hero permanece exatamente como o layout original. */
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.16;
}

/* grade sutil de fundo */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

/* Lockup central */
.hero-lockup { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(460px, 80vw); height: auto; }
.hero-rule { display: block; width: 56px; height: 2px; background: var(--accent); margin: 30px auto 0; }

.hero-eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--oral);
  margin-top: 34px;
}

/* Slides */
.hero-slides { position: relative; margin-top: 22px; width: 100%; max-width: 760px; min-height: 220px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); pointer-events: none;
}
.hero-slide.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.hero-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.08; color: var(--navy); letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--oral); }
.hero-sub { max-width: 560px; margin: 22px auto 0; font-size: 1.05rem; color: var(--gray-soft); }

.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

.hero-dots { display: flex; gap: 10px; margin-top: 40px; }
.dot {
  width: 28px; height: 5px; border-radius: 100px; border: 0; cursor: pointer; padding: 0;
  background: var(--line-strong); transition: background 0.3s, width 0.3s var(--ease);
}
.dot.is-active { background: var(--oral); width: 40px; }

.hero-footnote {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; justify-content: space-between; width: 100%;
  font-family: var(--sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(111, 125, 133, 0.55);
}

/* =========================================================
   SOBRE
   ========================================================= */
.sobre { background: var(--bg-card); }
.sobre-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.sobre-text p { margin-top: 18px; font-size: 1.05rem; }
.sobre-text strong { color: var(--navy); font-weight: 600; }

.stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-weight: 600; font-size: 2.8rem; color: var(--oral); line-height: 1; }
.stat-label { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-soft); margin-top: 8px; }

.sobre-card {
  position: relative; background: linear-gradient(160deg, var(--oral), var(--navy));
  color: #fff; border-radius: var(--radius); padding: 48px 40px; box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sobre-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,0.06);
}
.card-tooth { width: 46px; height: 50px; margin-bottom: 24px; position: relative; z-index: 1; }
.card-tooth .tooth-path, .card-tooth .tooth-dot { stroke: rgba(255,255,255,0.85); }
.sobre-card blockquote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.4; position: relative; z-index: 1; }
.sobre-card cite { display: block; margin-top: 22px; font-family: var(--sans); font-style: normal; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); position: relative; z-index: 1; }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(43,168,201,0.14), rgba(26,110,142,0.12));
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--oral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--sans); font-size: 1.18rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.card p { font-size: 0.97rem; }

/* =========================================================
   DIFERENCIAIS
   ========================================================= */
.diferenciais { background: var(--bg-soft); }
.dif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.dif {
  background: var(--bg-card); border-radius: var(--radius); padding: 40px 38px;
  border-left: 3px solid var(--accent); box-shadow: var(--shadow-sm);
}
.dif-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--accent); }
.dif h3 { font-family: var(--sans); font-size: 1.22rem; font-weight: 600; color: var(--navy); margin: 10px 0 12px; }

/* =========================================================
   PROCESSO
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 16px; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--oral), var(--accent)); margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(26,110,142,0.3);
}
.step h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 0.95rem; }
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 39px; left: 58px; right: -18px; height: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* =========================================================
   CONTATO
   ========================================================= */
.contato {
  background: linear-gradient(160deg, var(--navy), var(--oral-deep));
  position: relative; overflow: hidden;
}
.contato::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 90px 90px; opacity: 0.6;
}
.contato-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 70px); align-items: start; }
.contato-text .section-title { margin-bottom: 18px; }
.contato-lead { color: rgba(255,255,255,0.78); font-size: 1.06rem; }

.contato-list { margin-top: 38px; display: grid; gap: 22px; }
.contato-list li { display: flex; align-items: center; gap: 16px; }
.ci { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contato-list strong { display: block; font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.contato-list a, .contato-list span:not(.ci) { color: #fff; font-size: 1.02rem; transition: color 0.2s; }
.contato-list a:hover { color: var(--accent); }

/* Form */
.contato-form { background: rgba(255,255,255,0.97); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 0.98rem; color: var(--navy);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,168,201,0.14); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #b3bcc2; }
.form-note { font-size: 0.82rem; color: var(--gray-soft); text-align: center; margin-top: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); padding: 54px 0 34px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.logo--footer .logo-design { color: #6f8a96; }
.logo--footer .tooth-path, .logo--footer .tooth-dot { stroke: #fff; }
.logo--footer .logo-oral { color: #fff; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-family: var(--sans); font-size: 0.88rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

.footer-credit {
  display: inline-block; margin-top: 4px;
  font-family: var(--sans); font-size: 0.76rem; color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-credit strong { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-credit:hover { color: rgba(255,255,255,0.75); }
.footer-credit:hover strong { color: var(--accent); }

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45); transition: transform 0.3s var(--ease);
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse {
  0% { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::before { display: none; }
  .sobre-grid { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 0 36px;
    background: rgba(244, 249, 251, 0.98); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: -10px 0 40px rgba(16,54,68,0.12);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 110; }
  .dif-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .hero-footnote { display: none; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
