/*
 * Reymo Aviation | Global Stylesheet
 */

/* 1. Design Tokens & Global Resets
-------------------------------------------------- */
:root {
    --reymo-brown: #754C24;
    --reymo-brown-hover: #5C3B1C;
    --text-main: #1D1D1F;
    --text-secondary: #86868B;
    --bg-white: #ffffff;
    --bg-light: #F5F5F7;
    --section-padding: 4rem 5%;
    --border-light: rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#reymo-app-root {
    flex-grow: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--reymo-brown);
}

/* 2. Global Navigation
-------------------------------------------------- */
.global-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--reymo-brown);
}

.header-logo svg {
    width: 32px;
    height: 32px;
}

.header-nav nav ul {
    display: flex;
    gap: 2.5rem;
}

.header-nav nav a {
    font-weight: 600;
    color: var(--reymo-brown);
    padding-bottom: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.header-nav nav a.active,
.header-nav nav a:hover {
    border-bottom: 2px solid var(--reymo-brown);
}

.header-badge {
    width: 40px;
    height: 40px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #ccc;
}

/* 3. Global Footer
-------------------------------------------------- */
.global-footer {
    background-color: var(--bg-white);
    color: var(--text-main);
    border-top: 1px solid var(--border-light);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: var(--section-padding);
    max-width: 1600px;
    margin: 0 auto;
}

.footer-column .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--reymo-brown);
    margin-bottom: 1rem;
}

.footer-column .footer-logo svg {
    width: 32px;
    height: 32px;
}

.footer-column p {
    line-height: 1.6;
    max-width: 350px;
}

.footer-column .copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #777;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul a,
.footer-column ul span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--reymo-brown);
}

.footer-column ul svg {
    width: 20px;
    height: 20px;
    fill: var(--reymo-brown);
}

.footer-bottom {
    background-color: var(--reymo-brown);
    color: #ffffff;
    text-align: center;
    padding: 1.1rem 1rem;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 700;
    opacity: 0.95;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-bottom a:hover {
    opacity: 1;
    color: #E8A86C !important;
}

/* 4. GLOBAL SCROLL REVEAL ANIMATIONS
-------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible,
.reveal-on-scroll.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.reveal-fade.is-visible,
.reveal-fade.active {
    opacity: 1 !important;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-scale.is-visible,
.reveal-scale.active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 5. SUBTLE ROVING AIRPLANE BACKGROUND ANIMATIONS
-------------------------------------------------- */
.roving-airspace {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.roving-plane {
    position: absolute;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.12));
    will-change: transform, opacity;
}

.plane-trail {
    position: absolute;
    top: 50%;
    left: -120px;
    width: 120px;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 9999px;
    filter: blur(0.5px);
}

@keyframes flightRove1 {
    0% {
        transform: translate(-12vw, 40vh) rotate(18deg) scale(0.65);
        opacity: 0;
    }
    8% {
        opacity: 0.16;
    }
    88% {
        opacity: 0.16;
    }
    100% {
        transform: translate(112vw, -12vh) rotate(18deg) scale(0.65);
        opacity: 0;
    }
}

@keyframes flightRove2 {
    0% {
        transform: translate(112vw, 68vh) rotate(-160deg) scale(0.48);
        opacity: 0;
    }
    10% {
        opacity: 0.12;
    }
    85% {
        opacity: 0.12;
    }
    100% {
        transform: translate(-14vw, 18vh) rotate(-160deg) scale(0.48);
        opacity: 0;
    }
}

@keyframes flightRove3 {
    0% {
        transform: translate(-10vw, 75vh) rotate(32deg) scale(0.55);
        opacity: 0;
    }
    12% {
        opacity: 0.14;
    }
    86% {
        opacity: 0.14;
    }
    100% {
        transform: translate(114vw, 8vh) rotate(32deg) scale(0.55);
        opacity: 0;
    }
}

.plane-flight-1 {
    animation: flightRove1 38s linear infinite;
}

.plane-flight-2 {
    animation: flightRove2 50s linear infinite;
    animation-delay: 10s;
}

.plane-flight-3 {
    animation: flightRove3 62s linear infinite;
    animation-delay: 24s;
}