/* Base Styles */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #004e98;
    --accent-color: #ff7d00;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --neu-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: white;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 30px;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style-type: none;
    margin-bottom: 20px;
}

/* Header Styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background: #e87100;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 125, 0, 0.2);
}

.cta-button.large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.language-selector {
    margin-left: 20px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.selected-language {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background: #f0f0f0;
}

.selected-language img {
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 10px 0;
    min-width: 150px;
    display: none;
    z-index: 10;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
}

.language-dropdown li a:hover {
    background: #f5f5f5;
}

.language-dropdown li a img {
    margin-right: 10px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.language-selector-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.language-selector-mobile a {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.language-selector-mobile a img {
    margin-right: 10px;
}

.mobile-cta {
    width: 100%;
    margin-top: 10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a4a8d 0%, #142850 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,64L48,80C96,96,192,128,288,133.3C384,139,480,117,576,122.7C672,128,768,160,864,170.7C960,181,1056,171,1152,154.7C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.7;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    animation: fadeIn 1s ease-in-out;
}

.hero-content h1, .hero-content p {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
    height: auto;
}

/* ZIP Search Styles */
.zip-search-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.zip-search-container.accent {
    background: linear-gradient(135deg, #ffe1c6 0%, #ffcb97 100%);
}

.zip-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.zip-search-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.zip-search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

/* Cards Styling */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.provider-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.provider-logo {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
}

.provider-logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.provider-features {
    margin: 20px 0;
}

.provider-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.provider-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.provider-card .cta-button {
    margin-top: auto;
    align-self: flex-start;
}

/* Methodology Section */
.methodology-grid, .choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.methodology-image img, .choose-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.methodology-image:hover img, .choose-image:hover img {
    transform: scale(1.02);
}

/* Costs Section */
.costs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* How It Works Section */
.how-it-works-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* FAQ Section */
.faqs {
    max-width: 800px;
    margin: 40px auto;
}

details {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

details:hover {
    transform: translateY(-3px);
}

summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

details[open] summary::after {
    content: "−";
}

.faq-content {
    padding: 0 20px 20px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Conclusion Section */
.final-cta {
    background: linear-gradient(135deg, #1a4a8d 0%, #142850 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    color: white;
    margin-top: 40px;
    box-shadow: var(--card-shadow);
}

.final-cta h3, .final-cta p {
    color: white;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-logo p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: #ddd;
}

.footer-nav a:hover {
    color: white;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.search-animation {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.company-logos img {
    max-width: 100px;
    height: 50px;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries */
@media (max-width: 1024px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .methodology-grid, .choose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        margin-top: 40px;
        order: 2;
    }
    
    .zip-search-form {
        flex-direction: column;
    }
    
    .zip-search-form input,
    .zip-search-form button {
        width: 100%;
    }
    
    .section-intro {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .card, .provider-card {
        padding: 20px;
    }
    
    .final-cta {
        padding: 30px 20px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}