/* Modern Professional Website Design */
/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Spanish Learning Zone Color Palette - Modern Update */
    --primary-orange: #FF6B35;
    --warm-orange: #FF8C42;
    --deep-blue: #0B2545;
    --energetic-yellow: #FFD23F;
    --accent-blue: #1A5490;
    
    /* Modern Supporting Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #212529;
    --success-green: #28A745;
    --gradient-primary: linear-gradient(135deg, var(--primary-orange) 0%, var(--warm-orange) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--deep-blue) 0%, var(--accent-blue) 100%);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-max-width: 1400px;
    --section-padding: 120px 0;
    --border-radius: 16px;
    --border-radius-small: 12px;
    --border-radius-large: 24px;
    
    /* Modern Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-outline {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* Animation System */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.25, 0.25, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(11, 37, 69, 0.95);
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 24px;
    min-height: 80px;
}

.nav-brand .logo h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--deep-blue);
    margin: 0;
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-brand .logo h2 {
    color: var(--white);
}

.nav-brand .logo .accent {
    color: var(--primary-orange);
}

.nav-brand .tagline {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin: 0;
    font-weight: 500;
}

.navbar.scrolled .nav-brand .tagline {
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.navbar.scrolled .nav-link:hover {
    color: var(--energetic-yellow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-soft);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-hamburger span {
    background: var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.85) 0%, rgba(26, 84, 144, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    width: 100%;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-large);
    margin-bottom: 2rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0px 0px 16px rgba(0, 0, 0, 0.6);
    font-weight: 900;
}

.hero-message {
    max-width: 900px;
    margin: 0 auto 3rem;
    /* stronger panel for readability over hero image */
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    /* responsive padding: smaller on tiny screens, larger on desktop */
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 0.5rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message-part {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.message-part:last-child {
    margin-bottom: 0;
    font-size: 1.25rem;
    text-align: center;
}

.message-part strong {
    color: var(--energetic-yellow);
    font-weight: 700;
}

.hero-catchphrase {
    text-align: center;
    margin-bottom: 2rem;
}

.catchphrase {
    font-size: 2.5rem;
    color: var(--energetic-yellow);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    font-weight: 900;
    animation: pulse 2s infinite;
}

.question {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--energetic-yellow);
    font-family: var(--font-secondary);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0px 0px 10px rgba(0, 0, 0, 0.7);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    animation: float 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 1.5rem;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--medium-gray);
    margin: 0;
    font-size: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Programs Section */
.programs {
    padding: 6rem 0;
    background: var(--light-gray);
}

.cefr-levels {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-orange);
}

.level-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.level-badge.a1 { background: var(--success-green); }
.level-badge.a2 { background: var(--primary-orange); }
.level-badge.b1 { background: var(--primary-blue); }
.level-badge.b2 { background: var(--secondary-red); }
.level-badge.c1 { background: var(--deep-purple); }
.level-badge.c2 { background: var(--dark-gray); }

.level-description h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-gray);
    font-size: 1rem;
}

.level-description p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--medium-gray);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.program-card.featured {
    border: 2px solid var(--primary-orange);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-icon {
    width: 100%;
    height: 100%;
    position: relative;
}

.program-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.program-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--energetic-yellow);
    color: var(--deep-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    font-weight: 700;
    font-size: 0.875rem;
}

.program-content {
    padding: 2rem;
}

.program-content h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.program-content p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.program-features {
    margin-bottom: 2rem;
}

.program-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.program-features .feature i {
    color: var(--success-green);
    font-size: 1rem;
}

.program-cta {
    margin-top: auto;
}

/* Exchange Section */
.exchange {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.exchange-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
}

.comparison-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
}

.comparison-card.traditional {
    border: 2px solid #dc3545;
}

.comparison-card.modern {
    border: 2px solid var(--success-green);
    transform: scale(1.05);
}

.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.comparison-card.modern:hover {
    transform: scale(1.05) translateY(-8px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
}

.traditional .card-header i {
    color: #dc3545;
}

.modern .card-header i {
    color: var(--success-green);
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--deep-blue);
}

.traditional .price {
    color: #dc3545;
}

.modern .price {
    color: var(--success-green);
    font-size: 1.25rem;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-card li:last-child {
    border-bottom: none;
}

.comparison-card li::before {
    content: '✗';
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.modern li::before {
    content: '✓';
    color: var(--success-green);
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: var(--shadow-medium);
}

/* Executive Section */
.executive {
    padding: var(--section-padding);
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.executive-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.executive-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.executive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(11, 37, 69, 0.9) 0%, rgba(26, 84, 144, 0.8) 100%); */
    z-index: -1;
}

.executive-content {
    position: relative;
    z-index: 2;
}

.executive-text h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.executive-text p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

/* Centralized panel style for executive text to match contact panel (no image changes) */
.executive-text {
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    padding: clamp(0.9rem, 2.4vw, 2rem);
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Apply same panel style to executive feature blocks (Advanced Negotiation, Weekend Retreats, Small Groups) */
.executive-highlights .executive-feature,
.executive-highlights .highlight {
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    padding: clamp(0.9rem, 2.4vw, 2rem);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

/* Hover state tuned for the dark panel */
.executive-highlights .highlight:hover,
.executive-highlights .executive-feature:hover {
    background: rgba(5, 0, 0, 0.61);
    transform: translateX(10px);
}

/* Executive panel: left-aligned column to reveal background image on the right */
.executive-panel {
    max-width: 620px; /* similar visual width as contact panel */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: start; /* keep panel at top-left of the container */
    padding: 1.25rem; /* inner breathing room so nested boxes keep spacing */
    background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.0)); /* neutral, individual children hold panels */
}

/* Place the panel to left side on large screens so the right image area remains visible */
.executive .container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Ensure the panel doesn't cover the whole section on desktop */
@media (min-width: 769px) {
    .executive-content .container { padding-right: 40px; }
    .executive-panel { margin-right: 3rem; }
}

/* On small screens stack normally and keep the panel full-width */
@media (max-width: 768px) {
    .executive .container { display: block; }
    .executive-panel { max-width: 100%; padding: 1rem; }
}

.executive-highlights {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.highlight:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.highlight i {
    font-size: 2rem;
    color: var(--energetic-yellow);
    margin-top: 0.25rem;
}

.highlight h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.highlight p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.executive-cta {
    text-align: center;
}

/* Social Media Section */
.social-media {
    padding: var(--section-padding);
    background: var(--white);
    text-align: center;
}

.social-content h2 {
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
}

.social-content p {
    color: var(--medium-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}


/* Social cards: centered row on desktop, neat stacked cards on mobile */
.social-links {
    /* keep flex layout but center cards visually */
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Card look for each social link */
.social-links .social-link {
    display: flex;
    flex-direction: column; /* icon above, texts below */
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 0 1 320px; /* fixed-ish card width allowing up to four across on wide screens */
    max-width: 320px;
    min-width: 200px;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    color: var(--white);
    text-decoration: none;
}

.social-links .social-link .fa,
.social-links .social-link .fab {
    font-size: 22px;
    margin-bottom: 0.75rem;
}

/* Platform-specific colors */
.social-link.youtube { background: #ff0000; }
.social-link.facebook { background: #1877f2; }
.social-link.telegram { background: #0088cc; }
.social-link.instagram { background: linear-gradient(45deg, #feda75 0%, #d62976 50%, #962fbf 100%); }

.social-link .platform-name {
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.social-link .platform-desc {
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
}

/* Desktop: ensure four social cards share one row neatly */
@media (min-width: 992px) {
    .social-links {
        justify-content: space-between; /* spread them across the container */
        align-items: stretch;
    }

    .social-links .social-link {
        flex: 0 1 23%; /* fixed-ish four-per-row layout with gap */
        max-width: 23%;
        min-width: 200px; /* keep readability if container is narrow */
    }
}

/* Ensure cards still stack nicely on small screens */
@media (max-width: 600px) {
  .social-links {
    justify-content: center;
    gap: 1rem;
  }
  .social-links .social-link {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    flex-direction: column; /* icon above text for small screens */
    text-align: center;
    padding: 1rem;
  }
  .social-links .social-link .fa,
  .social-links .social-link .fab {
    margin-right: 0;
  }
}

/* Keep the very narrow screen tweak for platform span stacking */
@media (max-width: 420px) {
  .social-link > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.contact-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(255, 140, 66, 0.8) 100%);
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-text h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

/* Centralized panel style for contact text to remove inline styles */
.contact-text {
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    padding: clamp(0.9rem, 2.4vw, 2rem);
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-text p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-benefits {
    display: grid;
    gap: 1.5rem;
}

/* Place the three benefit items on a single row and space them evenly on larger screens */
@media (min-width: 769px) {
    .contact-benefits {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        align-items: center;
    }

    .contact-benefits .benefit {
        flex: 1 1 0;
        justify-content: center; /* center icon+text within each column */
    }
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.benefit i {
    color: var(--energetic-yellow);
    font-size: 1.5rem;
}

.contact-action {
    text-align: center;
}

.whatsapp-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.whatsapp-preview i {
    font-size: 2rem;
    color: var(--success-green);
}

.message-bubble {
    background: var(--success-green);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: var(--success-green);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--success-green);
    color: var(--white);
    text-decoration: none;
    padding: 1.5rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-large);
    transition: var(--transition-normal);
    margin-bottom: 2rem;
}

.whatsapp-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    animation: pulse 1s infinite;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.btn-content {
    text-align: left;
}

.btn-main {
    display: block;
    font-size: 1.125rem;
}

.btn-sub {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.contact-alternative {
    text-align: center;
}

.contact-alternative p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.phone-link {
    color: var(--energetic-yellow);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.phone-link:hover {
    text-decoration: underline;
}

.email-contact {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.email-contact a {
    color: var(--white);
    text-decoration: none;
    margin-left: 0.5rem;
}

/* Footer */
.footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-brand .accent {
    color: var(--primary-orange);
}

.footer-brand p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-social .social-link:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.footer-contact h4,
.footer-info h4 {
    color: var(--energetic-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-item i {
    color: var(--primary-orange);
    width: 20px;
}

.footer-info ul {
    list-style: none;
    padding: 0;
}

.footer-info li {
    margin-bottom: 0.75rem;
}

.footer-info a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition-normal);
}

.footer-info a:hover {
    color: var(--primary-orange);
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Additional Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeInScale 0.6s ease-out;
}

/* Accessibility Improvements */
.nav-link:focus,
.btn:focus,
.lang-toggle:focus,
.whatsapp-btn:focus,
.phone-link:focus {
    outline: 3px solid var(--energetic-yellow);
    outline-offset: 2px;
}

/* Loading States */
body:not(.loaded) {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-large);
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card.featured {
        transform: none;
    }

    /* Make two-column and multi-column layouts stack on tablets/phones */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .exchange-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vs-divider {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .executive-highlights {
        grid-template-columns: 1fr;
    }

    /* mobile: soften panels so images remain visible */
    .hero-message,
    .contact-text,
    .executive-content {
        background: rgba(0,0,0,0.35);
        padding: 1rem 0.75rem;
    }
}

/* Extra small screens tweaks */
@media (max-width: 360px) {
    .message-part {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .contact-text h2 {
        font-size: 1.5rem;
    }

    .exchange-comparison {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 1rem 16px;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .program-content {
        padding: 1.5rem;
    }

    /* Small phone tweaks to ensure single-column flow and comfortable spacing */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.25rem;
    }

    .exchange-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .executive-content {
        padding: 1rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* --- responsive header & logo fixes (prevent wrapping and hero overlap) --- */
:root {
  /* fallback header height used for spacing when header is fixed */
  --site-header-height: 72px;
}

/* ensure page content leaves room for the header when needed */
main {
  padding-top: var(--site-header-height);
}

/* prevent long site name from wrapping on small screens */
.nav-brand .logo h2 {
    /* show full site name; allow wrapping if needed rather than truncating */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
        display: block;
    max-width: 100%; /* allow the name to occupy its natural space */
    font-size: clamp(20px, 2.8vw, 26px);
    word-break: break-word; /* permits breaking at hyphens so the full name is visible */
}

/* hide tagline on narrow screens so it doesn't push layout */
@media (max-width: 800px) {
    :root { --site-header-height: 64px; }
    .nav-brand .logo .tagline { display: none; }
    /* make sure full name can wrap on narrower screens instead of being ellipsised */
    .nav-brand .logo h2 { max-width: 100%; font-size: clamp(18px, 4.5vw, 22px); }
}

@media (max-width: 420px) {
    :root { --site-header-height: 56px; }
    .nav-brand .logo h2 { max-width: 100%; font-size: clamp(16px, 6.5vw, 20px); }
    /* make nav-hamburger stack properly if needed */
    .nav-actions { gap: 8px; }
}

/* defensive: if header isn't fixed this won't hurt; if header is fixed this prevents content being hidden */

/* End of responsive header fixes */

/* Small-screen padding for hero title so it has breathing room on phones */
@media (max-width: 600px) {
  .hero-title {
    padding: 0.6rem 1rem; /* vertical horizontal */
    box-sizing: border-box;
    display: block;
    line-height: 1.05;
  }
}

/* End small-screen hero-title rules */



.grid {
  display: flex;
  justify-content: space-between; /* equal spacing */
  align-items: flex-start;
  flex-wrap: nowrap; /* stay in one row */
  overflow-x: auto; /* allow horizontal scroll if needed */
  padding: 10px;
  gap: 20px; /* consistent spacing instead of margin */
}

.grid-item {
  flex: 1 0 0; /* grow equally, don’t shrink below 0 */
  /*min-width: 250px; /* ensures readability */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.grid-item.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* large screens */
@media (min-width: 769px) {
  .grid-item {
    min-width: 450px;
  }

    .grid-2-column-item {
        min-width: 650px;
    }
}


/* Small screens: stack them */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
    align-items: center;
    overflow-x: unset; /* no horizontal scroll */
  }

  .grid-item{
    max-width: 400px;
  }

  .gride-item, .grid-2-column-item {
    width: 250px;
  }
}

/* Grid Layout for Features Section */

.grid-2-column-item {
  flex: 1 0 0; /* grow equally, don’t shrink below 0 */
  /*min-width: 650px; /* ensures readability */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.grid-2-column-item.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Payment method tooltip styling */
.pm-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.pm-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.pm-icon:focus::after,
.pm-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Slight arrow */
.pm-icon::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.8) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pm-icon:focus::before,
.pm-icon:hover::before {
  opacity: 1;
}

/* Contact Links - Uniform Text Color */
.phone-link,
.contact-item a,
.email-contact a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.phone-link:hover,
.contact-item a:hover,
.email-contact a:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}
