/* ==========================================================================
   Dental Flow — one-pager
   Direção: identidade real da marca — fundo claro, mancha de onda
   navy → azul → ciano sangrando pela borda, tipografia bold arredondada,
   pouco texto. A onda é o elemento de assinatura da página.
   ========================================================================== */

:root {
  --bg: #f8faf9;
  --bg-cool: #eaf4f6;
  --card: #ffffff;
  --line: rgba(4, 48, 63, 0.10);
  --line-strong: rgba(4, 48, 63, 0.20);

  --ink: #04303f;
  --ink-soft: rgba(4, 48, 63, 0.66);
  --muted: rgba(4, 48, 63, 0.46);

  --abyss: #04141d;
  --brand: #015a83;
  --tide: #1a8fb3;
  --accent: #26c5e3;
  --accent-ink: #04222e;

  --font-display: "Poppins", ui-sans-serif, sans-serif;
  --font-body: "Poppins", -apple-system, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", ui-serif, serif;

  --wrap: 1160px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.02em;
}
h1 span, h2 span { color: var(--accent); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(1, 90, 131, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--abyss); }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  padding: 11px 20px;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  padding: 14px 4px;
}
.btn-text:hover { color: var(--accent-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 249, 0.86);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 76px;
}
.logo--center { justify-self: center; }
.logo {
  display: flex;
  align-items: center;
}
.logo img { height: 46px; width: auto; display: block; }

.menu-btn {
  justify-self: start;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.menu-btn:hover { border-color: var(--brand); color: var(--brand); }

.header-cta { justify-self: end; flex-shrink: 0; }

.main-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 76px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 28px 20px;
  gap: 2px;
}
.site-header.nav-open .main-nav { display: flex; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.main-nav a:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero--editorial {
  padding: 40px 0 32px;
  text-align: center;
}
.hero-inner { display: flex; justify-content: center; }
.hero-copy { max-width: 760px; width: 100%; display: flex; flex-direction: column; align-items: center; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  max-width: 42ch;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }

/* ---------- para quem (faixa compacta) ---------- */
.who {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.who-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.who-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 15px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

/* ---------- marcas (scroll vertical -> posição/escala horizontal) ---------- */
.brands {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-set {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  will-change: transform;
}
.logo-tile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  will-change: transform;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.82;
}

/* fallback sem scroll-jacking (reduced motion) */
.brands--static {
  overflow-x: auto;
  -webkit-mask-image: none;
          mask-image: none;
}
.brands--static .logo-tile[aria-hidden="true"] { display: none; }
.brands--static .logo-set { transform: none !important; }
.brands--static .logo-tile { transform: none !important; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section--cool { background: var(--bg-cool); }

.kicker {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tide);
  margin: 0 0 12px;
}
.kicker--on-accent { color: var(--accent-ink); opacity: 0.75; }

.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--ink); }
.section-head--center { text-align: center; max-width: 620px; margin: 0 auto 52px; }

.section-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.section-body p { font-size: 18px; max-width: 56ch; color: var(--ink); }

.signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.signature-photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.signature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.signature strong { color: var(--ink); font-weight: 600; }

/* ---------- serviços (estilo editorial, fundo escuro) ---------- */
.section--dark {
  background: var(--abyss);
}
.services-head { max-width: 640px; margin-bottom: 8px; }
.services-head .kicker { color: var(--accent); }
.services-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}

.work-list {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.work-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.work-index {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
}
.work-copy h3 { font-size: clamp(22px, 2.4vw, 30px); color: #fff; margin-bottom: 12px; }
.work-copy p { font-size: 16.5px; max-width: 52ch; color: rgba(255, 255, 255, 0.62); margin: 0; }

/* ---------- processo (cards estilo dashboard) ---------- */
.services-head--center { text-align: center; margin-left: auto; margin-right: auto; }

.process-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.process-card--tide { border-top-color: var(--tide); }
.process-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 14px;
}
.process-card h3 { font-size: 19px; color: #fff; margin-bottom: 8px; }
.process-card p { font-size: 14.5px; color: rgba(255, 255, 255, 0.62); margin: 0; }

/* ---------- resultados ---------- */
.work-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.work-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.work-card--link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px -24px rgba(4, 48, 63, 0.35);
}
.work-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--line);
}
.work-card-strip {
  display: flex;
  height: 170px;
  border-bottom: 1px solid var(--line);
}
.work-card-strip img {
  width: 33.333%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card-strip img + img { border-left: 1px solid var(--card); }

.work-card-body { padding: 20px 22px 24px; }
.work-card-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tide);
  margin-bottom: 10px;
}
.work-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.work-card p { font-size: 14.5px; margin: 0; }
.work-card--link p { color: var(--brand); font-weight: 600; }

.work-card--stat {
  background: var(--abyss);
  border-color: rgba(255, 255, 255, 0.1);
}
.work-card--stat .work-card-tag { color: var(--accent); }
.work-card--stat h3 { color: #fff; }
.work-card--stat .work-card-body { padding-top: 24px; }

.stat-row {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-tile { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  color: #fff;
}
.stat-tile--accent .stat-value { color: var(--accent); }
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- diferenciais ---------- */
.diff-list {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.diff-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.diff-item h3 { font-size: 22px; color: var(--ink); margin: 0; }
.diff-item p { font-size: 15.5px; max-width: 46ch; margin: 0; }

/* ---------- cta final ---------- */
.cta-final {
  position: relative;
  background: var(--brand);
  overflow: hidden;
  text-align: center;
}
.cta-wave {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  opacity: 0.55;
  pointer-events: none;
}
.cta-wave svg { width: 100%; height: 100%; }
.cta-final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-final h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.cta-final-sub { color: rgba(255, 255, 255, 0.8); font-size: 17px; max-width: 44ch; margin-bottom: 32px; }
.cta-final .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.cta-final .btn-primary:hover { background: #fff; }

/* ---------- footer ---------- */
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand span {
  font-size: 13.5px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .section-grid { grid-template-columns: 1fr; gap: 26px; }
  .diff-item { grid-template-columns: 1fr; gap: 8px; }
  .work-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero--editorial { padding: 64px 0 60px; }
  .section { padding: 64px 0; }
  .header-cta .cta-optional { display: none; }
  .who-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .process-grid { grid-template-columns: 1fr; }
}
