/* Complete styles.css - Base styles and components for the entire website */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors */
    --duolingo-blue: #1cb0f6;
    --duolingo-green: #58cc02;
    --duolingo-yellow: #ffc800;
    --duolingo-orange: #ff9600;
    --duolingo-purple: #ce82ff;
    --duolingo-gold: #ffc800;
    --duolingo-indigo: #5c4dff;
    
    /* Grays */
    --white: #ffffff;
    --off-white: #f7f7f7;
    --light-gray: #e5e5e5;
    --gray: #afafaf;
    --dark-gray: #777777;
    --black: #235390;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--black);
}

h1 {
    font-size: var(--font-4xl);
}

h2 {
    font-size: var(--font-3xl);
}

h3 {
    font-size: var(--font-2xl);
}

h4 {
    font-size: var(--font-xl);
}

p {
    margin-bottom: var(--space-md);
    color: var(--dark-gray);
}

a {
    color: var(--duolingo-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--black);
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========== BUTTONS ========== */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--font-base);
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
    line-height: 1;
}

.primary-cta {
    background-color: var(--duolingo-blue);
    color: var(--white);
}

.primary-cta:hover {
    background-color: #0ea5e9;
    color: var(--white);
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: var(--duolingo-green);
    color: var(--white);
}

.secondary-cta:hover {
    background-color: #4ade80;
    color: var(--white);
    transform: translateY(-2px);
}

.yellow-cta {
    background-color: var(--duolingo-yellow);
    color: var(--black);
}

.yellow-cta:hover {
    background-color: #fbbf24;
    color: var(--black);
    transform: translateY(-2px);
}

.outline-cta {
    background-color: transparent;
    color: var(--duolingo-blue);
    border: 2px solid var(--duolingo-blue);
}

.outline-cta:hover {
    background-color: var(--duolingo-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.cta-section {
    margin-bottom: var(--space-3xl);
}

/* ========== NAVIGATION ========== */
.main-navigation {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-gray);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--duolingo-blue);
}

.nav-link.cta {
    background-color: var(--duolingo-yellow);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
}

.nav-link.cta:hover {
    background-color: var(--duolingo-orange);
    color: var(--black);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.icon-bar {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--duolingo-blue) 0%, var(--duolingo-green) 100%);
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-text .highlight {
    color: var(--duolingo-yellow);
}

.hero-text p {
    color: var(--white);
    font-size: var(--font-lg);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* ========== FOOTER STYLES ========== */
.site-footer {
    background-color: #2d3748;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column:first-child {
    max-width: 300px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #a0aec0;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: #a0aec0;
    font-size: 0.875rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #a0aec0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    color: #1cb0f6;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--black);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: var(--font-base);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--duolingo-blue);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: var(--font-sm);
}

/* ========== FAQ STYLES ========== */
.faq-section {
    padding: var(--space-3xl) 0;
}

.faq-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-3xl);
}

.faq-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.faq-categories {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.faq-categories li {
    margin-bottom: var(--space-sm);
}

.faq-categories a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--dark-gray);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.faq-categories a:hover,
.faq-categories a.active {
    background-color: var(--duolingo-blue);
    color: var(--white);
}

.faq-contact {
    background-color: var(--off-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.faq-contact h3 {
    margin-bottom: var(--space-sm);
}

.faq-contact p {
    font-size: var(--font-sm);
    margin-bottom: var(--space-lg);
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: var(--space-lg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    margin-bottom: 0;
    flex-grow: 1;
}

.toggle-icon {
    font-size: var(--font-xl);
    font-weight: bold;
    color: var(--duolingo-blue);
    margin-left: var(--space-md);
}

.faq-answer {
    padding-bottom: var(--space-lg);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.faq-answer li {
    margin-bottom: var(--space-sm);
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 100%;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-button.accept {
    background-color: #58cc02;
    color: white;
}

.cookie-button.accept:hover {
    background-color: #4ade80;
}

.cookie-button.essential {
    background-color: #6b7280;
    color: white;
}

.cookie-button.essential:hover {
    background-color: #4b5563;
}

.cookie-button.settings {
    background-color: transparent;
    color: #1cb0f6;
    border: 1px solid #1cb0f6;
}

.cookie-button.settings:hover {
    background-color: #1cb0f6;
    color: white;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

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

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

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 980px;
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .faq-sidebar {
        position: static;
    }

    .faq-categories {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .faq-categories li {
        margin-bottom: 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 3rem;
        --space-2xl: 2.5rem;
        --font-3xl: 2rem;
        --font-2xl: 1.75rem;
        --font-xl: 1.25rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: var(--space-xl);
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .social-links {
        justify-content: center;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        display: none;
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .nav-link.active::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column:first-child {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-text p {
        font-size: var(--font-base);
    }

    .cookie-content h3 {
        font-size: var(--font-lg);
    }
    
    .cookie-content p {
        font-size: var(--font-xs);
    }
    
    .cookie-button {
        padding: 0.5rem;
        font-size: var(--font-sm);
    }
}

@media (max-width: 360px) {
    :root {
        --font-3xl: 1.75rem;
        --font-2xl: 1.5rem;
        --font-xl: 1.25rem;
        --font-lg: 1.125rem;
    }
    
    .button {
        padding: 0.5rem 1rem;
        font-size: var(--font-base);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .cookie-banner,
    .main-navigation,
    .site-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
