/* Base Styles */
:root {
    --primary-color: #4A6FFF;
    --secondary-color: #FF6B6B;
    --accent-color: #5DADE2;
    --dark-color: #2C3E50;
    --light-color: #F5F7FA;
    --gray-color: #95A5A6;
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --font-primary: 'Poppins', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --neu-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.8);
    --neu-shadow-inset: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
    --border-radius: 10px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

h1 {
    font-size: 4.2rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    padding-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

.lead {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.6rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.cta-btn {
    font-size: 1.8rem;
    font-weight: 600;
    padding: 1.4rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(93, 173, 226, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(93, 173, 226, 0.8);
    }
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--dark-color);
    font-weight: 500;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.lang-dropdown {
    position: relative;
    cursor: pointer;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    min-width: 150px;
    display: none;
}

.lang-dropdown.active .lang-options {
    display: block;
}

.lang-options li {
    padding: 0.5rem 0;
}

.lang-options a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 10px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav a {
    font-size: 2.4rem;
    font-weight: 500;
}

/* Main Content Sections */
main {
    padding-top: 8rem;
}

section {
    padding: 8rem 0;
}

.alt-bg {
    background-color: #f9f9f9;
}

.gradient-bg {
    background: linear-gradient(135deg, #f6f8fe, #e3e9ff);
}

/* Hero Section */
.hero {
    padding: 10rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.neumorph {
    background: var(--light-color);
    box-shadow: var(--neu-shadow);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.neumorph:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.15), -8px -8px 16px rgba(255, 255, 255, 0.9);
}

/* ZIP Search */
.zip-search-container {
    margin: 4rem 0;
}

.center-aligned {
    text-align: center;
}

.zip-search {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.zip-search input {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem 2rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    box-shadow: var(--neu-shadow-inset);
    transition: var(--transition);
}

.zip-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 255, 0.2);
}

.search-progress, .search-complete {
    margin-top: 2rem;
}

.logo-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.progress-bar {
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 2rem auto;
    max-width: 400px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s linear;
}

/* Card Layouts */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Content with Image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.content-with-image .content {
    order: 1;
}

.content-with-image .image-container {
    order: 2;
}

.content-with-image:nth-child(even) .content {
    order: 2;
}

.content-with-image:nth-child(even) .image-container {
    order: 1;
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem 0;
}

.provider-card {
    padding: 3rem;
    display: grid;
    grid-template-columns: minmax(150px, 200px) 1fr auto;
    gap: 2rem;
    align-items: center;
}

.provider-logo img {
    max-width: 100%;
    max-height: 80px;
    margin: 0 auto;
}

.pros-cons {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.pros h4, .cons h4 {
    margin-bottom: 1rem;
}

.pros h4 {
    color: var(--success-color);
}

.cons h4 {
    color: var(--danger-color);
}

.pros ul, .cons ul {
    padding-left: 2rem;
}

.pros li, .cons li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.pros li::before, .cons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pros li::before {
    background-color: var(--success-color);
}

.cons li::before {
    background-color: var(--danger-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 4rem auto;
}

details {
    margin-bottom: 2rem;
}

summary {
    font-weight: 600;
    padding: 2rem;
    cursor: pointer;
    position: relative;
    padding-right: 4rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    color: var(--primary-color);
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 2rem 2rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-nav h4, .footer-contact h4 {
    color: white;
    margin-bottom: 2rem;
}

.footer-nav ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
    color: white;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 1.4rem;
}

.cookie-notice p {
    margin: 0;
}

.cookie-notice .btn {
    padding: 0.8rem 1.6rem;
    margin-left: 2rem;
}

/* Parallax Effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Desktop Only Elements */
.desktop-only {
    display: inline-block;
}

/* CSS Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .hero-image {
    animation: fadeIn 1s ease-out;
}

.hero-content {
    animation-delay: 0.2s;
}

.hero-image {
    animation-delay: 0.4s;
}

.card, .provider-card, details {
    animation: fadeIn 0.8s ease-out both;
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 56.25%; /* 9px = 1rem */
    }
    
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .content-with-image .content,
    .content-with-image .image-container,
    .content-with-image:nth-child(even) .content,
    .content-with-image:nth-child(even) .image-container {
        order: unset;
    }
    
    .provider-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .provider-logo {
        margin-bottom: 2rem;
    }
    
    .pros-cons {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px = 1rem */
    }
    
    .desktop-nav, .desktop-only {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .zip-search {
        flex-direction: column;
    }
    
    section {
        padding: 6rem 0;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .zip-search input {
        min-width: auto;
    }
    
    .cookie-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .cookie-notice .btn {
        margin-left: 0;
    }
}

/* Intersection Observer for Animation on Scroll */
.card.visible, .provider-card.visible, details.visible {
    animation-play-state: running;
}

/* Accessibility Improvements */
:focus {
    outline: 3px solid rgba(74, 111, 255, 0.5);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}