/* Base Styles & Reset */
:root {
    --primary-color: #4e54c8;
    --primary-light: #8f94fb;
    --secondary-color: #38b2ac;
    --accent-color: #f6ad55;
    --text-color: #2d3748;
    --light-text: #718096;
    --background: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

* {
    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(--background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

button, input {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1.25rem;
}

/* Header & Navigation */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.site-logo a {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.main-nav {
    width: 100%;
    order: 3;
    margin-top: 1rem;
}

.main-nav ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.language-dropdown:hover {
    background-color: var(--border-color);
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-language svg {
    transition: var(--transition);
}

.language-dropdown.active .selected-language svg {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10;
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-options li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    transition: var(--transition);
}

.language-options li a:hover {
    background-color: var(--border-color);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
}

.gradient-bg h1, .gradient-bg h2, .gradient-bg h3, .gradient-bg p {
    color: white;
}

.gradient-bg-alt {
    background: linear-gradient(135deg, #38b2ac, #81e6d9);
    color: white;
}

.gradient-bg-alt h2, .gradient-bg-alt h3, .gradient-bg-alt p {
    color: white;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ZIP Search Form */
.zip-search-container {
    margin: 2rem 0;
}

.zip-search-container.centered {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.zip-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inner);
    backdrop-filter: blur(10px);
}

.form-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
    transition: var(--transition);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group input:focus {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

.search-button {
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #f8c883;
}

/* Search Results */
.search-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.search-results p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.company-logos img {
    border-radius: var(--radius-sm);
    background: white;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.hidden {
    display: none;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.section-content.reverse {
    flex-direction: row-reverse;
}

.section-text, .section-image {
    flex: 1;
}

.section-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.section-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Card Layouts */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.info-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Provider Cards */
.company-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.company-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.company-logo {
    background-color: white;
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.company-logo img {
    max-height: 60px;
    margin: 0 auto;
}

.compare-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    transition: var(--transition);
}

.compare-button:hover {
    background: #f8c883;
    transform: translateY(-2px);
    color: var(--text-color);
}

/* Factors Section */
.factors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.factor-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
}

.factor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.factor-icon {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Cities Badges */
.featured-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.city-badge {
    background-color: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.city-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* FAQs */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

summary {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    list-style: none;
    outline: none;
    transition: var(--transition);
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-content {
    padding: 0 1.25rem 1.25rem;
}

/* Conclusion Section */
.final-cta {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
    background-color: var(--primary-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: white;
}

.final-cta h3 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: #cbd5e0;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
}

.contact-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    background-color: #f8c883;
    transform: translateY(-2px);
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: #a0aec0;
    max-width: 800px;
    margin: 0 auto;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-image img {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content, .section-content {
        flex-direction: column;
    }
    
    .section-content.reverse {
        flex-direction: column;
    }
    
    .section-image {
        order: -1;
    }
    
    .desktop-only {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .factors-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .zip-form {
        padding: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
    }
}