/* Shared site styles for schengen.live (navbar, hero, sections, FAQ, footer).
   Used by index.html and schengen-calculator.html; calculator-widget styles
   live in assets/calc.css. */
:root {
    --primary: #1B4965; /* Dark Blue from logo */
    --primary-dark: #123246;
    --secondary: #EE534F; /* Coral Red from logo */
    --dark: #0f172a;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-body: #fefce8; /* Very light beige */
    --bg-white: #ffffff;
    --glass-bg: rgba(254, 252, 232, 0.85);
    --glass-border: rgba(27, 73, 101, 0.1);
    --shadow-sm: 0 1px 2px 0 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);
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

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

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-mobile {
    display: none;
}

@media (max-width: 768px) {
    .logo-full {
        display: none;
    }
    .logo-mobile {
        display: inline;
    }
}

/* Narrow phones: the logo + language switch must share one row without clipping */
@media (max-width: 480px) {
    .logo {
        font-size: 1.15rem;
        gap: 8px;
    }
    .lang-btn {
        padding: 6px 10px;
    }
}

.logo svg {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s ease;
}

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

.lang-switch {
    display: flex;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 14px;
    text-decoration: none;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-subtext {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-bottom: 3px;
}

.btn-maintext {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--dark);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #000;
}

.btn-primary svg, .btn-apple svg {
    width: 28px;
    height: 28px;
}

.btn-apple {
    background: var(--bg-white);
    color: var(--dark);
    border: 2px solid var(--dark);
    padding: 10px 26px; /* slightly smaller padding to account for border */
    box-shadow: var(--shadow-sm);
    position: relative;
}

.btn-apple:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.coming-soon-text {
    color: var(--secondary);
    font-weight: 800;
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #FDF1D6 0%, #fefce8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(238, 83, 79, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(27,73,101,0.2);
    box-shadow: var(--shadow-sm);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-image {
    position: relative;
    text-align: center;
}

/* Mockup */
.mockup {
    width: 300px;
    height: 600px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 8px solid #1e293b;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.mockup-header {
    background: var(--primary);
    color: white;
    padding: 24px 20px 40px;
    text-align: left;
    border-radius: 0 0 24px 24px;
}

.mockup-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.mockup-header-days {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.mockup-body {
    padding: 20px;
}

.mockup-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: #FDF1D6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* Split Section (Problem & Solution) */
.split-section {
    background: var(--bg-white);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.risk-list {
    list-style: none;
    margin-top: 24px;
}

.risk-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.125rem;
    color: var(--text-main);
}

.risk-list li svg {
    color: #ef4444; /* Red for risks */
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.solution-list li svg {
    color: var(--secondary); /* Green for solution */
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--dark);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 8px var(--bg-body);
}

.steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #cbd5e1;
    z-index: 0;
}

/* Social Proof */
.testimonials {
    background: var(--dark);
    color: var(--bg-white);
    padding: 100px 0;
}

.testimonials h2 {
    color: var(--bg-white);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 32px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

.stars {
    color: #fbbf24;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 24px;
}

/* SEO Content Section */
.seo-content {
    background: var(--bg-white);
}

.seo-box {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid #e2e8f0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 64px auto 0;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--dark);
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(135deg, #FDF1D6 0%, #fefce8 100%);
}

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    /* Must wrap on narrow phones: an unwrapped row is wider than the viewport
       and stretches the whole page into horizontal scroll */
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
}

.footer-links a {
    transition: color 0.2s ease;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .hero .container, .split-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero::before {
        display: none;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .risk-list li {
        justify-content: flex-start;
        text-align: left;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile header */
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* AI Summary Card Responsive Styles */
.ai-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .ai-summary-grid {
        grid-template-columns: 1fr;
    }
    .ai-summary-card {
        padding: 30px 20px !important;
    }
    .ai-summary-card [data-i18n="summary_ai_badge"] {
        position: static !important;
        display: inline-block;
        margin-bottom: 16px;
    }
}
