/* =====================================================================
   Dallas Endoscopy Center: concept design tokens + shared styles
   Palette anchored on the existing DEC logo blue (#21449C), modernized.
   Type: Source Serif 4 (display, nods to the serif wordmark) + Public Sans.
   ===================================================================== */

:root {
  --dec-blue: #21449C;        /* existing logo blue, kept as the brand anchor */
  --dec-blue-deep: #18347A;   /* hover / pressed */
  --dec-navy: #111F4E;        /* headings, footer */
  --dec-ink: #222A3F;         /* body text */
  --dec-slate: #5A6478;       /* secondary text */
  --dec-sky: #EEF2FB;         /* tinted section background */
  --dec-sky-deep: #DCE4F6;    /* chips, avatar backgrounds */
  --dec-paper: #FDFDFC;       /* page background */
  --dec-line: #DFE4F0;        /* hairline borders */
  --dec-white: #FFFFFF;

  --dec-serif: "Source Serif 4", Georgia, serif;
  --dec-sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --dec-radius: 10px;
  --dec-radius-pill: 100px;
  --dec-shadow: 0 10px 30px rgba(17, 31, 78, 0.08);
  --dec-maxw: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--dec-paper);
  color: var(--dec-ink);
  font-family: var(--dec-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--dec-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  background: var(--dec-white);
  border-bottom: 1px solid var(--dec-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dec-navy);
}

.brand-name {
  font-family: var(--dec-serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-header .brand svg { width: 48px; height: 48px; }

@media (max-width: 860px) {
  .site-header .wrap { height: 72px; }
  .site-header .brand svg { width: 38px; height: 38px; }
  .brand-name { font-size: 23px; }
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: var(--dec-slate);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a:hover { color: var(--dec-blue); }

.site-nav a.active {
  color: var(--dec-blue);
  border-bottom: 2px solid var(--dec-blue);
  padding-bottom: 4px;
}

.btn {
  display: inline-block;
  background: var(--dec-blue);
  color: var(--dec-white);
  font-family: var(--dec-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--dec-radius-pill);
  white-space: nowrap;
}

.btn:hover { background: var(--dec-blue-deep); }

.btn-ghost {
  background: transparent;
  color: var(--dec-blue);
  border: 1px solid var(--dec-blue);
}

.btn-ghost:hover {
  background: var(--dec-sky);
  color: var(--dec-blue-deep);
}

/* Placeholder for a flow that is not live yet (e.g. online pre-registration). */
.btn.is-placeholder {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.is-placeholder:hover { background: var(--dec-blue); }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  background: linear-gradient(165deg, var(--dec-sky) 0%, #F6F8FD 55%, var(--dec-paper) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

/* Concentric rings echoing the circular logo mark */
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(33, 68, 156, 0.07) 0 1.5px,
      transparent 1.5px 56px);
  pointer-events: none;
}

.hero .wrap { position: relative; }

/* Stats band */
.stats-row {
  display: flex;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--dec-line);
}

.stat {
  padding: 22px 48px 0 0;
  margin-right: 48px;
}

.stat + .stat {
  border-left: 1px solid var(--dec-line);
  padding-left: 48px;
}

.stat-number {
  font-family: var(--dec-serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--dec-blue);
  line-height: 1;
  margin: 0 0 6px;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dec-slate);
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dec-blue);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--dec-serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--dec-navy);
  margin: 0 0 18px;
  max-width: 19ch;
}

.lede {
  font-size: 18px;
  color: var(--dec-slate);
  max-width: 58ch;
  margin: 0 0 26px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

a.badge { text-decoration: none; }

a.badge:hover {
  border-color: var(--dec-blue);
  color: var(--dec-blue);
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dec-navy);
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius-pill);
  padding: 7px 16px;
}

/* ------------------------------------------------------------------ */
/* Physician grid (index)                                              */
/* ------------------------------------------------------------------ */

.grid-section { padding: 48px 0 80px; }

.grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.grid-toolbar h2 { margin: 0; }

.search-box {
  flex: 0 1 320px;
  font-family: var(--dec-sans);
  font-size: 15px;
  color: var(--dec-ink);
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius-pill);
  padding: 12px 22px;
  outline: none;
  transition: border-color 200ms ease;
}

.search-box:focus { border-color: var(--dec-blue); }

.search-box::placeholder { color: var(--dec-slate); }

.no-results {
  display: none;
  color: var(--dec-slate);
  font-size: 15px;
  padding: 24px 0;
}

.physician-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 30px 22px;
}

.physician-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Illustrated avatar at natural size in a square frame. The colored frame is
   solid behind the shoulders and fades into the page by mid-height, so the
   figure emerges from a color field instead of sitting in a hard box.
   Representative placeholder until real photography is shot. */
.portrait {
  --tile: var(--dec-sky);
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(to top, var(--tile) 0%, var(--tile) 26%, transparent 54%);
}

.portrait.tint-deep { --tile: var(--dec-sky-deep); }
.portrait.accent    { --tile: var(--dec-blue); }

.portrait img {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 100%;           /* natural fit: whole bust visible, never clipped */
  width: auto;
  display: block;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

a.physician-card:hover .portrait img {
  transform: translateX(-50%) translateY(-5px);
}

/* Real photos (vs transparent silhouettes): fill the tile and crop. */
.portrait.photo { overflow: hidden; }

.portrait.photo img {
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: none;
}

a.physician-card:hover .portrait.photo img { transform: translateY(-4px); }

.physician-name {
  font-family: var(--dec-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--dec-navy);
  margin: 0 0 3px;
  line-height: 1.25;
}

.physician-cred {
  font-size: 13.5px;
  color: var(--dec-slate);
  margin: 0;
}

.profile-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dec-blue);
  border-bottom: 1px solid var(--dec-blue);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}

a.physician-card:hover .profile-link {
  color: var(--dec-blue-deep);
}

/* ------------------------------------------------------------------ */
/* Profile page (detail)                                               */
/* ------------------------------------------------------------------ */

.breadcrumb {
  padding: 26px 0 0;
  font-size: 14px;
  color: var(--dec-slate);
}

.breadcrumb a {
  color: var(--dec-blue);
  text-decoration: none;
  font-weight: 500;
}

.profile-hero {
  display: flex;
  gap: 44px;
  align-items: center;
  padding: 36px 0 44px;
}

.profile-hero .portrait {
  --tile: var(--dec-sky-deep);
  width: 224px;
  height: 224px;
  flex-shrink: 0;
  margin-bottom: 0;
  border-radius: 10px;
}

.profile-hero .portrait img {
  height: 100%;
}

.profile-hero h1 {
  margin-bottom: 8px;
  max-width: none;
  font-size: 38px;
}

.role-line {
  font-size: 17px;
  color: var(--dec-ink);
  margin: 0 0 4px;
  font-weight: 500;
}

.role-sub {
  font-size: 15px;
  color: var(--dec-slate);
  margin: 0 0 16px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dec-blue);
  background: var(--dec-sky);
  border-radius: var(--dec-radius-pill);
  padding: 5px 13px;
}

.highlight-band { background: var(--dec-sky); padding: 40px 0; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.highlight {
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius);
  padding: 20px;
}

.highlight-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dec-blue);
  margin: 0 0 6px;
}

.highlight-text {
  font-family: var(--dec-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--dec-navy);
  margin: 0;
  line-height: 1.35;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  padding: 52px 0 64px;
}

h2 {
  font-family: var(--dec-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--dec-navy);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 2px solid var(--dec-sky-deep);
  margin-left: 6px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dec-blue);
  border: 2px solid var(--dec-paper);
}

.timeline-title {
  font-weight: 600;
  color: var(--dec-navy);
  margin: 0;
  font-size: 15.5px;
}

.timeline-meta {
  font-size: 14px;
  color: var(--dec-slate);
  margin: 2px 0 0;
}

.plain-list { list-style: none; margin: 0; padding: 0; }

.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--dec-line);
  font-size: 15px;
}

.plain-list li:first-child { padding-top: 0; }

.practice-card {
  background: linear-gradient(150deg, var(--dec-navy) 0%, var(--dec-blue-deep) 100%);
  border-radius: var(--dec-radius);
  box-shadow: var(--dec-shadow);
  padding: 30px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}

/* Ring motif in the card corner, echoing the mark */
.practice-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.10) 0 1.5px,
      transparent 1.5px 26px);
  pointer-events: none;
}

.practice-card h3 {
  font-family: var(--dec-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--dec-white);
  margin: 0 0 12px;
}

.practice-card p {
  margin: 0 0 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.practice-card .btn {
  margin-top: 18px;
  background: var(--dec-white);
  color: var(--dec-navy);
}

.practice-card .btn:hover {
  background: var(--dec-sky);
  color: var(--dec-navy);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--dec-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 44px 0 36px;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .brand-name { color: var(--dec-white); }

.footer-meta { font-size: 14px; line-height: 1.7; }

.concept-note {
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------------ */
/* Motion (respects prefers-reduced-motion via the .motion gate)       */
/* ------------------------------------------------------------------ */

.motion .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease-out, transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion .reveal.in {
  opacity: 1;
  transform: none;
}

.motion .hero .wrap > * {
  animation: decFade 550ms ease-out both;
}

.motion .hero .wrap > *:nth-child(2) { animation-delay: 80ms; }
.motion .hero .wrap > *:nth-child(3) { animation-delay: 160ms; }
.motion .hero .wrap > *:nth-child(4) { animation-delay: 240ms; }
.motion .hero .wrap > *:nth-child(5) { animation-delay: 320ms; }

@keyframes decFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .site-nav { display: none; }
  h1 { font-size: 34px; }
  .detail-columns { grid-template-columns: 1fr; gap: 40px; }
  .profile-hero { flex-direction: column; text-align: center; align-items: center; }
  .profile-hero .chip-row { justify-content: center; }
  .stats-row { flex-wrap: wrap; }
  .stat, .stat + .stat { border-left: none; padding-left: 0; margin-right: 32px; }
  .grid-toolbar { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------------------------ */
/* Print (PDF export of the teaser pages)                              */
/* ------------------------------------------------------------------ */

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* motion is screen-only: force all revealed content visible and still */
  .motion .reveal { opacity: 1 !important; transform: none !important; }
  .motion .hero .wrap > * { animation: none !important; opacity: 1 !important; }

  .site-header { position: static; }
  .search-box { display: none; }            /* interactive control, not useful in print */

  .physician-card, .portrait, .highlight, .practice-card { break-inside: avoid; }
  .profile-hero { break-inside: avoid; }
}
