:root {
  --blue-900: #0b3a5b;
  --blue-700: #1565a0;
  --blue-500: #2a8bd6;
  --blue-100: #e6f1fa;
  --blue-50:  #f4f9fd;
  --ink:      #1a2b3c;
  --ink-muted:#5a6b7b;
  --line:     #e2eaf1;
  --white:    #ffffff;
  --shadow:   0 1px 2px rgba(11, 58, 91, 0.04), 0 8px 24px rgba(11, 58, 91, 0.06);
  --radius:   10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  color: var(--blue-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75em; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-900);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.brand-text { font-size: 1.05rem; }

.nav { display: flex; gap: 1.5rem; }
.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--blue-700);
  border-bottom-color: var(--blue-500);
  text-decoration: none;
}
.nav a.active {
  color: var(--blue-700);
  border-bottom-color: var(--blue-700);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-block;
  color: var(--blue-700);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-900); }

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-500); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--blue-50); }

.section-lead {
  color: var(--ink-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* Stats */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stats li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--blue-700);
  margin-bottom: 0.25rem;
}
.stats span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-100);
  box-shadow: 0 4px 8px rgba(11, 58, 91, 0.06), 0 16px 32px rgba(11, 58, 91, 0.08);
}
.card h3 { color: var(--blue-900); }
.card p { color: var(--ink-muted); margin: 0; }

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }
.hours-table th { font-weight: 500; color: var(--ink); }
.hours-table td { color: var(--ink-muted); }

/* Contact list */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.contact-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  color: var(--ink);
}
.contact-list span {
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Map */
.map-wrap {
  margin-top: 2.5rem;
}
.map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 2rem 0;
  margin-top: 1rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0.25rem 0; font-size: 0.9rem; color: var(--ink-muted); }
.footer-inner .muted { font-size: 0.8rem; }

.footer-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-link:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
  text-decoration: none;
}
.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------------------------------------------------------------
   Multi-page additions
   --------------------------------------------------------------- */

/* Compact page header (interior pages) */
.page-hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0;
}

/* Section heading helper */
.section-head {
  max-width: 60ch;
  margin-bottom: 2rem;
}
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--ink-muted); margin: 0; }

/* Home: services preview footer link */
.section-foot {
  margin-top: 2rem;
  text-align: center;
}

/* "Why choose us" feature strip */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.features li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.feature-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
}
.feature-icon svg { width: 22px; height: 22px; }
.features h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.features p { font-size: 0.92rem; color: var(--ink-muted); margin: 0; }

/* Mission & values cards */
.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.value-card .feature-icon { margin-bottom: 1rem; }
.value-card h3 { color: var(--blue-900); margin-bottom: 0.4rem; }
.value-card p { color: var(--ink-muted); margin: 0; }

/* Facilities list */
.facility-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.facility-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--blue-500);
}
.facility-card h3 { color: var(--blue-900); font-size: 1.05rem; margin-bottom: 0.4rem; }
.facility-card p { color: var(--ink-muted); margin: 0; font-size: 0.95rem; }

/* Featured doctor profile */
.profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--blue-100);
  display: grid;
  place-items: center;
  color: var(--blue-700);
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo svg { width: 64px; height: 64px; opacity: 0.7; }
.profile-name { margin-bottom: 0.2rem; }
.profile-role {
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.profile-creds {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-creds li {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  color: var(--blue-700);
}

@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-photo { max-width: 180px; }
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-100);
  box-shadow: 0 4px 8px rgba(11, 58, 91, 0.06), 0 16px 32px rgba(11, 58, 91, 0.08);
}
.team-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--blue-100);
  display: grid;
  place-items: center;
  color: var(--blue-700);
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar svg { width: 40px; height: 40px; opacity: 0.7; }
.team-card h3 { margin-bottom: 0.15rem; }
.team-role {
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}
.team-card p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--blue-900);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 55ch; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: var(--white); color: var(--blue-900); }
.cta-band .btn-primary:hover { background: var(--blue-50); }
.cta-band .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
