:root {
  --blue: #4071a3;
  --blue-deep: #2a445e;
  --green: #119c18;
  --green-deep: #0d4a10;
  --ink: #1a1a1a;
  --muted: #4d5b68;
  --line: #d7e1ea;
  --paper: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(33, 33, 33, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
button, input, textarea { font: inherit; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--blue-deep);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.topbar {
  background: var(--blue-deep);
  color: #e8eef4;
  font-size: 0.92rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 44px; object-fit: cover; border-radius: 10px; }
.brand strong { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.15; }
.brand span { color: var(--muted); font-size: 0.85rem; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}
.menu { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a { text-decoration: none; color: var(--ink); padding: 0.4rem 0.65rem; border-radius: 999px; }
.menu a:hover, .menu a:focus-visible { background: #e7eef5; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  border: 0;
  cursor: pointer;
  font-weight: 650;
}
.btn-wa { background: linear-gradient(to right bottom, var(--green), var(--green-deep)); color: #fff; box-shadow: 1px 4px 8px rgba(33, 33, 33, 0.24); }
.btn-blue { background: linear-gradient(to right bottom, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 1px 4px 8px rgba(33, 33, 33, 0.24); }
.btn-ghost { background: #fff; color: var(--blue-deep); border: 1px solid rgba(255, 255, 255, 0.7); }
.header-cta { display: none; }

.hero {
  background:
    linear-gradient(to right bottom, rgba(42, 68, 94, 0.92), rgba(64, 113, 163, 0.78)),
    url("img/home-background.jpg") center/cover;
  color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; padding: 4.2rem 0 3.4rem; }
.kicker { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; color: #d5e6f5; margin: 0 0 0.6rem; }
.hero h1 { font-family: var(--display); font-weight: 560; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; margin: 0 0 0.8rem; }
.lede { font-size: 1.15rem; margin: 0 0 1.3rem; color: #f5f5f5; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-photo { border-radius: 28px; overflow: hidden; border: 6px solid rgba(255, 255, 255, 0.28); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 420px; object-fit: cover; }

.answer-capsule {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.answer-capsule p { margin: 0; padding: 1.1rem 0; color: var(--blue-deep); }

.section { padding: 4rem 0; }
.section h2, .panel h2, .contact-card h2 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.intro { color: var(--muted); max-width: 42rem; margin: 0 0 1.6rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, .panel, .contact-card, .doctor, .faq details {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(33, 33, 33, 0.06);
}
.card { padding: 1.3rem; }
.card img { width: 72px; height: 72px; object-fit: contain; }
.card h3 { margin: 0.7rem 0 0.35rem; font-size: 1.2rem; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.gallery img { width: 100%; height: 210px; object-fit: cover; border-radius: 14px; }

.services { background: linear-gradient(to right bottom, var(--blue), var(--blue-deep)); color: #fff; }
.services .intro { color: #e7eef5; }
.accordion { display: grid; gap: 0.7rem; }
.accordion details { background: #fff; color: var(--ink); border-radius: 14px; padding: 0.2rem 1rem; }
.accordion summary { cursor: pointer; font-weight: 700; padding: 0.85rem 0; }
.accordion p { margin: 0 0 1rem; color: var(--muted); }

.team { background: #fff; }
.doctor { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; padding: 1.2rem; align-items: center; max-width: 760px; }
.doctor img { width: 100%; height: 280px; object-fit: cover; border-radius: 14px; }
.registry { color: var(--blue); font-weight: 700; margin: 0; }

.faq details { padding: 0.3rem 1.1rem; margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.8rem 0; }
.faq p { margin: 0 0 0.9rem; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; }
.map { width: 100%; min-height: 280px; border: 0; border-radius: 14px; }
.contact-card, .panel { padding: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
label { display: block; font-weight: 650; margin-top: 0.7rem; }
input, textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.form-row { display: flex; gap: 0.7rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.status { min-height: 1.2rem; }

.site-footer { background: var(--blue-deep); color: #e7eef5; padding: 2.4rem 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.4rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; margin: 0 0 0.5rem; font-family: var(--font); }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.4rem; padding-top: 0.8rem; font-size: 0.9rem; }

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(to right bottom, var(--green), var(--green-deep));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 12;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

:focus-visible { outline: 3px solid #f5f5f5; outline-offset: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .hero .wrap, .split, .cards, .contact-grid, .footer-grid, .doctor { grid-template-columns: 1fr; }
  .hero-photo img, .doctor img { height: 260px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
