/* Dra. Júlia Maggi Vieira — site institucional */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #15262b;
  --ink-soft: #3d545b;
  --ink-faint: #5d747a;
  --teal: #146a73;
  --teal-deep: #0c4a52;
  --teal-mid: #1a7c86;
  --teal-mist: #e7f3f4;
  --teal-wash: #f3f8f8;
  --sand: #f3eee6;
  --sand-deep: #c4a574;
  --paper: #fbfcfb;
  --white: #ffffff;
  --line: #d3e2e4;
  --line-strong: #b7cbce;
  --whatsapp: #128c4a;
  --whatsapp-deep: #0c6e39;
  --danger-bg: #f8f1ea;
  --focus: #146a73;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(21, 38, 43, 0.06);
  --header-h: 4.5rem;
  --max: 70rem;
  --prose: 42rem;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Times New Roman", "Liberation Serif", serif;
  --space: clamp(3.5rem, 6vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 430;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
iframe { border: 0; }
a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-prose { width: min(100% - 2rem, 48rem); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.8em;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.muted { color: var(--ink-soft); }
.small { font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo-meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.95rem;
  flex-shrink: 0;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 580;
  padding: 0.35rem 0;
  white-space: nowrap;
}
.nav .btn {
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 0.35rem;
  padding: 0.65rem 1.1rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 640;
  font-size: 0.98rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: #fff; }
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--teal-mist); color: var(--teal-deep); }
.header-cta { flex-shrink: 0; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: clamp(2.4rem, 5vw, 4.8rem) 0 var(--space);
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(20, 106, 115, 0.08), transparent 55%),
    linear-gradient(180deg, var(--teal-wash), var(--paper) 80%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.ident-line {
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.ident-line strong { color: var(--ink); font-weight: 650; }

/* Photo placeholder */
.photo-placeholder {
  position: relative;
  background:
    linear-gradient(160deg, #d7ecee 0%, #b9d6d9 48%, #e7efe8 100%);
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(20, 106, 115, 0.12);
}
.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.photo-placeholder .monogram,
.photo-placeholder .ph-label,
.photo-placeholder .ph-hint {
  position: relative;
  z-index: 1;
}
.photo-placeholder::after { z-index: 1; }
.photo-placeholder.landscape { aspect-ratio: 4 / 3; min-height: 16rem; }
.photo-placeholder .monogram {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 500;
  color: var(--teal-deep);
  opacity: 0.55;
  letter-spacing: -0.04em;
  line-height: 1;
}
.photo-placeholder .ph-label {
  margin-top: 1rem;
  max-width: 16rem;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.photo-placeholder .ph-hint {
  margin-top: 0.35rem;
  max-width: 18rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px dashed rgba(12, 74, 82, 0.28);
  border-radius: 22px;
  pointer-events: none;
}

/* Sections */
.section { padding: var(--space) 0; }
.section-mist { background: var(--teal-wash); }
.section-teal {
  background: linear-gradient(180deg, var(--teal-deep), #093a41);
  color: #e7f3f4;
}
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal a { color: #fff; }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.grid-3, .grid-2 {
  display: grid;
  gap: 1.25rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
}
.card h2, .card h3 { margin-bottom: 0.2rem; }
.card p { color: var(--ink-soft); }
.card a.more {
  margin-top: auto;
  font-weight: 650;
  text-decoration: none;
  color: var(--teal);
}
.card a.more:hover { color: var(--teal-deep); text-decoration: underline; }
.icon-dot {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.place-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.place-card h3 { margin: 0 0 0.25rem; }
.place-card address { font-style: normal; color: var(--ink-soft); }

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.cities li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Breadcrumb + page hero */
.page-hero {
  padding: 2.4rem 0 2rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(20, 106, 115, 0.08), transparent 55%),
    var(--teal-wash);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--line-strong);
}

.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; color: var(--ink-soft); }
.prose li::marker { color: var(--teal); }

.timeline {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.4rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--paper);
}
.timeline strong { display: block; color: var(--ink); font-weight: 650; }
.timeline span { color: var(--teal); font-size: 0.88rem; font-weight: 650; }

/* FAQ */
.faq-list { display: grid; gap: 0.7rem; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.15rem 1.1rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.95rem 0;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding-bottom: 1rem; color: var(--ink-soft); }

/* Contact / map / convenios */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 20rem;
  background: var(--teal-mist);
}
.map-wrap iframe { width: 100%; height: 22rem; }
.convenio-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.convenio-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.note {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 1.2rem 0;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 0.85rem; }
.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.15rem;
}

/* Footer */
.site-footer {
  background: #0e2f34;
  color: #c5d7da;
  padding: 3.2rem 0 1.6rem;
  font-size: 0.98rem;
}
.site-footer a { color: #e8f3f4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.footer-brand .logo-name { color: #fff; font-size: 1.25rem; }
.footer-id {
  margin-top: 0.8rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.45;
}
.footer-nav { display: grid; gap: 0.35rem; }
.footer-nav h2, .site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8eb3b8;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  font-size: 0.86rem;
  color: #9bb8bc;
  display: grid;
  gap: 0.6rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(18, 140, 74, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.wa-float:hover { background: var(--whatsapp-deep); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 1.7rem; height: 1.7rem; display: block; }

/* 404 */
.page-404 { padding: 5rem 0 6rem; text-align: center; }
.page-404 h1 { margin-bottom: 0.6rem; }

@media (max-width: 1100px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1.1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.8rem; width: 100%; }
  body.nav-open { overflow: hidden; }
}

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

.addr-pending {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 0.4rem;
}
.place-card address { margin-bottom: 0.4rem; }
