/* AOS v1.6 Master Design System */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #0e2a47;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-white: #ffffff;
  --surface-card: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text-dark); background-color: #ffffff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.site-header { background: #ffffff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand-logo { font-size: 1.35rem; font-weight: 800; color: var(--secondary); text-decoration: none; letter-spacing: -0.02em; }
.brand-logo span { color: var(--primary); }
.nav-desktop { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--secondary); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.2s ease; }
.nav-link:hover { color: var(--primary); }
.btn-primary { display: inline-block; background-color: var(--primary); color: var(--text-white); padding: 0.6rem 1.25rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: background-color 0.2s ease; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--primary-hover); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--secondary); cursor: pointer; }
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100vh; background-color: #ffffff; box-shadow: -4px 0 12px rgba(0,0,0,0.1); z-index: 200; transition: right 0.3s ease; padding: 1.5rem; display: flex; flex-direction: column; }
.mobile-drawer.is-active { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.drawer-links { display: flex; flex-direction: column; gap: 1.25rem; }
.drawer-link { color: var(--secondary); text-decoration: none; font-size: 1.1rem; font-weight: 600; }

.card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08); }
.hero { background-color: var(--surface-muted); border-bottom: 1px solid var(--border); }
.hero-title { font-size: 2.25rem; color: var(--secondary); line-height: 1.2; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); }
.site-footer { background-color: var(--secondary); color: #94a3b8; padding: 3.5rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }

/* Interactive Directory Stage Styles */
.directory-stage {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2.5rem 3.5rem 2.5rem;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.stage-flex-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.stage-content-area { flex: 1; }
.stage-avatar-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--surface-muted); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; flex-shrink: 0;
}
.stage-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--primary); background: #e0f2fe;
  padding: 0.25rem 0.75rem; border-radius: 20px; margin-bottom: 1rem;
}
.stage-title { font-size: 1.8rem; color: var(--secondary); margin-bottom: 1rem; font-weight: 800; }
.stage-desc-p1, .stage-desc-p2 { color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; max-width: 800px; }
.stage-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* Dynamic Edge-Attached Moving Pill & Progress Line (AOS Anti-Jitter Standard) */
.progress-track-wrapper { position: absolute; bottom: 0; left: 0; width: 100%; height: 32px; pointer-events: none; }
.pill-extend-time {
  position: absolute; bottom: 8px; left: 0%;
  background: #000000; color: #ffffff; font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 12px; z-index: 10; white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); cursor: pointer; pointer-events: auto; user-select: none; border: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; backface-visibility: hidden;
  will-change: left, transform; transform: translate3d(0, 0, 0);
  transition: left 0.05s linear, transform 0.35s ease, background-color 0.15s ease;
}
.pill-extend-time.anchor-left { transform: translate3d(0, 0, 0); }
.pill-extend-time.anchor-center { transform: translate3d(-50%, 0, 0); }
.pill-extend-time.anchor-right { transform: translate3d(-100%, 0, 0); }
.pill-extend-time:hover { background: var(--primary); }
.pill-extend-time:active { transform: scale(0.95); }

.progress-bar-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--border); }
.progress-bar-fill { height: 100%; width: 0%; background: #000000; position: absolute; left: 0; top: 0; will-change: width; transition: width 0.05s linear; }

/* Doctor Team Card System */
.gp-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.gp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -4px rgba(0,0,0,0.08); }
.gp-photo-box { width: 100%; aspect-ratio: 4/3; background: #e2e8f0; position: relative; overflow: hidden; }
.gp-photo-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gp-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.gp-role-tag { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); background: #f0f9ff; padding: 0.25rem 0.5rem; border-radius: 4px; display: inline-block; margin-bottom: 0.5rem; }
.gp-name { font-size: 1.15rem; font-weight: 800; color: var(--secondary); margin-bottom: 0.35rem; }
.gp-bio-short { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; }
.gp-read-more-btn { background: none; border: none; color: var(--primary); font-size: 0.825rem; font-weight: 700; cursor: pointer; padding: 0; text-align: left; margin-bottom: 1rem; }
.gp-read-more-btn:hover { text-decoration: underline; }
.gp-expanded-bio { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, margin 0.3s ease; background: #f8fafc; border-radius: 6px; padding: 0 0.75rem; }
.gp-card.is-expanded .gp-expanded-bio { max-height: 300px; padding: 0.75rem; margin-bottom: 1rem; border: 1px solid var(--border); }
.gp-cta-btn { background-color: #84cc16; color: #0f172a; font-weight: 800; font-size: 0.85rem; padding: 0.55rem 1rem; border-radius: 20px; text-align: center; text-decoration: none; transition: background-color 0.2s ease; margin-top: auto; display: block; border: none; cursor: pointer; }
.gp-cta-btn:hover { background-color: #65a30d; color: #ffffff; }

/* Service Selector Cards */
.sub-header-tag { font-size: 0.825rem; color: var(--primary); background: #f0f9ff; border: 1px solid #e0f2fe; padding: 0.6rem 0.85rem; border-radius: 6px; margin-bottom: 1rem; font-weight: 600; line-height: 1.4; }
.fee-badge-pill { font-size: 0.825rem; font-weight: 700; color: var(--secondary); background: #f1f5f9; padding: 0.35rem 0.65rem; border-radius: 4px; display: inline-block; margin-bottom: 0.85rem; }
.btn-learn-more { background-color: var(--secondary); color: #ffffff; padding: 0.45rem 0.9rem; border-radius: 6px; font-size: 0.825rem; font-weight: 700; border: none; cursor: pointer; transition: background-color 0.2s ease; }
.btn-learn-more:hover { background-color: var(--primary); }
.link-full-service { font-size: 0.85rem; color: var(--primary); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.link-full-service:hover { color: var(--primary-hover); }
.card-expandable { display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease; }
.card-expandable.active { border: 2px solid var(--secondary); box-shadow: 0 12px 24px -4px rgba(14, 42, 71, 0.15); transform: translateY(-3px); }
.expanded-content-drawer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin-top 0.3s ease, padding 0.3s ease; background: #f8fafc; border-radius: 6px; padding: 0 1rem; }
.card-expandable.is-expanded .expanded-content-drawer { max-height: 600px; padding: 1rem; margin-top: 1rem; margin-bottom: 1rem; border: 1px solid var(--border); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 1.75rem; }
  .directory-stage { padding: 1.5rem 1.5rem 3rem 1.5rem; }
  .stage-flex-container { flex-direction: column-reverse; }
  .stage-avatar-circle { width: 80px; height: 80px; font-size: 2rem; }
  .stage-title { font-size: 1.4rem; }
}