/* Base styles and resets */
:root {
    --primary-color: #4a6db5;
    --secondary-color: #6db553;
    --accent-color: #b54a6d;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1200px;
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--accent-color);
}

button {
    cursor: pointer;
    font-family: var(--font-family);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Background styles */
.light-bg {
    background-color: var(--bg-light);
}

.gradient-bg {
    background: linear-gradient(135deg, #4a6db5 0%, #6db553 100%);
    color: var(--text-white);
}

.gradient-bg h1, 
.gradient-bg h2, 
.gradient-bg h3, 
.gradient-bg h4 {
    color: var(--text-white);
}

/* Section styling */
section {
    padding: 5rem 0;
}

/* Header and Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 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-sm);
    transition: background-color var(--transition-normal);
}

.selected-language:hover {
    background-color: var(--bg-light);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    width: 150px;
    padding: 0.5rem 0;
    display: none;
    z-index: 100;
}

.language-selector.active .language-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    transition: background-color var(--transition-normal);
}

.language-option:hover {
    background-color: var(--bg-light);
}

/* Hamburger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    padding: 0.75rem 2rem;
}

.mobile-nav a {
    display: block;
    font-size: 1.1rem;
}

/* Hero section */
.hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.hero-image img:hover {
    transform: scale(1.02) rotate(1deg);
}

/* ZIP search styling */
.zip-search, 
.zip-search-container {
    margin-top: 2rem;
}

.zip-form {
    display: flex;
    max-width: 500px;
    margin-bottom: 1rem;
}

.zip-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
}

.zip-form button {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color var(--transition-normal);
}

.zip-form button:hover {
    background-color: var(--accent-color);
}

.search-progress,
.search-complete {
    max-width: 500px;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    color: var(--text-dark);
}

.company-search {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.company-logo-search {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Card layouts */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Neumorphism effect */
.neumorphism {
    background-color: #f0f2f5;
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.05),
        -10px -10px 20px rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
}

.neumorphism:hover {
    box-shadow: 
        7px 7px 15px rgba(0, 0, 0, 0.08),
        -7px -7px 15px rgba(255, 255, 255, 0.9),
        inset 3px 3px 5px rgba(0, 0, 0, 0.03),
        inset -3px -3px 5px rgba(255, 255, 255, 0.5);
}

/* Company rankings section */
.company-rankings {
    padding: 5rem 0;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.company-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding: 2rem;
}

.company-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.company-details {
    flex: 1;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pros h4, .cons h4 {
    margin-bottom: 0.5rem;
}

.pros-cons ul {
    padding-left: 1.5rem;
}

.pros-cons li {
    margin-bottom: 0.5rem;
}

.company-card .cta-button {
    align-self: center;
    min-width: 200px;
}

/* Cost section */
.cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cost-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Benefits section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* How to choose section */
.choose-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.step {
    margin-bottom: 2rem;
}

.step:last-child {
    margin-bottom: 0;
}

.choose-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* FAQ section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    background-color: var(--bg-white);
    cursor: pointer;
    font-weight: 600;
    position: relative;
    list-style: none;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal);
}

.faq-item summary:hover {
    background-color: var(--bg-light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Conclusion section */
.final-cta {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
}

.final-cta h3 {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: var(--text-white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #aebdca;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-disclaimer h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aebdca;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom var(--transition-normal);
    z-index: 1000;
    font-size: 0.9rem;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent a {
    color: #aebdca;
    text-decoration: underline;
}

.cookie-consent button {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: background-color var(--transition-normal);
}

.cookie-consent button:hover {
    background-color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-grid, 
    .cost-grid,
    .choose-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image, 
    .cost-image,
    .choose-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-image img, 
    .cost-image img,
    .choose-image img {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .company-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .desktop-only {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .zip-form {
        flex-direction: column;
    }
    
    .zip-form input {
        border-radius: var(--border-radius-md);
        margin-bottom: 0.5rem;
    }
    
    .zip-form button {
        border-radius: var(--border-radius-md);
        width: 100%;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
}