/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

:root {
	--brand-primary: #E51636;          /* Chick-fil-A red */
	--brand-primary-dark: #C4102C;     /* darker red */
	--accent-success: #28a745;         /* keep success green */
	--accent-success-dark: #218838;
	--text-primary: #111;              /* near-black for better contrast */
	--text-muted: #666;
	--bg-white: #fff;
	--bg-light: #f6f6f6;
	--bg-dark: #000;                   /* true black */
	--border-dark: #222;               /* dark gray border */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-top {
    background: var(--bg-light);
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.contact-info span {
    margin-right: 20px;
    color: var(--text-muted);
}

.contact-info i {
    margin-right: 5px;
    color: var(--brand-primary);
}

.social-links a {
    color: var(--brand-primary);
    margin-left: 15px;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--brand-primary-dark);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.nav-brand .logo {
    height: 100px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: color 0.2s ease;
    padding-bottom: 4px;
}

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

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

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

.language-selector select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 200px 0 72px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
    padding: 14px 26px;
    margin: 0 10px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-1px);
}

.terms-checkbox {
    margin-bottom: 24px;
}

.terms-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.terms-checkbox input {
    margin-right: 10px;
}

/* Improve contrast of elements within hero background */
.hero .btn-secondary {
    background: #fff;
    color: var(--brand-primary);
    border-color: #fff;
}
.hero .btn-secondary:hover {
    background: #fff;
    color: var(--brand-primary-dark);
}
.hero .terms-checkbox input { accent-color: var(--brand-primary); }

.hero-content h2 {
    font-size: 28px;
    margin-top: 12px;
    color: rgba(255,255,255,0.9);
}

/* Stats Section */
.stats {
    padding: 72px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.stat-number {
    font-size: 44px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

/* How It Works Section */
.how-it-works {
    padding: 72px 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 32px 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.service-item:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,22,54,0.08);
}

.service-item h3 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Video Section */
.video-section {
    padding: 72px 0;
    background: var(--bg-white);
}

.video-container {
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 72px 0;
    background: var(--bg-light);
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.testimonial-content blockquote {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #333;
    font-style: italic;
}

.testimonial-author {
    margin-bottom: 12px;
    color: var(--brand-primary);
    font-weight: 700;
}

.read-more {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    padding: 8px 16px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.15s ease;
}

.read-more:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Partners Section */
.partners {
    padding: 72px 0;
}

.partners h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.partner-item {
    padding: 16px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: #666;
    transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partner-item:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
}

.partner-logo {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

/* CTA Section */
.cta {
    padding: 72px 0;
    background: #fff;
    color: var(--text-primary);
    text-align: center;
}

.cta h2 {
    font-size: 30px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.cta p {
    font-size: 18px;
    margin-bottom: 18px;
    color: #444;
}

.cta h3 {
    font-size: 24px;
    margin-bottom: 22px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand .footer-logo {
    height: 36px;
    width: auto;
    max-width: 120px;
    filter: brightness(0) invert(1);
}

.footer-social a {
    color: var(--brand-primary);
    margin-left: 15px;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-social a:hover {
    color: var(--brand-primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Avoid iOS/Safari jank with fixed backgrounds */
    .hero {
        background-attachment: scroll;
    }
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-brand .logo {
        height: 64px;
        max-width: 160px;
    }

    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        margin: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .stat-number {
        font-size: 34px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 17px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .stats, .how-it-works, .testimonials, .partners, .cta {
        padding: 60px 0;
    }
    
    .how-it-works h2, .testimonials h2, .partners h2 {
        font-size: 28px;
    }
    
    .cta h2 {
        font-size: 24px;
    }
    
    .cta h3 {
        font-size: 20px;
    }
}
