/* Base Styles & Reset */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --light-color: #ffffff;
    --dark-color: #1a1a2e;
    --gray-color: #f8f9fa;
    --text-color: #333333;
    --success-color: #38b000;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #3a86ff 0%, #8338ec 100%);
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1, .main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 2rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Layout */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--gray-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #2a75ee;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(58, 134, 255, 0.2);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav {
    background-color: var(--light-color);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 1rem;
}

.nav-list a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.selected-language:hover {
    background-color: var(--gray-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: 0.5rem 0;
    list-style: none;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
}

.language-dropdown li a:hover {
    background-color: var(--gray-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(to right, rgba(58, 134, 255, 0.9), rgba(131, 56, 236, 0.9)), url('placeholder1.webp');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: 6rem 0;
}

.hero-section h1, 
.hero-section .main-title {
    color: var(--light-color);
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* ZIP Code Search */
.zip-search-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.mid-page.zip-search-container,
.providers-cta.zip-search-container {
    margin: 4rem auto 0;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
}

.zip-search-form {
    text-align: center;
}

.zip-search-form h3 {
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-group input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
}

.input-group input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-hint {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Search Results Animation */
.search-results {
    margin-top: 2rem;
    text-align: center;
}

.search-results.hidden {
    display: none;
}

.searching-message, .found-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    box-shadow: var(--shadow);
}

.searching-message.hidden, .found-message.hidden {
    display: none;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(58, 134, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.logo-carousel {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.logo-item {
    max-height: 50px;
    margin: 0 auto;
}

/* HARO Section */
.haro-section {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 5rem 0;
}

.haro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.haro-content h2, .haro-content h3 {
    color: var(--light-color);
}

.haro-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.haro-image img:hover {
    transform: scale(1.03) rotate(1deg);
}

/* Cards Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Choose Section */
.choose-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.choose-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Providers Section */
.providers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.provider-card {
    display: flex;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.provider-logo {
    width: 150px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-color);
}

.provider-content {
    flex: 1;
    padding: 1.5rem;
}

.provider-content h3 {
    margin-top: 0;
}

.provider-content p {
    margin-bottom: 1rem;
}

/* Detailed Providers */
.detailed-provider {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.detailed-provider h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.detailed-provider ul {
    margin-bottom: 0;
}

/* Quote CTA */
.quote-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 4rem 0 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.quote-content {
    padding: 2rem;
}

.quote-content h3 {
    margin-top: 0;
}

/* FAQ Section */
.faq-section {
    background-color: var(--gray-color);
}

.faq-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
}

/* Conclusion Section */
.conclusion-section {
    text-align: center;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.final-hint {
    font-weight: 500;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--light-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #ccc;
}

.footer-nav a:hover {
    color: var(--light-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: #bbb;
    margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 400px;
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.875rem;
}

.cookie-consent p {
    margin: 0;
}

/* Utilities */
.hidden {
    display: none !important;
}

.desktop-only {
    display: block;
}

/* Animations and Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .provider-card, .detailed-provider, .faq-item {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .haro-grid, .choose-grid, .quote-cta {
        grid-template-columns: 1fr;
    }
    
    .choose-image {
        order: -1;
    }
    
    .desktop-only {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: var(--transition);
        opacity: 0;
    }
    
    .main-nav.active {
        height: auto;
        opacity: 1;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-list li {
        margin: 0;
    }
    
    .nav-list a {
        padding: 1rem 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input[type="text"], 
    .input-group button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .provider-card {
        flex-direction: column;
    }
    
    .provider-logo {
        width: 100%;
        padding: 1rem;
    }
}

/* Accessibility Focus Styles */
a:focus, button:focus, input:focus, [tabindex="0"]:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Neumorphism Effect */
.quote-cta, .final-cta {
    background: var(--light-color);
    box-shadow: 8px 8px 16px #e6e6e6, -8px -8px 16px #ffffff;
}

/* Parallax Effect */
.hero-section {
    background-attachment: fixed;
}