/* ==========================================================================
   Homepage (front-page.php) — Page-Specific Styles
   ========================================================================== */

/* Hero — full viewport height */
.resp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero video background */
.hero-video {
    position: absolute; 
    inset: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    z-index: 0;
}

/* Hero dark overlay */
.hero-overlay {
    position: absolute; 
    inset: 0; 
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(30,42,66,0.58) 0%, rgba(30,42,66,0.55) 55%,
        rgba(30,42,66,0.50) 75%, rgba(80,90,110,0.40) 88%,
        rgba(180,170,150,0.35) 95%, rgba(245,243,238,0.85) 100%);
}

/* Hero content wrapper */
.hero-content {
    position: relative; 
    z-index: 2;
    text-align: center; 
    padding: 80px; 
    max-width: 1280px;
}

/* Hero logo */
.hero-logo {
    height: 96px; 
    width: auto; 
    display: block;
    margin: 0 auto 40px;
}

/* Hero title */
.hero-title {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 56px; 
    line-height: 1.1; 
    font-weight: 700;
    letter-spacing: -0.028em; 
    color: #fff; 
    margin: 0 0 28px;
}

/* Hero lead paragraph */
.hero-lead {
    font-size: 17px; 
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    margin: 0 auto; 
    max-width: 720px;
}

/* Hero buttons */
.btn-hero-primary {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.btn-hero-secondary {
    transition: transform 0.25s ease, background 0.25s ease;
}
.btn-hero-secondary:hover {
    transform: translateY(-2px);
    background: #4F78CF !important;
}

/* Outline button */
.btn-outline {
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-outline:hover {
    background: #223763;
    color: #fff;
}

/* Card effects */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(34, 55, 99, 0.10);
}
.card-dark {
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card-dark:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.28) !important;
    background: rgba(255,255,255,0.07) !important;
}

/* Image zoom */
.img-zoom { overflow: hidden; }
.img-zoom img {
    transition: transform 0.5s ease, filter 0.4s ease;
}
.img-zoom:hover img {
    transform: scale(1.04);
}

/* Mood image */
.mood-img img {
    filter: saturate(0.6) brightness(1.02) contrast(1.02);
    transition: filter 0.4s ease, transform 0.5s ease;
}
.mood-img:hover img {
    filter: saturate(0.75) brightness(1.04) contrast(1.03);
}

/* Service tab items */
.svc-item {
    transition: background 0.25s ease, color 0.25s ease;
}
.svc-item:not(.active):hover {
    background: #EEF3FA;
}

/* Insight links */
.insight-link {
    transition: opacity 0.25s ease;
}
.insight-link:hover {
    opacity: 0.75;
}
.insight-link:hover h3 {
    color: #3864C0 !important;
}

/* Carousel scroll */
.carousel {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel::-webkit-scrollbar { 
    display: none; 
}
.carousel > * { 
    scroll-snap-align: start; 
}

/* Stats grid mobile fix */
@media (max-width: 700px) {
    .resp-grid-4 > div {
        border-left: none !important;
        padding: 0 !important;
    }
    .resp-grid-4 > div:nth-child(even) {
        border-left: 1px solid #EDEEF1 !important;
        padding-left: 16px !important;
    }
    .resp-grid-4 > div:nth-child(n+3) {
        padding-top: 24px !important;
        border-top: 1px solid #EDEEF1;
    }
    .resp-hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: 320px;
        margin: 0 auto;
    }
    .resp-hero-buttons > a {
        width: 100% !important;
        padding: 14px 24px !important;
        box-sizing: border-box;
    }
    .hero-lead { 
        display: none !important; 
    }
    .resp-hero .resp-h1 {
        font-size: 40px !important;
        margin-bottom: 0 !important;
    }
    .hero-logo { 
        height: 56px !important; 
        margin-bottom: 24px !important; 
    }
    .resp-about-img-offset {
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
    }
    .resp-nameplate { 
        position: static !important; 
        margin-top: 16px !important; 
    }
    .resp-frame-offset { 
        display: none !important; 
    }
    .resp-team-card { 
        min-width: 240px !important; 
    }
    .resp-team-intro-card { 
        min-width: 240px !important; 
    }
}

@media (max-width: 1100px) {
    .resp-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px !important;
    }
    .resp-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .hero-logo { 
        height: 76px !important; 
        margin-bottom: 32px !important; 
    }
    .resp-h3 { 
        font-size: 26px !important; 
    }
    .resp-stats-n { 
        font-size: 40px !important; 
    }
}

@media (max-width: 700px) {
    .resp-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px 16px !important;
    }
    .resp-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .resp-h3 { 
        font-size: 22px !important; 
    }
    .resp-stats-n { 
        font-size: 32px !important; 
    }
}
