/* ── TOKENS ───────────────────────────────────────── */
:root {
  --blue:    #3a7abf;
  --blue-dk: #1d3f63;
  --green:   #8dc63f;
  --green-lt:#c8e98a;
  --surface: #f4f8ff;
  --white:   #ffffff;
  --text:    #242424;
  --muted:   #5a6a7a;
  --radius:  6px;
  --max:     1140px;
}

/* ── RESET ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.25;
  color: var(--blue-dk);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { max-width: 68ch; }

/* ── NAV DROPDOWN ─────────────────────────────────── */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}
.nav-item.open > a::after { transform: rotate(-135deg) translateY(-2px); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid #dbe8f5;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
}
.nav-item.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.nav-dropdown a:hover { color: var(--blue); background: var(--surface); }

/* ── NAV ──────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #dbe8f5;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-book {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.nav-book:hover { background: #76ac2e !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dk);
  border-radius: 2px;
}

/* ── PAGE HEADER ──────────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid #dbe8f5;
  padding: 56px 24px 48px;
}
.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-header h1 { margin-bottom: 10px; }
.page-header p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ── SECTIONS ─────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-alt { background: var(--surface); }
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 1.0625rem; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--blue-dk); }
.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--blue); color: var(--white); }

/* ── ABOUT PAGE ───────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.about-stat {
  border-left: 3px solid var(--green);
  padding-left: 20px;
}
.stat-number {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  color: var(--blue-dk);
  font-weight: 600;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── TEAM GRID ────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.team-profile {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(58,122,191,0.08);
  display: flex;
  flex-direction: column;
}
.team-profile-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Real photo: fills the square */
.team-profile-avatar img.staff-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Logo placeholder tile */
.team-profile-avatar.logo-tile {
  padding: 24px;
}
.team-profile-avatar.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.team-profile-bio {
  padding: 20px 24px 24px;
  flex: 1;
}
.team-profile-bio h3 { margin-bottom: 2px; font-size: 1.05rem; }
.role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}
.team-profile-bio p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: none;
  color: var(--muted);
}

.staff-note {
  margin-top: 40px;
  background: #fff8e5;
  border: 1px solid #f0d070;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: #6b4f00;
}
.staff-note a { color: var(--blue); font-weight: 500; }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.mission-item h3 { margin-bottom: 8px; font-size: 1rem; }
.mission-item p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

/* ── SERVICES PAGE ────────────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  overflow: hidden;
}
.services-list-item {
  padding: 28px 32px;
  border-bottom: 1px solid #dbe8f5;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  background: var(--white);
  transition: background 0.15s;
}
.services-list-item:last-child { border-bottom: none; }
.services-list-item:hover { background: var(--surface); }
.services-list-item h3 { font-size: 1.05rem; margin-bottom: 0; }
.svc-label { font-size: 0.75rem; font-weight: 600; color: var(--green); letter-spacing: 0.05em; margin-bottom: 4px; }
.services-list-item p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; margin-bottom: 0; max-width: 65ch; }

/* ── SPECIALTY PAGES ──────────────────────────────── */
.specialty-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}
.specialty-intro p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.specialty-sidebar {
  background: var(--surface);
  border-radius: 10px;
  padding: 28px 24px;
  font-size: 0.9375rem;
}
.specialty-sidebar h3 { font-size: 1rem; margin-bottom: 14px; }
.specialty-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
.specialty-sidebar li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.specialty-sidebar .book-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dbe8f5;
}
.specialty-sidebar .book-cta p { color: var(--muted); margin-bottom: 14px; font-size: 0.9375rem; max-width: none; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  overflow: hidden;
}
.faq-item {
  padding: 24px 28px;
  border-bottom: 1px solid #dbe8f5;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

/* ── CONTACT PAGE ─────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-info h2 { margin-bottom: 24px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-detail-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.contact-detail-item p, .contact-detail-item a {
  font-size: 1rem;
  color: var(--text);
  max-width: none;
}
.contact-detail-item a:hover { color: var(--blue); }
.contact-hours table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.contact-hours td {
  padding: 6px 0;
  border-bottom: 1px solid #e5ecf5;
  color: var(--muted);
}
.contact-hours td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 160px;
}
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  min-height: 400px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  display: block;
}

/* ── EMERGENCY ────────────────────────────────────── */
.emergency {
  background: #fff4e5;
  border-top: 3px solid #e8930a;
  border-bottom: 3px solid #e8930a;
  padding: 24px;
}
.emergency-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
}
.emergency-label {
  font-weight: 700;
  color: #c27700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
.emergency-inner p {
  font-size: 0.9375rem;
  color: #5a4000;
  max-width: none;
}
.emergency-inner a { font-weight: 600; color: #c27700; }
.emergency-inner a:hover { text-decoration: underline; }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
  background: var(--blue-dk);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 32px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 28px;
}
.footer-brand img {
  height: 52px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: 'Lora', serif;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--green-lt); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .specialty-intro { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .services-list-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid #dbe8f5;
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mission-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
