/* =========================================================
   CLIFTON GLOBAL HEALTHCARE SOLUTIONS
   PREMIUM OVERRIDES · VISIBILITY FIXES · SMOOTH ANIMATIONS
   (loaded last — refines the base theme site-wide)
========================================================= */

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(15, 166, 166, 0.22);
    color: var(--navy-deep);
}


/* =========================================================
   1. HEADING VISIBILITY ON DARK SECTIONS
   The global "h1..h6 { color: navy }" rule made hero / CTA
   titles dark on dark backgrounds. Restore light text where
   the section background is dark, keeping the accent colour.
========================================================= */

.contact-hero-title,
.products-hero-title,
.solutions-hero-title,
.inner-page-title,
.about-hero .inner-page-title,
.cta-content h2,
.cta-box h2,
.industry-cta-box h2,
.contact-final-box h2 {
    color: #ffffff;
}

/* accent portions stay teal */
.contact-hero-title span,
.products-hero-title span,
.solutions-hero-title span,
.inner-page-title span,
.cta-box h2 strong,
.cta-content h2 span,
.industry-cta-box h2 strong,
.contact-final-box h2 strong {
    color: var(--primary-light) !important;
}

.about-hero .inner-page-title {
    color: #ffffff;
}

.about-hero .inner-page-title span {
    color: var(--primary-light) !important;
}


/* =========================================================
   2. CTA SECTIONS — CONSISTENT PREMIUM LAYOUT
   The products CTA used an unstyled ".cta-box"; normalise all
   CTA blocks into one centred, well-spaced premium panel.
========================================================= */

.cta-section {
    position: relative;
    padding: 96px 0 !important;
    background:
        radial-gradient(120% 120% at 50% -10%, #0c3a48 0%, var(--navy-deep) 60%) !important;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 166, 166, 0.18), transparent 62%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

.cta-box {
    position: relative;
    z-index: 2;
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.cta-box .cta-content {
    max-width: 780px;
}

.cta-box .section-eyebrow,
.cta-box .section-eyebrow.light {
    display: inline-flex;
    justify-content: center;
    color: var(--primary-light);
}

.cta-box h2 {
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 16px 0 18px;
}

.cta-box h2 strong {
    display: block;
}

.cta-box p {
    max-width: 640px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15.5px;
    line-height: 1.85;
}

.cta-box .btn {
    margin-top: 4px;
}


/* =========================================================
   3. PREMIUM MOTION — HOVER LIFTS & MICRO-INTERACTIONS
========================================================= */

.btn {
    transition: transform 0.3s cubic-bezier(.22, 1, .36, 1),
                box-shadow 0.3s ease,
                background 0.3s ease,
                color 0.3s ease !important;
    will-change: transform;
}

.btn i {
    transition: transform 0.3s cubic-bezier(.22, 1, .36, 1);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:hover i {
    transform: translate(3px, -3px);
}

.btn:active {
    transform: translateY(-1px);
}

/* card lift + smoothing */
.product-card,
.why-card,
.solution-item,
.mission-card,
.value-card,
.approach-item,
.difference-item,
.process-item,
.capability-card,
.contact-info-card,
.inquiry-card,
.quote-side-item,
.stat-item,
.about-story-card,
.hero-image-wrapper,
.footer-contact-item {
    transition: transform 0.42s cubic-bezier(.22, 1, .36, 1),
                box-shadow 0.42s ease,
                border-color 0.35s ease,
                background 0.35s ease;
}

.product-card:hover,
.why-card:hover,
.value-card:hover,
.approach-item:hover,
.capability-card:hover,
.mission-card:hover,
.inquiry-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

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

/* image zoom inside cards */
.product-card img,
.solution-item img,
.about-story-card img,
.hero-image-wrapper img {
    transition: transform 0.7s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.product-card:hover img,
.solution-item:hover img,
.about-story-card:hover img {
    transform: scale(1.05);
}

/* social + footer link polish */
.social-links a {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-links a {
    transition: color 0.28s ease, padding-left 0.28s ease;
}

.footer-links a:hover {
    padding-left: 5px;
}

/* back-to-top smoothness */
.back-to-top {
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1),
                opacity 0.35s ease, background 0.3s ease !important;
}

.back-to-top:hover {
    transform: translateY(-4px);
}


/* =========================================================
   4. SMOOTH REVEAL TIMING (works with GSAP; CSS fallback below)
========================================================= */

.reveal-up,
.reveal-scale {
    transition: opacity 0.9s cubic-bezier(.22, 1, .36, 1),
                transform 0.9s cubic-bezier(.22, 1, .36, 1);
}

/* Safety: if scripting is unavailable, never hide content */
.no-js .reveal-up,
.no-js .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
}


/* =========================================================
   5. HEADER / NAV FINE-TUNING
========================================================= */

.site-header {
    transition: padding 0.35s ease, background 0.35s ease,
                box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.custom-logo,
.footer-logo {
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), opacity 0.35s ease;
}


/* =========================================================
   6. FOOTER POLISH
========================================================= */

.footer-logo {
    height: 60px;
}

.footer-contact-item {
    align-items: flex-start;
}

.footer-main {
    padding: 84px 0 52px;
}


/* =========================================================
   7. HOME CONTACT / QUOTE FORM (uses shared form styles)
========================================================= */

.home-quote {
    background:
        linear-gradient(180deg, var(--soft-bg) 0%, #ffffff 100%);
}

.home-quote .healthcare-form {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.home-quote .quote-intro {
    max-width: 460px;
}

.home-quote-points {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.home-quote-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.6;
}

.home-quote-points i {
    flex-shrink: 0;
    margin-top: 2px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(15, 166, 166, 0.12);
    color: var(--primary-dark);
    font-size: 15px;
}

.home-quote-points strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 2px;
}


/* =========================================================
   8. ACCESSIBILITY — VISIBLE FOCUS
========================================================= */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


/* =========================================================
   9. RESPONSIVE REFINEMENTS
========================================================= */

@media (max-width: 991.98px) {
    .cta-section {
        padding: 72px 0 !important;
    }
    .footer-main {
        padding: 64px 0 44px;
    }
}

@media (max-width: 575px) {
    .cta-box h2 {
        font-size: clamp(28px, 8vw, 40px);
    }
    .home-quote .healthcare-form {
        padding: 26px 20px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}


/* =========================================================
   10. BUG FIX — undefined --deep-navy variable
   Base theme references var(--deep-navy) in 6 places but the
   root only defines --navy-deep, so those backgrounds/text
   silently broke. Alias it here.
========================================================= */

:root {
    --deep-navy: #041D29;
    --medical-teal: #0FA6A6;
    --soft-cyan: #55D6D2;
}


/* Mission "primary" card is a DARK panel — its text must be light
   (base theme set it to black, which vanished once the dark
   background variable was restored). */
.mission-primary,
.mission-primary h3,
.mission-primary .mission-number {
    color: #ffffff !important;
}

.mission-primary p {
    color: rgba(255, 255, 255, 0.78) !important;
}

.mission-primary .mission-number {
    color: rgba(255, 255, 255, 0.14) !important;
}


/* =========================================================
   11. MORE DARK-BOX HEADINGS — keep visible
   (procurement + difference callout boxes)
========================================================= */

.procurement-box h2,
.difference-box h2 {
    color: #ffffff;
}

.procurement-box h2 strong,
.difference-box h2 strong {
    color: var(--primary-light) !important;
}

/* Ensure these dark callout boxes have their intended
   rounded premium panel look */
.procurement-box,
.difference-box,
.industry-cta-box,
.contact-final-box {
    border-radius: var(--radius-lg);
}

/* Contact hero side card heading — lift contrast */
.contact-hero-card h3,
.contact-hero-card h2,
.contact-hero-card .contact-hero-card-title {
    color: #ffffff;
}


/* Difference box list — light text/icons on the dark panel */
.difference-points i {
    color: var(--primary-light) !important;
}

.difference-points span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.difference-points div {
    transition: background 0.3s ease, transform 0.3s ease;
}

.difference-points div:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    transform: translateX(4px);
}

.difference-box p {
    color: rgba(255, 255, 255, 0.75) !important;
}


/* =========================================================
   12. GLOBAL BRANDS MARQUEE (between CTA and footer)
========================================================= */

.brands-section {
    position: relative;
    padding: 62px 0 66px;
    background: var(--soft-bg);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.brands-eyebrow {
    margin: 0 0 34px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.brands-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.brands-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: brandScroll 40s linear infinite;
}

.brands-marquee:hover .brands-track {
    animation-play-state: paused;
}

.brand-name {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 34px;
    margin: 0 34px;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: clamp(19px, 2.3vw, 29px);
    letter-spacing: -0.01em;
    color: #94a9af;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.brand-name::after {
    content: "•";
    color: var(--primary);
    opacity: 0.55;
    font-size: 0.6em;
}

.brand-name:hover {
    color: var(--primary-dark);
}

@keyframes brandScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .brands-track { animation: none; }
    .brands-marquee {
        overflow-x: auto;
    }
}

@media (max-width: 575px) {
    .brands-section { padding: 46px 0 50px; }
    .brand-name { margin: 0 22px; gap: 22px; }
}
