/* ===============================
   Home.css (cleaned & deduped)
   =============================== */

:root{
  /* Tweak these if your header height changes */
  --header-h: 56px;           /* sticky site header (approx) */
  --mini-nav-h: 56px;         /* mini action bar height */
}

/* Light mode: slightly taller mini nav */
@media screen and (prefers-color-scheme: light){
  :root{
    --mini-nav-h: 60px;
  }
}

html{
  background-color: var(--bg);
  overflow-x: hidden;
}

body{
  position: relative;
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Dark-only effects */
@media (prefers-color-scheme: dark){
  html{ background-color: #0c1224; }
  body{ background-color: #0c1224; }
}

html[data-theme="dark"]{
  background-color: #0c1224;
}
html[data-theme="dark"] body{
  background-color: #0c1224;
}

.visit-wrap{
  padding-bottom: 10px; /* consistent breathing room for CTAs */
}
.visit-wrap .grid.auto-260{
  margin-bottom: 12px; /* tighter gap between top cards and CTA buttons */
}

/* ===== Hero wrapper & animated backdrop ===== */
.hero-card{ border-radius:16px; padding:24px; }
@media (min-width: 700px){ .hero-card{ padding:28px; } }

.hero-card .btn{
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.page-bg::before,
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  pointer-events:none;
  /*background: none;  replaced by JS-driven ASCII plasma */
}

/* Pixel dot layer with mouse repulsion */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(140% 120% at 15% 20%, rgba(60,140,255,0.16), transparent 55%),
    radial-gradient(120% 110% at 75% 30%, rgba(20,180,220,0.14), transparent 50%),
    radial-gradient(130% 120% at 45% 80%, rgba(10,90,190,0.12), transparent 52%);
  background-repeat: no-repeat;
  background-size: 160% 160%, 150% 150%, 170% 170%;
  animation: lavaDrift 34s ease-in-out infinite alternate;
}

.hero-animated{
  position: relative;
  overflow: hidden;
  background: var(--bg-elev, #0f1626);
}

/* Page spacing tuning (applies to both light/dark) */
body.page-home #top{
  margin-top: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.page-home section.card.glass{
  margin-bottom: 16px;
}
body.page-home nav.mini-nav{
  margin-top: 12px;
  margin-bottom: 12px;
}
body.page-home #hours,
body.page-home #visit,
body.page-home #services,
body.page-home #walkins{
  margin-top: 12px !important;
}
body.page-home section.card.glass:last-of-type{
  margin-bottom: 12px;
}

@keyframes lavaDrift{
  0%{
    background-position: 0% 0%, 60% 10%, 30% 70%;
  }
  50%{
    background-position: 30% 30%, 80% 50%, 10% 40%;
  }
  100%{
    background-position: 60% 60%, 40% 80%, 70% 20%;
  }
}

/* ===== “Glass” cards ===== */
.card.glass{
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  position: relative;
  z-index: 12;
}
body.home-page .card.glass{
  overflow: visible;
}
.card.glass::before{
  content:"";
  position:absolute;
  inset:8px;
  background: rgba(8,12,20,0.75);
  border-radius: 10px;
  filter: blur(8px);
  z-index:0;
  pointer-events:none;
}
.card.glass > *{
  position: relative;
  z-index: 1;
}

/* Small inline icons (e.g., Icons8 links, phone/zoom/person labels) */
.icon8-inline{
  width:16px;
  height:16px;
  margin-right:4px;
  vertical-align:middle;
  filter: none;
  transition: filter .2s ease, transform .2s ease;
}
.icon8-inline:hover,
.btn:hover .icon8-inline,
.icon-line:hover .icon8-inline{
  filter: invert(1) hue-rotate(180deg);
  transform: translateY(-1px);
}
.dev-note__close .icon8-inline{
  width:14px;
  height:14px;
}
.dev-note__close{
  pointer-events:auto;
  background: transparent;
  border: none;
}
.icon-radial{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background: transparent;
  transition: background .2s ease;
}
.icon-radial:hover .icon8-inline{
  filter: invert(1) hue-rotate(180deg);
  transform: translateY(-1px);
}
.dev-note__close:hover .icon8-inline{
  filter: invert(1) hue-rotate(180deg);
  transform: translateY(-1px);
}

.icon-line{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.phone-link{
  color: #dce9ff;
  text-decoration: none;
  font-weight: 600;
}
.phone-link:hover{
  text-decoration: underline;
}

.contact-rows{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.contact-row{
  display: grid;
  grid-template-columns: 88px 1fr;
  column-gap: 10px;
  align-items: start;
}
.contact-label{
  font-weight: 700;
  color: #cfe4ff;
}
.contact-value{
  color: #e9eefc;
  line-height: 1.4;
}

.icon8-band{
  margin-top:16px;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}
.icon8-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.icon8-grid img{
  width:22px;
  height:22px;
  filter: grayscale(0.1);
  transition: filter .2s ease, transform .2s ease;
}
.icon8-grid img:hover{
  filter: invert(1) hue-rotate(180deg);
  transform: translateY(-2px);
}


/* ===== Availability chips ===== */
.avail-row{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.avail-chip{
  position:relative;
  min-width:44px;
  padding:8px 12px;
  border-radius:999px;
  text-align:center;
  font-weight:700;
  letter-spacing:.3px;
  border:1px solid rgba(120,140,150,.35);
  background:rgba(120,140,150,.15);
}
.avail-chip.has{
  border-color: rgba(40,200,120,.45);
  background:    rgba(40,200,120,.18);
}
.avail-chip.none{
  border-color: rgba(140,160,170,.35);
  background:    rgba(140,160,170,.12);
  color: rgba(255,255,255,.66);
}

/* Tooltips for chips */
.avail-chip[data-tip]{ position: relative; outline: none; }
.avail-chip[data-tip]::after{
  content: attr(data-tip);
  position:absolute; left:50%; bottom:calc(100% + 10px);
  transform:translateX(-50%) translateY(6px);
  pointer-events:none; white-space:nowrap; max-width:260px; overflow:hidden; text-overflow:ellipsis;
  background: rgba(12,16,24,0.98);
  color:#f7f9ff;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  padding:8px 10px;
  font-size:.85rem;
  line-height:1.2;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
  mix-blend-mode: normal;
  opacity:0;
  visibility:hidden;
  transition:opacity .16s, transform .16s, visibility 0s linear .16s;
  z-index:1600;
}
.avail-chip[data-tip]::before{
  content:""; position:absolute; left:50%; bottom:100%; transform:translateX(-50%) translateY(6px);
 border:8px solid transparent;
 border-top-color:rgba(12,16,24,.98);
 mix-blend-mode: normal;
 filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
 opacity:0;
 visibility:hidden;
 transition:opacity .16s, transform .16s, visibility 0s linear .16s;
 z-index:1599;
}
.avail-chip[data-tip]:hover::after,
.avail-chip[data-tip]:hover::before,
.avail-chip[data-tip]:focus-visible::after,
.avail-chip[data-tip]:focus-visible::before{
 opacity:1;
 visibility:visible;
 transform:translateX(-50%) translateY(0);
 transition-delay:0s;
}
.avail-chip.none::after{ background: rgba(30,34,42,.96); border-color: rgba(255,255,255,.08); }
.avail-chip.none::before{ border-top-color: rgba(30,34,42,.96); }
@media (max-width:560px){
  .avail-chip[data-tip]::after{ bottom:auto; top:calc(100% + 10px); }
  .avail-chip[data-tip]::before{ bottom:auto; top:100%; border-bottom-color:rgba(12,16,24,.96); border-top-color:transparent; }
  .avail-chip.none::before{ border-bottom-color: rgba(30,34,42,.96); }
}
@media (prefers-reduced-motion: reduce){
  .avail-chip[data-tip]::after, .avail-chip[data-tip]::before{ transition:none; }
}

/* ===== Sticky site header tweaks for home ===== */
body.home-page .site-header{
  background: transparent;
  border: none;
  box-shadow: none;
}
body.home-page .site-header .primary-nav{
  display:flex;
  gap:10px;
  margin-left:auto;
}

body.home-page main{
  padding-top: 0;
}

body.home-page #top{
  margin-top: 2px !important;
}
body.home-page section.card.glass.mt-16:first-of-type{
  margin-top: 4px !important;
}

body.home-page::-webkit-scrollbar{
  width: 0;
}
body.home-page{
  scrollbar-width: none;
}

/* ===== Mini action bar — BELOW hero, sticks FLUSH to top ===== */
/* At first: sits under the hero card with comfy rounding. When it touches the
   top of the viewport we toggle .is-stuck (see tiny JS) to make it fixed,
   edge-to-edge, with no gap and no rounding. */
/* Sticky mini patient nav: pins under the site header */
.mini-nav{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  overflow: visible;
  overflow-y: visible;

  padding:8px 12px;
  margin-top: 12px;

  backdrop-filter: blur(10px);
  border-radius:14px;

  width: min(420px, calc(100% - 36px));
  margin-left:auto;
  margin-right:auto;

  position: sticky;     /* ✅ */
  top: 18px;            /* ✅ IMPORTANT: height of your fixed header + desired gap */
  z-index: 1500;
}

.mini-nav-placeholder{
  display:none;
  width:100%;
}
.mini-nav.is-stuck{
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1501;
}
.mini-nav::before{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:10px;
  filter: blur(8px);
  pointer-events:none;
  z-index:0;
}
.mini-nav > *{
  position: relative;
  z-index: 1;
}
.mini-nav .btn.sm{ border-radius:10px; }

.mini-actions{
  display:flex;
  gap:8px;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.mini-brand,
.mini-auth{
  display: none;
  align-items: center;
  gap: 10px;
}
.mini-brand .brand-mark{
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5da8ff, #3577ff);
  display:flex; align-items:center; justify-content:center;
  color:#0c1224; font-weight:800; font-size:15px; letter-spacing:.2px;
}
.mini-brand .brand-text{
  display:flex; flex-direction:column; line-height:1.1;
  color:#e9eefc;
}
.mini-brand .brand-title{ font-weight:800; font-size:15px; }
.mini-brand .brand-subtitle{ font-size:12px; color: rgba(233,238,252,0.78); }
.mini-auth .btn.sm{ border-radius:10px; }

/* Anchor links land below the stuck bar */
[id]{ scroll-margin-top: var(--mini-nav-h); }

/* ===== Visit section: map sizing ===== */
.visit-wrap .map-wrap iframe{
  width:100%;
  aspect-ratio: 16 / 9;
  border:0; border-radius:12px;
}

/* ===== Services (final, deduped) ===== */

/* Grid */
.services-grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
}
.services-grid--big{
  display:grid; gap:22px;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
}

/* Card */
.svc-card{
  position:relative;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background: rgba(255,255,255,0.03);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 240px;              /* unified height */
}
@media (min-width:900px){ .services-grid .svc-card{ height:260px; } }
.svc-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border-color: rgba(40,200,120,.35);
}

/* Image fills card */
.svc-card .svc-img{
  position:absolute; inset:0;
  background-size:cover; background-position:center; background-repeat:no-repeat;
  z-index: 0;
}

/* Label overlays */
.svc-card .svc-label{
  position:absolute; left:12px; right:12px; bottom:12px;
  padding:10px 12px; font-weight:650; color:#e9eefc; text-align:center;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  z-index: 2;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Horizontal marquee row */
.services .services-marquee{
  position: relative;
  overflow: hidden;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.039);
  border-radius: 14px;
  background: rgb(28, 35, 49, 0.39);
}
.services .services-track{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: flex-start;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.services .services-track .svc-card{
  box-sizing: border-box;
  width: 220px;
  height: 220px;
  min-width: 220px;
  min-height: 220px;
  flex: 0 0 220px;
}
.services .services-track .svc-card .svc-img{
  width: 100%;
  height: 100%;
}
#services .services-marquee + .services-track{ margin-top: 0; }

/* spacing from map above */
#services{ margin-top: 16px; }

/* If you have real images */
.svc-med      { background-image: url("/static/img/services/med.png"); }
.svc-icbc     { background-image: url("/static/img/services/icbc.png"); }
.svc-minor    { background-image: url("/static/img/services/minor.png"); }
.svc-worksafe { background-image: url("/static/img/services/worksafe.png"); }
.svc-driver   { background-image: url("/static/img/services/driver.png"); }
.svc-tb       { background-image: url("/static/img/services/tb.png"); }
.svc-ultra    { background-image: url("/static/img/services/ultra.png"); }
.svc-fp       { background-image: url("/static/img/services/fp.png"); }
.svc-rv       { background-image: url("/static/img/services/rv.png"); }
.svc-vacc     { background-image: url("/static/img/services/vacc.png"); }
.svc-pe       { background-image: url("/static/img/services/pe.png"); }
.svc-pr       { background-image: url("/static/img/services/pr.png"); }
.svc-botox    { background-image: url("/static/img/services/botox.png"); }
.svc-ht       { background-image: url("/static/img/services/ht.png"); }

/* TBA (disabled-looking) */
.services .svc-card.is-tba::after{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background: rgba(0,0,0,.45); backdrop-filter: blur(1.5px);
  z-index: 1;
}
.services .svc-card.is-tba .svc-label{ bottom:50%; transform:translateY(50%); }

/* Reveal anim (with reduced-motion respect) */
.services-grid--big .svc-card{ opacity:1; transform:none; }

/* ===== Testimonials ===== */
.quotes{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:10px; }
.quotes blockquote{
  margin:0;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  position: relative;
  min-height: 120px;
}
.quotes footer{
  color:var(--muted);
  margin-top:8px;
  position: static;
  display: block;
  z-index: 1;
}

/* ===== Dr Hasan hero (final, deduped grid version) ===== */
/* Make the Dr Hasan block span the full row of the parent grid */
/* In the Appointments card, place Dr Hasan to the right of the text */
#hours .grid.auto-320{
  align-items: start;         /* align text and image nicely */
  column-gap: 24px;           /* space between text and image */
}

#hours .grid.auto-320 > div:first-child{
  grid-column: 1;             /* force the text block into the left column */
}

#hours .drhasan-hero{
  grid-column: 2;             /* place Dr Hasan in the right column */
  justify-self: center;       /* center inside the right column */
  margin-top: 0;              /* remove the extra top margin */
  width: 100%;
  max-width: 420px;           /* keep her from getting too wide */
}

.drhasan-img{ grid-area: img; }
.drhasan-img img{
  width: clamp(260px, 30vw, 420px);
  height: auto; display:block;
  border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.28);
}

.drhasan-right{
  grid-area: right;
  display:flex; flex-direction:column; gap:12px; align-items:stretch;
}
.drhasan-bubble{
  position:relative; padding:14px 18px;
  background: rgba(40,200,120,.14); border:1px solid rgba(40,200,120,.35);
  border-radius:12px; color:#e9eefc; font-style:italic; font-weight:550;
}
.drhasan-bubble::before{ content:none; }
.drhasan-bubble.to-right::before{
  content:""; position:absolute; left:-10px; top:18px;
  border:10px solid transparent; border-right-color:rgba(40,200,120,.35);
}
.drhasan-bubble.below{
  grid-area: below; justify-self:center; width:min(100%, 600px); text-align:center;
}
.drhasan-bubble.below::before{
  content:""; position:absolute; top:-10px; left:50%; transform:translateX(-50%);
  border:10px solid transparent; border-bottom-color: rgba(40,200,120,.35);
}

/* Stack on small screens */
@media (max-width: 720px){
  .drhasan-hero{
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "right"
      "below";
    justify-items: center;
  }
  .drhasan-right{ width:100%; }
  .drhasan-bubble.to-right::before{
    left:50%; top:-10px; transform:translateX(-50%);
    border-right-color: transparent; border-bottom-color: rgba(40,200,120,.35);
  }
}

/* ===== Anchor comfort when header is present ===== */
/* If your page also has a sticky site header *above* the mini-nav, you might
   change the stuck top + scroll-margin like:
   .mini-nav.is-stuck{ top: var(--header-h); }
   [id]{ scroll-margin-top: calc(var(--header-h) + var(--mini-nav-h)); }
*/





/* === Appointments layout: center Dr Hasan more, widen bubbles === */

/* Right column with Dr Hasan */
#hours .drhasan-hero {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* equal halves: image | bubbles */
  grid-template-areas:
    "img right"
    "below below";
  column-gap: 24px;
  row-gap: 16px;
  justify-content: center;
  align-items: start;
}

/* Image column: keep her nice and big */
#hours .drhasan-img {
  grid-area: img;
  justify-self: center; /* <-- centers image in its half */
}
#hours .drhasan-img img {
  width: clamp(240px, 32vw, 380px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Bubbles on the right: stretch them wider */
#hours .drhasan-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;     /* give them breathing space */
  width: 100%;
}

/* Bottom bubble stays centered under both */
#hours .drhasan-bubble.below {
  grid-area: below;
  justify-self: center;
  width: min(100%, 800px); /* a little wider */
  text-align: center;
}



/* Center the whole Dr Hasan block while allowing wide bubbles */
#hours .drhasan-hero{
  grid-column: 2;

  display: grid;
  grid-template-columns: minmax(280px, auto) minmax(420px, 1fr); /* image | bubbles */
  grid-template-areas:
    "img right"
    "below below";
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;

  width: 100%;
  max-width: clamp(410px, 40vw, 500px);  /* keeps the pair centered & not too wide */
  margin-inline: auto;                     /* <-- centers the two-column block */
}

/* Keep the image centered in its column */
#hours .drhasan-img{ grid-area: img; justify-self: center; }
#hours .drhasan-img img{
  position: relative;
  left: 225px;
  width: clamp(240px, 32vw, 100px);
  height: auto;
}

/* Let the bubbles stretch */
#hours .drhasan-right{
  position: relative;
  left: 225px;
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 260px;   /* remove any cap that was limiting the bubble width */
}

/* Bottom bubble under both columns */
#hours .drhasan-bubble.below{
  grid-area: below;
  justify-self: center;
  width: min(100%, 800px);
  text-align: center;
}


/* === Visit: 2-column layout === */
.visit-grid{
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr; /* left info | right map */
  gap: 18px 22px;
  align-items: start;
}

/* keep the map tall and fill its column */
.visit-wrap .map-wrap{
  align-self: stretch;
}
.visit-wrap .map-wrap iframe{
  width: 100%;
  height: 100%;              /* fill the grid track */
  min-height: 360px;         /* fallback height */
  border: 0;
  border-radius: 12px;
}

/* stack on small screens */
@media (max-width: 780px){
  .visit-grid{
    grid-template-columns: 1fr;
  }
  .visit-wrap .map-wrap iframe{
    height: auto;
    aspect-ratio: 16 / 9;    /* use aspect on mobile */
  }
}

















































/* Call tooltip (real element) */
.mini-nav .btn {
  position: relative;
}
.mini-call-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(3, 4, 8, 0.98);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .85rem;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s, transform .16s, visibility 0s linear .16s;
  z-index: 1700;
}
.mini-call-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-100%);
  border: 8px solid transparent;
  border-bottom-color: rgba(3, 4, 8, 0.98);
}
.mini-nav .btn:hover .mini-call-tooltip,
.mini-nav .btn:focus-visible .mini-call-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}



/* Floating dev popup */
.dev-note{
  position: fixed;
  left: 14px;
  top: calc(var(--header-h, 56px) + 14px);
  z-index: 1100;
  width: fit-content;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(7,11,24,0.95);
  border: 1px solid rgba(99,102,241,0.35);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(3,7,18,0.7);
}

.dev-note strong{
  display:block;
  font-size:0.7rem;
  letter-spacing:0.3px;
  text-transform:uppercase;
  color:#93d7ff;
  margin-bottom:6px;
}

.dev-note__close{
  position:absolute; top:4px; right:4px;
  width:24px; height:24px; border-radius:8px;
  border:1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color:#e9eefc; font-size:16px; line-height:1;
  cursor:pointer;
}
.dev-note__close:hover{ background: rgba(255,255,255,0.12); }

.dev-note{ transform: translateZ(0); transition: transform .16s ease, opacity .16s ease; }
.dev-note:hover{ transform: translateY(-2px) translateX(-1px); }
@media (prefers-reduced-motion: reduce){
  .dev-note, .dev-note:hover{ transition:none; transform:none; }
}

@media (max-width: 980px){
  .dev-note{ display:none; }
}

.dev-note.is-hidden{ opacity:0; pointer-events:none; transform:translateY(-6px); }


/* ---- Availability bubbles: 4 per row (M–Th) ---- */
.avail-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(56px, 1fr)); /* 4 bubbles per row */
  gap: 10px 12px;       /* row x column gap */
  justify-items: center;
  align-items: center;
}

.avail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;   /* smaller pill */
  max-width: 52px;   /* keeps them from stretching too wide */
  padding: 6px 10px; /* tighter padding */
  border-radius: 999px; /* full pill shape */
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

/* optional: keep 4 columns even on small screens */
@media (max-width: 420px) {
  .avail-row { grid-template-columns: repeat(4, 1fr); }
}

/* Force tooltips to render below */
.tooltip-below[data-tip]::after,
.tooltip-below[data-tip]::before {
  top: 100% !important;       /* place below element */
  bottom: auto !important;    /* cancel top default */
  margin-top: 6px;            /* gap between button and tooltip */
}

/* =========================================================
   LIGHT MODE FIXES — Home (cards/borders)
   ========================================================= */
@media screen and (prefers-color-scheme: light){
  body.home-page .card,
  body.home-page .card.glass{
    /* soften borders that look black */
    border-color: rgba(15,23,42,0.10) !important;
    box-shadow: 0 10px 26px rgba(15,23,42,0.10) !important;
  }

  /* the dark inner glow is what makes edges look “black” */
  body.home-page .card.glass::before{
    background: radial-gradient(circle at 50% 45%,
      rgba(255,255,255,0.96) 0%,
      rgba(245,247,252,0.92) 60%,
      rgba(210,220,240,0.50) 100%) !important;
    opacity: 1 !important;
    filter: blur(10px) !important;
  }

  /* text should not inherit any dark glass tint */
  body.home-page .card.glass,
  body.home-page .card.glass > *{
    color: #0f172a !important;
  }
  body.home-page .card.glass .muted{
    color: rgba(15,23,42,0.65) !important;
  }
}

/* =========================================================
   LIGHT MODE FIX — Mini nav should NOT wrap (and never get fat)
   ========================================================= */
body.home-page .mini-nav{
  flex-wrap: nowrap !important;
  overflow: visible;              /* keep tooltips visible */
}

/* keep buttons on one line */
body.home-page .mini-nav .mini-actions{
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

/* prevent buttons from shrinking weirdly */
body.home-page .mini-nav .btn{
  flex: 0 0 auto;
}

/* =========================================================
   LIGHT MODE FIX — Header should be light on home page
   ========================================================= */
 html[data-theme="light"] body.home-page .brand-title{
   color: #0f172a !important;
 }
 html[data-theme="light"] body.home-page .brand-subtitle{
   color: rgba(15,23,42,0.65) !important;
 }
 html[data-theme="light"] body.home-page .site-header .primary-nav .btn{
   color: #0f172a !important;
 }

 @media screen and (prefers-color-scheme: light){
  /* make brand text readable */
  body.home-page .brand-title{
    color: #0f172a !important;
  }
  body.home-page .brand-subtitle{
    color: rgba(15,23,42,0.65) !important;
  }

  /* make “ghost/static” admin/user chips readable too */
  body.home-page .primary-nav .btn,
  body.home-page .primary-nav .btn.is-static{
    color: #0f172a !important;
  }
}

/* =========================================================
   MINI NAV: NEVER WRAP (dark + light)
   ========================================================= */
body.home-page .mini-nav{
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

body.home-page .mini-nav .mini-actions{
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 8px;
}

/* prevent buttons from shrinking weirdly */
body.home-page .mini-nav .btn{
  flex: 0 0 auto !important;
}

/* OPTIONAL: stop the phone button text/icon from forcing wraps */
body.home-page .mini-nav .btn img{
  flex: 0 0 auto;
}


/* =========================================================
   HOME HEADER: LIGHT MODE SHOULD BE LIGHT
   (this must override the dark home header rules in home.css)
   ========================================================= */

/* Prefer light scheme */
@media screen and (prefers-color-scheme: light){
  body.home-page .site-header{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* brand text readable */
  body.home-page .site-header .brand-title{ color: #0f172a !important; }
  body.home-page .site-header .brand-subtitle{ color: rgba(15,23,42,0.65) !important; }

  /* top right buttons readable on light */
  body.home-page .site-header .primary-nav .btn{
    color: #0f172a !important;
  }
}

@media screen and (prefers-color-scheme: light){
  /* Light mode glass: inverted from dark — light core, soft edge, dark text */
  body.home-page main .card.glass{
    position: relative;
    overflow: visible;
    background-clip: padding-box;
    box-sizing: border-box;
  }

  /* ✅ FIX: remove the blue cast in the inner glow (keep it white/pink) */
  body.home-page main .card.glass::before{
    inset: 8px;
    clip-path: inset(4px round var(--radius, 14px));
    background: radial-gradient(circle at 50% 45%,
      rgba(255,255,255,0.96) 0%,
      rgba(250,250,252,0.92) 60%,
      rgba(255,230,240,0.22) 100%);
    filter: blur(14px);
    opacity: 0.88;
    z-index: 0;
  }

  body.home-page main .card.glass > *,
  body.home-page main .card.glass .muted{
    color: #0f172a;
  }
  body.home-page main .card.glass .muted{ color: #334155; }

  /* location & phone text stays dark */
  body.home-page main .card.glass .contact-label,
  body.home-page main .card.glass .contact-value,
  body.home-page main .card.glass .contact-value a,
  body.home-page main .card.glass .phone-link{
    color: #0f172a;
  }

  /* Dr Hasan speech bubbles: light variant with dark text */
  .drhasan-bubble{
    background: linear-gradient(180deg, #e9f4ed, #d9e9df);
    border: 1px solid #9dc7ad;
    color: #0f172a;
  }
  .drhasan-bubble.to-right::before{ border-right-color: #9dc7ad; }
  .drhasan-bubble.below::before{ border-bottom-color: #9dc7ad; }

  /* Icons8: default white; reveal black on hover */
  .icon8-inline{
    filter: invert(1) brightness(3);
    transition: filter .2s ease, transform .2s ease;
  }
  .icon-line:hover .icon8-inline,
  .icon8-inline:hover,
  .icon-radial:hover .icon8-inline,
  .btn:hover .icon8-inline,
  .mini-nav .btn:hover .icon8-inline{
    filter: none;
    transform: translateY(-1px);
  }

  .mini-nav.is-stuck{
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1501;
  }
}

/* Light mode: make mini-nav stick a bit lower while scrolling */
@media screen and (prefers-color-scheme: light){
  body.home-page .mini-nav{
    top: 18px !important;          /* was 5px */
  }

  body.home-page .mini-nav.is-stuck{
    top: 28px !important;          /* was 18px */
  }
}
