/* Sorriso & Saúde — redesign (2026). No framework; one file. */

/* Fonts hosted here (not Google Fonts) so visitors' IPs aren't sent to Google.
   Fraunces and Manrope, SIL Open Font License; Latin subset, variable weight. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  --ink: #171724;          /* brand dark (from the old theme) */
  --ink-soft: #55586a;
  --line: #e6e8ef;
  --bg: #ffffff;
  --tint: #f4f7fa;
  --accent: #0b7fae;       /* darker take on the old #18a3d7, readable on white */
  --accent-bright: #4acffa;
  --accent-wash: #e7f5fb;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--serif); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 0.5rem; }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.muted { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.note {
  display: inline-block; margin-top: 0.5rem; padding: 0.6rem 1rem;
  background: var(--accent-wash); border-radius: 999px; font-size: 0.95rem; font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--accent);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }

.brand {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em; margin: 0;
}
.brand span { color: var(--accent); font-style: italic; }
.brand-small { font-size: 1.25rem; margin-bottom: 0.25rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  transition: transform 0.25s, top 0.25s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 55% 50%;
  border-radius: calc(var(--radius) * 1.5);
}

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.facts span { color: var(--ink-soft); font-size: 0.95rem; }

/* Sections */
.section { padding: var(--section) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.split { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split-media img { border-radius: calc(var(--radius) * 1.5); aspect-ratio: 7 / 9; object-fit: cover; width: 100%; }
.split-text h2 { margin-bottom: 1.5rem; }
.split-text p:not(.eyebrow):not(.note) { color: var(--ink-soft); max-width: 34rem; }

/* Treatments */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.9rem 1.75rem;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(23, 23, 36, 0.25); }
.card h3 { margin-bottom: 0.5rem; }
.card h3::before {
  content: ""; display: block; width: 28px; height: 3px; border-radius: 3px;
  background: var(--accent-bright); margin-bottom: 1.1rem;
}
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* Partner logos */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem 1.5rem; align-items: center;
  margin-top: 1.5rem;
}
.logos img { width: 100%; max-width: 150px; margin: 0 auto; opacity: 0.75; transition: opacity 0.2s; }
.logos img:hover { opacity: 1; }

/* Team */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.person img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 1.1rem; background: var(--line);
}
.person h3 { font-size: 1.05rem; }
.person .role { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin: 0.2rem 0 0.4rem; }
.person .meta { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.5rem; }
.person .links { display: flex; gap: 0.9rem; font-size: 0.88rem; font-weight: 600; margin: 0; }
.person .links a { text-decoration: none; }
.person .links a:hover { text-decoration: underline; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.contact-grid h2 { margin-bottom: 1.25rem; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; margin: 2.5rem 0 0; }
.contact-list dt {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.4rem;
}
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list dd a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list dd a:hover { color: var(--accent); }
.contact-list dd a[href^="https"] { color: var(--accent); font-size: 0.95rem; }

.map { min-height: 420px; border-radius: calc(var(--radius) * 1.5); overflow: hidden; background: var(--tint); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(0.85); }
.map-consent {
  height: 100%; min-height: inherit; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 0.25rem;
  padding: 2rem; color: var(--ink-soft); font-size: 0.95rem;
  background:
    radial-gradient(circle at 30% 35%, rgba(74, 207, 250, 0.18), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(11, 127, 174, 0.12), transparent 50%),
    var(--tint);
}
.map-consent p { max-width: 22rem; }
.map-consent .map-title { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 0.25rem; }
.map-consent .btn { margin-top: 0.75rem; cursor: pointer; font: inherit; font-weight: 700; }

/* Privacy page */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.75rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { font-size: 0.9rem; }
.back { display: inline-block; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }

/* Gentle reveal on scroll (only when JS runs and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 4.5rem; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.5rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 1.25rem; }

  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .split-media img { aspect-ratio: 16 / 11; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .map, .map iframe { min-height: 340px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li { padding: 1.1rem 0; flex-direction: row; align-items: baseline; gap: 0.75rem; }
  .facts strong { font-size: 1.5rem; min-width: 5.5rem; }
  .cards { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .contact-list { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
}
