/* =========================================
   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:#2e72b9;
    
    /* --- 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;
}

/* 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-main);
    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; }
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: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 992px) {
    .grid-split { grid-template-columns: 1fr 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;
}
.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: 32px; width: auto; transition: height 0.3s ease; }
.header-wrapper.scrolled .logo img { height: 26px; 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 { 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 { 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; }

/* 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; border-bottom: 1px solid var(--border-light); }
.menu-mobile-header img { height: 35px; transform: scale(1.3); transform-origin: left; }
#mobile-menu-close { width: 28px; height: 28px; background: none; border: none; cursor: pointer; position: relative; }
#mobile-menu-close::before, #mobile-menu-close::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; 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.standard-list { gap: 1rem; padding: 0 0 1.5rem 1rem; }
.mobile-accordion-inner.standard-list a { color: var(--text-muted); font-size: 1rem; text-decoration: none; }
.mobile-accordion-inner.standard-list 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(--text-muted); 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;
}

/* =========================================
   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;
}
.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-group { margin-bottom: 1.5rem; }
.form-group 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 input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-pulse-main);
}

/* 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; }

/* Finance Section */
.footer-finance { 
    padding: 40px 0; 
    border-top: 1px solid rgba(255,255,255,0.15); 
    border-bottom: 1px solid rgba(255,255,255,0.15); 
    margin: 20px 0 40px 0; 
    text-align: center; 
    overflow: hidden; 
}
.finance-headline {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.finance-row { display: flex; justify-content: center; margin-bottom: 3rem; }
.finance-qcards { display: flex; gap: 15px; justify-content: center; margin-bottom: 1rem; }
.finance-qcard img { height: 40px; border-radius: 4px; }
.finance-subtext { color: rgba(255,255,255,0.8); font-size: 0.85rem; max-width: 400px; margin: 0 auto; }

/* Marquee Animation */
.finance-marquee { 
    width: 100vw; margin-left: calc(-50vw + 50%); 
    position: relative; display: flex; overflow: hidden; 
}
.marquee-track { 
    display: flex; gap: 40px; align-items: center; 
    animation: scroll-marquee 30s linear infinite; white-space: nowrap; padding-left: 40px;
}
.marquee-track img { 
    height: 35px; filter: grayscale(100%) brightness(0) invert(1) opacity(0.7); 
    transition: all 0.3s; 
}
.marquee-track img:hover { filter: none; opacity: 1; }

@keyframes scroll-marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* Copyright Bar */
.copyright { padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.copyright p { margin: 0; color: white; opacity: 0.8; font-size: 0.85rem;}
.footer-powered-by a { display: flex; align-items: center; gap: 8px; opacity: 1; text-decoration: none;}
.footer-powered-by img { height: 1.1rem; filter: brightness(0) invert(1); }

/* =========================================
   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: nowrap; width: 100%; gap: 10px;}
    .hero-content .btn { flex: 1; padding: 0 10px; height: 44px; font-size: 0.8rem; }
    
    .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;
    }
    
    /* Create a mobile specific image div dynamically or via pseudo */
    .ultrasound-home-hero::after,
    .ultrasound-vascular-hero::after,
    .ultrasound-general-hero::after,
    .ultrasound-msk-hero::after,
    .ultrasound-patients-hero::after,
    .ultrasound-referrers-hero::after,
    .ultrasound-about-hero::after,
    .ultrasound-contact-hero::after {
        content: ''; display: block; height: 50vh; width: 100%;
        background-image: url('../images/herohome.jpg'); background-size: cover; background-position: center;
        position: relative; z-index: 1; margin-top: -30px; /* Slight overlap */
    }

    .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, .copyright { text-align: center; justify-content: center; }
    .footer-col:first-child .logo { display: block; margin: 0 auto 1rem; }
}

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

/* Hero Glassmorphism Box mapping for all new pages */
.page-ultrasound-vascular .hero-content,
.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;
}

@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
   ========================================= */
.page-ultrasound-general .general-overview-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}
.page-ultrasound-general .general-overview-head p {
    margin: 0 auto;
}
.page-ultrasound-general .general-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.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;
}
.page-ultrasound-general .general-pill:hover {
    background: var(--color-pulse-main);
    color: white;
    border-color: white;
}
.page-ultrasound-general .general-scan-section {
    scroll-margin-top: calc(var(--header-height) + 40px);
}
.page-ultrasound-general .general-scan-section .grid-split {
    gap: 4rem;
}

@media (max-width: 768px) {
    .page-ultrasound-general .general-pill {
        justify-content: center;
    }
    .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;
}

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

/* =========================================
   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;
}
.patients-feedback-card {
    padding: 3rem;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}
.timeline-intro p {
    max-width: 640px;
    margin: 0 auto;
}
.feedback-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: center;
}
.feedback-image .image-wrapper {
    box-shadow: none;
}
.feedback-image img {
    object-fit: cover;
}

.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-feedback-card {
        padding: 2rem;
    }
    .feedback-layout {
        grid-template-columns: 1fr;
    }
    .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-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}
.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(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: 2rem;
    }
}

/* =========================================
   ABOUT PAGE TEAM SECTION
   ========================================= */
.page-ultrasound-about .about-team-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 3rem;
}
.page-ultrasound-about .about-team-feature {
    margin-bottom: 3.5rem;
    align-items: center;
}
.page-ultrasound-about .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 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-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-card {
        padding: 1.75rem;
    }
}
