/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
    background: #f7f8fa;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}
a {
    text-decoration: none;
    color: #2763bd;
    transition: color 0.2s;
}
a:hover {
    color: #102447;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    color: #172742;
    margin-bottom: 0.5em;
}
h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #14213d;
    text-shadow: 0 4px 16px rgba(20,33,61,0.07);
}
h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2763bd;
}
h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.container {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 2.5em 0 2em 0;
}

/* Universal responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header/Nav Styles */
header {
    background: linear-gradient(90deg, #fff 0%, #d1e4fa 100%);
    box-shadow: 0 6px 36px rgba(0,0,0,0.07);
    padding: 0.5em 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
header .container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 0.5em 2%;
    position: relative;
    min-height: 60px;
}
.logo {
    font-size: 2.1rem;
    color: #2763bd;
    font-weight: 900;
    letter-spacing: 0.1em;
}
nav {
    display: flex;
    gap: 2em;
    align-items: center;
    margin-top: 0;
}
nav a {
    font-weight: 500;
    font-size: 1.08rem;
    padding: 0.4em 1.1em;
    border-radius: 2em;
    transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a.active {
    background: #2763bd;
    color: #fff;
}
/* Hamburger menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.2em;
    cursor: pointer;
    color: #2763bd;
    padding: 0.2em 0.5em;
    z-index: 1001;
}

/* Hero / Intro */
.hero {
    background: linear-gradient(120deg, #e7eaf6 0%, #f7f7fc 100%);
    border-radius: 1.9em;
    padding: 2.5em 2em 2em 2em;
    display: flex;
    align-items: center;
    gap: 2.5em;
    box-shadow: 0 10px 40px rgba(39,99,189,0.12);
    margin-bottom: 2.7em;
    margin-top: 1.5em;
}
.hero-content {
    flex: 1 1 400px;
}
.hero img {
    width: 350px;
    max-width: 90vw;
    border-radius: 1.5em;
    box-shadow: 0 8px 36px rgba(20,33,61,0.12);
}

/* ---- Responsive Service Blocks (fix for image overflow) ---- */
.service-block-alternate,
.service-block-alternate.reversed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2em;
    margin-bottom: 2em;
}
.service-block-alternate .text-content,
.service-block-alternate .image-content {
    flex: 1 1 320px;
    min-width: 0;
}
.service-block-alternate .image-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 1.5em;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 40px rgba(39,99,189,0.15);
}
.service-block-alternate.reversed {
    flex-direction: row-reverse;
    background: #fdfdfe;
    border-radius: 1.5em;
    box-shadow: 0 3px 15px rgba(0,0,0,0.03);
    padding: 2em;
}
/* For mobile responsiveness */
@media (max-width: 900px) {
    .service-block-alternate,
    .service-block-alternate.reversed {
        flex-direction: column !important;
        gap: 1em;
        padding: 1.2em 0.4em;
    }
    .service-block-alternate .text-content,
    .service-block-alternate .image-content {
        flex: 1 1 100%;
        width: 100%;
        min-width: unset;
    }
    .service-block-alternate .image-content img {
        border-radius: 1em;
        max-width: 100vw;
    }
}
/* ---- End responsive fix ---- */

/* Section Blocks */
.section {
    margin-bottom: 2.5em;
    border-radius: 1.3em;
    background: #fff;
    box-shadow: 0 4px 24px rgba(39,99,189,0.06);
    padding: 2.3em 2em 2em 2em;
    transition: box-shadow 0.18s;
}
.section:hover {
    box-shadow: 0 8px 36px rgba(39,99,189,0.13);
}

/* Features & Service Cards */
.features-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2em;
    margin-top: 1em;
}
.feature-card, .service-card {
    background: linear-gradient(120deg, #f8fafc 85%, #e7eaf6 100%);
    border-radius: 1.2em;
    padding: 1.3em 1em;
    box-shadow: 0 2px 16px rgba(20,33,61,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.12s, box-shadow 0.12s;
    min-height: 140px;
}
.feature-card:hover, .service-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 10px 36px rgba(39,99,189,0.13);
}
.feature-card img, .service-card img {
    width: 42px;
    height: 42px;
    margin-bottom: 0.7em;
}

/* Icon Cards for specialized services */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.8em;
    margin-top: 1.2em;
}
.icon-card {
    background: #f7f9fa;
    border-radius: 1.1em;
    box-shadow: 0 2px 14px rgba(39,99,189,0.09);
    padding: 1.5em 1.1em 1.4em 1.1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.7em;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6em;
}
.gallery-item {
    border-radius: 1em;
    overflow: hidden;
    background: #f7f8fa;
    box-shadow: 0 4px 24px rgba(20,33,61,0.07);
    transition: box-shadow 0.13s, transform 0.13s;
    cursor: pointer;
}
.gallery-item:hover {
    box-shadow: 0 10px 40px rgba(39,99,189,0.15);
    transform: scale(1.03);
}
.gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 210px;
    transition: filter 0.16s;
}
.gallery-item:hover img {
    filter: brightness(0.94) contrast(1.08);
}

/* Testimonials */
.testimonial-card {
    background: #f7f9fa;
    border-left: 6px solid #2763bd;
    border-radius: 1.1em;
    padding: 1.5em 1.7em 1.3em 1.5em;
    box-shadow: 0 2px 16px rgba(39,99,189,0.07);
    margin-bottom: 1.4em;
}
.testimonial-author {
    font-weight: 700;
    color: #14213d;
}

/* Contact & Forms */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}
.contact-info, .contact-form {
    flex: 1 1 320px;
    background: #f7f8fa;
    border-radius: 1.1em;
    padding: 2em 1.7em;
    box-shadow: 0 2px 14px rgba(39,99,189,0.06);
}
input, textarea, select, button {
    font-family: inherit;
    font-size: 1.07rem;
    margin-top: 0.4em;
    padding: 0.7em 1em;
    border-radius: 0.9em;
    border: 1px solid #c3c9d9;
    background: #fff;
    margin-bottom: 1.1em;
    outline: none;
    transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
    border: 1.5px solid #2763bd;
}
button {
    background: #2763bd;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(39,99,189,0.12);
    transition: background 0.13s;
    padding: 0.85em 2.2em;
}
button:hover {
    background: #14213d;
}

footer {
    background: #14213d;
    color: #fff;
    text-align: center;
    padding: 2em 0 1em 0;
    font-size: 1rem;
    margin-top: 2em;
    border-radius: 1.7em 1.7em 0 0;
    box-shadow: 0 -2px 24px rgba(20,33,61,0.07);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5em;
    }
    .gallery-grid, .features-grid, .services-grid, .icon-grid {
        grid-template-columns: 1fr;
    }
    .contact-section {
        flex-direction: column;
    }
    .container {
        padding: 1.2em 0 1em 0;
    }

    /* Mobile Navigation Specific Styles */
    header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.5em 1em;
        min-height: 50px;
    }
    .logo {
        font-size: 1.8rem;
        flex-grow: 1;
        text-align: left;
        margin-top: 0;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 0 0 1em 1em;
        padding-bottom: 1em;
        z-index: 1000;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }
   nav.active {
        display: flex !important;
        flex-direction: column;
        max-height: 80vh;
        overflow-y: auto;
    }
    .menu-toggle {
        display: block;
        position: static;
        font-size: 1.5em;
        padding: 0.1em 0.2em;
        top: auto;
        right: auto;
        transform: none;
        margin-left: auto;
    }
}
