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

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #ebf0f6;
    color: #333333;
    padding: 24px;
    min-height: 100vh;
}

/* --- 2. CONTACT PAGE WRAPPER --- */
.contact-page-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    background: url('images/contact-bg.avif') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 60px;
    /* Allows the wrapper to expand automatically with the form inside it */
    min-height: 800px;
}

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

.contact-content-relative {
    position: relative;
    z-index: 2;
    /* Keeps all content above the dark overlay */
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* --- 3. HEADER OVERRIDES --- */
.main-header {
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 80px;
    /* Space between header and hero text */
}

.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;
}

.nav-link:hover {
    color: #3b71ca;
}

.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;
}

/* --- 4. CONTACT HERO TEXT --- */
.contact-hero-text {
    max-width: 600px;
    margin-bottom: 60px;
}

.page-title {
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
}

.page-title .italic-text {
    font-style: italic;
    font-weight: 300;
}

.contact-subtitle {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Contact Info Icons */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #611535;
    border-radius: 50%;
    font-size: 50px;
}

.info-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
}

/* --- 5. THE CUSTOM FORM (GLASSMORPHISM) --- */
.glass-form-container {
    width: 100%;
    background: rgba(45, 55, 72, 0.6);
    /* Translucent dark box */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Base input styling */
.custom-contact-form input,
.custom-contact-form select,
.custom-contact-form textarea {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.custom-contact-form input:focus,
.custom-contact-form select:focus,
.custom-contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 113, 202, 0.5);
    /* Blue focus ring */
}

/* Textarea specific */
.custom-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit Button */
.submit-btn {
    align-self: flex-start;
    background-color: #1d4ed8;
    /* Vibrant blue matching the screenshot */
    color: #ffffff;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 16px;
}

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

/* --- 6. FOOTER SECTION --- */
.site-footer {
    background-color: #ffffff;
    padding: 80px 40px 40px 40px;
    color: #475569;
    margin: 0 -24px -24px -24px;
}

.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;
}

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

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Stacks the inputs vertically */
    .glass-form-container {
        padding: 32px 24px;
    }

    .submit-btn {
        width: 100%;
    }

    /* Makes button full width on mobile */
}

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

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

    .contact-page-wrapper {
        padding: 16px;
        border-radius: 16px;
    }

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

    .page-title {
        font-size: 2.5rem;
    }

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

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


.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);
}


/* --- 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;
    }
}