/* Homepage Specific Overrides/Additions */

/* Hero bounds & alignments */
.hero-section {
    min-height: 100vh;
    padding-bottom: 60px; /* reserve space for expertise ribbon */
}

/* ECG canvas fills the full hero */
#hero-ecg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    padding-top: 20px;
}

/* Hero button hover states */
.hero-btn-primary {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.hero-btn-primary:hover {
    background: #B8844A !important;
    box-shadow: 0 6px 22px rgba(200,155,94,0.38) !important;
    transform: translateY(-2px);
    color: #1C1F26 !important;
}

.hero-btn-secondary {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.hero-btn-secondary:hover {
    background: rgba(31,61,43,0.05) !important;
    box-shadow: 0 4px 14px rgba(31,61,43,0.10) !important;
    transform: translateY(-2px);
}

/* Word-split animation — must be inline-block for y-transform */
.hero-word {
    display: inline-block;
}

/* Line 2 cursor blink after shimmer (optional, purely CSS) */
.hero-line-2::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.8em;
    background: #C89B5E;
    margin-left: 0.1em;
    vertical-align: middle;
    opacity: 0;
    animation: heroCursor 0.7s ease-out 1.8s 3 alternate;
}

@keyframes heroCursor {
    0%   { opacity: 0; }
    50%  { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Expertise ribbon — cinematic marquee track */
.expertise-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: heroMarquee 38s linear infinite;
}

.hero-expertise-ribbon:hover .expertise-track {
    animation-play-state: paused;
}

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

.expertise-chip {
    display: inline-block;
    min-width: 22vw;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(31,61,43,0.62);
    letter-spacing: 0.022em;
    white-space: nowrap;
    padding: 0 2rem;
}

.expertise-sep {
    color: rgba(200,155,94,0.55);
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

/* Specific text responsiveness */
@media (max-width: 768px) {
    .hero-headline {
        font-size: var(--text-4xl) !important;
    }

    .hero-subheadline {
        font-size: var(--text-base) !important;
        max-width: 100% !important;
    }

    .display-3 {
        font-size: var(--text-4xl) !important;
    }

    .expertise-chip {
        font-size: 0.78rem;
        min-width: 44vw;
        padding: 0 1rem;
    }
}

/* 3D icon — individual pre-cropped PNGs (768×512 each, natural 3:2 ratio) */
.card-icon-img {
    width: 84px;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(31,61,43,0.14));
    flex-shrink: 0;
}

/* Outreach Network — 4th stat interactive element */
.outreach-stat {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.outreach-circle {
    border-color: rgba(200,155,94,0.45) !important;
    background: rgba(200,155,94,0.04) !important;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.outreach-stat:hover .outreach-circle,
.outreach-stat.active .outreach-circle {
    border-color: rgba(200,155,94,0.75) !important;
    background: rgba(200,155,94,0.09) !important;
    box-shadow: 0 4px 22px rgba(200,155,94,0.18) !important;
}

.outreach-plus {
    font-size: 0.55em;
    vertical-align: super;
    color: var(--color-primary);
}

.outreach-hint {
    font-size: 0.62rem;
    color: rgba(200,155,94,0.80);
    letter-spacing: 0.06em;
    margin-top: 0.38rem;
    line-height: 1;
    font-weight: 500;
}

.outreach-chevron {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1px;
}

.outreach-stat.active .outreach-chevron {
    transform: rotate(90deg);
}

/* Floating panel */
.outreach-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 252px;
    max-width: calc(100vw - 2rem);
    z-index: 30;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
}

.outreach-stat:hover .outreach-panel,
.outreach-stat.active .outreach-panel {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.outreach-panel-inner {
    background: rgba(250,247,242,0.98);
    border: 1px solid rgba(200,155,94,0.26);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(31,61,43,0.10), 0 2px 10px rgba(200,155,94,0.09);
    padding: 1.25rem 1.5rem 1.4rem;
    text-align: left;
}

.outreach-tagline {
    font-size: 0.66rem;
    color: rgba(200,155,94,0.90);
    letter-spacing: 0.055em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(200,155,94,0.16);
    padding-bottom: 0.8rem;
}

.outreach-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #1F3D2B;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.42rem;
    font-family: var(--font-body);
}

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

.outreach-list li {
    font-size: 0.81rem;
    color: rgba(31,61,43,0.68);
    padding: 0.18rem 0 0.18rem 0.9rem;
    position: relative;
    line-height: 1.5;
}

.outreach-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(200,155,94,0.65);
}

.outreach-group + .outreach-group {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(200,155,94,0.13);
}

/* Service card bullet list — clean dot style */
.service-card-list li {
    position: relative;
    padding-left: 1.1rem;
    line-height: 2.0;
}

.service-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(200,155,94,0.6);
}

/* Arrow hover interactions exclusively for cards */
.hover-arrow svg {
    transition: transform var(--transition-normal);
}

.hover-trigger:hover .hover-arrow svg {
    transform: translateX(5px);
}

/* Imaging Advantage — video panel */
.imaging-video-wrap {
    box-shadow: 0 18px 52px rgba(8,10,10,0.32), 0 4px 16px rgba(8,10,10,0.18);
    border: 1px solid rgba(200,155,94,0.14);
    background: #000;
    line-height: 0;
}

.imaging-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Philosophy */
.philosophy-quote {
    line-height: 1.1;
    color: var(--color-primary-dark);
}

/* Swiper styling customization */
.testimonials-slider {
    padding-bottom: 3.5rem !important;
    /* Make room for pagination bullets */
}

.swiper-pagination-bullet {
    background: var(--color-primary) !important;
    opacity: 0.3 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all var(--transition-normal) !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--color-accent) !important;
    transform: scale(1.3);
}

/* Optional padding changes on the CTA Banner */
@media (max-width: 768px) {
    .cta-banner {
        padding: 3rem 1.5rem !important;
    }
}

/* Ensure absolute image positioning behaves over swiper */
.swiper-slide {
    height: auto !important;
    /* ensures all cards equal height mapping flex children */
}
