/* ===================================
  HERO SWIPER SECTION - COMPLETE FIX
=================================== */
.hero-swiper-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: visible !important; /* CRITICAL: Allows form to overflow if needed */
    z-index: 1;
}

.heroSwiper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1 !important; /* Keep slider below form */
}

.swiper-wrapper { z-index: 1; }
.swiper-slide { position: relative; overflow: hidden; z-index: 1; }

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.swiper-slide-active .slide-bg-image { transform: scale(1); }

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(59, 129, 139, 0.6) 100%);
}

.slide-text-content {
    position: relative;
    z-index: 2;
}

/* Text Animations */
.slide-subtitle {
    display: inline-block;
    color: var(--coral);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}
.swiper-slide-active .slide-subtitle { animation: fadeInUp 0.8s ease forwards 0.5s; }

.slide-title {
    color: var(--pure-white);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    font-family: var(--font-02);
}
.swiper-slide-active .slide-title { animation: fadeInUp 0.8s ease forwards 0.7s; }

.slide-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}
.swiper-slide-active .slide-description { animation: fadeInUp 0.8s ease forwards 0.9s; }

.slide-cta { opacity: 0; transform: translateY(30px); }
.swiper-slide-active .slide-cta { animation: fadeInUp 0.8s ease forwards 1.1s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =============================================
   HERO OPEN CONTACT FORM - FINAL FIX
   (anchored below navbar, never clipped)
============================================== */
.hero-form-aside {
    position: absolute !important;
    top: 95px !important;          /* sits BELOW the fixed navbar */
    bottom: 35px !important;       /* sits ABOVE hero bottom / hook strip */
    right: 40px !important;
    transform: none !important;    /* no centering = no clipping */
    width: 400px;
    z-index: 900 !important;       /* below navbar (nav stays clickable), above slider */
    display: flex;
    pointer-events: auto !important;
}

.hero-contact-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 1.4rem;
    border-radius: 18px;
    border-top: 4px solid var(--coral);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-height: fit-content;
    overflow-y: auto;              /* internal scroll on short screens */
    opacity: 1 !important;
    transform: none !important;
}

/* Slim coral scrollbar inside card */
.hero-contact-card::-webkit-scrollbar { width: 5px; }
.hero-contact-card::-webkit-scrollbar-track { background: transparent; }
.hero-contact-card::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 10px; }

/* Compact typography so card fits normal laptops without scrolling */
.hero-contact-card h3 {
    font-family: var(--font-02);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: var(--charcoal);
}

.hero-form-sub {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.9rem;
}

.hero-form-grid { display: grid; gap: 0.6rem; }

.hero-contact-form .form-control,
.hero-contact-form .form-select {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    background: var(--pure-white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
}

.hero-contact-form textarea.form-control { min-height: 58px; }

.hero-contact-form .form-control:focus,
.hero-contact-form .form-select:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
    outline: none;
}

.hero-submit-btn {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.hero-eval-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 0.6rem 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.hero-eval-btn:hover { background: var(--primary-teal); color: var(--pure-white); }

.hero-form-phone {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 0.7rem;
}

.hero-form-phone a { color: var(--primary-teal); font-weight: 700; text-decoration: none; }
.hero-form-phone a:hover { color: var(--coral); }
/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--pure-white);
    z-index: 10;
}

.hero-scroll span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--coral), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}
/* Laptop (992-1199): narrower card */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-form-aside { width: 355px; right: 20px !important; }
    .hero-contact-card { padding: 1.25rem 1.1rem; }
    .hero-contact-card h3 { font-size: 1.05rem; }
}

/* Large desktop: a bit more breathing room */
@media (min-width: 1600px) {
    .hero-form-aside { width: 430px; right: 60px !important; }
}

/* Tablet & Mobile: stack below slider (unchanged behavior) */
@media (max-width: 991.98px) {
    .hero-swiper-section {
        height: auto;
        min-height: 0;
        padding-bottom: 90px;
        overflow: visible;
    }
    .heroSwiper { height: 75vh; min-height: 500px; }
    .hero-form-aside {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 600px;
        margin: 30px auto 0;
        padding: 0 15px;
        display: block;
    }
    .hero-contact-card { max-height: none; overflow: visible; }
    .hero-scroll { display: none; }
}

@media (max-width: 575.98px) {
    .heroSwiper { height: 70vh; min-height: 450px; }
    .hero-contact-card { padding: 1.5rem 1.25rem; }
    .slide-title{font-size: 2rem}
    .slide-subtitle{margin-bottom: 0;margin-top: 40px}
}