/* Base Styles */
:root {
    --primary-color: #4a6baf;
    --primary-dark: #385a9d;
    --primary-light: #5f7ec0;
    --secondary-color: #e8843f;
    --secondary-dark: #d47533;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #f9f9f9;
    --background-dark: #efefef;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #3c5a98;
    --gradient-end: #6e8cc7;
    --card-border-radius: 12px;
    --btn-border-radius: 6px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-display: swap;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    /* Word-break properties for responsive headings without awkward breaks */
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Buttons and CTAs */
.cta-button, .search-button, .mini-cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover, .search-button:hover, .mini-cta:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.mini-cta {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Navigation */
.main-nav {
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--btn-border-radius);
    background-color: var(--background-light);
}

.current-language img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--btn-border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    width: 150px;
    z-index: 10;
    display: none;
    overflow: hidden;
}

.language-selector.active .language-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: var(--background-light);
}

.language-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
}

.gradient-bg h2, .gradient-bg h3 {
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    color: var(--white);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

/* ZIP Search Component */
.zip-search-container {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--card-border-radius);
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.zip-search-container.featured {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.zip-search-container.centered {
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
}

.zip-search-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.zip-search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--btn-border-radius);
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.zip-search-form input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(95, 126, 192, 0.3);
}

.zip-search-form input::placeholder {
    color: var(--text-light);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.intro-section, .choose-section, .providers-section, .process-section, .faq-section {
    background-color: var(--white);
}

/* Card Layouts */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.info-card.light {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.info-card.light h3 {
    color: var(--primary-dark);
}

/* Neumorphic Design */
.neumorphic {
    background: var(--background-light);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1),
                -8px -8px 16px rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Compare Section */
.compare-section {
    position: relative;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.compare-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Costs Section */
.costs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.costs-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Providers Section */
.providers-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.provider-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--card-border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.provider-logo {
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--background-light);
}

.provider-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.provider-content {
    flex: 1;
    padding: 25px;
}

.provider-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.provider-features span {
    background-color: var(--background-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

/* Logo Grid */
.additional-companies {
    text-align: center;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.company-logo {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: translateY(-5px);
}

.company-logo img {
    height: 60px;
    object-fit: contain;
}

/* Process Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.author-name {
    font-weight: 600;
    text-align: right;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--card-border-radius);
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 20px 20px;
}

/* Final CTA */
.final-cta {
    text-align: center;
}

.final-cta .lead {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
}

.footer-nav h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-nav nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
    color: var(--white);
}

.contact-link {
    display: inline-block;
    color: var(--secondary-color);
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copyright, .disclaimer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--card-border-radius);
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-modal h3 {
    margin-bottom: 20px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.searching-text {
    margin-bottom: 10px;
}

.loading-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.company-logo-animation {
    width: 70px;
    height: 70px;
    object-fit: contain;
    animation: fadeInScale 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid, .compare-grid, .costs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-image, .compare-image, .costs-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: -20px;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        width: 200px;
        border-radius: var(--card-border-radius);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        z-index: 10;
        gap: 15px;
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .desktop-only {
        display: none;
    }
    
    .provider-card {
        flex-direction: column;
    }
    
    .provider-logo {
        width: 100%;
        padding: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section, section {
        padding: 60px 0;
    }
    
    .zip-search-form {
        flex-direction: column;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, [tabindex="0"]:focus {
    outline: 3px solid rgba(74, 107, 175, 0.5);
    outline-offset: 3px;
}

/* High contrast text for WCAG compliance */
.gradient-bg p, 
.testimonial-card p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}