/* Proxima Nova Webfonts */

/* Thin / Light */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Light.woff2') format('woff2'),
    url('/fonts/ProximaNova-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-LightItalic.woff2') format('woff2'),
    url('/fonts/ProximaNova-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
}

/* Regular */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Regular.woff2') format('woff2'),
    url('/fonts/ProximaNova-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-RegularItalic.woff2') format('woff2'),
    url('/fonts/ProximaNova-RegularItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

/* Semibold */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Semibold.woff2') format('woff2'),
    url('/fonts/ProximaNova-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-SemiboldItalic.woff2') format('woff2'),
    url('/fonts/ProximaNova-SemiboldItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
}

/* Bold */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Bold.woff2') format('woff2'),
    url('/fonts/ProximaNova-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-BoldIt.woff2') format('woff2'),
    url('/fonts/ProximaNova-BoldIt.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}

/* ExtraBold */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Extrabold.woff2') format('woff2'),
    url('/fonts/ProximaNova-Extrabold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}

/* Black */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Black.woff2') format('woff2'),
    url('/fonts/ProximaNova-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}


:root{
  --brand:#3C1EB7;
  --text:#0E0F1A;
  --muted:#6E6F7B;
  --bg:#FAF9FC;
  --card:#FFFFFF;
  --stroke:#E9E7F1;
  --radius:18px;
  --shadow:0 8px 24px rgba(16,12,64,.06);
  --content-max: 1120px;
  --page-pad: clamp(16px, 4vw, 24px); 
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font:400 16px/1.5 "Proxima Nova","Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* ========== NAV BAR ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(250,249,252,.85);
  border-bottom: 1px solid var(--stroke);
  transition: box-shadow .2s ease, background .2s ease;
  /* contain: layout paint;  REMOVE this line */
  overflow: visible; /* make sure dropdowns aren’t clipped */
}

.site-header.is-elevated{
  background: rgba(250,249,252,.95);
  box-shadow: 0 6px 16px rgba(16,12,64,.06);
}
.site-header .container { 
  max-width: var(--content-max);
  width: min(var(--content-max), 92vw);
  padding-inline: 0;
}

/* Center “search bar” button (provider context) */
/* Pill container */
.context-search {
  display: grid;
  grid-template-columns: 1fr auto; /* text block, then icon */
  align-items: center;
  gap: 10px;

  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--stroke, #E8E8EF);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);

  max-width: 640px;  /* cap width on desktop */
  width: min(60vw, 640px);   /* or 720px if you prefer */
  justify-self: center;      /* center within the middle grid column */
  margin-inline: auto;       /* extra safety for centering */
}

/* Focus ring like iOS search */
.context-search:focus-visible{
  outline: 3px solid #DAD3FF;
  outline-offset: 2px;
}

.context-search .chip{
  background: #F1EDFF; color: var(--brand);
  border: 1px solid #E6E0FF; border-radius: 999px;
  padding: 4px 10px; font-weight: 700; font-size: 14px;
}
.context-search .context-text{
  font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* center the label regardless of the icon */
.ctx-label {
  justify-self: center;        /* center the whole text block */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; 
}

/* CITY (uppercase, bold, purple) */
.ctx-city {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--brand, #3C1EB7);
  font-size: 14px;
}

/* bullet separator */
.ctx-sep{
  opacity: 0.6;
  font-weight: 600;
  transform: translateY(-1px);
}

/* Topic (Internal Medicine / Clinic name) */
.ctx-topic{
  font-size: 14px;       /* was smaller; restore previous size */
  font-weight: 600;
  color: #1C1B20;
  line-height: 1.2;      /* keeps it vertically snug */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctx-city, .ctx-sep, .ctx-topic {
  justify-self: center;  /* center text block in available space */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Purple search icon at far right */
.ctx-icon{
  justify-self: end;
  color: var(--brand, #3C1EB7);
  display: flex;
  align-items: center;
}

/* Hover—subtle lift */
.context-search:hover{
  border-color: #DDD7FF;
  box-shadow: 0 2px 6px rgba(60,30,183,.08);
}

/* Right actions */
.profile-link{ display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:600; color:var(--text); }
.profile-link:hover{ color: var(--brand); }
.profile-icon{ font-size: 18px; line-height: 1; }
.new-search{ /* hidden on mobile below */ }

/* Search modal (full-screen) */
.search-modal{ border: none; padding: 0; max-width: none; width: 100%; height: 100%; }
.search-modal::backdrop{ background: rgba(10, 8, 32, .55); }
.search-modal__inner{
  position: relative;
  width: min(960px, 92vw); margin: 8vh auto; background: #fff;
  border-radius: 20px; border: 1px solid var(--stroke); box-shadow: var(--shadow);
  padding: 20px clamp(16px, 4vw, 28px);
}
.search-modal__close{
  position: absolute; right: 14px; top: 10px; font-size: 28px; line-height: 1;
  background: #fff; border: 1px solid var(--stroke); border-radius: 10px; width: 36px; height: 36px; cursor: pointer;
}
.search-modal__header h2{ margin: 4px 0 4px; font-family: "Montserrat", system-ui, sans-serif; }
.search-modal__form{
  display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px;
}
.search-input{
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stroke);
  font-size: 16px;
}
.search-input:focus{ outline: 2px solid #E6E0FF; border-color: #D8D0FF; }
.search-quick{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.search-quick .chip{ text-decoration:none; }

/* Right-side Account pill */
.account-btn{
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px 0 12px;
  background: #fff;
  border: 1px solid var(--stroke, #E8E8EF);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  cursor: pointer;
}
.account-btn:focus-visible{ outline: 3px solid #DAD3FF; outline-offset: 2px; }

/* Left "menu" glyph (three lines) */
.account-burger{
  display: inline-block;
  width: 18px; height: 14px;
  position: relative;
  color: #12131A;
}
.account-burger::before,
.account-burger::after,
.account-burger span{
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; background: currentColor; border-radius: 2px;
}
.account-burger::before{ top: 0; }
.account-burger::after{ bottom: 0; }
.account-burger span{ top: 6px; }
/* we don't add a <span> node in HTML, so emulate the middle line via background gradient */
.account-burger{ background:
  linear-gradient(currentColor,currentColor) left 0 top 6px/100% 2px no-repeat;
}

/* Avatar (image or placeholder) */
.account-avatar{
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #F5F6FA; color: #1F2150;
  border: 1px solid #E8E8EF;
  overflow: hidden;
}
/* anchor the dropdown to the button */
.account-wrap { position: relative; }

/* Dropdown */
.account-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--stroke, #E8E8EF);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16,16,40,.12);
  min-width: 200px;
  padding: 8px;
  z-index: 2000; /* raise above header */
}

.account-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #12131A; text-decoration: none; font-weight: 600;
}
.account-menu a:hover{ background: #F6F4FF; color: var(--brand, #3C1EB7); }


.nav{
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* left auto, middle flex, right auto */
  align-items: center;
  gap: 12px;
  padding-inline: 0;     /* was: clamp(16px, 4vw, 24px) */
}

/* Match homepage brand exactly */
.logo{
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;             /* ExtraLight like home */
  font-size: 1.6rem;            /* same visual size */
  letter-spacing: 0.2em;        /* airy tracking */
  text-transform: uppercase;
  color: var(--brand);          /* #3C1EB7 already equals --roam-purple */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;             /* generous hit target like home */
  margin-left: -8px;            /* optical align with container edge */
}

.nav-primary{
    display: flex; justify-content: center; gap: 22px;
  }
  .nav-primary a{
    color: var(--text); text-decoration: none; font-weight: 600;
    padding: 8px 4px; border-radius: 8px;
  }
  .nav-primary a:hover{ color: var(--brand); background: #F1EDFF; }

.nav-actions { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  justify-self: end; /* push to the far right */
}

  .nav-link{ color: var(--text); text-decoration: none; font-weight: 600; }
  .nav-link:hover{ color: var(--brand); }

  /* Mobile toggle (hamburger) */
  .nav-toggle{
    display: none; position: relative; width: 38px; height: 38px;
    border-radius: 10px; border: 1px solid var(--stroke);
    background: #fff; cursor: pointer;
  }
  .nav-toggle .bar{
    position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text);
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  .nav-toggle .bar:nth-child(1){ top: 12px; }
  .nav-toggle .bar:nth-child(2){ top: 18px; }
  .nav-toggle .bar:nth-child(3){ top: 24px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1){ top: 18px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3){ top: 18px; transform: rotate(-45deg); }

  /* Mobile drawer */
  .mobile-menu{
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--stroke);
  }
  .mobile-menu.open{ display: block; }
  .mobile-links{
    display: grid; gap: 8px; padding: 12px clamp(16px, 4vw, 24px) 16px;
  }
  .mobile-links a{
    display: block; padding: 10px 12px; text-decoration: none; color: var(--text);
    border-radius: 10px; font-weight: 600;
  }
  .mobile-links a:hover{ background: #F6F5FB; }
  .mobile-cta{ margin-top: 6px; text-align: center; }

 /* Breadcrumbs band (provider pages) */
.breadcrumbs-wrap{
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: #fff;
  display: none !important;
}
.breadcrumbs{
  display: flex; gap: 8px; align-items: center;
  padding: 8px clamp(16px, 4vw, 24px);
  color: var(--muted); font-size: 14px;
}
  
.breadcrumbs{margin-left:auto; display:flex; gap:8px; color:var(--muted); font-size:14px}
.breadcrumbs a{ 
  color: var(--muted); 
  text-decoration: none; 
}
.breadcrumbs a:hover{ 
  color: var(--brand); 
}
.breadcrumbs .current{ 
  color: var(--text); 
  font-weight: 600; 
}

/* Layout helpers */
.container{
  width:min(1120px, 92vw); 
  margin-inline:auto;
  max-width: var(--content-max);
}
.section{padding:32px 0}
.split-2{display:grid; grid-template-columns:1.2fr .8fr; gap:24px}
@media (max-width: 880px){ .split-2{grid-template-columns:1fr; } }

/* Heading */
.provider-heading{
  display:flex; 
  justify-content:space-between; 
  align-items:flex-end;
  gap:18px; padding:22px 0 6px;
}

/* Provider heading responsive */
@media (max-width: 768px) {
  .provider-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0 8px;
  }
  
  .heading-right {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .provider-heading {
    padding: 16px 0 8px;
  }
  
  .provider-heading .title {
    font-size: clamp(28px, 6vw, 36px);
  }
  
  .heading-right {
    flex-direction: column;
    width: 100%;
  }
  
  .heading-right .btn {
    width: 100%;
    justify-content: center;
  }
}

.provider-heading .title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 4px;
}
.provider-heading .specialty {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  margin-bottom: 12px;
}
.provider-heading .subtitle {
  font-size: 18px;
  color: var(--muted);
}


.specialty{
  color:var(--brand); font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin:0 0 4px
}
.title{
  font-family:"Montserrat",system-ui,sans-serif;
  font-size:clamp(28px, 3.8vw, 40px);
  line-height:1.2; margin:0 0 6px
}
.subtitle{color:var(--muted); margin:0}
.subtitle span{color:var(--text); font-weight:600}
.heading-right{display:flex; gap:10px; flex-wrap:wrap}

/* Buttons */
.btn{
  --pad-y:12px; --pad-x:18px;
  display:inline-flex; align-items:center; gap:8px;
  padding:var(--pad-y) var(--pad-x);
  border-radius:999px; font-weight:600; text-decoration:none; cursor:pointer;
  border:1px solid transparent; transition:.2s ease; line-height:1;
}
.btn-primary{background:var(--brand); color:#fff; box-shadow:0 8px 20px rgba(60,30,183,.25)}
.btn-primary:hover{transform:translateY(-1px)}
.btn-outline{background:#fff; color:var(--brand); border-color:var(--brand)}
.btn-outline:hover{background:#f1edff}
.btn-ghost{background:transparent; color:var(--text); border-color:var(--stroke)}
.btn-ghost:hover{background:#fff}
.btn-ghost.saved{color:var(--brand); border-color:var(--brand)}

/* ===== “Light” button variant ===== */
.btn-light{
  --pad-y: 12px; --pad-x: 18px;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--stroke);
  box-shadow: 0 2px 10px rgba(16,12,64,.06);
}
.btn-light:hover{
  background: #F6F4FF;            /* very light purple wash */
  border-color: #E2DCFF;
  transform: translateY(-1px);
}
.btn-light:active{
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(16,12,64,.08) inset;
}

/* Book button sizing feels lighter but confident */
.btn-lg{ --pad-y: 12px; --pad-x: 22px; font-size: 16.5px; }

/* Keep the icon snug to text in lighter style */
.btn-light .i, .btn-light svg { margin-right: 8px; }

/* Mobile stacking polish */
@media (max-width: 760px){
  .media-meta2{ gap: 8px; }
  .btn-lg{ width: 100%; justify-content: center; }
}

/* Gallery */
.gallery{display:grid; grid-template-columns:1.4fr .6fr; gap:16px; padding:8px 0 18px}
@media (max-width: 900px){ .gallery{grid-template-columns:1fr} }
.gallery-main{
  position:relative; 
  border-radius:var(--radius); 
  overflow:hidden; 
  object-fit: cover;
  height: 500px;
  transition: transform 0.3s ease;
  background:#ddd
}

.gallery-main img{
  display:block; 
  width:100%; 
  height:520px; 
  object-fit:cover}

.gallery-main img:hover {
  transform: scale(1.02);
}

.photos-btn{
  position:absolute; right:12px; bottom:12px;
  padding:8px 12px; border-radius:999px; border:1px solid #fff; background:rgba(255,255,255,.9);
  font-weight:600; cursor:pointer;
}
.thumbs{display:grid; grid-template-columns:repeat(5,1fr); gap:10px}
@media (max-width:600px){ .thumbs{grid-template-columns:repeat(3,1fr)} }
.thumbs img{
  width:100%; 
  height:100px; 
  object-fit:cover; 
  border-radius:12px; 
  cursor:pointer;
  border:2px solid transparent; 
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.thumbs img:hover{
  transform: scale(1.05) translateY(-2px);
  border-color: var(--brand);
}
.thumbs img.active{border-color:var(--brand)}

/* Quick facts */
.quickfacts{
  display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:12px 0 18px
}
@media (max-width: 960px){ .quickfacts{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 520px){ .quickfacts{grid-template-columns:1fr} }

.fact{
  background:var(--card); border:1px solid var(--stroke); border-radius:14px;
  padding:14px 16px; display:flex; gap:12px; align-items:flex-start; box-shadow:var(--shadow)
}
.fact .icon{font-size:20px}
.fact a{color:var(--brand); text-decoration:none}
.status.open{background:#E7F8EE; color:#0B6B3A; padding:2px 8px; border-radius:10px; font-size:12px; margin-left:6px}

.rating{justify-content:space-between}

/* Pills */
.pill-grid{display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 4px}
.pill{
  background:#fff; border:1px solid var(--stroke); border-radius:999px; padding:8px 12px; font-weight:600;
}
.link-more{display:inline-block; margin-top:8px; color:var(--brand); text-decoration:none}

/* Cards / content */
.card{
  background:var(--card); 
  border:1px solid var(--stroke); 
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(16,12,64,.06);
  padding:18px; box-shadow:var(--shadow)
}
h2{font-family:"Montserrat",system-ui,sans-serif; margin:0 0 10px}
h3{margin:0 0 8px}
.price{font-size:22px; font-weight:800; margin:0 0 6px}
.price span{color:var(--muted); font-weight:600}

.checklist{padding-left:18px; margin:6px 0}
.checklist li{margin:6px 0}
.bullets{padding-left:18px; margin:6px 0}
.bullets li{margin:6px 0}

/* Map */
.map-card{display:flex; flex-direction:column; gap:12px}
.map-embed{border-radius:14px; overflow:hidden; border:1px solid var(--stroke)}
.map-embed iframe{width:100%; height:280px; border:0}
.walk{color:var(--muted); margin:0}

/* Team */
.team {
  display: block !important;
  grid-template-columns: unset !important;
}
@media (max-width:720px){ .team{grid-template-columns:1fr} }
.person img{width:100%; height:320px; object-fit:cover; border-radius:12px}
.person-body{padding-top:8px}

/* CTA */
.cta{padding:20px 0 32px}
.cta-card{
  background:linear-gradient(180deg, #fff, #F4F1FF);
  border:1px solid var(--stroke); border-radius:24px; padding:24px; text-align:center; box-shadow:var(--shadow)
}
.cta-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:12px}

/* Back */
.back{padding-bottom:48px}

/* Lightbox */
dialog{border:0; padding:0; background:transparent}
dialog::backdrop{background:rgba(0,0,0,.55)}
.lightbox-inner{
  width:min(1080px, 92vw); margin:auto; background:#fff; border-radius:16px; padding:16px; box-shadow:var(--shadow)
}
.lightbox-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.lightbox-grid img{width:100%; height:260px; object-fit:cover; border-radius:12px}
.close{
  position:absolute; right:20px; top:12px; font-size:32px; line-height:1; background:none; border:0; cursor:pointer;
}


/* Responsive */
@media (max-width: 960px){
  .nav {
    height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding-inline: clamp(16px, 4vw, 24px);
  }

  .logo { 
    justify-self: start;
  }

  .context-search {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font: inherit;
    color: var(--brand, #3C1EB7);
    max-width: 200px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    position: relative;
  }

  .context-search:hover {
    background-color: rgba(60, 30, 183, 0.08);
  }

  .context-search:active {
    transform: scale(0.98);
    background-color: rgba(60, 30, 183, 0.12);
  }
  
  .ctx-label{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    font-size: 15px;
    color: #1C1B20;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
  }

  .ctx-city, .ctx-sep{ display: none; }
  .ctx-topic{ 
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    text-align: center;
    width: 100%;
  }
  
  .ctx-icon{
    margin-left: auto;
    color: var(--brand, #3C1EB7);
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .nav-actions { 
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* .nav-toggle{ 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
  } */

  /* Mobile menu */
  .mobile-menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 6px 20px rgba(16,12,64,.1);
    z-index: 1000;
  }
  
  .mobile-menu[hidden] {
    display: none;
  }
  
  .mobile-menu.open {
    display: block;
  }

  /* Account dropdown pinned correctly */
  .account-menu{
    right: 0;
    left: auto;
    max-width: min(92vw, 280px);
    transform: none;
  }
}



/* Medium tablets */
@media (max-width: 768px) {
  .nav {
    gap: 8px;
    padding-inline: 16px;
  }
  
  .context-search {
    max-width: 160px;
  }
  
  .ctx-topic {
    max-width: 100px;
    font-size: 14px;
  }
  
  .account-btn {
    height: 36px;
    padding: 0 8px;
  }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px){
  .nav { 
    height: 56px;
    gap: 6px;
    padding-inline: 12px;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .context-search { 
    max-width: 120px;
  }
  
  .ctx-topic { 
    font-size: 13px;
    max-width: 80px;
  }
  
  .ctx-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .account-btn { 
    height: 34px; 
    padding: 0 6px;
    gap: 8px;
  }
  
  .account-avatar { 
    width: 24px; 
    height: 24px; 
  }
  
  .nav-toggle {
    width: 34px;
    height: 34px;
  }
  
  .nav-toggle .bar {
    left: 7px;
    right: 7px;
  }
  
  .nav-toggle .bar:nth-child(1){ top: 10px; }
  .nav-toggle .bar:nth-child(2){ top: 16px; }
  .nav-toggle .bar:nth-child(3){ top: 22px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1){ top: 16px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3){ top: 16px; }
  
  .site-header .container { 
    width: 100%;
  }
  
  .mobile-links {
    padding: 16px;
  }
  
  .mobile-links a {
    font-size: 16px;
    padding: 12px;
  }
}
/* --- Heading extras --- */
.rating-badge{
  display:inline-flex; align-items:center; gap:4px;
  margin-left:8px; padding:2px 8px; border-radius:999px;
  font-weight:700; font-size:13px; color:#1C1B20;
  background:#F4F1FF; border:1px solid var(--stroke);
}
.doc-avatar{
  width:28px; height:28px; border-radius:50%; object-fit:cover;
  vertical-align:middle; margin:0 6px -6px 4px; border:1px solid var(--stroke);
}

/* --- Save heart --- */
.save-btn .i-heart{ transition: transform .15s ease; }
.save-btn[aria-pressed="true"] .i-heart path{ fill: var(--brand); stroke: var(--brand); }
.save-btn[aria-pressed="true"]{ color: var(--brand); border-color: var(--brand); }
.save-btn:hover .i-heart{ transform: scale(1.06); }

/* --- Hero overlay + subtle zoom on hover is already there --- */
.gallery-main{ position:relative; }
.gallery-main::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(60,30,183,.10), rgba(0,0,0,0) 40%);
  pointer-events:none;
}

/* --- Photos button count --- */
.photos-btn .count{ opacity:.8; margin-left:4px; }

/* --- Fade-in animation when hero swaps --- */
@keyframes fadeInImage{ from{opacity:.2; transform: scale(1.01)} to{opacity:1; transform: none} }
#heroImage.fade-in{ animation: fadeInImage .28s ease; }

/* --- Small button size variant (for sticky bar) --- */
.btn-sm{ --pad-y:8px; --pad-x:14px; font-size:14px; }

/* --- Sticky CTA --- */
.sticky-cta{
  position: sticky; bottom: 14px; z-index: 90;
}
.sticky-cta[hidden]{ display:none !important; }
.sticky-cta__inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:#fff; border:1px solid var(--stroke); border-radius:999px; padding:8px 10px;
  box-shadow: 0 10px 30px rgba(16,12,64,.14);
}
.sticky-cta__title{
  font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width: 60vw;
}
@media (min-width: 920px){
  .sticky-cta{ display:none; } /* mobile-first helper */
}

/* Full-row gallery layout */
.gallery--fullrow {
  display: block;
  padding: 8px 0 18px;
}

/* Hero maintains height but spans full container */
.gallery--fullrow .gallery-main{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  height: clamp(340px, 48vw, 560px);
}
.gallery--fullrow .gallery-main img{
  width: 100%; height: 100%; object-fit: cover;
}

/* Brand overlay already added earlier; keep it */
.gallery-main::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(60,30,183,.10), rgba(0,0,0,0) 40%);
  pointer-events:none;
}

/* Bigger thumbnails below hero */
.thumbs--row{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.thumbs--row img{
  width: 100%;
  height: 132px;                 /* ↑ bigger than before */
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}
@media (max-width: 800px){
  .thumbs--row{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 38%;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .thumbs--row img{ height: 120px; }
}

/* Actions row under media */
.media-actions{
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 16px;
}
.media-actions .btn-primary{ box-shadow: 0 8px 20px rgba(60,30,183,.20); }

/* Overview text (3–5 sentences) */
.overview{
  margin: 10px 0 0;
  color: var(--text);
  font-size: 16px; line-height: 1.6;
  max-width: 70ch;
  opacity: .95;
}

/* Keep heart behavior */
.save-btn .i-heart{ transition: transform .15s ease; }
.save-btn[aria-pressed="true"] .i-heart path{ fill: var(--brand); stroke: var(--brand); }
.save-btn[aria-pressed="true"]{ color: var(--brand); border-color: var(--brand) }
.save-btn:hover .i-heart{ transform: scale(1.06); }

/* ========== Mosaic 1+4 gallery ========== */
.gallery--mosaic { padding: 8px 0 18px; }

.mosaic{
  display:grid; gap:18px;
  grid-template-columns: 2fr 1fr 1fr;   /* large tile + two skinny columns */
  grid-template-rows: clamp(140px, 18vw, 180px) clamp(140px, 18vw, 180px);
}

.mosaic-tile{
  display:block; width:100%; height:100%;
  border:0; padding:0; background:none; cursor:pointer; position:relative;
  border-radius:14px; overflow:hidden;
  box-shadow: var(--shadow);
}
.mosaic-tile img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .25s ease;
}
.mosaic-tile:hover img{ transform: scale(1.03); }

/* Big tile spans both rows */
.mosaic .m1{ grid-column:1; grid-row:1 / span 2; }

/* Optional “+N photos” pill on the last tile */
.more-label{
  position:absolute; right:8px; bottom:8px;
  background:rgba(16,16,40,.72);
  color:#fff; font-weight:700; padding:6px 10px; border-radius:999px; font-size:13px;
}

/* Actions row beneath the mosaic */
.media-actions{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 14px;
}
.media-actions .btn-primary{ box-shadow:0 8px 20px rgba(60,30,183,.20); }

/* Responsive tweaks */
@media (max-width: 920px){
  .mosaic{
    grid-template-rows: clamp(120px, 28vw, 160px) clamp(120px, 28vw, 160px);
  }
}
@media (max-width: 720px){
  /* Stack into a simple rail on small screens to save height */
  .mosaic{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 42vw 42vw;
  }
  .mosaic .m1{ grid-column: 1 / span 2; grid-row: 1; }
}

/* Neutralize the old .gallery grid when using the mosaic variant */
.gallery.gallery--mosaic {
  display: block;            /* was grid from .gallery */
  grid-template-columns: unset;
  grid-auto-flow: unset;
  gap: 0;
}

/* Center the Book CTA beneath gallery */
.gallery.gallery--mosaic { 
  position: relative;
  padding: 6px 0 10px;
} /* anchor for save-fab */
.gallery.gallery--mosaic .media-actions{
  display: flex;
  justify-content: center;            /* ← centered button */
  gap: 10px;
  margin-top: 14px;
}

/* Top-right Save pill */
.save-fab{
  position: absolute;
  top: -18px;                 /* lift it a bit above the grid */
  right: 8px;
  z-index: 5;                 /* <- key: sits over the mosaic */
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  font-weight: 600; cursor: pointer; color: var(--text);
}
.save-fab svg{ display:block; }
.save-fab[aria-pressed="true"]{
  color: var(--brand);
  border-color: var(--brand);
}
@media (max-width: 720px){
  .save-fab{ top: -10px; }
}

/* Doctor left, rating right under gallery */
.below-media-info{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.below-media-info .info-left{
  font-size: 16px;
}
.below-media-info .info-left .muted{
  color: var(--muted);
}
.below-media-info .info-right{
  justify-self: end;
}
/* rating badge reused */
.rating-badge{
  display:inline-flex; align-items:center;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  background: #F4F1FF;
  border: 1px solid var(--stroke);
  color: #1C1B20;
}

/* Make the heading a 2-col row: title/left + save/right */
.provider-heading{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;           /* baseline with title */
  gap: 12px;
  padding: 28px 0 8px;
}
.provider-heading .heading-left{ min-width: 0; } /* allow title to shrink properly */
.provider-heading .title{ margin: 0; }

/* Remove accidental extra margins on first/last items in sections */
.provider-page .container > :first-child { margin-top: 0; }
.provider-page .container > :last-child { margin-bottom: 0; }

/* Save pill when it's in the heading */
.save-fab--heading{
  position: static;           /* not absolute—lives in the heading row */
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  font-weight: 600; cursor: pointer; color: var(--text);
  white-space: nowrap;
}
.save-fab--heading svg{ display: block; }
.save-fab--heading[aria-pressed="true"]{ color: var(--brand); border-color: var(--brand); }

@media (max-width: 640px){
  /* On small screens, keep it neat: shrink text and/or hide label if needed */
  .save-fab--heading span{ display: none; }   /* icon-only */
  .save-fab--heading{ padding: 8px; }
}

/* three-cell row: left doctor, centered CTA, right rating */
.media-meta{
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* left - center - right */
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.media-meta .meta-left{ justify-self: start; font-size: 16px; }
.media-meta .meta-left .muted{ color: var(--muted); }
.media-meta .meta-center{ justify-self: center; }
.media-meta .meta-right{ justify-self: end; }
.media-meta .btn-primary{ box-shadow: 0 8px 20px rgba(60,30,183,.20); }

@media (max-width: 560px){
  .media-meta{
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .media-meta .meta-left,
  .media-meta .meta-right{ justify-self: center; }
}

/* Two-column meta row under gallery */
.media-meta2{
  display: grid;
  grid-template-columns: 1.2fr .8fr;   /* left bigger */
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 18px; 
}
.metaL{ display: grid; gap: 10px; align-content: start; }
.metaL .leadline{ font-size: 16px; }
.metaL .muted{ color: var(--muted); }

.btn-lg{ --pad-y:14px; --pad-x:22px; font-size: 17px; }

/* Right side: big rating + link */
.metaR{ display: grid; gap: 10px; justify-items: end; }
.rating-big{
  display: inline-flex; align-items: baseline; gap: 4px;
  background: #F4F1FF; border: 1px solid var(--stroke);
  border-radius: 999px; padding: 6px 12px; box-shadow: 0 4px 14px rgba(60,30,183,.12);
}
.rating-big .val{ font-weight: 800; font-size: 20px; line-height: 1; color: #1C1B20; }
.rating-big .star{ font-size: 18px; color: #1C1B20; opacity: .85; }

.reviews-link{
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--brand); font-weight: 700; text-decoration: underline;
}
.reviews-link:hover{ text-decoration-thickness: 2px; }

/* Responsive behavior */
@media (max-width: 760px){
  .media-meta2{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .metaR{ justify-items: center; }
}

/* Reviews modal */
.reviews-modal{ border: none; padding: 0; }
.reviews-modal::backdrop{ background: rgba(10, 8, 32, .55); }
.reviews-modal__inner{
  width: min(900px, 92vw);
  margin: 8vh auto;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 16px 12px;
}
.reviews-modal__close{
  position: absolute; right: 18px; top: 10px;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--stroke); background: #fff; cursor: pointer;
  font-size: 26px; line-height: 1;
}
.reviews-modal h3{ margin: 8px 0 10px; font-family: "Montserrat", system-ui, sans-serif; }
.reviews-modal iframe{
  display: block; width: 100%; height: min(70vh, 680px);
  border: 1px solid var(--stroke); border-radius: 12px;
}
.reviews-modal__actions{
  display: flex; justify-content: flex-end; margin-top: 10px;
}


/* 1) Center the Book CTA's label inside the button (icon + text) */
.media-meta2 .btn-light,
.media-meta2 .btn-primary,
.media-meta2 .btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* <-- centers the content inside the button */
  text-align: center;
}
.media-meta2 .btn-light svg,
.media-meta2 .btn-primary svg { 
  flex: 0 0 auto; 
  margin-right: 8px; 
}

/* 2) Increase the gap below the media-meta row (above quickfacts) */
.media-meta2 { 
  margin-top: 12px; 
  margin-bottom: 18px;       /* <-- was smaller; increases space to quickfacts */
}

/* 3) Make left/right blocks feel equal-height and tighter */
.media-meta2{
  display: grid;
  grid-template-columns: 1.2fr .8fr;  /* left bigger */
  align-items: stretch;               /* both columns same row height */
  gap: 14px;
  min-height: 72px;                   /* keeps a tidy, balanced row height */
}

.media-meta2 .metaL,
.media-meta2 .metaR{
  display: flex;
  flex-direction: column;
  justify-content: center;            /* vertically center contents in both sides */
  gap: 8px;                           /* tighter internal spacing */
  padding-block: 6px;                 /* symmetrical top/bottom breathing room */
}

.media-meta2 .leadline{ 
  margin: 0; 
  line-height: 1.25; 
}
.media-meta2 .rating-big{
  padding: 4px 10px;                  /* compact the pill */
}
.media-meta2 .reviews-link{
  margin-top: 2px;                    /* small tuck under rating */
}

/* Optional: make the button visually a hair lighter/tighter */
.media-meta2 .btn-lg{ 
  --pad-y: 11px; 
  --pad-x: 20px; 
  font-size: 16px; 
}

/* Mobile stacking keeps it neat */
@media (max-width: 760px){
  .media-meta2{
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }
  .media-meta2 .btn-lg{ width: 100%; }
}


/* --- Fix rating pill stretching wide --- */
/* Make the right block a flex column aligned to the right */
.media-meta2 .metaR{
  display: flex !important;          /* override any earlier 'display:grid' */
  flex-direction: column;
  align-items: flex-end;              /* right-align contents */
  gap: 6px;
}

/* Children should size to their content, not stretch */
.media-meta2 .metaR > *{ 
  width: auto !important;            /* stop full-width behavior */
  max-width: none;
}

/* Ensure the rating pill stays compact */
.rating-big{
  display: inline-flex;               /* compact, content-width */
  width: auto !important;
}

/* Keep the link from becoming a full-width block */
.reviews-link{
  display: inline-block;
}


/* Reviews list (replaces the iframe usage) */
.reviews-list{
  display: grid;
  gap: 12px;
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 6px; /* space for scrollbar */
}

.review-item{
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.review-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.review-author{
  font-weight: 700;
  color: var(--text);
}

.review-author a{
  color: var(--text);
  text-decoration: none;
}
.review-author a:hover{ color: var(--brand); text-decoration: underline; }

.review-when{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.review-rating{
  font-weight: 800;
  white-space: nowrap;
}

.review-text{
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.reviews-more{
  text-align: right;
  margin-top: 4px;
}
.reviews-more a{
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}
.reviews-more a:hover{ text-decoration-thickness: 2px; }

/* A11y helper */
.visually-hidden{
  position:absolute!important; width:1px; height:1px; margin:-1px; padding:0; border:0;
  clip:rect(0 0 0 0); clip-path: inset(50%); overflow:hidden; white-space:nowrap;
}

/* Contact facts layout tweaks */
.facts--contact{
  /* On desktop, two columns for dense contact info */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0 6px;
}

.facts--secondary{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

/* Keep cards compact & aligned */
.fact{
  align-items: center;            /* icon + text baseline alignment */
}
.fact .icon{
  font-size: 18px;                /* slightly smaller icon to reduce noise */
  line-height: 1; 
  margin-top: 2px;
}
.fact strong{ 
  font-weight: 800; 
}
.link-more{ 
  display: inline-block; 
  margin-top: 6px; 
}

/* Responsive: stack sensibly */
@media (max-width: 960px){
  .facts--secondary{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .facts--contact{ grid-template-columns: 1fr; }
  .facts--secondary{ grid-template-columns: 1fr; }
}

/* Contact card + list (minimal, reuses .card) */
.contact-card .contact-list{
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
}
.contact-card .row{
  display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start;
}
.contact-card .label{
  font-weight: 800; color: var(--text);
}
.contact-card .value{
  color: var(--text);
}
.contact-card .hours-list{
  list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px;
}
.contact-card .hours-list .day{ display: inline-block; min-width: 2.4em; font-weight: 700; }
.contact-card details summary{
  cursor: pointer; user-select: none;
  margin: 2px 0 2px; outline: none;
}
.contact-card details[open] summary{ font-weight: 700; }
.contact-card .hours-notes{ margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Mobile: stack label above value for readability */
@media (max-width: 640px){
  .contact-card .row{ grid-template-columns: 1fr; gap: 6px; }
}

/* Address link: inherit text style; underline on hover only */
.address-link{
  color: inherit;
  text-decoration: none;
}
.address-link:hover,
.address-link:focus{
  text-decoration: underline;
}

/* Lightbox (single-image) */
.lightbox{ border: none; padding: 0; }
.lightbox::backdrop{ background: rgba(10,8,32,.65); }
.lightbox .lightbox-inner{
  position: relative;
  width: min(1080px, 94vw);
  margin: 6vh auto;
  background: #000;                 /* photo-first look */
  border-radius: 14px;
  overflow: hidden;
}

.lightbox-stage{
  margin: 0; position: relative;
  display: grid; place-items: center;
  background: #000;
}
#lightboxImage{
  max-width: 100%; max-height: calc(90vh - 80px);
  display: block;
}
.lightbox-counter{
  position: absolute; right: 12px; bottom: 10px;
  color: #fff; font-weight: 700; font-size: 14px;
  background: rgba(0,0,0,.35); padding: 4px 8px; border-radius: 999px;
}

.lightbox-close{
  position: absolute; right: 10px; top: 10px;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--stroke); background: #fff; cursor: pointer;
  font-size: 26px; line-height: 1;
}

.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox-nav.prev{ left: 10px; }
.lightbox-nav.next{ right: 10px; }
.lightbox-nav:hover{ background: rgba(0,0,0,.45); }

/* Lightbox: go frameless, image-first */
.lightbox { border: none; padding: 0; }
.lightbox::backdrop{ background: rgba(10,8,32,.70); }  /* keep dim backdrop */

.lightbox .lightbox-inner{
  background: transparent;     /* was #000 */
  box-shadow: none;
  border-radius: 0;            /* no rounded frame around the image */
  width: min(1200px, 96vw);
  margin: 3vh auto;
  overflow: visible;           /* let arrows sit outside if needed */
}

.lightbox-stage{
  background: transparent;     /* kill any black stage color */
  margin: 0;
  padding: 0;
  position: relative;
}

#lightboxImage{
  display: block;
  max-width: 96vw;
  max-height: 92vh;            /* a little taller now that the frame is gone */
  margin: 0 auto;
}

/* Arrows always on top, never hidden behind the image */
.lightbox-nav{
  z-index: 5;                               /* above image */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.35);
  color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer;
}
.lightbox-nav.prev{ left: 8px; }
.lightbox-nav.next{ right: 8px; }
.lightbox-nav:hover{ background: rgba(0,0,0,.5); }

/* Close button above everything */
.lightbox-close{ z-index: 6; }

/* Uniform lightbox sizing: consistent stage height, image contained */
.lightbox .lightbox-inner{
  width: min(1200px, 96vw);
  margin: 3vh auto;
}

.lightbox-stage{
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(320px, 78vh, 860px);  /* <= uniform viewing box */
  background: transparent;
  overflow: hidden;
}

#lightboxImage{
  display: block;
  max-width: 94vw;        /* guard against edge cases */
  max-height: 100%;       /* key: cap by the stage height */
  width: auto;
  height: auto;
  object-fit: contain;    /* keep aspect ratio within the box */
  margin: 0 auto;
}

/* Keep UI elements on top and clear of edges */
.lightbox-counter{ right: 12px; bottom: 12px; z-index: 6; }
.lightbox-close{ right: 10px; top: 10px; z-index: 7; }
.lightbox-nav{ z-index: 6; }


/* ===== Treatments ===== */
.treatments { margin-top: 2rem; }
.treatments .section-title { font-family: Montserrat, sans-serif; font-weight: 600; margin-bottom: .75rem; }

.treatments__group { border-top: 1px solid #eee; }
.treatments__toggle {
  display:flex; justify-content:space-between; align-items:center;
  width:100%; padding:.875rem 0; background:none; border:0; cursor:pointer;
  font: 600 1rem/1.2 Montserrat, sans-serif; text-align:left;
}
.treatments__toggle:focus-visible { outline:2px solid #3C1EB7; outline-offset:2px; }
.treatments__chev { transition: transform .2s ease; }
.treatments__toggle[aria-expanded="true"] .treatments__chev { transform: rotate(180deg); }

.treatments__group-desc { margin:0 0 .5rem 0; color:#666; font: 400 .95rem/1.5 "Proxima Nova", system-ui, sans-serif; }

.treatments__panel { /* height controlled by JS */ }
.treatments__list { margin:0; padding:0; list-style:none; }
.treatments__item { border-top:1px dashed #e7e7e7; padding:.875rem 0; }

.treatments__grid { display:grid; gap:.75rem 1rem; grid-template-columns:1fr; }
@media (min-width:800px){ .treatments__grid { grid-template-columns:1.3fr .9fr; align-items:start; } }

.treatments__name { margin:0 0 .25rem 0; font: 600 1rem/1.3 Montserrat, sans-serif; }
.treatments__blurb { margin:0; color:#333; font: 400 .95rem/1.5 "Proxima Nova", system-ui, sans-serif; }

.treatments__tags { margin:.5rem 0 0; padding:0; display:flex; flex-wrap:wrap; gap:.375rem; }
.treatments__tag {
  font: 500 .8rem/1 "Proxima Nova", system-ui, sans-serif;
  background:#f6f5ff; color:#3C1EB7; border:1px solid #ece9ff;
  padding:.25rem .45rem; border-radius:999px; list-style:none;
}

.treatments__meta { display:grid; gap:.5rem; justify-items:start; }
.treatments__facts { margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
.treatments__fact { position:relative; padding-left:1.15rem; font:500 .9rem/1.4 "Proxima Nova", system-ui, sans-serif; color:#444; }
.treatments__fact::before { content:attr(data-icon); position:absolute; left:0; top:0; line-height:1.4; opacity:.9; }

.btn.btn--tiny {
  font:600 .88rem/1.1 Montserrat, sans-serif; padding:.5rem .7rem; border-radius:.5rem;
  border:1px solid #3C1EB7; background:#fff; color:#3C1EB7;
}
.btn.btn--tiny:hover { background:#f3f0ff; }
.btn.btn--tiny:focus-visible { outline:2px solid #3C1EB7; outline-offset:2px; }

.treatments__cta-wrap { 
  margin-top:.25rem; 
  /* justify-self: end; */
}
.treatments__empty { color:#666; font: 400 .95rem/1.5 "Proxima Nova", system-ui, sans-serif; }

/* Reduce subtle shift when opening */
.treatments__panel > .treatments__list { padding-bottom:.5rem; }

/* ===== Access (map-first) ===== */
.access .section-title { font-family: Montserrat, sans-serif; font-weight: 600; margin-bottom: .5rem; }
.access__mapwrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: .75rem; overflow: hidden; background: #f5f5f7; }
.access__map { position:absolute; inset:0; width:100%; height:100%; border:0; }
.access__copy { margin-top: .75rem; font: 400 .96rem/1.6 "Proxima Nova", system-ui, sans-serif; color:#333; }
.access__line { margin: 0; }
.access__addr { font-weight: 600; }
.access__sep { margin: 0 .4rem; color:#aaa; }
.access__links { margin: .4rem 0 0; }
.access .link { color:#3C1EB7; text-decoration: underline; }

/* ===== Team (scroll-snap carousel) ===== */
.team .section-title { font-family: Montserrat, sans-serif; font-weight: 600; }
.team__head { display:flex; justify-content:space-between; align-items:center; gap:.75rem; margin-bottom:.5rem; }
.team__controls { display:flex; gap:.5rem; }
.team__arrow {
  border:1px solid #ddd; background:#fff; border-radius:.5rem; padding:.35rem .55rem; cursor:pointer;
  font: 600 1rem/1 Montserrat, sans-serif; color:#333;
}
.team__arrow[disabled] { opacity:.45; cursor:not-allowed; }
.team__rail {
  display:flex; gap:.75rem; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; padding-bottom:.25rem;
}
.team__rail::-webkit-scrollbar { height: 8px; }
.team__rail::-webkit-scrollbar-thumb { background:#ddd; border-radius:8px; }
.team__card {
  flex:0 0 82%;
  max-width: 420px;
  scroll-snap-align: start;
  background:#fff; border:1px solid #eee; border-radius:1rem; overflow:hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
@media (min-width: 820px) {
  .team__card { flex-basis: 360px; }
}
.team__img { 
  width:100%; 
  aspect-ratio: 3 / 4; 
  object-fit: cover; 
  object-position: 50% 20%;     /* nudge focus upward */
  display:block; 
}
.team__body{ padding:.7rem .9rem .85rem; }
.team__name { margin:0; font:600 1.05rem/1.2 Montserrat, sans-serif; }
.team__role { margin:.1rem 0 .35rem; color:#555; font:.92rem "Proxima Nova", system-ui, sans-serif; }
.team__bio { margin:0 0 .45rem; color:#333; font:.95rem/1.5 "Proxima Nova", system-ui, sans-serif; }
.team__facts { margin:0 0 .5rem; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:.35rem .9rem; }
.team__fact { position:relative; padding-left:1.15rem; font:.9rem "Proxima Nova", system-ui, sans-serif; color:#444; }
.team__fact::before { content:attr(data-icon); position:absolute; left:0; top:0; line-height:1.2; opacity:.9; }
.team__cta { display:flex; justify-content:flex-start;
           margin-top: 1rem;}

.team__facts{
  margin:.25rem 0 .4rem;
  padding:0;
  list-style:none;
  display:grid;             /* was flex */
  gap:.25rem;               /* tighter vertical rhythm */
}
.team__fact{
  position:relative;
  padding-left:1.15rem;
  font:.9rem/1.35 "Proxima Nova", system-ui, sans-serif;
  color:#444;
}
.team__fact::before{
  content:attr(data-icon);
  position:absolute; left:0; top:0;
  line-height:1.35; opacity:.9;
}

/* optional: make bios a hair tighter on two-line wraps */
.team__bio{ margin:.25rem 0 .35rem; }

/* Emphasize quick-facts + add icon spacing */
.team__facts { gap: .35rem; }  /* a touch more vertical space */

.team__fact{
  font: 500 .92rem/1.45 "Proxima Nova", system-ui, sans-serif;  /* light-bold look */
  padding-left: 1.6rem;        /* more gap between icon and text (was ~1.15rem) */
  color: #2e2e2e;
}

.team__fact::before{
  width: 1.1rem;               /* reserve space for the icon */
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.45;
  font-size: 1.05rem;          /* tiny bump so the emoji aligns nicely */
  opacity: .95;
}


*** a/public/css/provider.css
--- b/public/css/provider.css
@@
+/* ===== Provider polish (non-breaking, scoped) ===== */
+.provider-page .treatments h3 { margin: 18px 0 8px; }
+.provider-page .treatments .accordion-trigger { padding: 10px 0; cursor: pointer; }
+
+.provider-page .access .address { line-height: 1.5; }
+.provider-page .access a.map-link { text-decoration: underline; text-underline-offset: 2px; }
+
+.provider-page .map-embed { margin: 12px 0 20px; border-radius: 10px; overflow: hidden; }
+
+.provider-page .team-card { display: grid; gap: 8px; padding-bottom: 12px; }
+.provider-page .team-card .btn { margin-top: auto; }
+
+.provider-page .btn-primary { font-weight: 600; padding: 10px 14px; border-radius: 10px; }
+
+/* Footer minor refinements (footer CSS lives in rc-footer.css; these are safe nudges) */
+.provider-page .rc-footer { margin-top: 56px; }
+.provider-page .rc-footer .rc-foot-bottom { color: #555e7a; }
+
+/* Defensive: ensure closed dialogs never overlay footer */
+dialog:not([open]) { display: none !important; pointer-events: none !important; }
+
+/* Avoid horizontal scrollbars on narrow screens */
+html, body { overflow-x: hidden; }
