/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2b5797;
    --secondary-color: #6fb98f;
    --accent-color: #ff7f50;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f9f9f9;
    --background-alt: #f0f7ff;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --gradient-primary: linear-gradient(135deg, #3a7bd5 0%, #2b5797 100%);
    --gradient-accent: linear-gradient(135deg, #ff7f50 0%, #ff6347 100%);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--background-light);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 100;
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-nav ul li a {
    color: var(--text-color);
    padding: 8px 0;
    display: block;
    font-weight: 500;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: block;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.current-language img {
    display: inline-block;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: var(--text-color);
}

.language-dropdown li a:hover {
    background-color: var(--background-light);
}

/* Buttons & CTAs */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 6px rgba(58, 123, 213, 0.2);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(58, 123, 213, 0.3);
    color: var(--white);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 123, 213, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(58, 123, 213, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 123, 213, 0);
    }
}

.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glow-button:hover::after {
    opacity: 1;
}

/* Desktop Only Elements */
.desktop-only {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,144C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-content {
    max-width: 100%;
}

.hero-section h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.hero-image {
    display: none;
}

.zip-search-container {
    max-width: 500px;
    margin: 0 auto;
}

.zip-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.zip-search-form input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    width: 100%;
}

.zip-search-form button {
    width: 100%;
}

.section-cta {
    margin-top: 40px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.benefit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon i {
    font-size: 24px;
    color: var(--white);
}

/* Companies Section */
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.company-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.company-logo {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-light);
    height: 150px;
}

.company-logo img {
    max-height: 100px;
    object-fit: contain;
}

.company-details {
    padding: 25px;
}

.company-features {
    margin: 20px 0;
}

.company-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-features i {
    color: var(--primary-color);
    font-size: 14px;
}

/* How to Choose Section */
.choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.choose-image {
    display: none;
}

/* Local Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.city-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.city-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.city-icon i {
    font-size: 28px;
    color: var(--white);
}

.parallax-section {
    height: 300px;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%233a7bd5" fill-opacity="0.6" d="M0,224L60,240C120,256,240,288,360,266.7C480,245,600,171,720,149.3C840,128,960,160,1080,192C1200,224,1320,256,1380,272L1440,288L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 40px;
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 500px;
    margin: 0 20px;
}

.feature-zip .zip-search-form {
    margin-top: 20px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

summary {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    background-color: var(--white);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

details[open] summary::after {
    content: '–';
}

.faq-content {
    padding: 0 20px 20px;
}

/* Final CTA Section */
.final-cta-section {
    background: var(--gradient-primary);
    color: var(--white);
}

.final-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.final-cta-content h2 {
    color: var(--white);
}

.final-cta-content h2::after {
    background: var(--white);
}

.final-cta-content p {
    color: var(--white);
    margin-bottom: 30px;
}

.final-cta-image {
    display: none;
}

/* Footer */
footer {
    background-color: #2b4162;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-nav h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav ul li a:hover {
    color: var(--white);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact address p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    max-width: 300px;
}

.cookie-consent p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-consent button {
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.search-modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.search-status, .search-results {
    padding: 20px 0;
}

.logo-animation {
    height: 100px;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo-animation {
    max-width: 150px;
    max-height: 80px;
    animation: fadeInOut 0.5s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

.search-progress {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    animation: progress 5s linear forwards;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries */
@media (min-width: 768px) {
    .hero-section .container {
        flex-direction: row;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-image {
        display: block;
        flex: 1;
        padding-left: 40px;
    }
    
    .zip-search-form {
        flex-direction: row;
    }
    
    .zip-search-form button {
        width: auto;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .choose-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .choose-image {
        display: block;
    }
    
    .final-cta-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .final-cta-image {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .desktop-only {
        display: inline-block;
    }
    
    .hamburger {
        display: none;
    }
    
    .main-nav {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0;
    }
    
    .main-nav ul {
        flex-direction: row;
        gap: 30px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion) {
    * {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
}

/* Print styles */
@media print {
    header, footer, .zip-search-container, .cta-button {
        display: none;
    }
}