/* UCN Urgent Care - main styles */

:root {
  /* Brand palette pulled from UCN logo: navy + red */
  --color-primary: #e3342f; /* primary action red */
  --color-primary-dark: #b91c1c;
  --color-accent: #102a43; /* deep navy accent */
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-border: #dde3f0;
  --color-text: #111827;
  --color-muted: #4b5563;
  --color-danger: #b91c1c;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #f3f4f6;
  text-align: center;
}

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

/* Links: sufficient contrast (4.5:1+) and distinguishable without relying on color alone */
a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

main {
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section--tight {
  padding: 2rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

/* Online Check-In page: steps list single line, left-aligned */
.section--check-in .check-in__steps {
  text-align: left;
  margin: 0 0 1rem;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.section--check-in .check-in__steps .icon-list__item {
  display: inline-flex;
}

.section--check-in .text-muted {
  text-align: center;
}

.section__header {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
  text-align: center;
}

.section__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.section__subtitle {
  color: #000000;
  margin: 0;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Center grid cell content (e.g. section headers in a two-column layout) */
.grid__cell--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Center the "What we treat" three cards so they are not left-aligned on mobile */
.section--services-overview .grid--3 {
  margin-left: auto;
  margin-right: auto;
  max-width: 56rem;
  justify-content: center;
}

/* Short viewport (e.g. landscape phone): keep 2 columns so content doesn’t get cut off */
@media (max-height: 500px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section--services-overview .grid--3 > *:nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: min(100%, 28rem);
  }
}

@media (max-height: 500px) and (min-width: 640px) {
  .portal-actions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Care story – "Care for the whole family" narrative layout */
.care-story {
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .care-story {
    padding-top: 2rem;
  }
}

.care-story__header {
  margin-bottom: 2rem;
}

.care-story__intro {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  color: var(--color-muted);
  font-weight: 500;
}

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

.story-step {
  margin-bottom: 2.5rem;
  position: relative;
}

.story-step:last-child {
  margin-bottom: 0;
}

.story-step__transition {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.story-step__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  white-space: nowrap;
}

.story-step__connector {
  flex: 1;
  height: 2px;
  min-width: 2rem;
  background: linear-gradient(90deg, var(--color-border) 0%, transparent 100%);
  border-radius: 1px;
}

.story-step--last .story-step__transition .story-step__connector {
  display: none;
}

.story-step__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.story-step__images--single {
  grid-template-columns: 1fr;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.story-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.story-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
  display: block;
}

.story-card__caption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0;
}

@media (min-width: 640px) {
  .story-step__images {
    gap: 1.25rem;
  }

  .story-step__images--single {
    max-width: 420px;
  }
}

@media (min-width: 900px) {
  .story-step {
    margin-bottom: 3rem;
    padding-left: 0;
  }

  .story-step__transition {
    margin-bottom: 1.25rem;
  }

  .story-step__label {
    font-size: 0.9rem;
  }

  .story-step__connector {
    max-width: 120px;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(227, 52, 47, 0.2) 100%);
  }

  .story-step__images {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .story-step__images--single {
    max-width: 380px;
  }

  /* First step: 2 images; second: 4 in one row; third: 1 */
  .story-step:first-child .story-step__images {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-step:nth-child(2) .story-step__images {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .story-step--last .story-step__images--single {
    max-width: 400px;
  }

  .story-card__caption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Relatable grid (used elsewhere: services, locations, etc.) */
.relatable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.relatable-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.relatable-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
}

.relatable-card__caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0;
}

@media (min-width: 640px) {
  .relatable-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 900px) {
  .relatable-grid {
    gap: 1.75rem;
  }

  .relatable-card__caption {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

/* Grid variants: 2 columns (locations, contact) or 4 (services) */
.relatable-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

  .relatable-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Single image in prose (landing pages) */
.relatable-inline {
  margin: 1.5rem 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  max-width: 100%;
}

.relatable-inline img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.relatable-inline figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0;
  background: var(--color-surface);
}

.section__title--center {
  text-align: center;
  margin-bottom: 1.25rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.6);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  text-align: left;
}

.card .card__title {
  text-align: center;
}

.card--muted {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.testimonial-card {
  position: relative;
  padding-bottom: 1.25rem;
}

.testimonial-card__rating {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.testimonial-card__stars {
  color: #f97316;
  letter-spacing: 0.05em;
}

.testimonial-card__stars--empty {
  color: #e5e7eb;
}

.testimonial-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-card__name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Center the review cards block (mobile and landscape) */
[data-testimonials] {
  margin-left: auto;
  margin-right: auto;
  max-width: 56rem;
  justify-content: center;
}

/* In 2-column layout (landscape), center the third review card under the first two */
@media (max-height: 500px) {
  [data-testimonials] .testimonial-card:nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: min(100%, 28rem);
  }
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #4b5563;
  background: rgba(255, 255, 255, 0.9);
}

.pill {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(227, 52, 47, 0.08);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-row--center {
  justify-content: center;
}

/* Long logo above footer: mobile only, site-wide */
.page-footer-logo-wrap {
  display: block;
  padding: 1.5rem 1.25rem 0;
  text-align: center;
}

.page-footer-logo {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page-footer-logo__img {
  display: inline-block;
  max-width: 280px;
  width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  min-height: 3rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.45);
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: #0b2135;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(16, 42, 67, 0.6);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.4);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: none;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.4);
}

.btn--ghost {
  background: #ffffff;
  color: var(--color-primary-dark);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #ffffff;
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.45);
}

.btn--small {
  padding: 0.6rem 1.15rem;
  min-height: 3rem;
  font-size: 0.85rem;
  white-space: nowrap;
  text-align: center;
}

.btn--danger {
  background: var(--color-danger);
  box-shadow: 0 10px 26px rgba(185, 28, 28, 0.35);
}

.btn--danger:hover,
.btn--danger:focus-visible {
  background: #991b1b;
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.45);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.chip {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.85);
  font-size: 0.78rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.9);
}

a.chip {
  text-decoration: none;
  color: var(--color-text);
}

a.chip:hover,
a.chip:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack--sm {
  gap: 0.6rem;
}

.stack--lg {
  gap: 1.4rem;
}

.text-muted {
  color: var(--color-muted);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(16, 42, 67, 0.06);
  color: var(--color-primary-dark);
}

.badge--soft {
  background: rgba(15, 23, 42, 0.04);
  color: #4b5563;
}

.badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #22c55e;
}

.badge__dot--warning {
  background: #f97316;
}

.badge__dot--danger {
  background: var(--color-danger);
}

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.kpi {
  min-width: 0;
  flex: 1;
}

.kpi__value {
  font-size: 1.4rem;
  font-weight: 700;
}

.kpi__label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background-color: #e5f0ff; /* light blue header */
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.45);
  flex-shrink: 0;
}

.brand__logo {
  height: 2.5rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand__logo svg {
  height: 100%;
  width: auto;
  display: block;
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background-color: #e3342f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 12px 32px rgba(15, 111, 178, 0.4);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand__subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.nav {
  display: none;
}

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-size: 0.9rem;
  color: #1f2933;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
}

.nav__link--primary {
  font-weight: 600;
  color: var(--color-primary-dark);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4);
}

.nav__link--primary:hover,
.nav__link--primary:focus-visible {
  text-decoration: underline;
}

.nav__cta {
  display: none;
}

.header-ctas {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}

.menu-toggle__icon {
  width: 1.2rem;
  height: 1.2rem;
  position: relative;
}

.menu-toggle__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease,
    bottom 0.18s ease;
}

.menu-toggle__bar:nth-child(1) {
  top: 2px;
}

.menu-toggle__bar:nth-child(2) {
  top: 8px;
}

.menu-toggle__bar:nth-child(3) {
  bottom: 2px;
}

body.nav-open .menu-toggle__bar:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle__bar:nth-child(3) {
  bottom: 8px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 4.25rem; /* just below sticky header */
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent; /* card-style box lives inside */
  display: none; /* hidden by default, shown when body.nav-open */
  max-height: calc(100vh - 4.25rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__inner {
  margin: 0 1rem;
  padding: 1.25rem 1.5rem 2rem;
  background: #ffffff;
  text-align: center;
  border-radius: 0 0 1.5rem 1.5rem;
  border: 1px solid rgba(209, 213, 219, 0.8);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.mobile-nav .btn-row {
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.mobile-nav__link {
  font-size: 0.98rem;
  color: #111827;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 0;
  text-decoration: none;
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  text-decoration: underline;
}

body.nav-open .mobile-nav {
  display: block;
}

/* Desktop nav: only when enough width AND height (so landscape phone keeps hamburger) */
@media (min-width: 900px) and (min-height: 480px) {
  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .nav {
    display: block;
  }

  .header-ctas {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .nav__cta {
    display: inline-flex;
  }
}

/* Hero */

.hero {
  padding: 2rem 0 2rem;
}

.hero__inner {
  display: grid;
  gap: 1.5rem;
}

.hero__inner > div:first-child {
  text-align: center;
}

.hero__inner .hero__ctas {
  justify-content: center;
}

.hero-kpis.kpi-row {
  justify-content: center;
}

.hero__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: 2.35rem;
  line-height: 1.02;
  margin: 0 0 0.65rem;
}

.hero__subtitle {
  font-size: 1rem;
  color: #000000;
  margin: 0 0 1rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  .hero__subtitle {
    display: none;
  }
}

.hero__meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.hero-kpis {
  margin-top: 1.25rem;
}

.hero__logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(209, 213, 219, 0.6);
}

.hero__logo-link {
  display: block;
  width: 85%;
  max-width: 85%;
  line-height: 0;
}

.hero__logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Panel banner: content left, hero box right on inner pages (not index) */
.panel-banner {
  padding: 0.5rem 0 0.75rem;
}

.panel-banner .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  justify-items: center; /* center hero box on mobile */
}

@media (min-width: 768px) {
  .panel-banner .container {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
    justify-items: start; /* reset for desktop layout */
  }
}

/* Wrapper: content (section) left, hero (panel-banner) right */
.panel-banner__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .panel-banner__wrap {
    grid-template-columns: 1fr auto;
  }

  .panel-banner__wrap > .section {
    order: 1;
  }

  .panel-banner__wrap > .panel-banner {
    order: 2;
    padding-top: 4rem; /* align with .section content (same as section padding-top) */
  }
}

.panel-banner__content {
  min-width: 0;
}

.hero-panel--standalone {
  width: 100%;
  max-width: 340px;
  min-width: 0;
}

.hero-panel {
  position: relative;
}

.hero-panel__card {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(209, 213, 219, 0.6);
  overflow: hidden;
  min-width: 0;
}

.hero-panel__top {
  text-align: center;
}

.hero-panel__logo {
  display: block;
  width: 50%;
  max-width: 200px;
  margin: 0 auto 0.5rem;
  line-height: 0;
}

.hero-panel__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Hide body logos on mobile/tablet (header logo stays). Homepage uses .hero__logo-area; inner pages use .hero-panel__logo. */
@media (max-width: 991px) {
  .hero__logo-area {
    display: none !important;
  }
  .hero-panel .hero-panel__logo {
    display: none !important;
  }
}

/* Mobile landscape: viewport width becomes large so use max-height to detect phone. Keep layout portrait-sized so the page doesn’t reflow. */
.hero-panel__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero-panel__pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  white-space: nowrap;
}

.hero-panel__pill--wait {
  background: rgba(227, 52, 47, 0.08);
  color: var(--color-primary-dark);
}

.hero-panel__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(209, 213, 219, 0.8), transparent);
  margin: 0.75rem 0;
}

.hero-panel__body {
  font-size: 0.9rem;
  color: var(--color-muted);
  min-width: 0;
  text-align: center;
}

.hero-panel__reminder {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-panel__reminder strong {
  color: var(--color-accent);
}

.hero-panel__note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.hero-panel__emergency {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.hero-panel__footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.hero-panel__footer .btn {
  width: 100%;
  max-width: 16rem;
  min-width: 0;
  min-height: 2.5rem;
  justify-content: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.hero-floating-badge {
  position: absolute;
  right: 0.5rem;
  top: -0.6rem;
}

@media (min-width: 900px) {
  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

  .hero__inner--single {
    grid-template-columns: 1fr;
  }

  .hero__logo-area {
    padding: 1.25rem 1.5rem;
  }

  .hero__title {
    font-size: 2.8rem;
  }
}

/* Landscape / short viewport: single-column hero and centered content so layout doesn’t look broken */
@media (max-height: 500px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__inner .hero__ctas {
    justify-content: center;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero-kpis.kpi-row {
    justify-content: center;
  }

  [data-testimonials] {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}

/* Portal actions – Reserve, Directions, Contact */
.portal-actions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .portal-actions__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.portal-action {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.portal-action .card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
}

.portal-action__desc,
.portal-action__meta {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.4;
  text-align: left;
}

.portal-action__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.portal-action__btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  min-width: 0;
}

/* Alert banner */

.alert {
  background-color: #e0f2fe; /* soft blue */
  border-bottom: 1px solid rgba(59, 130, 246, 0.5);
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.alert__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.alert__text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert__icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #1d4ed8;
}

.alert__label {
  font-weight: 600;
  color: #1e40af;
}

/* Sections: services, hours, location, etc. */

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.icon-list__item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.icon-list__icon {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  color: var(--color-primary);
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

.hours-list li + li {
  margin-top: 0.15rem;
}

.location-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* FAQ */

.accordion {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.8);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid rgba(209, 213, 219, 0.8);
}

.accordion-header {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  cursor: pointer;
}
.accordion-header:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.accordion-trigger {
  padding: 1rem 1.25rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.accordion-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.accordion-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #4b5563;
  flex-shrink: 0;
}

.accordion-panel {
  padding: 0 1.25rem 1rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.accordion-panel[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .accordion-header {
    text-align: left;
  }

  .accordion-trigger {
    justify-content: flex-start;
  }

  .accordion-title {
    text-align: left;
  }

  .accordion-panel {
    text-align: center;
  }
}

/* Forms */

.form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field__label {
  font-size: 0.85rem;
  font-weight: 500;
}

.field__hint {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.field__control {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.98);
}

.field__control:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}

.field__error {
  font-size: 0.78rem;
  color: var(--color-danger);
  margin-top: 0.15rem;
}

.field--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.field--inline .field__control[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.field--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

textarea.field__control {
  min-height: 120px;
  resize: vertical;
}

/* Decision helper: Urgent care vs ER */

.decision-helper {
  grid-column: 1 / -1;
}

.decision-helper__title {
  font-size: 1.25rem;
}

.decision-helper__intro {
  margin-bottom: 1.25rem;
}

.decision-helper__cols {
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .decision-helper__cols {
    gap: 2rem;
  }
}

.decision-helper__heading {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0 0 0.5rem 0;
}

.decision-helper__col .icon-list {
  margin: 0;
}

/* Landing page prose & FAQ */
.prose {
  max-width: 72ch;
}
.prose--center {
  margin-left: auto;
  margin-right: auto;
  max-width: 68ch;
}
.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem 0;
  color: var(--color-text);
  line-height: 1.3;
}
.prose h2:first-of-type {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1.25rem 0;
  line-height: 1.65;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose .relatable-inline {
  margin: 2rem 0;
}
.faq-dl { margin: 0; }
.faq-dl__q {
  font-weight: 600;
  margin: 1rem 0 0.25rem 0;
  color: var(--color-text);
}
.faq-dl__q:first-child { margin-top: 0; }
.faq-dl__a {
  margin: 0 0 0.75rem 0;
  padding-left: 0;
  line-height: 1.5;
  color: var(--color-muted);
}
.faq-dl__a:last-child { margin-bottom: 0; }

/* Tables / lists */

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.simple-table th,
.simple-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  text-align: center;
}

.simple-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.simple-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.7);
}

/* Footer */

.site-footer {
  padding: 2rem 0 1.5rem;
  background: #1e293b; /* lighter navy footer */
  color: rgba(226, 232, 240, 0.9);
}

.site-footer__inner {
  display: grid;
  gap: 1.75rem;
}

.site-footer__top {
  display: grid;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  text-align: center;
}

.site-footer__brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.site-footer__brand-tagline {
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.98);
}

.site-footer__cols {
  display: grid;
  gap: 1.2rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  display: grid;
  gap: 0.15rem;
}

.footer-list a {
  color: rgba(226, 232, 240, 0.98);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  text-decoration-thickness: 2px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.98);
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    align-items: flex-start;
  }

  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Utility spacing */

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.pt-0 {
  padding-top: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.pb-4 {
  padding-bottom: 1rem;
}

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

/* ----- Scroll reveal: panels animate in as you scroll ----- */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
      opacity 0.55s ease-out,
      transform 0.55s ease-out;
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children (cards, grid items) when the section becomes visible */
  .scroll-reveal.is-visible .scroll-reveal-item {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal .scroll-reveal-item {
    opacity: 0;
    transform: translateY(1rem);
    transition:
      opacity 0.45s ease-out,
      transform 0.45s ease-out;
  }

  .scroll-reveal.is-visible .scroll-reveal-item:nth-child(1) { transition-delay: 0.05s; }
  .scroll-reveal.is-visible .scroll-reveal-item:nth-child(2) { transition-delay: 0.12s; }
  .scroll-reveal.is-visible .scroll-reveal-item:nth-child(3) { transition-delay: 0.19s; }
  .scroll-reveal.is-visible .scroll-reveal-item:nth-child(4) { transition-delay: 0.26s; }
  .scroll-reveal.is-visible .scroll-reveal-item:nth-child(5) { transition-delay: 0.33s; }
  .scroll-reveal.is-visible .scroll-reveal-item:nth-child(6) { transition-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal .scroll-reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

