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

:root {
  --primary: #2c5545;
  --primary-light: #f4f8f6;
  --text: #222;
  --text-light: #777;
  --border: #e5e5e5;
  --bg: #fff;
  --font: 'DM Sans', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--bg); font-size: 16px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Top Nav (replaces sidebar) === */
.sidebar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 2rem;
  z-index: 100; gap: 2rem;
}
.nav-brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.sidebar ul { list-style: none; display: flex; gap: 0.25rem; margin-left: auto; }
.sidebar a { color: var(--text-light); padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.85rem; transition: color 0.15s; }
.sidebar a:hover, .sidebar a:focus { color: var(--text); text-decoration: none; }
.btn-nav { background: var(--primary); color: #fff !important; padding: 0.4rem 1rem; border-radius: 6px; font-weight: 600; margin-left: 0.5rem; }
.btn-nav:hover { opacity: 0.9; }
.nav-toggle { display: none; }

main { margin-left: 0; padding-top: 60px; }

/* === Hero === */
.hero { padding: 5rem 2rem 4rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.hero-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 2.5rem; }
.photo-placeholder {
  width: 160px; height: 160px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 0.9rem; border: 1px solid var(--border);
}
.hero-text h1 { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1.2; font-weight: 700; }
.credentials { font-size: 0.95rem; color: var(--text-light); font-weight: 500; margin: 0.35rem 0; letter-spacing: 0.03em; }
.tagline { color: var(--text-light); margin-bottom: 1.25rem; font-size: 0.95rem; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.7rem 1.75rem;
  background: var(--primary); color: #fff; border: none;
  border-radius: 6px; font-size: 0.9rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: opacity 0.15s; letter-spacing: 0.01em;
}
.btn:hover { opacity: 0.85; text-decoration: none; }

/* === Sections === */
.section { padding: 4rem 2rem; max-width: 720px; margin: 0 auto; }
.section.alt { max-width: 100%; background: var(--primary-light); }
.section.alt > * { max-width: 720px; margin-left: auto; margin-right: auto; }
h2 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 1.5rem; font-weight: 700; color: var(--text); }
.section p { color: #444; }
.section p + p { margin-top: 1rem; }

/* === Bio Style Options === */
.bio-opt { color: #444; line-height: 1.7; }
.accent { color: var(--primary); font-weight: 500; }
.highlight-underline { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.highlight-bg { background: #e8f5ef; padding: 0.1rem 0.35rem; border-radius: 3px; }
.med-weight { font-weight: 500; font-style: italic; }
.bio-bullets { padding-left: 1.25rem; color: #444; font-size: 0.9rem; line-height: 1.8; }
.bio-bullets li { margin-bottom: 0.25rem; }

/* === Credential List (Option A) === */
.credential-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cred-row {
  display: flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.cred-row:last-child { border-bottom: none; }
.cred-label { font-weight: 600; font-size: 0.9rem; color: var(--text); min-width: 55%; }
.cred-inst { font-size: 0.85rem; color: #666; }

/* === Education Cards (Option B) === */
.edu-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.edu-card {
  padding: 0.9rem 1rem; border-left: 3px solid var(--primary); background: #f8fafb;
  border-radius: 0 6px 6px 0;
}
.edu-card strong { font-size: 0.9rem; display: block; margin-bottom: 0.15rem; }
.edu-card p { font-size: 0.8rem; color: #666; margin: 0; }

/* === Bio Timeline === */
.bio-timeline { margin-bottom: 1.5rem; }
.bio-item {
  display: flex; gap: 1rem; padding: 0.9rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.bio-item:last-child { border-bottom: none; }
.bio-year {
  flex-shrink: 0; width: 5.5rem; font-size: 0.8rem; font-weight: 600;
  color: var(--primary); padding-top: 0.15rem;
}
.bio-item strong { font-size: 0.95rem; display: block; margin-bottom: 0.15rem; }
.bio-item p { font-size: 0.85rem; color: #555; margin: 0; }
.bio-detail { margin-top: 0.3rem !important; font-size: 0.8rem !important; color: #888 !important; }

/* === Stats === */
.stats { display: flex; gap: 3rem; margin-top: 2rem; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-family: var(--font-heading); color: var(--text); }
.stat span { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* === Procedure Cards === */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.proc-card {
  padding: 1.25rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
}
.proc-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.proc-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.proc-card p { font-size: 0.82rem; color: #666; line-height: 1.5; margin: 0; }

/* === Condition Tags === */
.condition-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cond-tag {
  border: 1px solid var(--border); padding: 0.35rem 0.85rem; border-radius: 20px;
  font-size: 0.82rem; color: #555; background: var(--bg);
}

/* === Card Grid === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.card h3 { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 600; }
.card ul { list-style: none; }
.card ul li { padding: 0.35rem 0; color: #555; font-size: 0.9rem; }
.card ul li + li { border-top: 1px solid #f0f0f0; }
blockquote.card { font-style: italic; color: #555; font-size: 0.95rem; }
blockquote.card footer { font-style: normal; margin-top: 0.75rem; color: var(--text-light); font-size: 0.85rem; }

/* === Timeline (Awards) === */
.timeline { list-style: none; }
.timeline li { padding: 0.75rem 0; font-size: 0.95rem; color: #444; }
.timeline li + li { border-top: 1px solid #f0f0f0; }
.year { color: var(--primary); font-weight: 700; margin-right: 0.75rem; font-size: 0.85rem; }

/* === Publications === */
.publications { padding-left: 1.25rem; }
.publications li { margin-bottom: 0.75rem; font-size: 0.9rem; color: #444; line-height: 1.6; }

/* === Tags (Insurance) === */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { border: 1px solid var(--border); padding: 0.3rem 0.85rem; border-radius: 20px; font-size: 0.85rem; color: #555; }

/* === Gallery (Conferences) === */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.gallery figcaption { font-size: 0.8rem; color: var(--text-light); margin-top: 0.4rem; text-align: center; }

/* === FAQ === */
details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
details p { margin-top: 0.5rem; color: #555; font-size: 0.9rem; }

/* === Contact === */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.contact-card {
  padding: 1.25rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
}
.contact-card h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.contact-card p { font-size: 0.9rem; color: #444; margin-bottom: 0.3rem; }
.contact-card a { color: var(--primary); }

.locations-heading { font-size: 1rem; margin-bottom: 1rem; color: var(--text); }
.location-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.location-card {
  padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
}
.location-card strong { display: block; margin-bottom: 0.2rem; font-size: 1.05rem; color: var(--primary); }
.location-card p { font-size: 0.85rem; color: #555; margin: 0; }
.location-phone { margin-top: 0.4rem !important; }
.location-phone a { font-size: 0.8rem; color: var(--primary); }
.map-link { display: inline-block; margin-top: 0.4rem; font-size: 0.78rem; color: var(--primary); }
.location-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.5rem;
  background: var(--primary); color: #fff;
}
.map-placeholder {
  margin-top: 2rem; height: 180px; background: var(--primary-light);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--text-light); font-size: 0.95rem; border: 1px solid var(--border);
}

/* === Booking Form === */
.booking-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 440px; }
.booking-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 500; font-size: 0.9rem; color: #444; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.95rem; font-family: inherit; width: 100%; background: var(--bg);
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 0.8rem; color: var(--text-light); }
.confirmation { padding: 1.5rem; background: var(--primary-light); border-radius: 8px; font-weight: 600; color: var(--primary); }

/* === Sticky Mobile Contact Bar === */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 0.5rem 0.75rem; gap: 0.5rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.sticky-btn {
  flex: 1; text-align: center; padding: 0.65rem 0; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.sticky-call { background: var(--primary); color: #fff; }
.sticky-wa { background: #25D366; color: #fff; }
.sticky-book { background: var(--text); color: #fff; }

/* === Footer === */
.site-footer { text-align: center; padding: 3rem 2rem; color: var(--text-light); font-size: 0.8rem; border-top: 1px solid var(--border); }
.disclaimer { margin-top: 0.25rem; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: 4rem; }
  .sidebar {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    flex-direction: column; align-items: flex-start;
    padding: 5rem 1.5rem 2rem; gap: 0.5rem;
    background: var(--bg); border-bottom: none;
    transform: translateX(-100%); transition: transform 0.25s ease;
  }
  .sidebar ul { flex-direction: column; margin-left: 0; width: 100%; }
  .sidebar a { font-size: 1.1rem; padding: 0.75rem 0; min-height: 44px; display: flex; align-items: center; }
  .btn-nav { justify-content: center; padding: 0.75rem 1rem; margin-top: 0.5rem; border-radius: 8px; }
  .nav-open .sidebar { transform: translateX(0); }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0.75rem; right: 0.75rem;
    z-index: 200; background: var(--bg); color: var(--text);
    border: 1px solid var(--border); font-size: 1.3rem;
    width: 48px; height: 48px; border-radius: 8px; cursor: pointer;
  }

  main { padding-top: 0; }

  /* Hero */
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-inner { flex-direction: column; text-align: center; align-items: center; gap: 1.25rem; }
  .photo-placeholder { width: 110px; height: 110px; font-size: 0.8rem; }
  .hero-text h1 { font-size: 1.6rem; }
  .credentials { font-size: 0.9rem; }
  .tagline { font-size: 0.9rem; }
  .btn { padding: 0.8rem 2rem; font-size: 0.95rem; width: 100%; text-align: center; min-height: 48px; }

  /* Sections */
  .section { padding: 2.5rem 1.25rem; }
  h2 { font-size: 1.35rem; margin-bottom: 1.25rem; }

  /* Stats */
  .stats { justify-content: center; gap: 1.5rem; }
  .stat strong { font-size: 1.3rem; }
  .stat span { font-size: 0.75rem; }

  /* Cards — single column on small phones */
  .card-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card { padding: 1.25rem; }
  .card ul li { padding: 0.45rem 0; font-size: 0.9rem; }

  /* Awards */
  .timeline li { padding: 0.65rem 0; font-size: 0.9rem; }

  /* Publications */
  .publications li { font-size: 0.88rem; }

  /* Tags */
  .tag { padding: 0.4rem 0.75rem; font-size: 0.82rem; }

  /* FAQ — bigger tap targets */
  details { padding: 1.25rem 0; }
  summary { font-size: 0.95rem; min-height: 44px; display: flex; align-items: center; }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr; }
  .map-placeholder { height: 150px; }

  /* Booking form — full width inputs */
  .booking-form { max-width: 100%; }
  .booking-form input,
  .booking-form select,
  .booking-form textarea { padding: 0.75rem; font-size: 1rem; min-height: 48px; }
  .booking-form select { min-height: 48px; }

  /* Footer */
  .site-footer { padding: 2rem 1.25rem; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-text h1 { font-size: 1.4rem; }
  .section { padding: 2rem 1rem; }
  .stats { flex-direction: column; gap: 1rem; }
}
