/* ============================================================
   MedCenter — identidade visual
   ============================================================ */

:root {
  --teal-900: #0d2b2d;
  --teal-800: #123c3f;
  --teal-700: #16494c;
  --teal-600: #1c5c57;
  --teal-500: #237b6f;
  --green-500: #34c98f;
  --green-600: #22c55e;
  --green-700: #16a34a;
  --mint-50: #eef8f5;
  --mint-100: #e0f3ec;
  --mint-pill: #d7f0e6;
  --ink: #0f2426;
  --muted: #5c7472;
  --muted-light: #7c9390;
  --white: #ffffff;
  --border-soft: rgba(15, 42, 44, 0.08);
  --shadow-card: 0 14px 34px -18px rgba(13, 43, 45, 0.28);
  --shadow-sm: 0 6px 16px -8px rgba(13, 43, 45, 0.2);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --container: 1200px;
  --gradient-brand: linear-gradient(135deg, var(--teal-500), var(--green-500));
  --gradient-hero: linear-gradient(120deg, var(--teal-900) 0%, var(--teal-700) 55%, var(--teal-600) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; color: var(--muted); }

.accent { color: var(--teal-500); background: linear-gradient(120deg, var(--teal-500), var(--green-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-lead {
  max-width: 620px;
  margin-top: 14px;
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(35, 123, 111, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(35, 123, 111, 0.65); }

.btn-outline {
  background: transparent;
  color: var(--teal-700);
  border: 1.5px solid var(--border-soft);
}
.btn-outline:hover { border-color: var(--teal-500); background: var(--mint-50); }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); }

.btn-whatsapp {
  background: var(--green-600);
  color: var(--white);
  width: 100%;
  box-shadow: 0 12px 22px -10px rgba(34, 197, 94, 0.55);
}
.btn-whatsapp:hover { background: var(--green-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.logo-img { height: 40px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); opacity: 0.85; }
.main-nav a:hover { opacity: 1; color: var(--teal-500); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--border-soft);
  background: var(--white);
}
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 12px; width: 100%; }
.mobile-menu.open { display: flex; }

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--mint-50) 0%, var(--white) 100%);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(320px 320px at 92% 8%, rgba(35, 123, 111, 0.12), transparent 70%),
    radial-gradient(260px 260px at 78% 30%, rgba(52, 201, 143, 0.14), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-pill);
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-content p { max-width: 480px; font-size: 1.05rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.specialty-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.specialty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.specialty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint-100);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.specialty-icon svg { width: 20px; height: 20px; }
.specialty-card span { font-weight: 700; font-size: 0.95rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Info bar ---------- */
.info-bar { background: var(--teal-800); color: var(--white); }
.info-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
}
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); font-weight: 600; }
.info-value { font-weight: 700; font-size: 1rem; }

@media (max-width: 700px) {
  .info-bar-inner { grid-template-columns: 1fr; }
}

/* ---------- Corpo clínico grid (home) ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}

.doc-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  background: var(--mint-50);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.doc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint-pill);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card-icon svg { width: 22px; height: 22px; }

.doc-card-body { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.doc-card-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.doc-card-name { font-size: 1.1rem; font-weight: 800; line-height: 1.25; }
.doc-card-desc { font-size: 0.92rem; opacity: 0.8; margin: 0; }

.doc-card--cta {
  background: var(--gradient-brand);
  color: var(--white);
}
.doc-card--cta .doc-card-icon { background: rgba(255,255,255,0.18); color: var(--white); }
.doc-card--cta .doc-card-tag { opacity: 0.85; }
.doc-card--cta .doc-card-desc { opacity: 0.9; }

@media (max-width: 900px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .doctors-grid { grid-template-columns: 1fr; }
}

/* ---------- Localização / Mapa ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.location-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 28px; }
.location-list div { display: flex; flex-direction: column; gap: 3px; }
.location-list strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  font-weight: 700;
}
.location-list span { font-weight: 700; color: var(--ink); font-size: 1rem; }

.map-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  aspect-ratio: 4 / 3;
  min-height: 320px;
  background: var(--mint-100);
}
.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 45, 0);
  transition: background 0.2s ease;
}
.map-card:hover::after { background: rgba(13, 43, 45, 0.06); }

.map-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 800px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 260px; }
}

/* ---------- Sobre a clínica ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
}
.about-visual {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.about-visual img { width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.about-grid p { margin-top: 16px; font-size: 1.02rem; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 220px; }
}

/* ---------- Galeria (nossa estrutura) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  height: 480px;
}
.gallery-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.gallery-img--wide { grid-row: span 2; }

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery-img { height: 240px; }
  .gallery-img--wide { grid-row: auto; }
}

/* ---------- CTA bar ---------- */
.cta-bar {
  background: var(--gradient-hero);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 0 auto 88px;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
}
.cta-bar h3 { font-size: 1.4rem; margin-bottom: 6px; }
.cta-bar p { color: rgba(255,255,255,0.8); }

@media (max-width: 700px) {
  .cta-bar { flex-direction: column; align-items: flex-start; margin: 0 20px 56px; padding: 32px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,0.7); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

/* ============================================================
   Doctor detail page
   ============================================================ */
.doctor-hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 44px 0 64px;
  position: relative;
  overflow: hidden;
}
.doctor-hero::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--white); }

.doctor-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.doctor-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
}
.doctor-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: none;
}
.doctor-avatar img.loaded { display: block; }

.doctor-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }

.specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
}
.specialty-badge svg { width: 16px; height: 16px; }

.doctor-credentials { color: rgba(255,255,255,0.65); margin: 14px 0 22px; font-size: 0.92rem; }

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

@media (max-width: 700px) {
  .doctor-hero-inner { flex-direction: column; align-items: flex-start; }
}

.doctor-content { margin-top: -1px; background: var(--mint-50); }

.doctor-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}

.doctor-main { display: flex; flex-direction: column; gap: 20px; }
.doctor-sidebar { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}
.card h3 { margin-bottom: 14px; }
.card-mint { background: var(--mint-100); border-color: transparent; }
.card-mint p { color: var(--teal-800); opacity: 0.85; margin-bottom: 16px; }
.card-mint h3 { color: var(--teal-800); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--mint-pill);
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}

.prep-list { display: flex; flex-direction: column; gap: 10px; }
.prep-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.98rem;
}
.prep-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

.sidebar-address, .sidebar-hours { color: var(--muted); font-size: 0.95rem; }
.sidebar-address strong, .sidebar-hours strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 6px; }

@media (max-width: 900px) {
  .doctor-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
