/* Home page specific styles (hero) */
.hero-home {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
    min-height: 540px;
    display: flex;
    align-items: center
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(3, 22, 50, 0.62), rgba(3, 22, 50, 0.32)), url('../assets/images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: contrast(0.98) brightness(0.9);
    z-index: 0
}

.hero-home .container {
    position: relative;
    z-index: 1
}

.hero-home .hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center
}

.hero-home .hero-left {
    color: #fff;
    padding-right: 1rem
}

.hero-home .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: .35rem .7rem;
    border-radius: 24px;
    font-weight: 700
}

.hero-home .hero-title {
    font-size: 2.4rem;
    margin: .6rem 0 0.6rem;
    line-height: 1.06;
    color: #fff;
    font-weight: 800
}

.hero-home .hero-sub {
    color: rgba(255, 255, 255, 0.92);
    max-width: 56ch;
    margin-bottom: 1rem
}

.hero-home .hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    margin: 1rem 0 0 0
}

.hero-highlight {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04)
}

.hero-ctas {
    display: flex;
    gap: .6rem;
    align-items: center
}

.btn {
    border-radius: 8px;
    padding: .6rem .9rem;
    text-decoration: none
}

.btn-primary {
    background: #0b4a78;
    color: #fff
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18)
}

.hero-micro {
    display: block;
    margin-top: .6rem;
    color: rgba(255, 255, 255, 0.85)
}

.hero-trust {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    list-style: none;
    padding: 0
}

.hero-right .hero-visual {
    background: linear-gradient(180deg, #ffffff, #f3fbff);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(3, 22, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center
}

/* Hero lead form styles */
.hero-form .form-card {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(11, 35, 64, 0.12);
    border: 1px solid rgba(238, 243, 248, 0.6);
    max-width: 380px
}

.hero-form h2 {
    margin: 0 0 .4rem;
    font-size: 1.15rem;
    color: #000
}

.hero-form .small {
    margin: 0 0 .6rem;
    color: rgba(0, 0, 0, 0.75)
}

/* Stronger specificity to override global .hero color rules */
.hero-home .hero-form h2 {
    color: #000 !important
}

.hero-home .hero-form .small {
    color: rgba(0, 0, 0, 0.75) !important
}

.hero-form form {
    display: flex;
    flex-direction: column;
    gap: .6rem
}

.hero-form input[type="text"],
.hero-form input[type="tel"],
.hero-form input[type="email"],
.hero-form select,
.hero-form textarea {
    border: 1px solid #e6eef6;
    padding: .6rem .7rem;
    border-radius: 8px;
    font-size: 14px
}

.hero-form textarea {
    resize: vertical
}

.hero-form .btn-primary {
    padding: .6rem .9rem;
    border-radius: 8px
}

/* small helper for accessible labels visually-hidden */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px
}

/* Responsive */
@media(max-width:900px) {
    .hero-home .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-home {
        padding: 2.25rem 0
    }

    .hero-home .hero-title {
        font-size: 1.6rem
    }

    .hero-home .hero-right {
        order: -1
    }

    .hero-home .hero-left {
        padding-right: 0
    }

    .hero-form .form-card {
        max-width: 100%;
        width: 100%
    }
}

/* Redesigned Why Choose section (homepage) */
.why-choose .why-inner {
    padding: 1.25rem 0 2rem;
}
.why-choose .why-split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: stretch;
}
.why-choose .why-header h2 {
    margin: 0 0 .25rem;
    font-size: 1.6rem;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-top: 0.9rem;
}
.why-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.9rem;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.06);
    color: #ffffff;
}
.why-card .why-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.09);
    color: #ffffff;
    flex: 0 0 48px;
}
.why-card h4 { margin: 0 0 .25rem; font-size: 1rem; color: #ffffff; }
.why-card p { margin: 0; color: rgba(255,255,255,0.9); font-size: .95rem; }
.why-card.featured { background: rgba(255,255,255,0.04); border-left: 4px solid rgba(255,255,255,0.12); }

.why-right .why-form .form-card { max-width: 100%; padding: 1rem; }

/* Make the right column form stretch to match the left column height */
.why-right { display: block; }
.why-right .why-form { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.why-right .why-form .form-card { height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Styling for the compact lead form inside Why Choose */
.why-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 28px rgba(11, 35, 64, 0.08);
    border: 1px solid rgba(14, 40, 70, 0.04);
}
.why-form form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.why-form input[type="text"],
.why-form input[type="tel"],
.why-form input[type="email"],
.why-form select,
.why-form textarea {
    border: 1px solid #e6eef6;
    padding: .55rem .65rem;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.why-form input:focus,
.why-form select:focus,
.why-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 74, 120, 0.06);
    border-color: rgba(11, 74, 120, 0.18);
}
.why-form .btn-primary {
    padding: .6rem .8rem;
    border-radius: 8px;
    width: 100%;
    font-weight: 700;
}
.why-form .small { color: #51637a; margin-bottom: .25rem; }

/* Keep form compact on small screens */
@media (max-width: 900px) {
    .why-form { width: 100%; }
}

/* Unsplash illustration handling: ensure inline image fills the right column */
.why-right { background-image: none !important; }
.why-right .why-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    min-height: 240px; /* decreased from 320px */
}

@media (max-width:1000px) {
    .why-right .why-illustration { min-height: 180px; /* decreased from 260px */ }
}

/* Full-bleed blue background + white text for Why Choose section */
.why-choose {
    background: linear-gradient(180deg,#0b4a78 0%, #083a5e 100%);
    color: #ffffff;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    /* full-bleed edge-to-edge */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}
.why-choose .container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.why-choose .why-header h2, .why-choose .why-sub { color: #ffffff; }
.why-choose .why-cta .btn-primary { background: #ffffff; color: #0b4a78; }
.why-choose .why-cta .btn-ghost { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.18); }

@media (max-width: 900px) {
    .why-choose .why-split { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-right { margin-top: 1rem; }
}

/* About section image */
.about-visual .about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(7, 22, 48, 0.06);
    object-fit: cover;
}

@media (max-width: 900px) {
    .about-visual .about-image { max-height: 320px; }
}

/* Prevent accidental horizontal scrolling caused by full-bleed sections */
html, body { overflow-x: hidden; }

/* Defensive max-width for inline illustrations */
.why-right .why-illustration { max-width: 100%; }
.about-visual .about-image { max-width: 100%; }

/* Ensure full-bleed section doesn't overflow due to padding */
.why-choose { box-sizing: border-box; overflow: hidden; }