/* ═══════════════════════════════════════════════
   INNER PAGES — Shared styles for all non-home pages
═══════════════════════════════════════════════ */

/* ── Page header ── */
.page-header {
  background: var(--navy);
  padding: 8rem 0 var(--s-16);
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.page-header-bg::before {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,119,34,0.15) 0%, transparent 70%);
  filter: blur(60px);
}
.page-header-bg::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,160,220,0.10) 0%, transparent 70%);
  filter: blur(70px);
}
.page-header-inner { position: relative; z-index: 2; }
.page-header .eyebrow { margin-bottom: var(--s-4); }
.page-header h1 {
  color: var(--white);
  margin-bottom: var(--s-4);
}
.page-header .lead { color: rgba(255,255,255,0.55); max-width: 580px; }
.page-header-breadcrumb {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--s-4);
  letter-spacing: 0.04em;
}
.page-header-breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s ease; }
.page-header-breadcrumb a:hover { color: var(--orange); }

/* ── Page body ── */
.page-body { padding: var(--s-20) 0; }
.page-body .container { max-width: 900px; }

/* ── Service page layout ── */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s-12);
  align-items: start;
}
.service-content {}
.service-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--navy);
  margin: var(--s-8) 0 var(--s-4);
}
.service-content h2:first-child { margin-top: 0; }
.service-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: var(--s-4);
}
.service-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.service-content ul li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding-left: var(--s-6);
  position: relative;
  line-height: 1.55;
}
.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.service-sidebar {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.sidebar-cta-card {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  color: var(--white);
}
.sidebar-cta-card .h4 {
  font-style: italic;
  color: var(--white);
  margin-bottom: var(--s-3);
}
.sidebar-cta-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: var(--s-6);
}
.sidebar-cta-card .btn { width: 100%; justify-content: center; }
.sidebar-cta-card .btn + .btn { margin-top: var(--s-3); }

.sidebar-info-card {
  background: var(--cream-dark);
  border-radius: var(--r-md);
  padding: var(--s-6);
  border: 1px solid var(--line-warm);
}
.sidebar-info-card h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-light);
  margin-bottom: var(--s-4);
}
.sidebar-info-card p,
.sidebar-info-card a {
  font-size: 0.82rem;
  color: var(--ink-mid);
  line-height: 1.6;
}
.sidebar-info-card a {
  color: var(--orange);
  font-weight: 500;
  transition: color 0.15s ease;
}
.sidebar-info-card a:hover { color: var(--orange-deep); }

/* Services nav on inner pages */
.services-nav {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--line-warm);
  padding: var(--s-3) 0;
}
.services-nav-inner {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scrollbar-width: none;
}
.services-nav-inner::-webkit-scrollbar { display: none; }
.services-nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-mid);
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-full);
  transition: background 0.15s ease, color 0.15s ease;
}
.services-nav-link:hover { color: var(--navy); background: rgba(12,35,64,0.06); }
.services-nav-link.active { background: var(--orange); color: var(--white); }

/* ── Team page ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}
.team-member-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.team-member-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.member-avatar {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: italic;
  font-weight: 700;
  color: rgba(232,119,34,0.45);
  position: relative;
}
.member-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
}
.member-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(12,35,64,0.5));
  z-index: 2;
}
.member-body { padding: var(--s-6) var(--s-6) var(--s-8); }
.member-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.member-cred {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.member-specialty {
  font-size: 0.78rem;
  color: var(--ink-mid);
  margin-bottom: var(--s-4);
  line-height: 1.4;
}
.member-bio {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-light);
}
.team-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  padding: var(--s-12) 0 var(--s-6);
  border-top: 1px solid var(--line-warm);
  margin-top: var(--s-4);
}
.team-group-label:first-child { padding-top: 0; border-top: none; }

/* ── Contact / Locations page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: var(--s-8);
}
.form-tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-8);
  border-bottom: 1px solid var(--line-warm);
}
.form-tab {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--ink-light);
  transition: color 0.15s ease, border-color 0.15s ease;
  margin-bottom: -1px;
}
.form-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.form-panel { display: none; }
.form-panel.active { display: block; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--s-4);
}
.form-group.full { grid-column: span 2; }
.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--line-warm);
  border-radius: var(--r-sm);
  padding: 0.75rem var(--s-4);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
  outline: none;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: var(--s-6); width: 100%; justify-content: center; }
.form-note {
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: var(--s-3);
  text-align: center;
}

/* ── Admin ── */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: var(--s-8);
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-12) var(--s-10);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--cream);
}
.admin-sidebar {
  background: var(--navy);
  padding: var(--s-8) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.7rem var(--s-4);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.admin-nav-item.active { background: rgba(232,119,34,0.2); color: var(--orange); }
.admin-main { padding: var(--s-8) var(--s-10); overflow: auto; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line-warm);
}
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: auto;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-table th {
  background: var(--cream-dark);
  padding: 0.7rem var(--s-4);
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--line-warm);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.8rem var(--s-4);
  color: var(--ink);
  border-bottom: 1px solid var(--line-warm);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-badge--new    { background: rgba(34,197,94,0.12);   color: #15803d; }
.admin-badge--existing { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.admin-badge--open   { background: rgba(34,197,94,0.12);   color: #15803d; }
.admin-badge--busy   { background: rgba(245,158,11,0.12);  color: #92400e; }
.admin-badge--closed { background: rgba(239,68,68,0.12);   color: #991b1b; }

.walk-in-controls {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.walk-in-btn {
  padding: 0.75rem var(--s-6);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.walk-in-btn--open   { background: rgba(34,197,94,0.12);   color: #15803d;  border-color: rgba(34,197,94,0.3); }
.walk-in-btn--busy   { background: rgba(245,158,11,0.12);  color: #92400e;  border-color: rgba(245,158,11,0.3); }
.walk-in-btn--closed { background: rgba(239,68,68,0.12);   color: #991b1b;  border-color: rgba(239,68,68,0.3); }
.walk-in-btn.selected, .walk-in-btn:hover { opacity: 1; filter: brightness(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/* ── New Patient page ── */
.new-patient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
}
.info-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--s-8);
  border: 1px solid var(--line);
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: var(--s-4);
}
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.info-card ul li {
  font-size: 0.85rem;
  color: var(--ink-mid);
  padding-left: var(--s-5);
  position: relative;
  line-height: 1.5;
}
.info-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

/* ── Responsive (inner pages) ── */
@media (max-width: 900px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .new-patient-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { padding: var(--s-4) var(--s-6); flex-direction: row; overflow-x: auto; }
  .form-row { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .page-header { padding-top: 7rem; }
}


/* ═══════════════════════════════════════════════
   gray28 rule — center all user-facing text (inner pages)
   (admin tables + form fields stay left for usability)
═══════════════════════════════════════════════ */
.page-header-inner { text-align: center; }
.page-header .lead { margin-left: auto; margin-right: auto; }
.page-body .container { text-align: center; }
.page-body .container .btn { justify-content: center; }

/* lists: an inline centered dot instead of a left-absolute bullet
   (fixes the bullet crowding the text + centers each item) */
.service-content ul, .info-card ul { align-items: center; }
.service-content ul li, .info-card ul li { padding-left: 0; text-align: center; }
.service-content ul li::before, .info-card ul li::before {
  position: static; display: inline-block; vertical-align: middle;
  margin-right: 0.55em; top: auto; left: auto;
}

/* keep form fields readable/usable */
.form-input, .form-textarea, .form-select { text-align: left; }

/* ═══ premium page-load entrance (header content rises in) ═══ */
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-header-inner > * { animation: pageEnter 0.7s var(--ease-out) both; }
.page-header-inner > *:nth-child(2) { animation-delay: 0.07s; }
.page-header-inner > *:nth-child(3) { animation-delay: 0.14s; }
.page-header-inner > *:nth-child(4) { animation-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) { .page-header-inner > * { animation: none; } }

/* ═══ tasteful per-page header accent variation (brand colors only) ═══ */
.page-header-bg.ph-b::before { right: auto; left: -90px; top: -130px; }
.page-header-bg.ph-b::after  { left: auto; right: 8%; }
.page-header-bg.ph-c::before { top: auto; bottom: -150px; right: 14%; }
.page-header-bg.ph-c::after  { bottom: auto; top: -70px; left: 32%; }
.page-header-bg.ph-d::before { right: 28%; top: -170px; width: 560px; height: 560px; }
.page-header-bg.ph-d::after  { left: -50px; bottom: -50px; }
.page-header-bg.ph-e::before { right: -110px; top: 35%; }
.page-header-bg.ph-e::after  { left: 18%; bottom: -130px; width: 460px; height: 460px; }
