/* Base Styles */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-medium: #f3f4f6;
    --bg-dark: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

p, ul, ol {
    margin-bottom: 1.5rem;
}

ul, ol {
    padding-left: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.compare-now-btn {
    display: none;
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.current-language:hover {
    background-color: var(--bg-medium);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 10;
    display: none;
    list-style: none;
    padding: 0;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-dropdown li {
    padding: 0;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-medium);
    text-decoration: none;
}

.language-dropdown a:hover {
    background-color: var(--bg-medium);
    color: var(--text-dark);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.nav-toggle span:nth-child(1) {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 10px;
}

.nav-toggle span:nth-child(3) {
    top: 20px;
}

.nav-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

.main-nav {
    display: none;
    background-color: var(--bg-medium);
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    margin: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-medium);
    text-decoration: none;
}

.main-nav a:hover {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* ZIP Search */
.zip-search {
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    background-color: white;
    box-shadow: var(--shadow-md);
}

.neumorph {
    background-color: var(--bg-light);
    box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff;
}

.zip-search h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.zip-search p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bg-dark);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.search-container button {
    white-space: nowrap;
}

/* Sections */
section {
    padding: 4rem 0;
}

.alternate-bg {
    background-color: var(--bg-light);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.gradient-bg h2, .gradient-bg h3 {
    color: white;
}

.content-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.provider-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.provider-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.provider-logo img {
    max-height: 50px;
    width: auto;
}

.provider-info h3 {
    margin-bottom: 0.5rem;
}

.provider-info p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.provider-info ul {
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.provider-info li {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
}

details {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

summary {
    padding: 1.25rem;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    transition: var(--transition);
}

summary:hover {
    background-color: var(--bg-medium);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31, 41, 55, 0.95);
    color: white;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    font-size: 0.875rem;
}

.cookie-banner p {
    margin: 0;
    margin-right: 1rem;
}

.cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.accept-cookies {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.accept-cookies:hover {
    background-color: var(--secondary-dark);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.search-processing, .search-results {
    max-width: 500px;
    width: 100%;
}

.search-results {
    display: none;
}

.logo-carousel {
    margin: 2rem 0;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-slide img {
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-medium);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.5s ease;
}

.search-status {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* Parallax */
.parallax-img {
    will-change: transform;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-image img {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Media Queries */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    .compare-now-btn {
        display: inline-block;
    }
    
    .content-columns {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-grid {
        grid-template-columns: 3fr 2fr;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-nav {
        display: block;
        background-color: transparent;
    }
    
    .main-nav ul {
        flex-direction: row;
        justify-content: center;
    }
    
    .main-nav a:hover {
        background-color: transparent;
        color: var(--primary-color);
    }
    
    .nav-toggle {
        display: none;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 1.125rem;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .provider-card {
        flex-direction: row;
    }
    
    .provider-logo {
        width: 150px;
        margin: 0 1.5rem 0 0;
    }
    
    .provider-info {
        flex: 1;
    }
}