/* ========================================
   Landing Gateway — Split Screen
   ======================================== */

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Split Container ────────────────── */

.landing-split {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* ── Panel Base ─────────────────────── */

.landing-panel {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Hover expand — hovered panel grows, sibling shrinks */
.landing-split:hover .landing-panel {
    flex: 1 1 45%;
}

.landing-split .landing-panel:hover {
    flex: 1 1 55%;
}

/* ── Left Panel — DGIS (Navy) ───────── */

.panel-dgis {
    background: #1B3358;
    color: #FFFFFF;
}

/* Subtle radial glow behind content */
.panel-dgis::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 16, 43, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ── Right Panel — TT Work Travel ───── */

.panel-ttwt {
    background: #F5F5F5;
    color: #1a1a1a;
}

.panel-ttwt::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 51, 88, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Divider line between panels */
.panel-dgis::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    bottom: 15%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* ── Panel Content ──────────────────── */

.panel-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
}

/* ── Logos ───────────────────────────── */

.panel-logo {
    margin-bottom: 2rem;
}

/* DGIS text logo for navy panel */
.dgis-logo-text {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: #FFFFFF;
    line-height: 1;
}

.dgis-logo-sub {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
}

/* TT Work Travel text logo */
.panel-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ttwt-globe-icon {
    color: #1B3358;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.panel-ttwt:hover .ttwt-globe-icon {
    opacity: 1;
}

.ttwt-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1B3358;
}

/* ── Flag Icons ─────────────────────── */

.flag-icon {
    display: block;
    width: 70px;
    height: auto;
    margin: 12px auto 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-panel:hover .flag-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ── Headlines ──────────────────────── */

.panel-headline {
    font-family: 'Poppins', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.panel-dgis .panel-headline {
    color: #FFFFFF;
}

.panel-ttwt .panel-headline {
    color: #1B3358;
}

/* ── Body Copy ──────────────────────── */

.panel-copy {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.panel-dgis .panel-copy {
    color: rgba(255, 255, 255, 0.8);
}

.panel-ttwt .panel-copy {
    color: #4A5568;
}

/* ── CTA Buttons ────────────────────── */

.panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.cta-dgis {
    background: #D5102B;
    color: #FFFFFF;
}

.panel-dgis:hover .cta-dgis {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 16, 43, 0.45);
}

.cta-ttwt {
    background: #1B3358;
    color: #FFFFFF;
}

.panel-ttwt:hover .cta-ttwt {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 51, 88, 0.35);
}

.panel-cta svg {
    transition: transform 0.3s ease;
}

.landing-panel:hover .panel-cta svg {
    transform: translateX(4px);
}

/* ── Footer ─────────────────────────── */

.landing-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(to top, rgba(27, 51, 88, 0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* ── Responsive — Tablet ────────────── */

@media (max-width: 1024px) {
    .panel-headline {
        font-size: 1.75rem;
    }

    .panel-copy {
        font-size: 0.95rem;
    }

    .panel-content {
        max-width: 360px;
        padding: 1.5rem;
    }
}

/* ── Responsive — Mobile ────────────── */

@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }

    .landing-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .landing-panel {
        flex: none;
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }

    /* Disable the expand-on-hover for touch */
    .landing-split:hover .landing-panel {
        flex: none;
    }

    .landing-split .landing-panel:hover {
        flex: none;
    }

    .panel-dgis::after {
        /* Switch divider to horizontal */
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
    }

    .panel-content {
        max-width: 100%;
    }

    .panel-headline {
        font-size: 1.65rem;
    }

    .dgis-logo-text {
        font-size: 2.4rem;
    }

    .landing-footer {
        position: relative;
        background: #1B3358;
        color: rgba(255, 255, 255, 0.5);
        padding: 16px 1rem;
    }
}

@media (max-width: 480px) {
    .panel-headline {
        font-size: 1.4rem;
    }

    .panel-copy {
        font-size: 0.9rem;
    }

    .panel-cta {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}
