/* ---- Palette (clean clinical) ---- */
:root {
  --bg: #ffffff;
  --surface: #f4f8fa;
  --ink: #1c2b33;
  --muted: #5a6b74;
  --primary: #2f7d92;      /* soft teal-blue */
  --primary-dark: #256373;
  --accent: #6bbf9a;       /* soft green */
  --border: #e1eaee;
  --shadow: 0 4px 20px rgba(31, 60, 71, 0.08);
  --radius: 14px;
  --maxw: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  padding-top: 48px;
  padding-bottom: 72px;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 62px;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { color: var(--primary); }

/* ---- Profile + contact header ---- */
.profile {
  display: flex;
  align-items: stretch;
  gap: 34px;
}
.profile-photo {
  flex: 0 0 auto;
  width: 260px;
  height: auto;              /* stretch to match the intro column's height */
  align-self: stretch;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.profile-body {
  flex: 1 1 auto;
  min-width: 0;
}
.about-intro { margin-bottom: 22px; }
.about-intro h1 {
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.about-intro .title {
  color: var(--accent);          /* header green, not link color */
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-dark); }
.book-btn { margin-top: 20px; }

/* ---- Contact ---- */
.contact-info {
  font-style: normal;
  line-height: 1.9;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contact-info a { color: var(--ink); }
.contact-info a:hover { color: var(--primary); }
.contact-info .practice-name { font-weight: 700; color: var(--primary); }
.ci {
  width: 0.9em;
  height: 0.9em;
  fill: #000;
  margin-right: 9px;
  vertical-align: -1px;
}

/* ---- Bio ---- */
.bio { margin-top: 44px; }
.lead { color: var(--muted); }
.lead + .lead { margin-top: 16px; }

/* ---- Detail groups (specializations, credentials) ---- */
.detail-groups {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px 48px;              /* row gap when stacked, column gap when side-by-side */
}
.detail-heading {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- Footer ---- */
footer {
  background: var(--ink);
  color: #c8d5db;
  padding: 30px 0;
  font-size: 0.9rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer a { color: #fff; }

/* ---- Mobile ---- */
@media (max-width: 680px) {
  .page { padding-top: 40px; }
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .profile-photo { width: 160px; height: 160px; align-self: center; }
  .about-intro h1 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
