/* ========================================================================== 
   VYTALGUARD PUBLIC HOMEPAGE — PREMIUM COMPACT CARE HUB
   This file is intentionally loaded after homepage.css as the single,
   maintainable presentation layer for compact public-homepage behavior.
========================================================================== */

:root {
  --topbar-height: 36px;
  --navbar-height: 68px;
  --header-total-height:
    calc(var(--topbar-height) + var(--navbar-height));
  --compact-section-space:
    clamp(34px, 4vw, 46px);
  --compact-section-space-mobile:
    clamp(24px, 6vw, 32px);
  --compact-content-gap:
    clamp(12px, 1.6vw, 18px);
  --compact-rule:
    color-mix(in srgb, var(--color-primary) 18%, var(--border-subtle));
}

.homepage--compact {
  line-height: 1.42;
}

.homepage--compact .container {
  width: min(100% - 40px, var(--container-width));
}

.homepage--compact .section {
  padding-block: var(--compact-section-space);
}

.homepage--compact .section-heading {
  margin-bottom: clamp(16px, 2vw, 22px);
  gap: 6px;
}

.homepage--compact .section-heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.homepage--compact .section-heading > p:last-child,
.homepage--compact .section-heading > div > p:last-child {
  max-width: 680px;
  font-size: clamp(0.86rem, 1.25vw, 0.96rem);
  line-height: 1.45;
}

.homepage--compact .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

/* Persistent premium text-link treatment. */

.homepage--compact .text-link,
.homepage--compact .quick-access__link,
.homepage--compact .site-footer__column a:not(.button),
.homepage--compact .site-footer__legal a,
.homepage--compact .site-footer__legal button {
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-color:
    color-mix(in srgb, currentColor 54%, transparent);
}

.homepage--compact .text-link {
  display: inline-flex;
  min-height: 32px;
  padding-block: 4px;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font-weight: 760;
}

.homepage--compact .text-link--prominent {
  font-size: 0.88rem;
}

.homepage--compact .text-link--inverse,
.homepage--compact .hero__secondary-link {
  color: #ffffff;
}

.homepage--compact .text-link:hover,
.homepage--compact .quick-access__link:hover {
  color: var(--color-primary-hover);
  text-decoration-thickness: 2px;
}

.homepage--compact .text-link--inverse:hover,
.homepage--compact .hero__secondary-link:hover {
  color: #ffffff;
}

/* The accessibility preference now has a complete visual contract. */

html[data-underline-links="true"] .homepage--compact a:not(.button),
html[data-underline-links="true"] .homepage--compact button.site-footer__toggle {
  text-decoration-line: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 0.22em !important;
}

/* ========================================================================== 
   COMPACT HEADER
========================================================================== */

.homepage--compact .topbar {
  min-height: var(--topbar-height);
}

.homepage--compact .topbar__inner {
  min-height: var(--topbar-height);
}

.homepage--compact .topbar__message,
.homepage--compact .topbar__link,
.homepage--compact .facility-switcher__button {
  font-size: 0.72rem;
  line-height: 1.2;
}

.homepage--compact .topbar__actions,
.homepage--compact .topbar__contact {
  gap: 14px;
}

.homepage--compact .navbar,
.homepage--compact .navbar__inner {
  min-height: var(--navbar-height);
}

.homepage--compact .brand {
  max-width: min(280px, 24vw);
  gap: 10px;
}

.homepage--compact .brand__logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
}

.homepage--compact .brand__name {
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
}

.homepage--compact .brand__subtitle {
  max-width: 200px;
  overflow: hidden;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1181px) {
  .homepage--compact .navbar__inner {
    gap: 18px;
  }

  .homepage--compact .navbar__menu {
    min-width: 0;
    gap: 14px;
  }

  .homepage--compact .navbar__links {
    min-width: 0;
    gap: 2px;
  }

  .homepage--compact .navbar__link {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .homepage--compact .navbar__actions {
    flex: 0 0 auto;
    gap: 9px;
  }

  .homepage--compact .navbar__actions .button {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 0.73rem;
  }

  .homepage--compact .language-switcher,
  .homepage--compact .theme-switcher {
    padding: 2px;
  }

  .homepage--compact .language-switcher__button,
  .homepage--compact .theme-switcher__button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.66rem;
  }
}

.homepage--compact .navbar__portal-link {
  min-height: 32px;
  padding-inline: 2px;
  font-size: 0.73rem;
}

.homepage--compact .navbar__more {
  position: relative;
}

.homepage--compact .navbar__more-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.homepage--compact .navbar__more-toggle i {
  margin-left: 3px;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.homepage--compact .navbar__more.is-open .navbar__more-toggle i {
  transform: rotate(180deg);
}

@media (min-width: 1181px) {
  .homepage--compact .navbar__more-menu {
    position: absolute;
    z-index: var(--z-dropdown);
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    width: 210px;
    margin: 0;
    padding: 8px;
    gap: 2px;
    border: 1px solid var(--border-default);
    border-radius: 14px;
    background: var(--surface-elevated);
    box-shadow: var(--shadow-lg);
    list-style: none;
  }

  .homepage--compact .navbar__more-menu[hidden] {
    display: none;
  }

  .homepage--compact .navbar__more-menu .navbar__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 9px;
  }
}

/* ========================================================================== 
   COMPACT HERO
========================================================================== */

.homepage--compact #hero-slider {
  height: clamp(520px, 55vw, 660px);
  min-height: 520px !important;
}

.homepage--compact #hero-slider-track .hero-slide .hero__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 410px);
  gap: clamp(28px, 5vw, 72px);
  padding-block: 42px 54px;
}

.homepage--compact .hero__content {
  max-width: 650px;
}

.homepage--compact .hero__content h1 {
  margin-block: 10px 12px;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 0.99;
  letter-spacing: -0.05em;
}

.homepage--compact .hero__subtitle,
.homepage--compact .hero__description {
  max-width: 590px;
  font-size: clamp(0.92rem, 1.45vw, 1.06rem);
  line-height: 1.55;
}

.homepage--compact .hero__actions {
  margin-top: 22px;
  align-items: center;
  gap: 18px;
}

.homepage--compact .hero__actions .button {
  min-height: 46px;
  padding: 12px 20px;
  font-size: 0.82rem;
}

.homepage--compact .appointment-card {
  padding: clamp(20px, 2.7vw, 28px);
  border-radius: 22px;
}

.homepage--compact .appointment-card .section-heading {
  margin-bottom: 16px;
}

.homepage--compact .appointment-card .section-heading h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.homepage--compact .appointment-card .form {
  gap: 12px;
}

.homepage--compact .appointment-card .form__group {
  gap: 5px;
}

.homepage--compact .appointment-card label,
.homepage--compact .appointment-card .form__security-message {
  font-size: 0.7rem;
}

.homepage--compact .appointment-card input,
.homepage--compact .appointment-card select {
  min-height: 42px;
  padding-block: 8px;
  font-size: 0.78rem;
}

.homepage--compact #hero-slider-previous,
.homepage--compact #hero-slider-next {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 13px;
}

.homepage--compact #hero-slider-utilities {
  bottom: 16px !important;
}

/* ========================================================================== 
   QUICK ACCESS
========================================================================== */

.homepage--compact .quick-access {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-page);
  box-shadow: 0 12px 34px rgb(15 23 42 / 5%);
}

.homepage--compact .quick-access .container {
  width: min(100% - 40px, 1320px);
}

/* Keep the accessible title out of the visual layout even when legacy
   heading rules are more aggressive. */

.homepage--compact
  #quick-access-title.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.homepage--compact .quick-access__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 66px;
  align-items: stretch;
}

.homepage--compact .quick-access__link {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 11px 10px;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 7px;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.18;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.homepage--compact .quick-access__link:last-child {
  border-right: 0;
}

.homepage--compact .quick-access__link > i:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 0.95rem;
}

.homepage--compact .quick-access__link > i:last-child {
  color: var(--color-primary);
  font-size: 0.78rem;
  transition: transform var(--duration-fast) var(--ease-premium);
}

.homepage--compact .quick-access__link:hover {
  background: var(--color-primary-soft);
}

.homepage--compact .quick-access__link:hover > i:last-child {
  transform: translate(2px, -2px);
}

/* ========================================================================== 
   COMPACT CONTENT AND PREVIEWS
========================================================================== */

.homepage--compact .section-actions {
  margin-top: 16px;
}

.homepage--compact #services-grid > :nth-child(n + 5),
.homepage--compact #providers-grid > :nth-child(n + 5),
.homepage--compact #locations-grid > :nth-child(n + 5),
.homepage--compact #gallery-grid > :nth-child(n + 5),
.homepage--compact #news-grid > :nth-child(n + 4) {
  display: none;
}

.homepage--compact .services__grid,
.homepage--compact .providers__grid,
.homepage--compact .locations__grid,
.homepage--compact .gallery__grid,
.homepage--compact .news__grid {
  gap: var(--compact-content-gap);
}

.homepage--compact .service-card,
.homepage--compact .provider-card,
.homepage--compact .location-card,
.homepage--compact .news-card,
.homepage--compact .contact-card {
  border-radius: 18px;
}

/* ========================================================================== 
   COMBINED TRUST HUB
========================================================================== */

.homepage--compact .trust-hub {
  border-block: 1px solid var(--compact-rule);
  background:
    linear-gradient(
      180deg,
      var(--surface-soft),
      var(--surface-page)
    );
}

.homepage--compact .trust-hub > .section {
  padding-block: clamp(30px, 4vw, 44px);
  background: transparent;
}

.homepage--compact .trust-hub > .section + .section {
  border-top: 1px solid var(--compact-rule);
}

.homepage--compact .trust-hub .statistics {
  color: var(--text-inverse);
  background:
    linear-gradient(
      120deg,
      var(--secondary-950),
      color-mix(in srgb, var(--color-primary) 24%, var(--secondary-950))
    );
}

.homepage--compact .statistics__grid,
.homepage--compact .insurance__grid {
  gap: 14px;
}

.homepage--compact .insurance__search-wrap {
  margin-bottom: 20px;
}

.homepage--compact .insurance__footer {
  margin-top: 18px;
}

.homepage--compact .partners__track,
.homepage--compact .accreditations__track {
  gap: 14px;
}

/* ========================================================================== 
   TABBED MEDIA HUB
========================================================================== */

.homepage--compact .media-hub {
  padding-block: var(--compact-section-space);
  color: var(--text-primary);
  background: var(--surface-soft);
  transition:
    color var(--duration-normal) var(--ease-standard),
    background-color var(--duration-normal) var(--ease-standard);
}

.homepage--compact .media-hub[data-active-panel="video-gallery"] {
  color: var(--text-inverse);
  background: var(--secondary-950);
}

.homepage--compact .media-hub__header {
  display: flex;
  margin-bottom: 22px;
  justify-content: center;
}

.homepage--compact .media-hub__tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}

.homepage--compact .media-hub__tab {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
}

.homepage--compact .media-hub__tab.is-active {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.homepage--compact .media-hub > .section {
  padding-block: 0;
  color: inherit;
  background: transparent;
}

.homepage--compact .media-hub > .section .section-heading h2,
.homepage--compact .media-hub > .section .section-heading p {
  color: inherit;
}

.homepage--compact .media-hub[data-active-panel="video-gallery"]
  .media-hub__tabs {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 9%);
}

.homepage--compact .gallery__filters {
  gap: 6px;
}

/* ========================================================================== 
   COMPACT PORTAL, CTA, CONTACT AND FOOTER
========================================================================== */

.homepage--compact .portal-promotion,
.homepage--compact .appointment-cta {
  padding-block: clamp(28px, 3.5vw, 40px);
}

.homepage--compact .portal-promotion__shell,
.homepage--compact .appointment-cta__shell,
.homepage--compact .newsletter__shell,
.homepage--compact .contact-form {
  border-radius: 22px;
}

.homepage--compact .contact__layout {
  grid-template-columns:
    minmax(0, 0.94fr)
    minmax(0, 1.06fr);
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: 0;
}

.homepage--compact .contact__cards {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ========================================================================== 
   PREMIUM DENSITY REFINEMENT
   These selectors intentionally outrank the legacy spacious component layer.
========================================================================== */

/* About and narrative content */

.homepage--compact .about__layout {
  gap: clamp(30px, 4.5vw, 58px);
}

.homepage--compact .about__media {
  min-height: clamp(420px, 44vw, 540px);
}

.homepage--compact .about__content h2 {
  margin-top: 8px;
}

.homepage--compact .about__description {
  gap: 8px;
  margin-top: 14px;
}

.homepage--compact .about__description p {
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  line-height: 1.52;
}

.homepage--compact .about__highlights,
.homepage--compact .about__values {
  margin-top: clamp(16px, 2vw, 22px);
}

.homepage--compact .about__highlights li {
  padding: 10px 12px 10px 39px;
  line-height: 1.35;
}

.homepage--compact .about__values > * {
  padding: 13px;
}

.homepage--compact .about__actions {
  margin-top: clamp(18px, 2.5vw, 26px);
  gap: 14px;
}

/* Portal, calls to action and newsletter */

.homepage--compact .portal-promotion__shell {
  min-height: clamp(410px, 46vw, 520px);
  gap: clamp(28px, 4vw, 54px);
  padding: clamp(25px, 3.5vw, 42px);
  border-radius: 24px;
}

.homepage--compact .portal-promotion__content > p:not(.eyebrow) {
  margin-top: 14px;
  font-size: clamp(0.86rem, 1.2vw, 0.96rem);
  line-height: 1.52;
}

.homepage--compact .portal-promotion__features {
  gap: 8px 12px;
  margin-top: 18px;
}

.homepage--compact .portal-promotion__features li {
  gap: 8px;
  padding: 9px 11px;
  font-size: 0.76rem;
  line-height: 1.34;
}

.homepage--compact .portal-promotion__actions {
  margin-top: 20px;
}

.homepage--compact .appointment-cta__shell {
  min-height: clamp(178px, 20vw, 228px);
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: 24px;
}

.homepage--compact .appointment-cta__content {
  gap: clamp(14px, 2vw, 20px);
}

.homepage--compact .appointment-cta__icon {
  width: clamp(54px, 5.5vw, 64px);
  height: clamp(54px, 5.5vw, 64px);
  flex-basis: clamp(54px, 5.5vw, 64px);
  border-radius: 18px;
  font-size: 1.35rem;
}

.homepage--compact .appointment-cta__content h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
}

.homepage--compact #appointment-cta-description {
  margin-top: 9px;
  font-size: clamp(0.84rem, 1.15vw, 0.94rem);
  line-height: 1.48;
}

.homepage--compact .appointment-cta__actions .button {
  min-width: 156px;
}

.homepage--compact .newsletter__shell {
  gap: clamp(22px, 3.5vw, 42px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 21px;
}

.homepage--compact .newsletter__content {
  gap: 14px;
}

.homepage--compact .newsletter__icon {
  width: clamp(48px, 5vw, 58px);
  height: clamp(48px, 5vw, 58px);
  flex-basis: clamp(48px, 5vw, 58px);
  border-radius: 16px;
  font-size: 1.2rem;
}

.homepage--compact .newsletter__content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

.homepage--compact #newsletter-description {
  margin-top: 7px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.homepage--compact .newsletter__field {
  gap: 6px;
  padding: 5px;
  border-radius: 15px;
}

.homepage--compact .newsletter__field input,
.homepage--compact .newsletter__field .button {
  min-height: 42px;
}

.homepage--compact .newsletter__field input {
  padding-block: 9px;
  font-size: 0.8rem;
}

.homepage--compact .newsletter__field .button {
  min-width: 126px;
  border-radius: 11px;
  font-size: 0.74rem;
}

.homepage--compact .newsletter__consent {
  gap: 8px;
  margin-top: 10px;
  font-size: 0.67rem;
  line-height: 1.36;
}

.homepage--compact
  .newsletter__consent input[type="checkbox"] {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  margin-top: 0;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-elevated);
  place-content: center;
}

.homepage--compact
  .newsletter__consent input[type="checkbox"]::before {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(-45deg) scale(0);
  transition: transform var(--duration-fast) var(--ease-premium);
}

.homepage--compact
  .newsletter__consent input[type="checkbox"]:checked {
  border-color: var(--color-primary);
  background: var(--gradient-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.homepage--compact
  .newsletter__consent input[type="checkbox"]:checked::before {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.homepage--compact
  .newsletter__consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--homepage-focus-ring);
}

.homepage--compact .newsletter__message {
  min-height: 0;
  margin-top: 7px;
  font-size: 0.7rem;
  line-height: 1.32;
}

.homepage--compact .newsletter__message:empty {
  display: none;
}

.homepage--compact .emergency-banner {
  padding-block: clamp(18px, 2.5vw, 26px);
}

/* Service, provider, news and statistics previews */

.homepage--compact .service-card__media {
  height: clamp(160px, 17vw, 200px);
}

.homepage--compact .provider-card__media {
  height: clamp(225px, 24vw, 285px);
}

.homepage--compact .service-card__content,
.homepage--compact .provider-card__content,
.homepage--compact .news-card__content {
  padding: clamp(15px, 1.8vw, 20px);
}

.homepage--compact .service-card__content
  [data-service-description] {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.46;
  -webkit-line-clamp: 2;
}

.homepage--compact .service-card__footer {
  min-height: 32px;
  padding-top: 12px;
}

.homepage--compact .provider-card__content {
  gap: 13px;
}

.homepage--compact .provider-card__department,
.homepage--compact .provider-card__location {
  gap: 7px;
  margin-top: 7px;
  font-size: 0.74rem;
  line-height: 1.36;
}

.homepage--compact .provider-card__languages {
  gap: 5px;
  margin-top: 8px;
}

.homepage--compact .provider-card__languages span,
.homepage--compact .provider-card__languages small {
  min-height: 24px;
  padding: 4px 8px;
}

.homepage--compact .provider-card__actions {
  padding-top: 12px;
}

.homepage--compact .news-card {
  min-height: clamp(168px, 17vw, 198px);
}

.homepage--compact .news-card__content h3 {
  margin-top: 8px;
  line-height: 1.32;
}

.homepage--compact .news-card__content
  [data-news-summary] {
  line-height: 1.42;
  -webkit-line-clamp: 2;
}

.homepage--compact .statistic-card {
  min-height: 158px;
  gap: 8px;
  padding: clamp(17px, 2vw, 24px);
  border-radius: 18px;
}

.homepage--compact .statistic-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.1rem;
}

.homepage--compact .statistic-card strong {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

/* Locations: compact filters, denser cards, disciplined detail rows. */

.homepage--compact .locations__header-actions {
  gap: 4px;
  padding: 4px;
}

.homepage--compact .locations__header-actions .button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.72rem;
}

.homepage--compact .locations__filters {
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 16px;
}

.homepage--compact .locations__filters label {
  margin-bottom: 4px;
  font-size: 0.69rem;
}

.homepage--compact .locations__filters input,
.homepage--compact .locations__filters select,
.homepage--compact .locations__filters #locations-use-position {
  min-height: 42px;
  font-size: 0.76rem;
}

.homepage--compact .locations__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--compact-content-gap);
}

.homepage--compact .location-card__media {
  height: clamp(158px, 16vw, 192px);
}

.homepage--compact .location-card__logo {
  width: 54px;
  height: 54px;
  padding: 7px;
  border-radius: 14px;
}

.homepage--compact .location-card__distance {
  top: 11px;
  right: 11px;
  min-height: 29px;
  padding: 6px 9px;
  font-size: 0.65rem;
}

.homepage--compact .location-card__content {
  padding: clamp(14px, 1.7vw, 19px);
}

.homepage--compact .location-card__content h3 {
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
  line-height: 1.24;
}

.homepage--compact .location-card__detail {
  gap: 7px;
  margin-top: 7px;
  font-size: 0.73rem;
  line-height: 1.34;
}

.homepage--compact .location-card__detail i {
  margin-top: 1px;
  font-size: 0.84rem;
}

.homepage--compact .location-card__services {
  gap: 5px;
  margin-top: 10px;
}

.homepage--compact .location-card__services span,
.homepage--compact .location-card__services a {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 0.61rem;
}

.homepage--compact .location-card__actions {
  gap: 8px;
  padding-top: 12px;
}

.homepage--compact .location-card__actions .text-link {
  min-height: 28px;
  padding-block: 3px;
  font-size: 0.73rem;
}

.homepage--compact .locations__map-view {
  margin-top: 18px;
}

.homepage--compact .locations__map-layout {
  min-height: clamp(440px, 46vw, 540px);
}

.homepage--compact .locations__map-sidebar {
  max-height: clamp(440px, 46vw, 540px);
  gap: 6px;
  padding: 10px;
}

.homepage--compact .location-map-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 10px;
}

.homepage--compact .location-map-item__number {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.homepage--compact .location-map-item > span:nth-child(2) {
  gap: 2px;
}

.homepage--compact .location-map-item small {
  line-height: 1.32;
}

/* Contact: balanced information cards and a compact custom-styled form. */

.homepage--compact .contact-card {
  gap: 10px;
  padding: clamp(12px, 1.4vw, 16px);
  border-radius: 15px;
}

.homepage--compact .contact-card__icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 12px;
  font-size: 1rem;
}

.homepage--compact .contact-card > div {
  gap: 3px;
}

.homepage--compact .contact-card strong {
  font-size: 0.8rem;
  line-height: 1.24;
}

.homepage--compact .contact-card address,
.homepage--compact .contact-card a:not(.text-link),
.homepage--compact .contact-card #contact-hours {
  font-size: 0.74rem;
  line-height: 1.36;
}

.homepage--compact .contact-card small {
  font-size: 0.66rem;
  line-height: 1.32;
}

.homepage--compact .contact-card .text-link {
  min-height: 27px;
  margin-top: 2px;
  padding-block: 2px;
  font-size: 0.7rem;
}

.homepage--compact .contact__social {
  margin-top: 12px;
  padding: 13px;
  border-radius: 15px;
}

.homepage--compact .contact__social > strong {
  margin-bottom: 8px;
  font-size: 0.76rem;
}

.homepage--compact .contact__social-links {
  gap: 7px;
}

.homepage--compact .contact__social-links .social-link {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 0.92rem;
}

.homepage--compact .contact-form {
  padding: clamp(19px, 2.4vw, 26px);
  border-radius: 19px;
}

.homepage--compact .contact-form__header {
  gap: 10px;
  margin-bottom: 14px;
}

.homepage--compact .contact-form__icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 13px;
  font-size: 1.05rem;
}

.homepage--compact .contact-form__header h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.2;
}

.homepage--compact .contact-form__header p {
  margin-top: 3px;
  font-size: 0.74rem;
  line-height: 1.4;
}

.homepage--compact .contact-form .form__row {
  gap: 11px;
}

.homepage--compact .contact-form .form__group {
  margin-bottom: 10px;
}

.homepage--compact .contact-form .form__group label {
  margin-bottom: 4px;
  font-size: 0.7rem;
}

.homepage--compact .contact-form input,
.homepage--compact .contact-form select {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 0.78rem;
}

.homepage--compact .contact-form textarea {
  min-height: 104px;
  padding: 10px 11px;
  border-radius: 11px;
  font-size: 0.78rem;
  line-height: 1.42;
}

.homepage--compact .contact-form select,
.homepage--compact .locations__filters select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.homepage--compact .contact-form .form__error {
  min-height: 0;
  margin-top: 4px;
  font-size: 0.64rem;
  line-height: 1.25;
}

.homepage--compact .contact-form .form__error:empty {
  display: none;
}

.homepage--compact .contact-form .form__field-meta {
  gap: 8px;
}

.homepage--compact .contact-form .form__character-count {
  margin-top: 4px;
  font-size: 0.62rem;
}

.homepage--compact .contact-form__consent {
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.68rem;
  line-height: 1.38;
}

.homepage--compact
  .contact-form__consent input[type="checkbox"] {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-basis: 18px;
  margin-top: 0;
  padding: 0;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-elevated);
  box-shadow: inset 0 1px 1px rgb(15 23 42 / 5%);
  place-content: center;
}

.homepage--compact
  .contact-form__consent input[type="checkbox"]::before {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(-45deg) scale(0);
  transition: transform var(--duration-fast) var(--ease-premium);
}

.homepage--compact
  .contact-form__consent input[type="checkbox"]:checked {
  border-color: var(--color-primary);
  background: var(--gradient-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.homepage--compact
  .contact-form__consent input[type="checkbox"]:checked::before {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.homepage--compact
  .contact-form__consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--homepage-focus-ring);
}

.homepage--compact .contact-form #contact-form-submit {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.76rem;
}

.homepage--compact .contact-form .form__security-message {
  margin-top: 7px;
  font-size: 0.65rem;
  line-height: 1.3;
}

.homepage--compact .contact-form .form__message {
  min-height: 0;
  margin-top: 8px;
  font-size: 0.7rem;
  line-height: 1.35;
}

.homepage--compact .contact-form .form__message:empty {
  display: none;
}

.homepage--compact .site-footer__primary {
  min-height: 0;
  padding-block: clamp(22px, 2.5vw, 32px);
}

.homepage--compact .site-footer__grid {
  grid-template-columns:
    minmax(240px, 1.25fr)
    minmax(135px, 0.62fr)
    minmax(150px, 0.72fr)
    minmax(220px, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
}

.homepage--compact .site-footer__brand-link {
  gap: 10px;
}

.homepage--compact .site-footer__logo {
  width: 46px;
  height: 46px;
}

.homepage--compact .site-footer__brand-link strong {
  font-size: 0.98rem;
}

.homepage--compact .site-footer__description {
  display: -webkit-box;
  max-width: 360px;
  margin-top: 10px;
  overflow: hidden;
  font-size: 0.73rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.homepage--compact .site-footer__certification,
.homepage--compact .site-footer__social {
  margin-top: 12px;
}

.homepage--compact .site-footer__column h2 {
  margin: 0 0 8px;
  padding: 0 0 5px;
  font-size: 0.74rem;
}

.homepage--compact .site-footer__toggle {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  text-align: left;
}

.homepage--compact .site-footer__toggle i {
  display: none;
}

.homepage--compact .site-footer__column ul {
  gap: 4px;
}

.homepage--compact .site-footer__column a:not(.button),
.homepage--compact .site-footer__contact-list li {
  font-size: 0.7rem;
  line-height: 1.35;
}

.homepage--compact .site-footer__contact-list {
  gap: 4px !important;
}

.homepage--compact .site-footer__directions {
  margin-top: 7px;
  color: #ffffff;
  font-size: 0.7rem;
}

.homepage--compact .site-footer__secondary {
  padding-block: 8px;
}

.homepage--compact .site-footer__secondary-inner {
  min-height: 26px;
  gap: 8px 18px;
}

.homepage--compact .site-footer__secondary-inner > p,
.homepage--compact .site-footer__legal a,
.homepage--compact .site-footer__legal button {
  font-size: 0.62rem;
  line-height: 1.3;
}

.homepage--compact .site-footer__legal {
  gap: 4px 12px;
}

/* ========================================================================== 
   RESPONSIVE DENSITY
========================================================================== */

@media (max-width: 1180px) {
  :root {
    --topbar-height: 34px;
    --navbar-height: 64px;
  }

  .homepage--compact .navbar__more {
    width: 100%;
  }

  .homepage--compact .navbar__more-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .homepage--compact .navbar__more-menu {
    display: grid;
    width: 100%;
    margin: 2px 0 4px;
    padding: 4px 0 4px 14px;
    gap: 2px;
    border-left: 2px solid var(--color-primary-border);
    list-style: none;
  }

  .homepage--compact .navbar__more-menu[hidden] {
    display: none;
  }

  .homepage--compact .navbar__more-menu .navbar__link {
    width: 100%;
    min-height: 38px !important;
    padding-block: 8px !important;
  }

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

  .homepage--compact .quick-access__link {
    min-height: 58px;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .homepage--compact .contact__layout {
    grid-template-columns:
      minmax(280px, 0.82fr)
      minmax(0, 1.18fr);
  }

  .homepage--compact .site-footer__grid {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .homepage--compact #hero-slider {
    height: clamp(540px, 76svh, 640px);
    min-height: 540px !important;
  }

  .homepage--compact #hero-slider-track .hero-slide .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 46px 64px;
  }

  .homepage--compact .appointment-card {
    display: none;
  }

  .homepage--compact .hero__content {
    max-width: 680px;
  }

  .homepage--compact .about__layout,
  .homepage--compact .contact__layout {
    grid-template-columns: 1fr;
  }

  .homepage--compact .about__layout {
    gap: 28px;
  }

  .homepage--compact .about__media {
    min-height: clamp(390px, 68vw, 500px);
  }

  .homepage--compact .contact__information {
    max-width: none;
  }

  .homepage--compact .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .homepage--compact .site-footer__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
    align-items: start;
    gap: 10px 24px;
  }

  .homepage--compact .site-footer__brand-link,
  .homepage--compact .site-footer__description {
    grid-column: 1;
  }

  .homepage--compact .site-footer__certification,
  .homepage--compact .site-footer__social {
    grid-column: 2;
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .homepage--compact .container {
    width: min(100% - 28px, var(--container-width));
  }

  .homepage--compact .section {
    padding-block: var(--compact-section-space-mobile);
  }

  .homepage--compact #services-grid > :nth-child(n + 3),
  .homepage--compact #providers-grid > :nth-child(n + 3),
  .homepage--compact #locations-grid > :nth-child(n + 3),
  .homepage--compact #gallery-grid > :nth-child(n + 3),
  .homepage--compact #news-grid > :nth-child(n + 3) {
    display: none;
  }

  .homepage--compact .topbar__message {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .homepage--compact .topbar__contact {
    display: none;
  }

  .homepage--compact .brand {
    max-width: calc(100vw - 108px);
  }

  .homepage--compact .brand__subtitle {
    max-width: 160px;
  }

  .homepage--compact #hero-slider {
    height: clamp(480px, 73svh, 570px);
    min-height: 480px !important;
  }

  .homepage--compact #hero-slider-track .hero-slide .hero__grid {
    padding-block: 38px 62px;
  }

  .homepage--compact .hero__content h1 {
    font-size: clamp(2.1rem, 10vw, 3.15rem);
  }

  .homepage--compact .hero__subtitle {
    display: none;
  }

  .homepage--compact .hero__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .homepage--compact .hero__actions {
    margin-top: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .homepage--compact .quick-access__link {
    min-height: 56px;
    padding: 9px 8px;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    gap: 6px;
    font-size: 0.68rem;
  }

  .homepage--compact .quick-access__link > i:first-child {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
  }

  .homepage--compact .section-heading--split,
  .homepage--compact .section-heading--center {
    text-align: left;
    align-items: flex-start;
  }

  .homepage--compact .section-heading h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .homepage--compact .about__media {
    min-height: clamp(330px, 94vw, 430px);
  }

  .homepage--compact .about__highlights,
  .homepage--compact .about__values,
  .homepage--compact .contact__cards,
  .homepage--compact .contact-form .form__row,
  .homepage--compact .locations__grid {
    grid-template-columns: 1fr;
  }

  .homepage--compact .locations__header-actions {
    width: 100%;
  }

  .homepage--compact .locations__filters {
    margin-block: 12px 16px;
    padding: 12px;
  }

  .homepage--compact .location-card__media {
    height: clamp(150px, 48vw, 188px);
  }

  .homepage--compact .location-card__content {
    padding: 14px;
  }

  .homepage--compact .location-card__actions {
    align-items: center;
    flex-direction: row;
  }

  .homepage--compact .contact-form {
    padding: 17px 15px;
    border-radius: 16px;
  }

  .homepage--compact .contact-form__header {
    align-items: center;
  }

  .homepage--compact .portal-promotion__shell,
  .homepage--compact .appointment-cta__shell {
    min-height: 0;
    padding: 20px 17px;
    gap: 20px;
    border-radius: 19px;
  }

  .homepage--compact .portal-promotion__features {
    grid-template-columns: 1fr;
  }

  .homepage--compact .appointment-cta__content {
    gap: 12px;
  }

  .homepage--compact .appointment-cta__actions {
    gap: 8px;
  }

  .homepage--compact .newsletter__shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .homepage--compact .newsletter__field {
    align-items: stretch;
    flex-direction: column;
  }

  .homepage--compact .newsletter__field .button {
    width: 100%;
  }

  .homepage--compact .trust-hub > .section {
    padding-block: 28px;
  }

  .homepage--compact .media-hub {
    padding-block: var(--compact-section-space-mobile);
  }

  .homepage--compact .media-hub__header {
    margin-bottom: 18px;
  }

  .homepage--compact .media-hub__tabs {
    width: 100%;
  }

  .homepage--compact .media-hub__tab {
    flex: 1 1 50%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.7rem;
  }

  .homepage--compact .site-footer__primary {
    padding-block: 20px 14px;
  }

  .homepage--compact .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .homepage--compact .site-footer__brand {
    grid-column: auto;
    display: block;
    padding-bottom: 14px;
  }

  .homepage--compact .site-footer__description {
    max-width: none;
    -webkit-line-clamp: 2;
  }

  .homepage--compact .site-footer__certification,
  .homepage--compact .site-footer__social {
    margin-top: 10px;
  }

  .homepage--compact .site-footer__column {
    border-top: 1px solid rgb(255 255 255 / 12%);
  }

  .homepage--compact .site-footer__column h2 {
    margin: 0;
    padding: 0;
  }

  .homepage--compact .site-footer__column h2::after {
    display: none;
  }

  .homepage--compact .site-footer__toggle {
    min-height: 40px;
    padding-block: 8px;
    cursor: pointer;
  }

  .homepage--compact .site-footer__toggle i {
    display: inline-block;
    font-size: 1rem;
    transition: transform var(--duration-fast) var(--ease-standard);
  }

  .homepage--compact .site-footer__toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  .homepage--compact .site-footer__column > ul,
  .homepage--compact #footer-contact-panel {
    padding: 2px 0 10px;
  }

  .homepage--compact .site-footer__secondary {
    padding-block: 8px;
  }

  .homepage--compact .site-footer__secondary-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 7px;
    text-align: left;
  }

  .homepage--compact .site-footer__legal {
    gap: 4px 10px;
  }
}

@media (max-width: 380px) {
  .homepage--compact .quick-access__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage--compact .quick-access__link {
    padding-inline: 7px;
    grid-template-columns: 26px minmax(0, 1fr);
    font-size: 0.64rem;
  }

  .homepage--compact .quick-access__link > i:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage--compact .media-hub,
  .homepage--compact .quick-access__link,
  .homepage--compact .quick-access__link > i,
  .homepage--compact .navbar__more-toggle i,
  .homepage--compact .site-footer__toggle i {
    transition: none;
  }
}

@media print {
  .homepage--compact .quick-access,
  .homepage--compact .media-hub__tabs,
  .homepage--compact .navbar__more-toggle,
  .homepage--compact .site-footer__toggle i {
    display: none !important;
  }
}
