/* Base styles and CSS Reset */
:root {
    --primary-color: #4e54c8;
    --primary-dark: #3a3fa3;
    --secondary-color: #43cea2;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --alt-bg-color: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #43cea2;
    --error-color: #f44336;
    --gradient-start: #4e54c8;
    --gradient-end: #43cea2;
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --neumorphic-shadow: 8px 8px 15px #e0e0e0, -8px -8px 15px #ffffff;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--bg-color);
    font-display: swap;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

ul, ol {
    list-style-position: inside;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    hyphens: auto;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout and Sections */
.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

section {
    padding: 70px 0;
}

.alt-bg {
    background-color: var(--alt-bg-color);
}

.center-align {
    text-align: center;
}

/* Header and Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.site-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: white;
}

.selected-language img {
    border-radius: 50%;
}

.arrow {
    font-size: 0.8rem;
    transition: var(--transition);
}

.language-selector.active .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: 5px 0;
    list-style: none;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-color);
}

.language-dropdown li a:hover {
    background-color: var(--alt-bg-color);
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
    color: white;
}

.header-cta {
    display: block;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image img {
    box-shadow: var(--box-shadow);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.03) rotate(1deg);
}

/* ZIP Search Form */
.zip-search-container {
    margin: 2rem 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    box-shadow: var(--box-shadow);
}

.zip-search-container h2, .zip-search-container h3 {
    margin-bottom: 1rem;
    color: inherit;
}

.zip-search-form {
    display: flex;
    gap: 10px;
}

.zip-search-form input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

.zip-search-form input:focus {
    border-color: var(--primary-color);
}

.zip-search-form button {
    min-width: 120px;
}

/* Cards Design */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.info-card {
    padding: 25px;
    background-color: white;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--light-text);
}

.neumorphic {
    background: #f0f0f0;
    box-shadow: var(--neumorphic-shadow);
    border-radius: var(--radius-md);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 2rem;
}

.provider-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.provider-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: white;
    height: 120px;
}

.provider-logo img {
    max-height: 100px;
    object-fit: contain;
    margin: 0 auto;
}

.provider-info {
    padding: 20px;
}

.provider-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pros-cons {
    margin: 1rem 0;
    padding: 10px;
    background-color: var(--alt-bg-color);
    border-radius: var(--radius-sm);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.provider-card .cta-button {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Comparison Section */
.comparison-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--box-shadow);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--alt-bg-color);
}

.comparison-table tr:hover {
    background-color: rgba(67, 206, 162, 0.1);
}

/* Parallax effect */
.parallax-container {
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: var(--radius-lg);
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cost Section */
.cost-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.cost-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 2rem 0;
}

.faq-item {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    outline: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 20px 20px;
}

/* Conclusion Section */
.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta {
    margin-top: 2rem;
    padding: 30px;
    background-color: var(--alt-bg-color);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.final-cta h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.final-cta .zip-search-form {
    max-width: 500px;
    margin: 1.5rem auto 0;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 300px;
    background-color: white;
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.cookie-consent p {
    margin-bottom: 0;
}

.accept-cookies {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.search-processing {
    text-align: center;
    max-width: 600px;
    padding: 30px;
}

.search-processing h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.search-animation {
    margin: 2rem 0;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.company-logos img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.search-status {
    font-weight: 500;
    color: var(--success-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-grid, 
    .comparison-wrapper, 
    .cost-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-image, 
    .comparison-image {
        order: -1;
    }
    
    .parallax-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .header-cta {
        display: none;
    }
    
    .site-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 30px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .site-nav.active {
        right: 0;
    }
    
    .site-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .zip-search-form {
        flex-direction: column;
    }
    
    .zip-search-form button {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .language-selector {
        display: none;
    }
    
    .site-header .container {
        padding: 0 15px;
    }
    
    .parallax-container {
        height: 250px;
    }
    
    .cookie-consent {
        width: calc(100% - 40px);
        max-width: none;
    }
}