/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #3A8FC4;
  --blue-dark:  #1A5C8A;
  --blue-light: #EAF4FB;
  --green:      #2E7D52;
  --warm:       #F9F5F0;
  --text:       #2D2D2D;
  --muted:      #5D6470;
  --white:      #FFFFFF;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

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

/* ── Skip Link ─────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ── Focus ──────────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Screen Reader Only ──────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid #E5EEF5;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--blue-dark);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.nav-logo span {
  display: block;
  font-size: 0.7rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover, .nav-links a.active { color: var(--blue-dark); }

.nav-cta {
  background: var(--blue-dark);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
}

.nav-cta:hover { background: #12416A !important; color: var(--white) !important; }

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.25rem;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Header Banner ────────────────────────────────────────────────────────── */
.header-banner {
  width: 100%;
  display: block;
  line-height: 0;
  background: #EAF4FB;
}

.header-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
  object-position: center top;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #EAF4FB 0%, #F9F5F0 100%);
  padding: 4rem 2rem;
  text-align: center;
}

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

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary { background: var(--blue-dark); color: var(--white); }
.btn-primary:hover { background: #12416A; color: var(--white); }
.btn-outline { background: transparent; color: var(--blue-dark); border: 2px solid var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: var(--white); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
section { padding: 4.5rem 2rem; }
section.alt { background: var(--warm); }
section.blue-bg { background: var(--blue-light); }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}

.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--blue-dark); }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ── Staff Cards ──────────────────────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C5DFF0, #EAF4FB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  border: 3px solid var(--blue-light);
  overflow: hidden;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.staff-card h3 { color: var(--blue-dark); font-size: 1.2rem; margin-bottom: 0.25rem; }
.staff-card .title { font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.staff-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

/* ── Hours Table ──────────────────────────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid #E5EEF5;
  font-size: 0.95rem;
}

.hours-table th {
  font-weight: 600;
  color: var(--text);
  width: 40%;
}

.hours-table td { color: var(--muted); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }
.hours-closed { color: #C0392B; font-weight: 600; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail .icon { font-size: 1.3rem; margin-top: 2px; }
.contact-detail strong { display: block; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D1E3EF;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #FAFCFE;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--blue-dark);
  outline-offset: 0;
  border-color: var(--blue-dark);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Insurance List ───────────────────────────────────────────────────────── */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
}

.insurance-item {
  padding: 0.4rem 0.75rem;
  background: var(--white);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid #D1E3EF;
}

/* ── Hospital Affiliations ────────────────────────────────────────────────── */
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hospital-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--green);
}

.hospital-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.hospital-card h3 { color: var(--blue-dark); font-size: 1.1rem; }

/* ── Info Box ─────────────────────────────────────────────────────────────── */
.info-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p { color: var(--text); font-size: 0.95rem; margin: 0; }

.warning-box {
  background: #FFF3CD;
  border-left: 4px solid #D4850A;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.warning-box p { color: var(--text); font-size: 0.95rem; margin: 0; }

/* ── Page Hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #EAF4FB 0%, #F0F7FF 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #D9EAF5;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); color: var(--blue-dark); }
.page-hero p { color: var(--muted); margin-top: 0.75rem; font-size: 1.05rem; }

/* ── Credential List ──────────────────────────────────────────────────────── */
.credential-list { list-style: none; margin: 1.25rem 0; }
.credential-list li {
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.credential-list li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ── Content Prose ────────────────────────────────────────────────────────── */
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose h3 { color: var(--blue-dark); margin: 1.5rem 0 0.5rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; color: var(--muted); }
.prose ul li { margin-bottom: 0.4rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background: #1C3D56;
  color: #A8C4D8;
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-nav h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: #A8C4D8; font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #A8C4D8;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid #E5EEF5; padding: 1rem 0; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem 2rem; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
