/* =========================================
   PULSE ULTRASOUND - GLOBAL DESIGN SYSTEM
   ========================================= */

/* 1. ROOT VARIABLES & THEME CONFIGURATION
   ========================================= */
:root {
  /* --- Brand Palette (Ultrasound Blue Defaults) --- */
  --color-pulse-main: #2e72b9;
  --color-pulse-deep: #2e72b9;
  --color-pulse-footer: #5b8dc5;

  /* --- Neutrals --- */
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f8f9fa;

  --text-main: #1d1d1f;
  --text-muted: #66666e;
  --text-light: #ffffff;

  --border-light: #eeeeee;
  --border-divider: #e5e5e5;

  /* --- Shadows (Premium Elevation) --- */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 35px 70px -15px rgba(0, 0, 0, 0.22);

  /* --- Typography --- */
  --font-primary:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --h1-size: clamp(2.75rem, 5vw, 4rem);
  --h2-size: clamp(2rem, 3.5vw, 2.75rem);
  --h3-size: clamp(1.25rem, 2vw, 1.75rem);
  --h4-size: 0.85rem;
  --body-size: 1.05rem;

  /* --- Layout --- */
  --container-width: 1360px;
  --header-height: 130px; /* Increased to account for Utility Bar */
  --section-spacing: clamp(5rem, 10vw, 9rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 100px;
}

/* Let responsive AVIF picture sources preserve the existing image layout. */
picture {
  display: contents;
}

/* 2. RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-muted);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
h1 {
  font-size: var(--h1-size);
  font-weight: 600;
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--h2-size);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--h3-size);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.scan-guidance-subheading {
  color: var(--color-pulse-main);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
h4 {
  font-size: var(--h4-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 60ch;
  font-size: var(--body-size);
}
a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--color-pulse-main);
}

.accent-text {
  color: var(--color-pulse-main);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* 4. LAYOUT & UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}
.section {
  padding: var(--section-spacing) 0;
  position: relative;
  background-color: var(--bg-surface);
}
.section.alt-bg {
  background-color: var(--bg-surface-alt);
}

.grid-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
@media (min-width: 992px) {
  .grid-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8rem;
  }
  .grid-split.reverse {
    direction: rtl;
  }
  .grid-split.reverse > * {
    direction: ltr;
  }
}

.arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* 5. ANIMATIONS (Scroll Reveal & Fade Ups)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-visible {
  opacity: 1;
  transform: translate(0, 0) !important;
}
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}

.fade-up-1 {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}
.fade-up-2 {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
  opacity: 0;
  transform: translateY(20px);
}
.fade-up-3 {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 6. BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: none;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn-primary {
  background-color: var(--color-pulse-main);
  color: white;
  border: 1px solid var(--color-pulse-main);
}
.btn-primary:hover {
  background-color: var(--border-light);
  color: var(--color-pulse-main);
  transform: translateY(-2px);
}

.btn-primary.inverted {
  background-color: white;
  color: var(--color-pulse-main);
  border-color: white;
}
.btn-primary.inverted:hover {
  background-color: transparent;
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn-secondary:hover {
  border-color: var(--color-pulse-main);
  color: var(--color-pulse-main);
  background-color: white;
}

.btn-theme {
  background: transparent;
  border: 1px solid white;
  color: white;
}
.btn-theme:hover {
  background: white;
  color: var(--color-pulse-main);
}

/* 7. NAVIGATION & MEGA MENU
   ========================================= */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}

/* Main Nav Desktop */
.main-nav {
  padding: 24px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.header-wrapper.scrolled .main-nav {
  background: rgba(255, 255, 255, 0.98);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1200px) {
  .header-wrapper:not(.scrolled) .main-nav {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.7) 60%,
      rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(2px);
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.logo img {
  height: 64px;
  width: auto;
  transition: height 0.3s ease;
}
.header-wrapper.scrolled .logo img {
  height: 31.2px;
  filter: none;
}

.nav-links-desktop {
  display: none;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
}
@media (min-width: 1200px) {
  .nav-links-desktop {
    display: flex;
  }
}

.nav-link {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-link:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-pulse-main);
  transition: width 0.3s ease;
}
.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-pulse-main);
}
.nav-chevron {
  font-size: 0.65rem;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.nav-links-desktop .btn-nav {
  padding: 12px 30px;
  margin-left: 15px;
}

/* Desktop Dropdowns (Premium Fade Up) */
.nav-item-dropdown {
  position: relative;
}
.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: -20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  min-width: 260px;
  padding: 12px 0;
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 100;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  top: 100%;
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-surface-alt);
  color: var(--color-pulse-main);
}
.nav-dropdown-menu a::after {
  display: none;
}
.nav-dropdown-menu-clinics {
  min-width: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  padding: 12px;
}
.nav-dropdown-menu-clinics a {
  border-radius: 6px;
  padding: 10px 14px;
}
.nav-dropdown-menu-scans {
  min-width: 300px;
  padding: 12px;
}
.nav-dropdown-menu-scans a {
  border-radius: 6px;
  padding: 12px 14px;
}

/* Desktop Mega Menu (Ultrasound Scans) */
.nav-item-mega {
  position: static;
} /* Anchors the mega menu to .navbar width */
.mega-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.nav-item-mega:hover .mega-menu {
  top: 100%;
  opacity: 1;
  visibility: visible;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px;
}
.mega-col h4 {
  font-size: 1.05rem;
  color: var(--color-pulse-deep);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  font-weight: 600;
}
.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-col li {
  margin-bottom: 0.7rem;
}
.mega-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  transition: color 0.2s;
  display: inline-block;
  position: relative;
}
.mega-col a:hover {
  color: var(--color-pulse-main);
}
.mega-col a::after {
  display: none;
}

.mega-menu-footer {
  background: var(--bg-surface-alt);
  padding: 20px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  border-top: 1px solid var(--border-light);
}
.mega-menu-footer a {
  font-weight: 600;
  color: var(--color-pulse-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.mega-menu-footer a:hover {
  color: var(--color-pulse-deep);
}
.mega-menu-footer a::after {
  display: none;
}

/* Mega menu clickable page headings */
.mega-col-title {
  margin-bottom: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.mega-col-title a {
  display: inline-block;
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-pulse-deep);
  text-decoration: none;
}

.mega-col-title a:hover {
  color: var(--color-pulse-main);
}

/* Keep all 3 page headings visually aligned */
.mega-menu-grid {
  align-items: start;
}

.mega-col {
  min-width: 0;
}

/* Slightly tighten mega menu item styling */
.mega-col li {
  margin-bottom: 0.55rem;
}

.mega-col ul a {
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Help long heading stay on one line where possible */
.mega-menu {
  max-width: 1180px;
}

.mega-menu-grid {
  grid-template-columns: 1.15fr 1.15fr 0.95fr;
  gap: 34px;
}

/* Mobile Menu & Accordion Toggles */
.nav-button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
}
@media (min-width: 1200px) {
  .nav-button {
    display: none;
  }
}
.nav-button-line {
  width: 28px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

.menu-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.menu-open .menu-mobile {
  transform: translateX(0);
}
body.menu-open .nav-button-line.top {
  transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .nav-button-line.middle {
  opacity: 0;
}
body.menu-open .nav-button-line.bottom {
  transform: rotate(-45deg) translate(5px, -5px);
}

.menu-mobile-header {
  padding: 2rem 1.5rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.menu-mobile-header img {
  height: 48px;
  width: auto;
  max-width: calc(100% - 68px);
  object-fit: contain;
  transform: none;
}
#mobile-menu-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
#mobile-menu-close::before,
#mobile-menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 28px;
  height: 2px;
  background-color: var(--text-main);
}
#mobile-menu-close::before {
  transform: rotate(45deg);
}
#mobile-menu-close::after {
  transform: rotate(-45deg);
}

.menu-mobile-links {
  padding: 1.5rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.mobile-nav-item {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link,
.mobile-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.2rem 0;
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  text-transform: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.mobile-accordion-toggle .fa-chevron-down {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.mobile-accordion-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
  color: var(--color-pulse-main);
}
.mobile-accordion-toggle[aria-expanded="true"] {
  color: var(--color-pulse-main);
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.mobile-accordion-inner {
  padding: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
}
.mobile-accordion-inner a {
  color: var(--color-pulse-main);
  font-weight: 500;
  text-decoration: none;
}
.mobile-accordion-inner a:hover {
  color: var(--color-pulse-deep);
}
.mobile-accordion-inner.standard-list {
  gap: 1rem;
  padding: 0 0 1.5rem 1rem;
}
.mobile-accordion-inner.standard-list a {
  color: var(--color-pulse-main);
  font-size: 1rem;
  text-decoration: none;
}
.mobile-accordion-inner.standard-list a:hover,
.mobile-nested-inner a:hover {
  color: var(--color-pulse-main);
}

/* Nested Accordions inside Mobile Scans Menu */
.mobile-nested-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0 1rem 1rem;
  font-size: 1rem;
  color: var(--color-pulse-deep);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.mobile-nested-toggle .fa-chevron-down {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: var(--color-pulse-deep);
}
.mobile-nested-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-nested-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-nested-inner {
  padding: 0.5rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-left: 2px solid var(--border-light);
  margin-left: 1rem;
}
.mobile-nested-inner a {
  font-size: 0.95rem;
  color: var(--color-pulse-main);
  text-decoration: none;
}

.btn-mobile-cta {
  margin-top: 2rem;
  background-color: var(--color-pulse-main);
  color: white;
  padding: 16px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--color-pulse-main);
}

.mobile-nested-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-left: 1rem;
}

.mobile-nested-page-link {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-pulse-deep);
  text-decoration: none;
  padding: 1rem 0;
}

.mobile-nested-page-link:hover {
  color: var(--color-pulse-main);
}

.mobile-nested-head .mobile-nested-toggle {
  width: auto;
  padding: 1rem 0;
  flex: 0 0 auto;
}

/* Mobile accordion containers must be able to grow fully */
.mobile-accordion-content,
.mobile-nested-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Keep open states visible */
.mobile-accordion-content.open,
.mobile-nested-content.open {
  overflow: visible;
}

/* Nested content spacing */
.mobile-nested-content {
  position: relative;
}

.mobile-nested-inner {
  padding: 0 0 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Give each mobile nav block clean separation */
.mobile-nav-item {
  position: relative;
  z-index: 1;
}

.mobile-accordion-inner {
  padding-bottom: 0.5rem;
}

/* Add breathing room below nested groups so next section doesn't ride up */
.mobile-nested-group {
  margin-bottom: 0.35rem;
}

.mobile-nested-group:last-child {
  margin-bottom: 0.75rem;
}

/* 8. HERO & CARDS
   ========================================= */
#hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding-top: var(--header-height);
  background-size: cover;
  background-position: center;
}
#hero > .container {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 3rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
@media (min-width: 768px) {
  .hero-content {
    transform: translateX(-50px);
  }
}
.hero-content h1,
.hero-content p {
  color: white;
}

/* =========================================
   BREATHER IMAGE SECTION : FINAL
   ========================================= */

.section-full-image {
  position: relative;
  width: 100%;
  margin: clamp(2rem, 5vw, 3rem) 0; /* reduced spacing */
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle gradient overlay (kept from your version) */
.section-full-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 34, 63, 0) 60%,
    rgba(10, 34, 63, 0.35) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Image sizing : increased for premium feel */
.section-full-image img {
  width: 100%;
  height: clamp(420px, 55vw, 720px); /* increased height */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay label (bottom-left, refined) */
.section-full-image .overlay-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;

  background: rgba(255, 255, 255, 0.9);
  color: var(--color-pulse-deep);

  padding: 0.5rem 1.25rem;
  border-radius: 999px;

  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;

  box-shadow: 0 12px 25px rgba(14, 31, 53, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Ultrasound modifier (kept clean and minimal) */
.section-full-image.ultrasound-breather {
  border-radius: 0;
}

/* Let location clinic photos retain more of their original proportions. */
.section-full-image.ultrasound-breather.clinic-photo-breather img {
  height: clamp(
    280px,
    calc(var(--breather-height) + 50px),
    900px
  );
}

.clinic-photo-breather.ratio-2-1 {
  --breather-height: 50vw;
}

.clinic-photo-breather.ratio-16-9 {
  --breather-height: 56.25vw;
}

.clinic-photo-breather.ratio-3-2 {
  --breather-height: 66.67vw;
}

.clinic-photo-breather.ratio-hutt {
  --breather-height: 69.53vw;
}

/* =========================================
   IMPORTANT CLEANUP : REMOVE OLD SPACING RULE
   ========================================= */

/* DELETE THIS FROM YOUR FILE:

.section-full-image + .section,
.section + .section-full-image {
    margin-top: 3rem;
}

*/

/* =========================================
   MOBILE REFINEMENT
   ========================================= */

@media (max-width: 768px) {
  .section-full-image {
    margin: 2rem 0;
  }

  .section-full-image img {
    height: 320px;
  }

  .section-full-image .overlay-label {
    bottom: 18px;
    left: 18px;
    font-size: 0.7rem;
    padding: 0.45rem 1rem;
  }
}

/* Image Treatments */
.elevated {
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.elevated-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0f0f0;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.image-wrapper:hover img {
  transform: scale(1.04);
}
.aspect-4-3 {
  aspect-ratio: 4/3;
}

/* Services Grid */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-service {
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: all 0.3s ease;
}
.card-service:hover {
  border-color: transparent;
}
.card-service h3 {
  font-size: 1.25rem;
  color: var(--color-pulse-main);
  margin-bottom: 0.8rem;
}
.card-service p {
  margin-bottom: 0;
  font-size: 0.95rem;
}
.card-service .card-cta {
  margin-top: 1.5rem;
  align-self: flex-start;
}
.location-clinic-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
}
.location-clinic-card:hover {
  border-color: rgba(46, 114, 185, 0.28);
}
.clinic-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
}
.clinic-card-text p {
  margin-bottom: 0;
}
.clinic-note {
  margin-top: 1rem;
  color: var(--color-pulse-main);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.clinic-map-card {
  min-height: 260px;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px);
  background: var(--bg-surface-alt);
}
.clinic-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}
@media (min-width: 900px) {
  .location-clinic-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    align-items: stretch;
  }
  .location-clinic-card.map-left .clinic-card-text {
    order: 2;
  }
  .location-clinic-card.map-left .clinic-map-card {
    order: 1;
  }
}
.home-services-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.home-services-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.home-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}
.home-service-card {
  padding: 0.85rem;
  overflow: hidden;
  border: none;
}
.home-service-card-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: calc(var(--radius-md) - 3px);
}
.home-service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1);
}
.home-service-card:hover .home-service-card-image img {
  transform: scale(1.04);
}
.home-service-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem 1.15rem 1.15rem;
}
.home-service-card-content p {
  flex: 1;
}
.home-services-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}
.home-section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.home-section-head .accent-text {
  margin-left: auto;
  margin-right: auto;
}
.home-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.home-why-grid .card-service {
  height: 100%;
}
.home-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 920px;
  margin: 3rem auto 0;
  text-align: left;
}
.home-section-cta,
.home-faq-cta {
  margin-top: 2.5rem;
  text-align: center;
}
.home-faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 130, 183, 0.2);
  background: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.home-faq-item:hover,
.home-faq-item[open] {
  border-color: rgba(74, 130, 183, 0.45);
  box-shadow: var(--shadow-md);
}
.home-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
  transition: color 0.3s ease;
}
.home-faq-item summary::-webkit-details-marker {
  display: none;
}
.home-faq-item summary::after {
  content: "⌄";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1;
  transform: rotate(-90deg);
  transition:
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.home-faq-item:hover summary,
.home-faq-item[open] summary,
.home-faq-cta h3 {
  color: var(--color-pulse-main);
}
.home-faq-item[open] summary::after {
  color: var(--color-pulse-main);
  transform: rotate(0deg);
}
.home-faq-answer {
  background: white;
}
.home-faq-answer::before {
  content: "";
  display: block;
  height: 2px;
  margin: 0 1.5rem;
  background: var(--color-pulse-main);
}
.home-faq-answer p,
.home-faq-cta p {
  margin-bottom: 0;
}
.home-faq-answer p {
  padding: 1.35rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.home-faq-cta {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.home-faq-cta p {
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) {
  .home-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.services-directory-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
  margin: 0 auto;
}
.service-directory-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.service-directory-card-content p {
  flex: 0;
}
.service-directory-quicklinks {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  background: var(--color-pulse-footer);
  box-shadow: var(--shadow-card);
  direction: ltr;
}
.service-directory-quicklinks h4 {
  margin: 0;
  color: white;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.service-directory-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.65rem;
}
.service-directory-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--color-pulse-main);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.service-directory-pills a:hover {
  transform: translateY(-2px);
  border-color: white;
  background: var(--color-pulse-deep);
  color: white;
}
@media (max-width: 520px) {
  .service-directory-pills {
    grid-template-columns: 1fr;
  }
}

/* Homepage Clinic Locations */
.section-locations-home {
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
  padding: 6rem 0;
  background:
    linear-gradient(135deg, rgba(46, 114, 185, 0.1), rgba(91, 141, 197, 0.04)),
    var(--bg-surface-alt);
}
.section-locations-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(46, 114, 185, 0.14),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.9));
}
.section-locations-home .container {
  position: relative;
  z-index: 2;
}
.section-locations-home .text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-locations-home .text-center p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}
.locations-grid-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 3rem;
}
.card-location-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 2rem;
  border: 1px solid rgba(46, 114, 185, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
}
.card-location-home:hover {
  border-color: rgba(46, 114, 185, 0.32);
}
.card-location-home h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  color: var(--color-pulse-deep);
}
.card-location-home p {
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.card-location-home p:last-of-type {
  margin-bottom: 1.5rem;
}
.link-location-home {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-pulse-main);
  color: var(--color-pulse-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.link-location-home:hover {
  border-color: var(--color-pulse-footer);
  color: var(--color-pulse-main);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .locations-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .locations-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--color-pulse-main);
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.text-cta .arrow-icon {
  font-size: 0.95rem;
  display: inline-flex;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: center;
  transform: translate(0, 0) rotate(0deg);
}
.text-cta:hover {
  color: var(--color-pulse-deep);
  transform: translateY(-3px);
}
.text-cta:hover .arrow-icon {
  transform: translate(6px, -4px) rotate(-45deg);
}
.text-cta-light {
  color: white;
  opacity: 0.9;
}
.text-cta-light:hover {
  color: white;
  opacity: 1;
}
.text-cta-muted {
  color: var(--text-muted);
}
.text-cta-muted:hover {
  color: var(--color-pulse-main);
}

/* 9. CONTACT & FORMS
   ========================================= */
.form-panel {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.form-disclaimer {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--color-pulse-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-align: left;
  text-transform: uppercase;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label,
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  color: var(--text-main);
  background-color: white;
}
.form-group select:required:invalid {
  color: var(--text-muted);
}
.form-group select option {
  color: var(--text-main);
}
.form-group select option[value=""] {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-pulse-main);
}
.choice-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.form-group .choice-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: auto;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.form-group .choice-option input[type="radio"] {
  width: auto;
  padding: 0;
  border: revert;
  background: revert;
  accent-color: var(--color-pulse-main);
}
.form-consent {
  margin-top: 1rem;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}
.form-consent a {
  color: var(--color-pulse-main);
  font-weight: 600;
  text-decoration: none;
}
.form-consent a:hover {
  color: var(--color-pulse-deep);
  text-decoration: underline;
}

/* Clinics Toggle */
.contact-clinics-wrapper {
  margin-top: 2rem;
}
.btn-clinics-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-pulse-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}
.btn-clinics-toggle:hover {
  color: var(--color-pulse-deep);
  transform: translateY(-2px);
}
.btn-clinics-toggle:focus-visible {
  outline: 2px solid rgba(78, 135, 198, 0.4);
  outline-offset: 4px;
}
.btn-clinics-toggle .arrow-icon {
  display: inline-flex;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn-clinics-toggle[aria-expanded="true"] .arrow-icon {
  transform: rotate(90deg);
}

.contact-clinics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    margin-top 0.4s ease;
}
.contact-clinics-list.show {
  margin-top: 1.5rem;
}
.contact-clinics-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.contact-clinics-list a:hover {
  color: var(--color-pulse-main);
}

/* 10. FOOTER & FINANCE MARQUEE
   ========================================= */
footer {
  background-color: var(--color-pulse-footer);
  color: white;
  padding-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  padding-bottom: 30px;
}
footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  opacity: 0.9;
}
footer ul {
  list-style: none;
}
footer li {
  margin-bottom: 0.4rem;
}
footer a {
  color: white;
  opacity: 0.8;
  font-size: 0.95rem;
  font-weight: 400;
  transition:
    opacity 0.2s,
    color 0.2s;
}
footer a:hover {
  color: white;
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Copyright Bar */
.copyright {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.copyright p {
  margin: 0;
  color: white;
  opacity: 0.8;
  font-size: 0.85rem;
}
.copyright > p {
  flex: 0 1 auto;
  white-space: nowrap;
}
.footer-powered-by {
  flex: 0 0 auto;
  margin-left: auto;
}
.footer-powered-by a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  text-decoration: none;
  white-space: nowrap;
}
.footer-powered-by img {
  flex: 0 0 auto;
  height: 1.1rem;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
}
.footer-accreditations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.25rem;
}
.footer-accreditations img {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.footer-accreditations img:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

/* =========================================
   PAGE-SPECIFIC SCOPE: ULTRASOUND HOME
   ========================================= */

/* Hero Glassmorphism Box mapped to Ultrasound Blue */
.page-ultrasound-home .hero-content {
  background-color: rgba(78, 135, 198, 0.9); /* #4E87C6 mapped */
  box-shadow: 0 15px 45px rgba(78, 135, 198, 0.3);
}

/* Nav overrides specific to this brand */
.page-ultrasound-home .main-nav .btn-primary {
  background-color: var(--color-pulse-main) !important;
  border-color: var(--color-pulse-main) !important;
  color: white !important;
}
.page-ultrasound-home .main-nav .btn-primary:hover {
  background-color: white !important;
  color: var(--color-pulse-main) !important;
}
.page-ultrasound-home .header-wrapper.scrolled .btn-primary:hover {
  background-color: var(--color-pulse-main) !important;
  color: white !important;
}

/* =========================================
   RESPONSIVE OVERRIDES
   ========================================= */
@media (max-width: 992px) {
  .navbar {
    justify-content: space-between;
  }
  .logo {
    margin-right: auto;
  }

  /* Mobile Hero Layout Rebuild */
  #hero {
    padding-top: var(--header-height);
    height: auto;
    min-height: 100vh;
    background-image: none !important;
    background-color: white;
  }
  #hero > .container {
    min-height: 0;
    display: block;
  }
  .hero-content {
    transform: none;
    margin: 60px 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(78, 135, 198, 0.95) !important;
    padding: 3rem 1.5rem;
    z-index: 10;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
    gap: 12px;
  }
  .hero-content .btn {
    flex: 1 1 16rem;
    min-width: 0;
    padding: 12px 16px;
    min-height: 48px;
    height: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
  }

  .section-full-image {
    margin: 3rem 0;
  }
  .section-full-image img {
    height: 280px;
  }
  .section-full-image .overlay-label {
    bottom: 18px;
    left: 18px;
    font-size: 0.75rem;
    padding: 0.5rem 1.2rem;
  }

  .mobile-hero-image {
    display: block !important;
    height: 50vh;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: -30px;
    overflow: hidden;
  }
  .mobile-hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.72) 38%,
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
  }
  .mobile-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .section .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
  .reveal-left,
  .reveal-right {
    transform: translateY(40px);
  }

  .contact-clinics-list {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 2rem 1.5rem;
  }

  footer,
  .footer-grid {
    text-align: center;
    justify-content: center;
  }
  .footer-col:first-child .logo {
    display: block;
    margin: 0 auto 1rem;
  }
  .footer-accreditations {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .copyright {
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
  }
  .copyright > p {
    white-space: normal;
  }
  .footer-powered-by {
    margin-left: 0;
  }
}

/* =========================================
   PULSE ULTRASOUND - EXTENDED PAGES
   ========================================= */

/* Hero Glassmorphism Box mapping for all new pages */
.page-ultrasound-vascular .hero-content,
:is(.page-ultrasound-services, .page-ultrasound-general) .hero-content,
.page-ultrasound-msk .hero-content,
.page-ultrasound-patients .hero-content,
.page-ultrasound-referrers .hero-content,
.page-ultrasound-about .hero-content,
.page-ultrasound-contact .hero-content {
  background-color: rgba(78, 135, 198, 0.9);
  box-shadow: 0 15px 45px rgba(78, 135, 198, 0.3);
}

/* =========================================
   VASCULAR ULTRASOUND PAGE COMPONENTS
   ========================================= */
.page-ultrasound-vascular .vascular-overview-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.page-ultrasound-vascular .vascular-overview-head p {
  margin: 0 auto;
}
.page-ultrasound-vascular .vascular-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.page-ultrasound-vascular .vascular-pill {
  border: 1px solid var(--color-pulse-main);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  background: white;
  color: var(--color-pulse-main);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}
.page-ultrasound-vascular .vascular-pill:hover {
  background: var(--color-pulse-main);
  color: white;
  border-color: white;
}

.page-ultrasound-vascular .vascular-scan-section {
  scroll-margin-top: calc(var(--header-height) + 40px);
}
.page-ultrasound-vascular .vascular-scan-section .grid-split {
  gap: 4rem;
}
.scan-highlights {
  margin: 1.5rem 0;
}
.scan-highlights h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}
.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-muted);
}
.detail-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}
.detail-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-pulse-main);
  position: absolute;
  left: 0;
  top: 0.55rem;
}
.scan-followup-note {
  margin-top: 1.5rem;
}
.scan-text-panel {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: white;
  box-shadow: var(--shadow-sm);
}
.scan-text-panel .scan-highlights:last-child,
.scan-text-panel p:last-child,
.scan-text-panel .detail-list:last-child {
  margin-bottom: 0;
}
.scan-text-panel h3 {
  color: var(--color-pulse-main);
}

@media (max-width: 768px) {
  .page-ultrasound-vascular .vascular-pill {
    justify-content: center;
  }
  .page-ultrasound-vascular .vascular-scan-section .grid-split {
    gap: 2.5rem;
  }
}

/* =========================================
   GENERAL ULTRASOUND PAGE COMPONENTS
   ========================================= */
:is(.page-ultrasound-services, .page-ultrasound-general) .general-overview-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
:is(.page-ultrasound-services, .page-ultrasound-general) .general-overview-head p {
  margin: 0 auto;
}
:is(.page-ultrasound-services, .page-ultrasound-general) .general-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
:is(.page-ultrasound-services, .page-ultrasound-general) .general-pill {
  border: 1px solid var(--color-pulse-main);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  background: white;
  color: var(--color-pulse-main);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}
:is(.page-ultrasound-services, .page-ultrasound-general) .general-pill:hover {
  background: var(--color-pulse-main);
  color: white;
  border-color: white;
}
:is(.page-ultrasound-services, .page-ultrasound-general) .general-scan-section {
  scroll-margin-top: calc(var(--header-height) + 40px);
}
:is(.page-ultrasound-services, .page-ultrasound-general) .general-scan-section .grid-split {
  gap: 4rem;
}

@media (max-width: 768px) {
  :is(.page-ultrasound-services, .page-ultrasound-general) .general-pill {
    justify-content: center;
  }
  :is(.page-ultrasound-services, .page-ultrasound-general) .general-scan-section .grid-split {
    gap: 2.5rem;
  }
}

/* =========================================
   MSK ULTRASOUND PAGE COMPONENTS
   ========================================= */
.page-ultrasound-msk .msk-overview-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.page-ultrasound-msk .msk-overview-head p {
  margin: 0 auto;
}
.page-ultrasound-msk .msk-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.page-ultrasound-msk .msk-pill {
  border: 1px solid var(--color-pulse-main);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  background: white;
  color: var(--color-pulse-main);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.page-ultrasound-msk .msk-pill:hover {
  background: var(--color-pulse-main);
  color: white;
  border-color: white;
}
.page-ultrasound-msk .msk-scan-section {
  scroll-margin-top: calc(var(--header-height) + 40px);
}
.page-ultrasound-msk .msk-scan-section .grid-split {
  gap: 4rem;
}

/* Scan-focus pullouts replace repeated scan imagery with useful clinical context. */
.scan-focus-slot {
  align-self: center;
  display: block;
}
.scan-focus-card {
  background: white;
  border: 1px solid #dce4ec;
  border-top: 3px solid var(--color-pulse-main);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(24, 41, 61, 0.09);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  width: 100%;
}
.scan-focus-card__eyebrow {
  color: var(--text-main);
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.65rem;
}
.scan-focus-card__body {
  display: grid;
  gap: 1.4rem;
}
.scan-focus-card__group {
  padding: 0;
}
.scan-focus-card__label {
  color: var(--color-pulse-main);
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  margin-bottom: 0.45rem;
}
.scan-focus-card p,
.scan-focus-card ul {
  color: #4f5660;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}
.scan-focus-card ul {
  list-style: none;
  padding: 0;
}
.scan-focus-card li {
  padding-left: 1rem;
  position: relative;
}
.scan-focus-card li::before {
  background: var(--color-pulse-main);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0.7em;
  width: 5px;
}

@media (max-width: 768px) {
  .page-ultrasound-msk .msk-pill {
    justify-content: center;
  }
  .page-ultrasound-msk .msk-scan-section .grid-split {
    gap: 2.5rem;
  }
  .scan-focus-card {
    padding: 1.65rem 1.5rem;
  }
}

.page-ultrasound-vascular .vascular-overview-grid,
:is(.page-ultrasound-services, .page-ultrasound-general) .general-overview-grid,
.page-ultrasound-msk .msk-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}
.page-ultrasound-vascular .vascular-pill,
:is(.page-ultrasound-services, .page-ultrasound-general) .general-pill,
.page-ultrasound-msk .msk-pill {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 1.35rem;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .page-ultrasound-vascular .vascular-overview-grid,
  :is(.page-ultrasound-services, .page-ultrasound-general) .general-overview-grid,
  .page-ultrasound-msk .msk-overview-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
@media (min-width: 641px) {
  .page-ultrasound-msk .msk-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
  }
}

/* =========================================
   PATIENTS PAGE COMPONENTS
   ========================================= */
.page-ultrasound-patients .patients-overview-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.page-ultrasound-patients .patients-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.patients-overview-card {
  display: block;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: white;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.patients-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.patients-overview-card h3 {
  color: var(--color-pulse-main);
  margin-bottom: 0.65rem;
}
.page-ultrasound-patients .patients-section {
  scroll-margin-top: calc(var(--header-height) + 40px);
}
.patients-clinic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.patients-clinic-tags span {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(78, 135, 198, 0.1);
  color: var(--color-pulse-main);
  font-size: 0.9rem;
  font-weight: 500;
}
.timeline-intro p {
  max-width: 640px;
  margin: 0 auto;
}

.patients-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.patients-timeline .timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    rgba(200, 212, 230, 0) 0%,
    rgba(200, 212, 230, 0.9) 20%,
    rgba(200, 212, 230, 0.9) 80%,
    rgba(200, 212, 230, 0) 100%
  );
}
.timeline-item {
  display: flex;
  position: relative;
  width: 50%;
  margin-bottom: 3.5rem;
  z-index: 1;
}
.timeline-item.left {
  justify-content: flex-end;
  padding-right: 55px;
  left: 0;
}
.timeline-item.right {
  justify-content: flex-start;
  padding-left: 55px;
  margin-left: 50%;
}
.timeline-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  box-shadow: 0 25px 45px -25px rgba(16, 42, 66, 0.2);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px -30px rgba(16, 42, 66, 0.35);
}
.timeline-step-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(78, 135, 198, 0.12);
  color: var(--color-pulse-main);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.timeline-content h3 {
  margin-bottom: 0.75rem;
}
.timeline-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--color-pulse-main);
  box-shadow: 0 0 0 6px rgba(78, 135, 198, 0.12);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}
.timeline-item.left .timeline-dot {
  right: -10px;
}
.timeline-item.right .timeline-dot {
  left: -10px;
}
.timeline-item:hover .timeline-dot {
  transform: translateY(-50%) scale(1.15);
  background: var(--color-pulse-main);
  box-shadow: 0 0 0 10px rgba(78, 135, 198, 0.15);
}

@media (max-width: 768px) {
  .patients-overview-card {
    padding: 1.75rem;
  }
  .patients-timeline .timeline-track {
    left: 20px;
    transform: none;
  }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    margin-left: 0;
    padding: 0 0 0 70px;
    justify-content: flex-start;
  }
  .timeline-card {
    max-width: 100%;
    margin-top: 1.5rem;
  }
  .timeline-dot {
    left: 6px !important;
    right: auto !important;
  }
}

/* =========================================
   REFERRERS PAGE COMPONENTS
   ========================================= */
.page-ultrasound-referrers .referrers-overview-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.page-ultrasound-referrers .referrers-overview-head p {
  margin: 0 auto;
}
.page-ultrasound-referrers .referrers-overview-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.page-ultrasound-referrers .referrers-pill {
  border: 1px solid var(--color-pulse-main);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-pulse-main);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.page-ultrasound-referrers .referrers-pill:hover {
  background: var(--color-pulse-main);
  color: white;
  box-shadow: var(--shadow-sm);
}

.page-ultrasound-referrers .referrers-section {
  scroll-margin-top: calc(var(--header-height) + 40px);
}
.page-ultrasound-referrers .referrers-section .grid-split {
  gap: 4rem;
}
.page-ultrasound-referrers .referrers-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
}
.page-ultrasound-referrers .referrers-link-row .btn {
  margin-right: 0.5rem;
}
.page-ultrasound-referrers .referrers-resources-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.page-ultrasound-referrers .referrers-resources-head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-ultrasound-referrers .referrers-resources-head p {
  margin-left: auto;
  margin-right: auto;
}
.page-ultrasound-referrers .referrers-resources-ctas {
  justify-content: center;
  margin-top: 0;
}

.page-ultrasound-referrers .referrers-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  width: 100%;
}
@media (min-width: 900px) {
  .page-ultrasound-referrers .referrers-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.page-ultrasound-referrers .referrers-resource-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: white;
  box-shadow: var(--shadow-sm);
}
.page-ultrasound-referrers .referrers-resource-card h3 {
  color: var(--color-pulse-main);
}
.page-ultrasound-referrers .referrers-resource-card p {
  margin-bottom: 0;
}

.page-ultrasound-referrers .referrers-support-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2.5rem;
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: white;
}
.page-ultrasound-referrers .support-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}
.page-ultrasound-referrers .support-ctas .btn {
  margin-right: 0;
}
.page-ultrasound-referrers .support-image .image-wrapper {
  border: 1px solid var(--border-light);
  box-shadow: none;
}

@media (max-width: 768px) {
  .page-ultrasound-referrers .referrers-section .grid-split {
    gap: 2.5rem;
  }
  .page-ultrasound-referrers .referrers-support-panel {
    padding: 1.25rem;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================
   ABOUT PAGE TEAM SECTION
   ========================================= */
.page-ultrasound-about .about-values {
  background: #5b8dc5;
  color: white;
}
.page-ultrasound-about .about-values-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.page-ultrasound-about .about-values-head h2 {
  color: white;
}
.page-ultrasound-about .about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
}
.page-ultrasound-about .about-values .card-service {
  text-align: center;
}
.page-ultrasound-about .about-values .card-service h3 {
  color: var(--color-pulse-main);
}
.page-ultrasound-about .about-team-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem;
}
.page-ultrasound-about .about-team-head p {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.page-ultrasound-about .about-team-feature {
  margin-bottom: 3.5rem;
  align-items: center;
}
.page-ultrasound-about .team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.page-ultrasound-about .team-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.page-ultrasound-about .team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.page-ultrasound-about .team-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 4 / 3;
}
.page-ultrasound-about .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-ultrasound-about .team-initials {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-pulse-main),
    var(--color-pulse-deep)
  );
  color: white;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.page-ultrasound-about .team-initials-feature {
  min-height: 100%;
}
.page-ultrasound-about .team-card-body h3 {
  margin-bottom: 0.35rem;
  color: var(--text-main);
}
.page-ultrasound-about .team-role {
  font-weight: 600;
  color: var(--color-pulse-main);
  margin-bottom: 0.85rem;
}
.page-ultrasound-about .team-bio {
  margin-bottom: 0.85rem;
}
.page-ultrasound-about .team-focus {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.page-ultrasound-about .about-team-cta {
  text-align: center;
}

@media (max-width: 768px) {
  .page-ultrasound-about .about-team-feature {
    gap: 2rem;
  }
  .page-ultrasound-about .team-grid {
    grid-template-columns: 1fr;
  }
  .page-ultrasound-about .team-card {
    padding: 1.75rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-ultrasound-about .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.policy-page-section {
  background:
    linear-gradient(180deg, rgba(74, 130, 183, 0.08), rgba(255, 255, 255, 0)),
    var(--bg-light);
}
.policy-container {
  max-width: 900px;
}
.policy-article {
  background: white;
  border: 1px solid rgba(74, 130, 183, 0.16);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.policy-article .accent-text {
  margin-bottom: 0.75rem;
}
.policy-article h2 {
  margin-bottom: 0.75rem;
}
.policy-article h3 {
  margin-top: 2.35rem;
  margin-bottom: 0.85rem;
  color: var(--color-pulse-main);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.policy-article p {
  color: var(--text-muted);
}
.policy-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.policy-intro {
  color: var(--text-main);
  font-size: 1.05rem;
}
.policy-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}
.policy-list li {
  color: var(--text-muted);
  line-height: 1.7;
}
.policy-callout {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: rgba(74, 130, 183, 0.08);
  border: 1px solid rgba(74, 130, 183, 0.16);
  border-radius: var(--radius-md);
}
.policy-callout p {
  margin-bottom: 0.55rem;
}
.policy-callout p:last-child {
  margin-bottom: 0;
}
.policy-contact-card {
  margin-top: 2.5rem;
}
.policy-related {
  margin-top: 2rem;
}
.policy-company {
  margin-top: 1rem;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .policy-article {
    padding: 1.5rem;
  }
}

/* Single-service presentation for the current vascular-only release. */
.home-services-grid-single { grid-template-columns: 1fr; max-width: 960px; }
@media (min-width: 900px) {
  .home-services-grid-single .home-service-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
}
.footer-powered-by a { gap: 10px; font-size: 13px; }
.footer-powered-by p { margin: 0; font-size: inherit; }
.footer-powered-by img { width: 92px; height: 26px; object-fit: contain; }

/* Allow grid content, long contact details and service labels to fit their columns. */
.grid-split > *, .form-group, .timeline-content { min-width: 0; }
.referrers-support-panel > * { min-width: 0; }
body.menu-open #pulse-search-widget { visibility: hidden; pointer-events: none; }
main, footer { overflow-wrap: anywhere; }
.service-directory-pills a, .vascular-pill, .general-pill, .msk-pill {
  white-space: normal;
  line-height: 1.4;
}

/* Phone layout: full-width actions and less nested padding. */
@media (max-width: 600px) {
  .hero-content .btn-group { flex-direction: column; align-items: stretch; }
  .hero-content .btn { flex: none; width: 100%; }
  .hero-content { margin-top: 24px; padding: 2rem 1.5rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .timeline-item, .timeline-item.left, .timeline-item.right { padding-left: 44px; }
  .patients-timeline .timeline-track { left: 12px; }
  .timeline-item .timeline-dot { left: 4px !important; }
  .timeline-card { padding: 1.25rem; }
  .policy-callout { padding: 1rem; }
  .page-ultrasound-referrers .referrers-support-panel .form-panel { padding: 0; }
}

/* Small phones: preserve usable content width inside cards and forms. */
@media (max-width: 380px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .form-panel, .patients-overview-card { padding: 1.25rem; }
}

/* Honour conditional preparation panels when their layout uses grid. */
[data-referral-preparation][hidden], .referral-preparation[hidden] { display: none; }
