@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #ebf0f6;
    /* Global soft blue/grey tint */
    color: #333333;
    padding: 24px;
    /* The master frame padding */
    min-height: 100vh;
}

/* --- 2. REUSABLE UI COMPONENTS --- */
/* Custom Button */
.consultation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #611535;
    /* Deep wine accent */
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.consultation-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consultation-btn:hover .arrow-circle {
    transform: translate(2px, -2px);
}

/* Section Badges */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #475569;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #611535;
    border-radius: 50%;
}

/* --- 3. HERO & NAVIGATION --- */
.services-hero {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 24px;
    background: url('images/service_bg.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 60px;
}

/* Header inside Hero */
.main-header {
    width: 100%;
    max-width: 1400px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.logo-img {
    height: 100px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-btn {
    text-decoration: none;
    background-color: #3b71ca;
    /* Matches the clean corporate blue layout */
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.contact-btn:hover {
    background-color: #2b579a;
    transform: translateY(-1px);
}

.nav-link:hover,
.nav-link.active {
    color: #3b71ca;
    text-decoration: underline;
}

.header-contact-btn {
    text-decoration: none;
    background-color: #3b71ca;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.header-contact-btn:hover {
    background-color: #2b579a;
}

/* Hero Text Settings */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 1;
}

.page-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    margin: auto 0;
    /* Centers it perfectly vertically */
}

/* --- 4. SERVICES LIST LAYOUT --- */
.services-list-section {
    max-width: 1400px;
    margin: 0 auto 80px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #3b71ca;
    margin-top: 16px;
    font-weight: 500;
}

.section-title .italic-text {
    font-style: italic;
    font-weight: 900;
}

.service-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    min-height: 480px;
}

.service-visual-card {
    position: relative;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.visual-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.visual-content h3 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 32px;
    font-weight: 500;
}

.service-details-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-heading {
    color: #3b71ca;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

.details-heading:first-child {
    margin-top: 0;
}

.service-details-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.service-checklist {
    list-style: none;
    padding: 0;
}

.service-checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
}

.service-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e293b;
    font-weight: bold;
    font-size: 1.1rem;
}

.partner-header {
    text-align: center;
    margin-bottom: 30px;
    font-size: 4rem;
    font-weight: 200;
    color: #3170BA;
}

.partners-section {
    max-width: 1200px;
    margin: 80px auto;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partner-card {
    background-color: #ffffff;
    border-radius: 16px;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-card:hover img {
    opacity: 1;
}

/* --- 6. FINAL CTA SECTION --- */
.final-cta-section {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 60px auto;
    min-height: 550px;
    border-radius: 24px;
    overflow: hidden;
    background: url('images/service-footer-bg.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.3);
    z-index: 1;
}

.cta-glass-card {
    position: relative;
    z-index: 2;
    max-width: 480px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.cta-glass-card h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: #ffffff;
    line-height: 1.1;
}

.cta-glass-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e2e8f0;
}

/* --- 7. FOOTER SECTION --- */
.site-footer {
    background-color: #ffffff;
    padding: 80px 40px 40px 40px;
    color: #475569;
    margin: 0 -24px -24px -24px;
    /* Pulls footer to edge, ignoring body padding */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.5fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 24px;
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-size: 1.8rem;
    color: #6384f5;
    font-weight: 500;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.contact-email,
.location-block a {
    text-decoration: none;
    color: #475569;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.contact-email:hover,
.location-block a:hover {
    color: #6384f5;
}

.location-block {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0 auto;
    text-align: right;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- 8. MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .service-row {
        grid-template-columns: 1fr;
    }

    .service-visual-card {
        min-height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
    }

    /* Hide menu on tablet/mobile */
    .final-cta-section {
        padding: 40px 20px;
    }

    .cta-glass-card {
        max-width: 100%;
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .site-footer {
        margin: 0 -12px -12px -12px;
        padding: 60px 20px 20px 20px;
    }

    .services-hero {
        height: 550px;
        padding: 16px;
    }

    .main-header {
        padding: 16px 20px;
    }

    .service-visual-card {
        padding: 24px;
    }

    .service-details-card {
        padding: 32px 24px;
    }

    .partner-card {
        width: 140px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* --- Desktop Defaults (Hide Mobile Elements) --- */
.mobile-menu-toggle {
    display: none;
}

.mobile-only-btn {
    display: none;
}

/* --- Mobile & Tablet Breakpoint (992px and below) --- */
@media (max-width: 992px) {

    /* 1. Hide Desktop Elements */
    .desktop-only-btn {
        display: none;
    }

    /* 2. Style the Header for Mobile Layout */
    .main-header {
        position: relative;
        /* Crucial so the absolute menu positions relative to this header */
        padding: 16px 24px;
    }

    /* 3. The 2-Line Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 14px;
        /* Controls the gap between the two lines */
        width: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 50;
        /* Keeps the button above the dropdown menu */
    }

    .hamburger-line {
        width: 100%;
        height: 2px;
        background-color: #1e293b;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 2px;
    }

    /* 4. The Hidden Dropdown Menu Container */
    .nav-menu {
        position: absolute;
        top: 100%;
        /* Drops it immediately below the white header box */
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 32px 24px;
        border-radius: 0 0 20px 20px;
        /* Rounds the bottom corners */
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);

        /* Animation properties (Hidden by default) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 40;
    }

    /* Show the mobile contact button inside the menu */
    .mobile-only-btn {
        display: inline-block;
        margin-top: 16px;
        width: 100%;
        text-align: center;
    }

    /* --- ACTIVE STATES (Triggered via JavaScript) --- */

    /* Reveal the menu */
    .nav-menu.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Animate the 2-line icon into an 'X' */
    .mobile-menu-toggle.is-active .top-line {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active .bottom-line {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-header.is-active {
        border-radius: 20px 20px 0 0;
    }
}