/* ============================================================
   SHARED.CSS — IFT shared nav, footer, and utility styles
   Single source of truth. Linked from every page.
   ============================================================ */

:root {
    --navy: #0B2D45;
    --teal: #0099B5;
    --turquoise: #00C4CC;
    --gold: #F5A623;
    --coral: #E84E3A;
    --seafoam: #EDF7F9;
    --sandy: #F9F4E8;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

.section-pad {
    padding: 100px 0;
}

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

.eyebrow {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-teal:hover {
    background: #007a91;
    border-color: #007a91;
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn-outline-teal {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}

.btn-outline-teal:hover {
    background: var(--teal);
    color: var(--white);
}

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

.btn-navy:hover {
    background: #0a2438;
    border-color: #0a2438;
}

.btn-pill {
    border-radius: 999px;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 1. FIXED NAV ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid rgba(11, 45, 69, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 24px rgba(11, 45, 69, 0.1);
    border-bottom-color: rgba(11, 45, 69, 0.12);
}

.nav-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo-sub {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--navy);
    opacity: 0.5;
    text-transform: uppercase;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 36px;
}

.nav-center a {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-center a:hover {
    color: var(--teal);
}

.nav-center a.active {
    color: var(--teal);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.lang-switch {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--navy);
    opacity: 0.45;
    letter-spacing: 1px;
}

.lang-switch span {
    cursor: pointer;
    transition: opacity 0.2s;
}

.lang-switch span:hover {
    opacity: 1;
}

.lang-switch .active {
    opacity: 1;
    color: var(--teal);
}

.nav-cta {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: var(--teal);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: #007a91;
}

/* ---------- MOBILE HAMBURGER & DRAWER ---------- */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(11, 45, 69, 0);
}

.mobile-drawer.open {
    transform: translateX(0);
    box-shadow: -4px 0 24px rgba(11, 45, 69, 0.15);
}

.mobile-drawer-inner {
    padding: 80px 28px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mobile-drawer-brand {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(11, 45, 69, 0.08);
}

.mobile-drawer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--navy);
    display: block;
    letter-spacing: -0.5px;
}

.mobile-drawer-sub {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--navy);
    opacity: 0.45;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.mobile-drawer-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 45, 69, 0.06);
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.mobile-drawer-links a:hover {
    color: var(--teal);
}

.mobile-drawer-cta {
    display: block;
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--teal);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 28px;
}

.mobile-drawer-cta:hover {
    background: #007a91;
}

.mobile-drawer-lang {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(11, 45, 69, 0.08);
}

.mobile-drawer-lang .lang-switch {
    display: inline;
    font-size: 13px;
    opacity: 0.5;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 45, 69, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--white);
    border-top: 1px solid rgba(11, 45, 69, 0.08);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 8px;
}

.footer-brand .footer-tagline {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(11, 45, 69, 0.5);
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--seafoam);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
}

.footer-social a:hover {
    background: var(--teal);
    color: var(--white);
}

.footer-col h4 {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(11, 45, 69, 0.55);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid rgba(11, 45, 69, 0.08);
    padding: 20px 0;
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(11, 45, 69, 0.4);
}

/* ---------- RESPONSIVE: NAV & FOOTER ---------- */
@media (max-width: 900px) {
    .nav {
        height: 56px;
        padding: 0 20px;
    }

    .nav-logo {
        font-size: 22px;
    }

    .nav-logo-sub {
        display: none;
    }

    .nav-center {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
