/* ============================================
   EmbedPeople - Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --background: hsl(210, 20%, 98%);
    --foreground: hsl(213, 37%, 11%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(213, 37%, 11%);
    --primary: hsl(213, 57%, 11%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 15%, 94%);
    --secondary-foreground: hsl(213, 37%, 15%);
    --muted: hsl(210, 15%, 94%);
    --muted-foreground: hsl(213, 15%, 45%);
    --accent: hsl(196, 96%, 40%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(210, 15%, 88%);
    
    /* Typography */
    --font-sans: "Montserrat", system-ui, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(213, 37%, 11%, 0.08);
    --shadow-medium: 0 8px 30px -6px hsla(213, 37%, 11%, 0.12);
    
    /* Border Radius */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container-custom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container-custom {
        padding: 0 2rem;
    }
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 7rem 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 8rem 0;
    }
}

/* Typography */
.heading-xl {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .heading-xl {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .heading-xl {
        font-size: 3.75rem;
    }
}

.heading-lg {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .heading-lg {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .heading-lg {
        font-size: 3rem;
    }
}

.body-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .body-lg {
        font-size: 1.25rem;
    }
}

.body-md {
    font-size: 1rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .body-md {
        font-size: 1.125rem;
    }
}

.text-muted {
    color: var(--muted-foreground);
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: white;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

/* Backgrounds */
.bg-card {
    background-color: var(--card);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary-soft {
    background-color: hsla(213, 57%, 11%, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: hsl(196, 96%, 35%);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Utility */
.hidden {
    display: none !important;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(210, 20%, 98%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(210, 15%, 88%, 0.5);
}

.nav-container {
    position: relative;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 2.5rem;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .nav-actions {
        display: flex;
    }
}

/* Language Picker */
.lang-picker {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.lang-toggle:hover {
    color: var(--foreground);
    background-color: var(--secondary);
}

.lang-toggle .icon-chevron {
    transition: transform 0.2s ease;
}

.lang-toggle.active .icon-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 10rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 50;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-nav {
    overflow: hidden;
}

.mobile-nav-inner {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-lang-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.mobile-lang-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.mobile-lang-links {
    display: flex;
    gap: 0.75rem;
}

.mobile-lang-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background-color: var(--secondary);
    border-radius: var(--radius);
    transition: color 0.2s ease;
}

.mobile-lang-link:hover {
    color: var(--accent);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), hsla(213, 57%, 11%, 0.9), hsla(196, 96%, 40%, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-fallback.show {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: hsla(213, 57%, 11%, 0.6);
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, hsla(213, 57%, 11%, 0.4), transparent, hsla(213, 57%, 11%, 0.8));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto 1rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--background), transparent);
    pointer-events: none;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    max-width: 48rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header p {
    margin-top: 1.5rem;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ============================================
   Problem Section
   ============================================ */
.problems-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.problem-card {
    background-color: var(--background);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid hsla(210, 15%, 88%, 0.5);
    transition: border-color 0.3s ease;
}

.problem-card:hover {
    border-color: hsla(196, 96%, 40%, 0.3);
}

.problem-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background-color: hsla(196, 96%, 40%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.problem-text {
    font-weight: 500;
    color: var(--foreground);
}

/* ============================================
   Solution Section
   ============================================ */
.solution-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.solution-text h2 {
    margin-bottom: 1.5rem;
}

.solution-text p {
    margin-bottom: 1.5rem;
}

.solution-text p:last-child {
    margin-bottom: 0;
}

.benefits-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid hsla(210, 15%, 88%, 0.5);
    transition: box-shadow 0.3s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-soft);
}

.benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.benefit-text {
    font-weight: 500;
    color: var(--foreground);
}

/* ============================================
   European Section
   ============================================ */
.section-header.text-white h2 {
    color: white;
}

.alignment-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .alignment-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

.alignment-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.alignment-text {
    font-weight: 500;
    color: white;
}

/* ============================================
   How It Works Section
   ============================================ */
.steps-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (min-width: 1024px) {
    .step-card {
        text-align: left;
    }
}

.step-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    color: hsla(196, 96%, 40%, 0.2);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--muted-foreground);
}

/* ============================================
   Roles Section
   ============================================ */
.roles-grid {
    display: grid;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .roles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.role-card {
    background-color: var(--background);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid hsla(210, 15%, 88%, 0.5);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.role-card:hover {
    box-shadow: var(--shadow-soft);
}

.role-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    background-color: hsla(196, 96%, 40%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.role-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.role-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.roles-note {
    text-align: center;
    color: var(--muted-foreground);
    margin-top: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   EOR Section
   ============================================ */
.eor-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.eor-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    background-color: hsla(196, 96%, 40%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--accent);
}

.eor-content h2 {
    margin-bottom: 1.5rem;
}

.eor-content p {
    margin-bottom: 1.5rem;
}

.eor-quote {
    display: inline-block;
    background-color: var(--card);
    border: 1px solid hsla(210, 15%, 88%, 0.5);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.eor-quote p {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* ============================================
   Comparison Section
   ============================================ */
.comparison-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.comparison-content h2 {
    margin-bottom: 2.5rem;
}

.comparison-grid {
    display: grid;
    gap: 2rem;
    text-align: left;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.comparison-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
}

.comparison-muted {
    background-color: hsla(210, 15%, 94%, 0.5);
}

.comparison-highlight {
    background-color: hsla(196, 96%, 40%, 0.1);
    border: 2px solid hsla(196, 96%, 40%, 0.2);
}

.comparison-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.comparison-title-accent {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.comparison-text {
    color: var(--muted-foreground);
}

.comparison-text-dark {
    color: var(--foreground);
}

/* ============================================
   Who Section
   ============================================ */
.who-content {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.who-content h2 {
    margin-bottom: 2.5rem;
}

.who-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.who-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--background);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: left;
}

.who-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: hsla(196, 96%, 40%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.who-text {
    font-weight: 500;
    color: var(--foreground);
}

.who-not {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-content {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content > p {
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.2s ease;
}

.phone-cta:hover {
    color: var(--accent);
}

.phone-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: hsla(213, 57%, 11%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-brand {
        flex-direction: row;
    }
}

.footer-logo {
    height: 2rem;
    width: auto;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-email {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--foreground);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
