﻿/* ============================================================
   REFRESH GLOBAL — HERO SYSTEM (FULL WIDTH BREAKOUT)
   ------------------------------------------------------------
   - Forces hero to break out of Bootstrap container.
   - Ensures true 100vw edge‑to‑edge hero.
   ============================================================ */
.hero-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* ============================================================
   HERO SECTION — BACKGROUND + HEIGHT
   ------------------------------------------------------------
   - 560px is your global standard hero height.
   - Background covers and centers automatically.
   ============================================================ */
.hero {
    height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* ============================================================
   HERO CAPTION — TOP-ALIGNED VERSION
   ------------------------------------------------------------
   - Positioned near the top of the hero.
   - Padding gives breathing room.
   - Max-width keeps text readable.
   ============================================================ */
.hero-caption {
    position: absolute;
    top: 40px; /* Distance from top edge */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    color: #fff;
    z-index: 5;
    padding: 0 20px;
}

    /* ============================================================
   CAPTION TEXT STYLING — CLEAN, CORPORATE, PREMIUM
   ============================================================ */
    .hero-caption h1 {
        font-size: 3rem;
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .hero-caption p {
        font-size: 1.25rem;
        opacity: 0.9;
    }

    /* ============================================================
   OPTIONAL: CAPTION ROTATION SYSTEM
   ------------------------------------------------------------
   - Use only if rotating multiple captions.
   - Each caption fades in/out in sequence.
   ============================================================ */
    .hero-caption .caption {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        animation: captionFade 16s infinite;
    }

        .hero-caption .caption:nth-child(1) {
            animation-delay: 0s;
        }

        .hero-caption .caption:nth-child(2) {
            animation-delay: 4s;
        }

        .hero-caption .caption:nth-child(3) {
            animation-delay: 8s;
        }

        .hero-caption .caption:nth-child(4) {
            animation-delay: 12s;
        }

@keyframes captionFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 1;
        transform: translateY(0);
    }

    35% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
    }
}

/* ============================================================
   SERVICE CARD — GLOBAL WRAPPER
   ------------------------------------------------------------
   - Clean white card.
   - Subtle elevation on hover.
   ============================================================ */
.service-card {
    background: #fff;
    border-radius: 8px;
    transition: all 0.25s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    }

    /* ============================================================
   SERVICE IMAGE CONTROL
   ------------------------------------------------------------
   - Ensures consistent image height.
   - Clean crop using object-fit.
   ============================================================ */
    .service-card .service-img {
        width: 100%;
        height: auto;
        max-height: 450px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 15px;
    }

    /* ============================================================
   ULTRA THIN LINE
   ============================================================ */
    .service-card .service-line {
        border: 0;
        border-top: 1px solid #e5e5e5;
        margin: 0 0 15px 0;
    }

    /* ============================================================
   TITLE SPACING
   ============================================================ */
    .service-card h4 {
        margin-top: 10px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    /* ============================================================
   PARAGRAPH SPACING
   ============================================================ */
    .service-card p {
        margin-bottom: 10px;
    }

        .service-card p.small {
            color: #888;
        }

/* ============================================================
   RESPONSIVE TUNING
   ------------------------------------------------------------
   - Slightly smaller images and captions on mobile.
   ============================================================ */
@media (max-width: 768px) {
    .hero {
        height: 420px;
    }

    .hero-caption {
        top: 20px;
        padding: 0 15px;
    }

        .hero-caption h1 {
            font-size: 2.2rem;
        }

        .hero-caption p {
            font-size: 1.1rem;
        }

    .service-card .service-img {
        max-height: 350px;
    }
}
