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

:root {
    --navy-primary: #002d5b;
    --navy-deep: #0a192f;
    --navy-accent: #00458b;
    --white: #ffffff;
    --text-dark: #1a1a1a;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hero Section with fade-out background image */
.hero-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70vh;
    /* Reduced height to expose more of the footer bar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Gradient mask to fade out the image on the left side */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 0.7) 65%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    /* Increased to allow more text per line */
    padding: 5rem 15vw 2rem;
    /* Reduced top padding to move content up */
    transform: translateY(-3vh);
    /* Subtle upward shift to pull footer into view */
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .hero-content {
        transform: translateY(-2vh);
        /* Less shift on mobile to keep logo from clipping top */
        padding-top: 6rem;
    }
}

/* Top Left Logo */
.header-logo {
    margin-bottom: 3.5rem;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@media (max-width: 480px) {
    .logo-img {
        height: 45px;
        /* Slightly smaller on very small phones */
    }
}

/* Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--navy-primary);
    /* Changed to brand navy */
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--navy-accent);
    /* Branded subtitle color */
    line-height: 1.4;
}

.description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #000;
    margin-bottom: 2.5rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn-primary {
    background-color: var(--navy-primary);
    color: #ffffff;
    border: 1px solid var(--navy-primary);
}

.btn-primary:hover {
    background-color: var(--navy-accent);
    border-color: var(--navy-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 45, 91, 0.15);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--navy-primary);
    border: 1px solid rgba(0, 45, 91, 0.2);
}

.btn-secondary:hover {
    border-color: var(--navy-primary);
    color: var(--navy-accent);
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Footer Section */
footer {
    background-color: var(--navy-deep);
    color: #ffffff;
    padding: 3rem 15vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-logo-img {
    height: 60px;
    /* Increased size for better visibility */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Makes the blue logo white for the dark footer */
}

.footer-info {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-info a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0 0.5rem;
}

.footer-info a:first-child {
    margin-left: 0;
}

.footer-info a:last-child {
    margin-right: 0;
}

.footer-info a:hover {
    color: #aaa;
}

.footer-links {
    margin-bottom: 0.75rem;
}

.footer-info p {
    margin-bottom: 0.35rem;
}

.footer-info p:last-child {
    margin-bottom: 0;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Modal Styling (Backend) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(0, 45, 91, 0.08);
}

/* ── Custom Select Dropdowns ─────────────────────────────────────────────── */
.multi-select-wrapper,
.single-select-wrapper {
    position: relative;
    user-select: none;
}

.multi-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-size: 0.9rem;
    color: #555;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.multi-select-wrapper.open .multi-select-trigger,
.single-select-wrapper.open .multi-select-trigger {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(0, 45, 91, 0.08);
}

.dropdown-arrow {
    flex-shrink: 0;
    color: #888;
    transition: transform 0.25s;
}

.multi-select-wrapper.open .dropdown-arrow,
.single-select-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

.multi-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 100;
    padding: 0.5rem 0;
    max-height: 220px;
    overflow-y: auto;
}

.multi-select-wrapper.open .multi-select-options,
.single-select-wrapper.open .multi-select-options {
    display: block;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.option-item:hover {
    background: #f0f4ff;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    accent-color: var(--navy-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .modal-card {
        padding: 2.5rem 1.5rem;
        width: 94%;
        max-height: 90vh;
        /* Prevents card from bleeding off screen */
        overflow-y: auto;
        border-radius: 12px;
        /* Slightly tighter corners for mobile */
    }

    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
}

/* Animations (Backend) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-bg::after {
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

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

@media (max-width: 600px) {
    .hero-bg::after {
        background: rgba(255, 255, 255, 0.92);
        /* Solid white wash for max readability on small screens */
    }

    h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .button-group {
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 2rem;
    }

    .logo-img {
        height: 40px;
    }
}