/* FSP Design System - Travelport Rebrand Wireframe Theme */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --tp-black: #0A121A;        /* Travelport Black */
    --tp-sand: #1D4ED8;         /* FlightSaaS Blue (Replaced Sand) */
    --tp-olive: #4E6659;        /* Travelport Olive */
    --tp-white: #FFFFFF;
    --tp-coral: #0A121A;        /* Changed from Coral to Black */
    
    --tp-coral-rgb: 10, 18, 26;
    --tp-sand-rgb: 29, 78, 216;
    --tp-black-rgb: 10, 18, 26;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--tp-white);
    color: var(--tp-black);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--tp-black);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* WIREFRAME LAYOUT MODULES (No shadows, flat border-lines) */

/* Sand Section */
.section-sand {
    background-color: var(--tp-sand);
    color: var(--tp-white);
    padding: 100px 0;
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
}

/* White Section */
.section-white {
    background-color: var(--tp-white);
    color: var(--tp-black);
    padding: 100px 0;
}

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--tp-black);
    transition: var(--transition-smooth);
}

.header-nav .container {
    max-width: 1600px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-container nav {
    align-self: stretch;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--tp-white);
    letter-spacing: 0.05em;
}

.header-logo-img {
    height: 24px;
    width: auto;
    display: inline-block;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--tp-coral);
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link {
    color: var(--tp-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.nav-link:hover, .nav-item.active .nav-link, .nav-item-full.active .nav-link {
    color: #1D4ED8; /* Hover color on black header */
}

/* Mega Menu (White Theme) */
.mega-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 900px;
    background: var(--tp-white);
    border: 1px solid rgba(10, 18, 26, 0.15);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(10, 18, 26, 0.08);
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.nav-item-full {
    height: 100%;
    display: flex;
    align-items: center;
    position: static;
}

.mega-menu-full {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--tp-sand);
    border-top: 1px solid rgba(10, 18, 26, 0.15);
    box-shadow: 0 20px 40px rgba(10, 18, 26, 0.08);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 50;
}

.nav-item-full:hover .mega-menu-full {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mega-pane-left {
    background-color: #0A121A;
    color: var(--tp-white);
    width: 35%;
    padding: 60px 40px 60px max(20px, calc((100vw - 1220px) / 2));
    display: flex;
    flex-direction: column;
}

.mega-pane-right {
    background-color: var(--tp-sand);
    color: var(--tp-white);
    width: 65%;
    padding: 60px max(20px, calc((100vw - 1220px) / 2)) 60px 60px;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
}

.mega-col {
    padding: 0 40px;
    border-right: 1px solid rgba(10, 18, 26, 0.15);
}
.mega-col:last-child {
    border-right: none;
}
.mega-col:first-child {
    padding-left: 0;
}

.mega-col h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--tp-white);
}

.mega-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.mega-list a:hover {
    color: var(--tp-white);
    transform: translateX(4px);
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mega-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: var(--transition-smooth);
    background: rgba(10, 18, 26, 0.02);
}

.mega-card:hover {
    background: var(--tp-sand);
    border-color: rgba(10, 18, 26, 0.15);
}

.mega-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(10, 18, 26, 0.05);
    border: 1px solid rgba(10, 18, 26, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-black);
    flex-shrink: 0;
}

.mega-card-info h4 {
    font-size: 16px;
    color: var(--tp-black);
    margin-bottom: 4px;
}

.mega-card-info p {
    font-size: 13px;
    color: #4A5560;
}

.mega-featured {
    background: var(--tp-sand);
    border: 1px solid rgba(10, 18, 26, 0.15);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mega-featured h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--tp-black);
}

.mega-featured p {
    font-size: 13px;
    color: #4A5560;
    margin-bottom: 16px;
}

/* Products Mega Menu (Travelport Full-Width Style) */
.mega-menu-products {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--tp-sand);
    border-top: 1px solid rgba(10, 18, 26, 0.15);
    box-shadow: 0 20px 40px rgba(10, 18, 26, 0.08);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 50;
}

.nav-item-full:hover .mega-menu-products {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mega-products-image {
    width: 30%;
    min-height: 360px;
    overflow: hidden;
    flex-shrink: 0;
}

.mega-products-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mega-products-grid {
    width: 70%;
    padding: 50px max(30px, calc((100vw - 1220px) / 2)) 50px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.mega-products-col {
    padding: 0 36px;
    border-left: 1px solid rgba(10, 18, 26, 0.15);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mega-products-col:first-child {
    padding-left: 0;
    border-left: none;
}

.mega-product-item {
    text-decoration: none;
    display: block;
    transition: var(--transition-smooth);
}

.mega-product-item:hover {
    transform: translateX(4px);
}

.mega-product-item h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-white);
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.mega-product-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.mega-product-item:hover h4 {
    color: rgba(255, 255, 255, 0.8);
}

/* Call To Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-tollfree {
    color: #D4B896;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-tollfree:hover {
    color: #1D4ED8;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--tp-white);
}

.btn-header {
    background: transparent;
    color: #D4B896;
    border: 1px solid #D4B896;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.btn-header:hover {
    background: #D4B896;
    color: #0A121A;
}

.btn-primary {
    background: #1D4ED8;
    color: var(--tp-white);
    border: 2px solid #1D4ED8;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.btn-primary:hover {
    background: transparent;
    color: #1D4ED8;
}

.btn-neon {
    background: var(--tp-coral);
    color: var(--tp-white);
    border: 2px solid var(--tp-coral);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-neon:hover {
    background: transparent;
    color: var(--tp-coral);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-sm.btn-neon {
    padding: 10px 24px;
}

/* HERO SECTION (Flat Sand Block) */
.hero-section {
    background-color: var(--tp-sand);
    color: var(--tp-white);
    padding-top: 200px;
    padding-bottom: 120px;
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
}

.hero-content {
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--tp-white);
    margin-bottom: 24px;
    display: inline-block;
}

.hero-title {
    font-size: 80px;
    line-height: 0.95;
    margin-bottom: 30px;
    font-weight: 400;
    color: var(--tp-white);
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 720px;
    margin: 0 auto 50px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* FLAT WIREFRAME DIVIDERS & GRID SYSTEM */

/* 4-Column Grid */
.wireframe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(10, 18, 26, 0.15);
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
    background: var(--tp-white);
}

.wireframe-col {
    padding: 60px 30px;
    border-right: 1px solid rgba(10, 18, 26, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.wireframe-col:last-child {
    border-right: none;
}

.wireframe-num {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--tp-coral);
    margin-bottom: 20px;
}

.wireframe-col-title {
    font-size: 22px;
    color: var(--tp-black);
    margin-bottom: 12px;
    line-height: 1.15;
}

.wireframe-col-desc {
    font-size: 14px;
    color: #4A5560;
}

/* 2x2 Checklist Grid */
.wireframe-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
}

.wireframe-check-item {
    padding: 60px 40px;
    border-right: 1px solid rgba(10, 18, 26, 0.15);
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.wireframe-check-item:nth-child(2n) {
    border-right: none;
}

.wireframe-check-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.wireframe-icon {
    width: 24px;
    height: 24px;
    background: var(--tp-black);
    color: var(--tp-sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.wireframe-check-title {
    font-size: 18px;
    color: var(--tp-black);
    margin-bottom: 8px;
}

.wireframe-check-desc {
    font-size: 14.5px;
    color: #4A5560;
}

/* 3-Column Editorial Grid */
.wireframe-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(10, 18, 26, 0.15);
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
    background: var(--tp-white);
}

.wireframe-3col-item {
    padding: 60px 40px;
    border-right: 1px solid rgba(10, 18, 26, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 540px;
}

.wireframe-3col-item:last-child {
    border-right: none;
}

/* Editorial Rows separated by borders */
.wireframe-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    padding: 80px 0;
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
}

.wireframe-row:first-child {
    border-top: 1px solid rgba(10, 18, 26, 0.15);
}

.wireframe-row-lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tp-coral);
    margin-bottom: 16px;
}

.wireframe-row-title {
    font-size: 38px;
    color: var(--tp-black);
    line-height: 1.05;
}

.wireframe-row-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #334250;
}

/* CTA Banner (Coral background block) */
.cta-banner {
    background-color: var(--tp-coral);
    color: var(--tp-white);
    text-align: center;
    padding: 80px 0;
    border-bottom: 1px solid rgba(10, 18, 26, 0.15);
}

.cta-banner h2 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--tp-white);
}

.btn-black {
    background: var(--tp-black);
    color: var(--tp-white);
    border: 2px solid var(--tp-black);
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-black:hover {
    background: transparent;
    color: var(--tp-black);
}

/* FOOTER */
.footer {
    background: #000000;
    padding: 100px 0 0;
    color: var(--tp-white);
    position: relative;
    overflow: hidden;
}

.footer .container {
    max-width: 1600px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 60px;
    margin-bottom: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 60px;
    padding-bottom: 220px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    align-self: flex-start;
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    overflow: hidden;
    padding-bottom: 220px;
}

.footer-col {
    position: relative;
    z-index: 2;
}

.footer-social-wrapper {
    margin-top: auto;
}

.social-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tp-white);
    display: block;
    margin-bottom: 12px;
}

.social-links-row {
    display: flex;
    gap: 16px;
}

.social-links-row img {
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1);
}

.social-links-row a:hover img {
    opacity: 0.8;
    transform: scale(1.08);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--tp-white);
    text-transform: capitalize;
    letter-spacing: 0px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #8E9EA8;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--tp-sand);
    padding-left: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 60px;
    font-size: 13px;
    color: #8E9EA8;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom a {
    color: #8E9EA8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--tp-sand);
}

/* Sliding motion graphics for footer background - clipped to sitemap */
.footer-marquee-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.footer-marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: footerMarquee 90s linear infinite;
    gap: 80px;
}

.footer-marquee-track span {
    font-family: var(--font-heading);
    font-size: 220px;
    font-weight: 900;
    color: var(--tp-white);
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    user-select: none;
    line-height: 0.9;
}

@keyframes footerMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .hero-title { font-size: 60px; }
    .wireframe-grid { grid-template-columns: repeat(2, 1fr); }
    .wireframe-col { border-bottom: 1px solid rgba(10, 18, 26, 0.15); }
    .wireframe-col:nth-child(2n) { border-right: none; }
    .wireframe-checklist { grid-template-columns: 1fr; }
    .wireframe-check-item { border-right: none; }
    .wireframe-row { grid-template-columns: 1fr; gap: 20px; }
    .wireframe-3col-grid { grid-template-columns: 1fr; }
    .wireframe-3col-item { border-right: none; border-bottom: 1px solid rgba(10, 18, 26, 0.15); }
    .wireframe-3col-item:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand { border-right: none; padding-right: 0; min-height: auto; gap: 40px; padding-bottom: 0; }
    .footer-sitemap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-menu { display: none; }
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 100;
        position: relative;
    }
    .nav-container { justify-content: space-between; }
    .nav-container .logo-link { margin-right: auto; }
    
    .nav-container.mobile-active .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--tp-black);
        padding: 0;
        margin: 0;
        z-index: 99;
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-container.mobile-active .nav-item, 
    .nav-container.mobile-active .nav-item-full {
        width: 100%;
        height: auto;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-actions {
        gap: 12px;
    }
    .nav-actions .btn-header {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Reset mega menus for mobile */
    .mega-menu, .mega-menu-full, .mega-menu-products {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        padding: 10px 0 0 0;
        background: transparent;
        border: none;
        grid-template-columns: 1fr;
    }
    
    .nav-item:hover .mega-menu, 
    .nav-item-full:hover .mega-menu-full, 
    .nav-item-full:hover .mega-menu-products {
        display: flex;
        flex-direction: column;
        pointer-events: auto;
    }
    
    .mega-pane-left, .mega-pane-right, .mega-products-grid, .mega-products-image {
        width: 100%;
        padding: 10px 0;
        background: transparent;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mega-col {
        padding: 0 0 10px 0;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .mobile-toggle { display: flex !important; }
    .hero-title { font-size: 44px; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
    .wireframe-grid { grid-template-columns: 1fr; }
    .wireframe-col { border-right: none; }
    .footer-sitemap { grid-template-columns: 1fr; }
    .footer-marquee-track span { font-size: 120px; }
    .footer-bottom {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
