@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
    --primary: #FF7A00; /* Action Orange */
    --primary-dark: #E66E00;
    --primary-glow: rgba(255, 122, 0, 0.4);
    --secondary: #1E3A8A; /* Trust Blue */
    --secondary-dark: #1e293b;
    --bg-light: #FFFFFF;
    --bg-alt: #F8FAFC;
    --text-dark: #0F172A;
    --text-gray: #64748B;
    --border-light: #F1F5F9;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05);
    --shadow-premium: 0 25px 50px -12px rgba(0,0,0,0.08);
    --nav-height: 80px;
}

/* Ensure advisor cards are always opaque */
.advisor-card-premium, 
.advisor-box,
.prep-card {
    opacity: 1 !important;
}

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* Prevents overflow without breaking position: sticky */
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.025em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* .reveal is now a JS hook only — GSAP handles all animations */
.reveal {
    /* intentionally empty — GSAP controls opacity/transform */
}

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


nav {
    background: #FFFFFF;
    border-bottom: 2px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top left;
}

nav .logo-img {
    transform: translateY(15px);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

nav.scrolled .logo-img {
    height: 80px;
    transform: translateY(8px);
}

.logo:hover .logo-img {
    transform: translateY(15px) scale(1.05);
}

nav.scrolled .logo:hover .logo-img {
    transform: translateY(8px) scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--primary-dark);
    box-shadow: 0 10px 25px var(--primary-glow);
    color: white;
}

/* Page Headers / Hero */
.page-header {
    padding: 160px 0 100px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

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

/* Cards */
.card {
    background: white;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255, 122, 0, 0.1);
}

/* Map Styling */
.map-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.germany-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.05));
    fill: #F1F5F9;
    stroke: #E2E8F0;
    stroke-width: 1.5;
}

.map-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    border: 3px solid white;
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 122, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}

.map-pin:hover {
    scale: 1.5;
    background: var(--secondary);
}

/* Ticker/Scroll Section */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

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

/* Mobile Menu Styles (Global) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        padding: 40px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-cta {
        display: none; /* Hide on mobile to simplify header */
    }

    .page-header h1 {
        font-size: 2.8rem;
    }
}

/* Global Button Fixes */
.btn-success {
    background-color: #10B981 !important;
    color: white !important;
}

/* Footer shared styles */
footer {
    background: var(--secondary-dark);
    color: white;
    padding: 80px 0 40px;
}

/* Sticky Tab Navigation (Global) */
.tab-nav {
    background: #FFFFFF;
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: var(--nav-height);
    z-index: 999; /* Higher to stay above content but below main nav if needed */
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: top 0.3s ease;
}

.tab-nav-inner {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tab-link {
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover {
    color: var(--primary);
}

.tab-link.active {
    color: var(--primary);
    border-color: var(--primary);
}
