/* =============================================
   CSS Variables
   ============================================= */
:root {
    --navy:        #0d1f3c;
    --blue-mid:    #1a3a6b;
    --blue-bright: #3a7bd5;
    --blue-light:  #a8c8f0;
    --white:       #f4f8ff;
    --glass-bg:    rgba(8, 22, 50, 0.52);
    --glass-border:rgba(100, 170, 255, 0.22);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--white);
}

/* =============================================
   Full-screen Background Slideshow
   ============================================= */
#bg_slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--navy);
}

#bg_slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

#bg_slideshow img.active {
    opacity: 1;
}

/* Dark vignette over the slideshow */
#bg_slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(8,22,50,0.45) 0%, transparent 40%, transparent 60%, rgba(8,22,50,0.75) 100%),
        linear-gradient(to right, rgba(8,22,50,0.3) 0%, transparent 50%);
    z-index: 1;
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: linear-gradient(to bottom, rgba(8,22,50,0.8) 0%, transparent 100%);
    backdrop-filter: blur(0px);
}

#logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    transform: scale(2.4);
}

#contact_button {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    padding: 10px 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    background: rgba(58, 123, 213, 0.15);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

#contact_button:hover {
    background: rgba(58, 123, 213, 0.4);
    border-color: var(--blue-bright);
    transform: translateY(-1px);
}

/* =============================================
   Hero — centred overlay content
   ============================================= */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
}

/* =============================================
   Text Box — frosted glass card
   ============================================= */
.text_box {
    width: min(800px, 90%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 48px 52px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 2px 0 0 var(--blue-bright),        /* top accent line */
        0 32px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.07);
    text-align: center;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

.text_box p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(220, 235, 255, 0.92);
    letter-spacing: 0.01em;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Footer
   ============================================= */
.footer {
    position: relative;
    z-index: 10;
    background: rgba(8, 22, 50, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    padding: 22px 24px;
    font-size: 0.83rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--blue-light);
}

/* =============================================
   Mobile & Tablet Responsiveness
   ============================================= */
@media (max-width: 1024px) {

    /* 1. Hero layout reset */
    .hero {
        flex-direction: column;
        padding: 100px 20px 40px;
        gap: 20px;
        min-height: auto;
    }

    .left_hero {
        width: 100%;
        padding: 0;
        gap: 20px;
    }

    /* 2. Cards become fluid */
    .text_box_number,
    .text_box_email,
    .text_box_location {
        width: 100%;
        max-width: 100%;
        min-height: 0 !important;
        padding: 30px 20px;
    }

    /* 3. Map container FIX (this is the important part) */
    .text_box_location {
        display: block;
    }

    .map_container {
        height: 350px;
        margin-top: 15px;
        margin-bottom: 0;

        /* GAP FIX */
        line-height: 0;
        font-size: 0;
    }

    .map_container iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* 4. Navbar adjustments */
    .navbar {
        padding: 12px 20px;
        background: rgba(8, 22, 50, 0.95);
    }

    #logo {
        transform: scale(1.4);
    }

    #homepage_button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* 5. Typography tweaks */
    .text_box_number p:first-child,
    .text_box_email p:first-child,
    .text_box_location p:first-child {
        font-size: 1.2rem;
    }
}