/* ============================================
   LATAM Airlines Clone — Global Styles
   Shared: reset, fonts, colors, header, footer,
   transitions, mobile app feel
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1A171B;
    background: #FFFFFF;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button, a {
    touch-action: manipulation;
}

button:active {
    transform: scale(0.97);
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Color Variables --- */
:root {
    --latam-purple: #1B0088;
    --latam-purple-dark: #150066;
    --latam-secondary: #4752C4;
    --latam-red: #E91345;
    --latam-red-hover: #C40F3B;
    --latam-teal: #00B4AA;
    --latam-light-bg: #F7F5FF;
    --latam-card-bg: #FFFFFF;
    --latam-text-dark: #1A171B;
    --latam-text-gray: #6B6B6B;
    --latam-border: #D5D5D5;
    --latam-white: #FFFFFF;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Page Entrance Animation --- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-enter {
    animation: fadeSlideUp 0.4s ease both;
}

/* ============================================
   LATAM Logo SVG Inline Component
   ============================================ */

.latam-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 32px;
}

.latam-logo svg {
    height: 100%;
    width: auto;
}

/* ============================================
   Header — Dark Purple Navigation (#110150)
   ============================================ */

.latam-header {
    background: #110150;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item {
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.nav-item:hover {
    background: #3f3275;
    opacity: 0.85;
}

.nav-item svg path {
    stroke: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.header-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.header-link svg path {
    stroke: #fff;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.login-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-right .header-link { display: none; }
    .header-right .currency-btn { display: none; }
    .mobile-menu { display: flex !important; }
    .header-left-group { gap: 16px; }
}

/* ============================================
   Footer — Full 4-column + legal + bottom bar
   ============================================ */

.latam-footer {
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-divider {
    border: none;
    border-top: 1px solid #d5d5d5;
    margin: 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 32px 0;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1A171B;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #1B0088;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.app-badges {
    display: flex;
    gap: 10px;
}

.app-badge {
    display: inline-block;
    text-decoration: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.app-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-badge img {
    display: block;
    height: 40px;
    width: auto;
}

.footer-legal {
    border-top: 1px solid #d5d5d5;
    padding: 32px 0 24px;
}

.footer-legal p {
    font-size: 11px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer-legal-list {
    list-style: disc;
    padding-left: 20px;
    margin: 4px 0 8px;
}

.footer-legal-list li {
    font-size: 11px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-inspiration {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid #e0e0e0;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-inspiration strong {
    font-size: 14px;
    color: #1A171B;
    font-weight: 700;
}

.footer-inspiration a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.footer-inspiration a:hover {
    color: #1B0088;
    text-decoration: underline;
}

.footer-bottom {
    background: #eee;
    border-top: 1px solid #d5d5d5;
    padding: 20px 0;
}

.footer-bottom-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-cnpj {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-inspiration {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .footer-inspiration {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Mobile App Feel --- */
@media (max-width: 768px) {
    body {
        overscroll-behavior-y: contain;
    }
    main {
        -webkit-overflow-scrolling: touch;
    }
}
