/* =========================================================================
   GLA - Premium Multi-Page Design System
   ========================================================================= */

:root {
    /* Color Palette - Premium Corporate (Blue Variant) */
    --color-primary: #020617;
    /* Ultra deep blue/slate - Main Backgrounds */
    --color-primary-light: #0f172a;
    /* Lighter slate for cards/contrast */
    --color-accent: #0284c7;
    /* Vibrant Cyan/Blue from GLA Logo */
    --color-accent-hover: #0369a1;
    /* Deeper blue for hover states */

    /* Neutrals */
    --color-white: #ffffff;
    --color-offwhite: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-600: #475569;
    --color-gray-800: #1e293b;

    /* Typographic Control */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadows & Elevations */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.4);
    /* Based on new accent */

    /* Radiuses */
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    --rad-full: 9999px;

    /* Transitions */
    --trans-fast: 0.2s ease-out;
    --trans-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header states */
    --header-height-initial: 120px;
    --header-height-scrolled: 80px;
}

/* =========================================================================
   Base & Resets
   ========================================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    background-color: var(--color-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   Typography & Utilities
   ========================================================================= */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(2, 132, 199, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--rad-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-gray-600);
    max-width: 700px;
    margin-bottom: 3rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.center-underline {
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-white {
    color: var(--color-white);
}

.text-gray-200 {
    color: var(--color-gray-200);
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.bg-light {
    background-color: var(--color-white);
}

.bg-dark {
    background-color: var(--color-primary);
}

.highlight-text-gradient {
    background: linear-gradient(120deg, #38bdf8 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================================
   Buttons & Links
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--rad-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--trans-base);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1.15rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
}

.link-arrow i {
    transition: transform var(--trans-fast);
}

.link-arrow:hover i {
    transform: translateX(5px);
}

.link-muted-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-400);
    font-weight: 500;
}

.link-muted-arrow:hover {
    color: var(--color-accent);
}

/* =========================================================================
   Header & Navbar (Shrink on Scroll)
   ========================================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height-initial);
    background-color: var(--color-white);
    /* Solid white always to protect logo */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle border effect initially */
    transition: height var(--trans-slow), box-shadow var(--trans-base);
}

.navbar::before {
    display: none;
    /* Removed the dark gradient since navbar is now white */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100px;
    /* Solid base height */
    transition: height var(--trans-slow);
}

.logo-img {
    height: 100%;
    /* Scales the image strictly to the container */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Crucial: This makes the logo's internal white square transparent against the white header */
    transition: filter var(--trans-slow), height var(--trans-slow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--trans-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Scrolled State */
.navbar.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled::before {
    opacity: 0;
}

.navbar.scrolled .logo-link {
    height: 65px;
    /* Shrinks the logolink area */
}

.navbar.scrolled .logo-img {
    height: 100%;
    /* Keep proportional zoom */
    mix-blend-mode: multiply;
    /* Keep the transparency trick */
}

/* Inherit the colors already set for non-scrolled since bg is always white */

.navbar.scrolled .mobile-menu-btn {
    color: var(--color-primary);
}

/* =========================================================================
   Hero Sections
   ========================================================================= */

.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-home {
    min-height: 100vh;
    padding-top: calc(var(--header-height-initial) + 6rem);
    /* Space pushing content strictly down */
    align-items: flex-start !important;
    /* Forces content to obey padding rather than centering */
}

/* HERO SLIDER ANIMATION */
.hero-slider-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: var(--color-primary);
    /* Prevents white flash while image loads */
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    /* initial scale down slightly for Ken Burns */
    transform: scale(1.05);
    /* fade transition between slides */
    transition: opacity 1s ease-in-out;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    /* Zoom slowly in */
    animation: kenBurnsZoom 10s forwards linear;
}

@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.8) 40%, rgba(2, 6, 23, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding-right: 15%;
    /* Spacing is handled cleanly by hero-home padding now */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--rad-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success, #10b981);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-gray-200);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-size: 0.85rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* =========================================================================
   Home Teaser Grid (Services)
   ========================================================================= */

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.teaser-card {
    background-color: var(--color-white);
    border-radius: var(--rad-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--trans-base);
    border: 1px solid var(--color-gray-100);
    display: flex;
    flex-direction: column;
}

.teaser-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.teaser-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: var(--trans-slow);
}

.teaser-card:hover .teaser-image {
    transform: scale(1.05);
}

.teaser-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    /* Protects text during image scale */
    position: relative;
    z-index: 1;
}

.teaser-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.teaser-content p {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    flex: 1;
}

/* =========================================================================
   Action Banner
   ========================================================================= */

.action-banner {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    position: relative;
    overflow: hidden;
}

.action-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

/* =========================================================================
   Footer Elements
   ========================================================================= */

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Invert if original logo is dark, modify if needed */
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: 1.25rem;
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.footer-links-group h4 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links-group a {
    display: block;
    color: var(--color-gray-400);
    margin-bottom: 0.75rem;
}

.footer-links-group a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.flex-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: var(--color-gray-500);
}

.legal-links a:hover {
    color: var(--color-white);
}

/* =========================================================================
   Animations & Utilities
   ========================================================================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

/* Floating chat */
.floating-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
}

.floating-chat-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.1);
}

.chat-tooltip {
    position: absolute;
    right: 85px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--rad-sm);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--trans-fast);
}

.floating-chat-btn:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Nav Adjustments */
@media (max-width: 992px) {
    .hero-content {
        padding-right: 0;
    }

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

@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .logo-link {
        height: 60px;
        /* Smaller logo on mobile initial */
    }

    .mobile-menu-btn {
        display: block;
        color: var(--color-primary);
        /* Force visibility on mobile bg */
    }

    /* Remove special color treatments since logo should just vanish cleanly or the mobile menu button doesn't need to invert colors given header is ALWAYS white */
    .hero-home .mobile-menu-btn {
        color: var(--color-primary);
    }

    .nav-links {
        display: none;
        width: 100%;
        background-color: var(--color-white);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        color: var(--color-gray-800);
        width: 100%;
        font-size: 1.125rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }
}