/* Asher's Care Hospital — shared stylesheet
   Mobile-first. Loaded on every page. */

:root {
  --blue: #4AAEE1;
  --navy: #1f2937;
  --red: #B72935;
  --light-blue: #eef6fd;
  --grey: #6b7280;
  --border: #e5e7eb;
  --header-h: 76px;
  --announce-h: 0px;
  --container: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 40, 70, 0.08);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--announce-h) + var(--header-h));
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-title .eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 1.7rem;
  color: var(--navy);
}

.section-title p {
  margin-top: 12px;
  color: var(--grey);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

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

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

.btn-ghost-blue:hover {
  background: var(--blue);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Partial-injection wrapper divs (#site-header, #site-footer) must not
   generate their own box — a real box here becomes .site-header's
   containing block and, since it's exactly header-height tall with no
   extra room, breaks position:sticky (the header loses its anchor after
   scrolling just past its own height). display:contents makes the
   wrapper transparent to layout so children behave as if they were
   direct children of <body>. */
#site-header,
#site-footer {
  display: contents;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: var(--announce-h);
  z-index: 500;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 40, 70, 0.06);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.1);
}

/* Home page: header starts transparent, overlaid on the full-bleed hero,
   and becomes the standard solid header once the page is scrolled. */
body.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

body.home .site-header:not(.is-scrolled) .main-nav a {
  color: #fff;
}

body.home .site-header:not(.is-scrolled) .main-nav a:hover,
body.home .site-header:not(.is-scrolled) .main-nav a[aria-current="page"] {
  color: #fff;
  border-color: #fff;
}

body.home .site-header:not(.is-scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.22);
}

body.home .site-header:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

body.home .site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--header-h);
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-weight: 500;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
  border-color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile: no corner "Book Appointment" button — the hero's own inline
   Book Appointment button covers that, and Book Now lives in the fixed
   bottom bar. Restored as the corner-pinned pulsing button at desktop
   only (see min-width:992px below), where mobile chrome doesn't apply. */
.header-book {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 501;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 100%;
  width: 76px;
  padding: 0 8px;
  border-radius: 0 0 0 16px;
  font-size: 0.66rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  animation: header-book-pulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.header-book .line2 {
  display: block;
}

@keyframes header-book-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(183, 41, 53, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(183, 41, 53, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-book {
    animation: none;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--light-blue);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: calc(var(--announce-h) + var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 400;
  padding: 24px 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 14px 6px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a[aria-current="page"] {
  color: var(--blue);
}

.mobile-nav-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-cta .btn {
  justify-content: center;
  width: 100%;
}

@media (min-width: 992px) {
  :root {
    --header-h: 128px;
  }

  .main-nav {
    display: block;
  }

  .nav-toggle,
  .mobile-nav,
  .header-actions {
    display: none;
  }

  .header-inner {
    padding-right: 132px;
  }

  .main-nav ul {
    gap: 22px;
  }

  .logo {
    margin-left: -8px;
  }

  .logo img {
    height: 100px;
  }

  .header-book {
    display: flex;
    width: 122px;
    font-size: 0.85rem;
    border-radius: 0 0 0 20px;
  }
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  overflow: hidden;
  height: 78vh;
  min-height: 460px;
  max-height: 720px;
  width: 100%;
}

/* ---------- Contact page hero (photo backdrop + appointment form) ----------
   Reuses the same .hero / .hero-slide crossfade + Ken Burns mechanism as the
   Home hero, but sized by its content (the form card) instead of a fixed
   viewport height, and scrolls normally — not sticky/pinned. */
.hero.contact-hero {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 64px 0;
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
}

.contact-hero .appointment-form {
  max-width: 460px;
  box-shadow: 0 26px 60px rgba(5, 15, 30, 0.4);
}

/* Home page: hero sits full-bleed under the transparent overlay header,
   so add a top scrim purely to keep the header's white text/logo legible
   over whatever photo is behind it. */
body.home .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 170px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 15, 30, 0.55) 0%, rgba(5, 15, 30, 0) 100%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide picture,
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Team photo: heads sit close to the top of the source image, so shift
   the crop window up to keep everyone's head in frame. */
.hero-slide img.hero-img-team {
  object-position: center 22%;
}

/* Essie Towers exterior: the "Asher's Care Hospital" signage sits in the
   bottom ~15% of the source photo, which a center crop already crops
   close to. Bias the static crop toward the bottom so the sign has
   headroom before any zoom is applied. */
.hero-slide img.hero-img-welcome {
  object-position: center 90%;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 30, 50, 0.72) 0%, rgba(15, 30, 50, 0.45) 55%, rgba(15, 30, 50, 0.25) 100%);
}

.hero-slide .hero-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text-inner {
  max-width: 620px;
  color: #fff;
  padding: 0 4px;
}

.hero-text-inner h1 {
  font-size: 1.9rem;
  color: #fff;
}

.hero-text-inner h1 span {
  color: var(--blue);
}

.hero-text-inner p {
  margin-top: 16px;
  color: #e4ecf6;
  font-size: 0.98rem;
}

.hero-text-inner .button {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

@media (min-width: 768px) {
  .hero-text-inner h1 {
    font-size: 2.6rem;
  }

  .hero-text-inner p {
    font-size: 1.05rem;
  }

  .hero-arrow {
    display: flex;
  }
}

@media (min-width: 992px) {
  .hero-text-inner h1 {
    font-size: 3.1rem;
  }
}

/* Ken Burns zoom on the active hero photo */
.hero-slide img {
  transform: scale(1);
  transform-origin: center;
}

.hero-slide.is-active img {
  animation: kenburns 6s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Essie Towers exterior slide only: lower max zoom plus a bottom-anchored
   transform-origin, so the animation grows out from near the sign instead
   of the box center — the sign area barely moves, the crop only eats
   into the sky/upper floors above it, throughout the full 6s cycle. */
.hero-slide.is-active img.hero-img-welcome {
  animation-name: kenburns-welcome;
  transform-origin: 50% 90%;
}

@keyframes kenburns-welcome {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img {
    animation: none;
  }
}

/* ---------- Schedule / info cards ---------- */
.schedule-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  border-top: 4px solid var(--blue);
}

.schedule-card.is-emergency {
  border-top-color: var(--red);
  background: linear-gradient(160deg, #fff 55%, #fff2f2 100%);
}

.schedule-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--light-blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.is-emergency .schedule-icon {
  background: #ffe4e4;
  color: var(--red);
}

.schedule-card .eyebrow {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 6px;
}

.schedule-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.schedule-card p {
  color: var(--grey);
  font-size: 0.94rem;
}

.schedule-card .card-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-card .card-links a {
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.schedule-card .card-links a:hover {
  text-decoration: underline;
}

.hours-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.hours-list li span {
  font-weight: 600;
  color: var(--navy);
}


/* ---------- Features ---------- */
.features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.feature-card {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--grey);
  font-size: 0.94rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--blue);
  color: #fff;
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

.stat-item p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Who we are / Mission & Vision ---------- */
.who-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.focus-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.beyond-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .focus-grid,
  .beyond-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Program videos (Mentorship) ---------- */
.video-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #000;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Click-to-flip maroon bubbles (Mentorship) ---------- */
.flip-card {
  perspective: 1200px;
  cursor: pointer;
  height: 210px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.flip-card-front .feature-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.flip-card-front h3 {
  color: #fff;
  font-size: 1.1rem;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-back p {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none;
  }
}

.who-card {
  background: var(--light-blue);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 2px solid transparent;
}

.who-card.vision {
  background: #fff2f2;
}

.who-card .who-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.who-card.vision .who-icon {
  color: var(--red);
}

.who-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.who-card p {
  color: var(--navy);
  opacity: 0.85;
}

.who-facts {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.who-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--grey);
}

.who-fact i {
  color: var(--blue);
  margin-top: 3px;
}

@media (min-width: 768px) {
  .who-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .who-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Emergency CTA band ---------- */
.emergency-band {
  position: relative;
  background: var(--red);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.emergency-band .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.emergency-band h2 {
  color: #fff;
  font-size: 1.5rem;
}

.emergency-band a.phone-link {
  color: #ffd9d9;
  text-decoration: underline;
}

.emergency-band p {
  margin-top: 14px;
  color: #ffe1e1;
}

.emergency-band .button {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Find us ---------- */
.find-us {
  background: var(--light-blue);
}

.find-us-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.find-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.find-card .find-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.find-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.find-card p, .find-card a {
  color: var(--grey);
  font-size: 0.94rem;
}

.find-card a:hover {
  color: var(--blue);
}

@media (min-width: 768px) {
  .find-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.92);
}

.footer-top {
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.footer-col h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer-col .logo {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-col .logo img {
  height: 100px;
  margin-bottom: 0;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-social a:hover {
  background: var(--blue);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact li a {
  color: inherit;
}

.footer-contact li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Mobile sticky bottom bar ---------- */
/* The left slot (previously "Call") now belongs to the floating 24/7
   badge, which is independently position:fixed over that same slot —
   see .open-badge below. Book Now keeps the right half. */
.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 450;
  height: 62px;
  display: flex;
  justify-content: flex-end;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(15, 40, 70, 0.12);
}

.mobile-call-bar a {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.mobile-call-bar .whatsapp {
  background: #1f9c50;
  color: #fff;
}

body {
  padding-bottom: 62px;
}

@media (min-width: 992px) {
  .mobile-call-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 550;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: scale(1.06);
}

@media (min-width: 992px) {
  .whatsapp-float {
    bottom: 24px;
  }
}

/* Mobile only: hide the WhatsApp float and 24/7 badge while the
   hamburger menu is open — they'd otherwise render on top of it. The
   hamburger menu doesn't exist at desktop widths (see min-width:992px
   above), so this is scoped the same way as a defensive no-op there. */
@media (max-width: 991px) {
  .whatsapp-float.is-hidden-by-menu,
  .open-badge.is-hidden-by-menu {
    display: none;
  }
}

/* ---------- Utility reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Inner page banner (Doctors, About, etc.) ---------- */
.page-banner {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 52px 0 44px;
}

.page-banner h1 {
  color: #fff;
  font-size: 1.9rem;
}

@media (min-width: 768px) {
  .page-banner h1 {
    font-size: 2.4rem;
  }
}

/* Pulsing announcement badge under a page-banner H1 (e.g. Mentorship's
   "Season 4 is Coming") — reuses the exact header-book-pulse animation. */
.announce-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  animation: header-book-pulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .announce-badge {
    animation: none;
  }
}

/* ---------- Narrow centered content ---------- */
.narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-tight {
  padding-top: 0;
}

.section-alt {
  background: var(--light-blue);
}

/* ---------- Prose (About page body copy) ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose .eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.prose h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 26px 0 12px;
}

.prose p {
  color: var(--navy);
  opacity: 0.88;
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose .prose-tagline {
  margin-top: 22px;
  font-weight: 700;
  color: var(--blue);
  opacity: 1;
}

/* Mentorship "Join the Journey" Call/WhatsApp buttons — forced onto one
   line on mobile via smaller padding/font, restored to their original
   comfortable size at desktop (untouched). */
.join-journey-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 26px;
}

.join-journey-buttons .btn {
  flex: 1 1 0;
  padding: 11px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .join-journey-buttons {
    gap: 14px;
    flex-wrap: wrap;
  }

  .join-journey-buttons .btn {
    flex: 0 0 auto;
    padding: 13px 26px;
    font-size: 0.95rem;
  }
}

/* Colored content bubbles — reference pattern for the site's color-variety
   pass. Same .prose text rhythm, dropped into a solid brand-color card. */
.content-bubble {
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.content-bubble.is-blue {
  background: var(--blue);
}

.content-bubble.is-maroon {
  background: var(--red);
}

.content-bubble .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.content-bubble h2,
.content-bubble h3 {
  color: #fff;
}

.content-bubble p {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.content-bubble .prose-tagline {
  color: #fff;
}

/* ---------- Coming soon card (Doctors) ---------- */
.coming-soon-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
}

.coming-soon-card .schedule-icon {
  margin: 0 auto 18px;
}

.coming-soon-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.coming-soon-card p {
  color: var(--grey);
}

.coming-soon-card .button {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Outpatient / specialized service cards ---------- */
.outpatient-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.outpatient-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.outpatient-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.outpatient-card h3 {
  padding: 16px 18px;
  font-size: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .outpatient-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .outpatient-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.specialized-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.specialized-card.text-only {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.specialized-card.text-only .feature-icon {
  margin-left: auto;
  margin-right: auto;
}

.specialized-card.text-only h3 {
  font-size: 1.05rem;
}

.single-card {
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .specialized-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Clinic schedule filter + table ---------- */
.day-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.day-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.day-chip:hover {
  border-color: var(--blue);
}

.day-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.clinic-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.clinic-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 40, 70, 0.14);
}

.clinic-card picture,
.clinic-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.clinic-card-body {
  padding: 20px 22px;
  text-align: center;
}

.clinic-card.text-only .clinic-card-body {
  padding-top: 28px;
  padding-bottom: 28px;
}

.clinic-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.clinic-card-body .clinic-days {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.86rem;
}

.clinic-card-body .clinic-hours {
  margin-top: 3px;
  color: var(--grey);
  font-size: 0.86rem;
}

.clinic-card.is-hidden {
  display: none;
}

.table-empty {
  text-align: center;
  padding: 30px;
  color: var(--grey);
  display: none;
}

.table-empty.is-visible {
  display: block;
}

@media (min-width: 640px) {
  .clinic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .clinic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Map ---------- */
.map-wrap {
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: block;
  cursor: pointer;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.map-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #f2d98a;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #7a5f10;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.map-directions {
  margin-top: 18px;
  text-align: center;
}

.map-directions .btn {
  font-size: 0.9rem;
}

/* ---------- Appointment form ---------- */
.appointment-form {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--navy);
  background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid #f2d98a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
  color: #7a5f10;
  margin-bottom: 18px;
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #eafaf0;
  border: 1px solid #a9e6c1;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #1c6b3c;
  margin-top: 18px;
}

.form-success.is-visible {
  display: flex;
}

/* ---------- Blog ---------- */
/* Mobile-only category picker, near the top of the page — replaces the
   sidebar's Blog Categories list on mobile (that list moves back in at
   the 900px breakpoint below, alongside .blog-sidebar). */
.blog-category-picker {
  margin-bottom: 24px;
}

.blog-category-picker select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
}

.blog-category-picker select:focus {
  outline: none;
  border-color: var(--blue);
}

.blog-sidebar {
  display: none;
}

@media (min-width: 900px) {
  .blog-category-picker {
    display: none;
  }

  .blog-sidebar {
    display: block;
  }
}

.blog-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 32px 24px;
}

.article-card .category-tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.article-card h2 {
  font-size: 1.5rem;
  margin-bottom: 22px;
  cursor: pointer;
}

.article-card p {
  color: var(--navy);
  opacity: 0.9;
  line-height: 1.75;
  margin-bottom: 18px;
}

.article-card .pull-quote {
  border-left: 4px solid var(--blue);
  background: var(--light-blue);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  margin: 28px 0;
}

.article-card .pull-quote p {
  margin-bottom: 0;
  opacity: 1;
}

.blog-sidebar .widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 26px 24px;
}

.blog-sidebar .widget h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-list li {
  padding: 10px 14px;
  background: var(--light-blue);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.category-list li:hover {
  background: var(--blue);
  color: #fff;
}

.category-list li.is-active {
  background: var(--blue);
  color: #fff;
}

.blog-empty {
  display: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
  color: var(--grey);
}

.blog-empty.is-visible {
  display: block;
}

@media (min-width: 900px) {
  .blog-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .article-card {
    padding: 40px 44px;
  }
}

/* ---------- Mission / Vision click-to-reveal bubbles (Home) ---------- */
.mv-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.mv-bubble {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 30px 20px;
  border-radius: 999px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.mv-bubble:hover {
  transform: translateY(-2px);
}

.mv-bubble[aria-expanded="true"] {
  background: var(--blue);
  color: #fff;
}

.mv-reveal {
  margin-top: 16px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mv-reveal p {
  color: var(--navy);
  opacity: 0.9;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .mv-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

/* ---------- Why Choose Us — six text-only bubbles (Home) ---------- */
.choose-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.choose-bubble {
  background: var(--blue);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.choose-bubble:hover {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 28px 54px rgba(15, 40, 70, 0.4);
  background: var(--blue);
}

.choose-bubble h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.choose-bubble p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.6;
}

.choose-bubble a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .choose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Simple services blurb (Home) ---------- */
.services-blurb {
  text-align: center;
}

.services-blurb .btn {
  margin-top: 22px;
}

/* ---------- Insurance We Accept (Home) ---------- */
.insurance-heading {
  max-width: 380px;
  margin: 0 auto 32px;
  text-align: center;
  background: var(--blue);
  border-radius: 999px;
  padding: 18px 32px;
  box-shadow: var(--shadow);
}

.insurance-heading h2 {
  color: #fff;
  font-size: 1.35rem;
}

.insurance-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.insurance-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 40, 70, 0.14);
}

.insurance-card img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  object-fit: contain;
}

.insurance-card.text-only span {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-align: center;
}

@media (min-width: 640px) {
  .insurance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Core Values — simple horizontal list (Home) ---------- */
.core-values-list {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}

.core-values-list li {
  padding: 14px 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  border-bottom: 1px dashed var(--border);
}

.core-values-list li:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .core-values-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
  }

  .core-values-list li {
    padding: 4px 24px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .core-values-list li:last-child {
    border-right: none;
  }
}

/* ---------- 24/7 "open" badge ----------
   Mobile: sits flush in the left slot of the fixed bottom bar (where
   Call used to be) — this is its only position on mobile, not a
   separate floating element. Desktop: restored to its original
   floating pill above the WhatsApp button, untouched, via the
   min-width:992px override below. */
.open-badge {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 549;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 50%;
  height: 62px;
  background: var(--blue);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0 8px;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.2s ease;
}

.open-badge.is-over-footer {
  background: var(--red);
}

.open-badge-text {
  display: flex;
  flex-direction: column;
}

.open-badge-text span:nth-child(2) {
  font-weight: 800;
}

.open-badge-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
}

.open-badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  animation: badge-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes badge-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .open-badge-dot::after {
    animation: none;
  }
}

@media (min-width: 992px) {
  .open-badge {
    left: auto;
    right: 20px;
    bottom: 104px;
    width: auto;
    max-width: 220px;
    height: auto;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 16px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  }
}
