/* ===================================================================
   Dr. Nilton Guerra — Nefrologista
   Sistema de design: teal profundo + ocre quente, serifada + sans
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Public+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #F5F6F0;
  --surface: #FFFFFF;
  --ink: #1E3A34;
  --ink-soft: #3F5D56;
  --text: #24291F;
  --text-muted: #5B6259;
  --accent: #B08A46;
  --accent-dark: #8C6C34;
  --line: #DAD9CC;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

nav.main-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--accent);
  color: #FFF8EE;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 15ch;
}

.hero p.lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual { width: 100%; }

.hero-with-photo .wrap {
  grid-template-columns: 1fr 0.7fr;
  align-items: center;
}

/* ---------- Filtration divider (signature motif) ---------- */

.filtra-divider {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  opacity: 0.9;
}

.section-divider {
  padding: 6px 0;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-head {
  max-width: 60ch;
  margin: 0 0 40px;
}

.section-head .eyebrow { margin-bottom: 10px; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Areas of practice ---------- */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
}

.area-card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
}

.area-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}

.area-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Locations ---------- */

.locations {
  background: var(--ink);
  color: #EDEFE7;
}

.locations .section-head h2 { color: #FFFFFF; }
.locations .section-head p { color: #C4D0CB; }
.locations .eyebrow { color: #E3B96A; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.location-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 24px;
}

.location-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 14px;
  color: #FFFFFF;
}

.location-card dl {
  margin: 0 0 18px;
  font-size: 14px;
}

.location-card dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9FB3AB;
  margin-top: 12px;
}

.location-card dt:first-child { margin-top: 0; }

.location-card dd {
  margin: 4px 0 0;
  color: #EDEFE7;
}

.location-card .btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: #FFFFFF;
  width: 100%;
  justify-content: center;
}

.location-card .btn-ghost:hover {
  background: #FFFFFF;
  color: var(--ink);
}

/* ---------- Convênios ---------- */

.convenios-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.convenios-list span {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--surface);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 22ch;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-muted);
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

footer .crm {
  font-family: var(--font-mono);
}

/* ---------- Responsive ---------- */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; max-width: none; }

  .menu-toggle { display: inline-flex; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 32px 20px;
  }

  nav.main-nav.is-open { display: flex; }

  nav.main-nav a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  nav.main-nav a:last-child { border-bottom: none; }

  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- Accessibility ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

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