/* Base Styles */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #fb5607;
    --accent-color: #ffbe0b;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #ffffff;
    --light-background: #f5f8ff;
    --dark-background: #283044;
    --border-color: #e1e4e8;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --success-color: #06d6a0;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-color);
}

h1 {
    font-size: 4.2rem;
    text-transform: capitalize;
    font-weight: 700;
}

h2 {
    font-size: 3.2rem;
    position: relative;
    margin-bottom: 3rem;
}

h2:after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

section {
    padding: 8rem 0;
}

section:nth-child(even) {
    background-color: var(--light-background);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header p {
    max-width: 650px;
    margin: 0 auto 3rem;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    margin-right: 2rem;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.current-language:hover {
    background-color: var(--light-background);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 120px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--light-background);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.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-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.05);
    padding: 8rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .cta-button {
    display: block;
    margin-right: 0;
    text-align: center;
}

.language-selector.mobile {
    align-self: flex-start;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 0;
    background: linear-gradient(135deg, #d2e3fc, #ebf4ff);
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ZIP Search Box */
.zip-search-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.zip-search-box.secondary {
    margin-top: 3rem;
}

.zip-search-box.large {
    padding: 3rem;
    max-width: 650px;
    margin: 0 auto;
}

.zip-search-box h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.zip-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.zip-form input {
    flex: 1;
    height: 5rem;
    padding: 0 2rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 1.6rem;
    transition: var(--transition);
}

.zip-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.search-button {
    height: 5rem;
    padding: 0 3rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.small-text {
    font-size: 1.4rem;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 0;
}

.zip-search-centered {
    display: flex;
    justify-content: center;
    margin-top: 6rem;
}

/* Two-column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Providers Section */
.providers-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.provider-card {
    display: flex;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px var(--shadow-color);
}

.provider-logo {
    flex: 0 0 150px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-right: 1px solid var(--border-color);
}

.provider-content {
    flex: 1;
    padding: 2rem;
}

.provider-features {
    list-style-type: none;
    margin-bottom: 2rem;
}

.provider-features li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.8rem;
}

.provider-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.provider-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.provider-cta:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Cost Section */
.cost-table {
    overflow-x: auto;
    margin: 3rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.tip-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px var(--shadow-color);
}

.tip-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 1rem;
    transition: var(--transition);
}

details[open] summary:after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 2rem 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

details[open] .faq-content {
    max-height: 500px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-background);
    color: white;
    padding: 6rem 0 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1 1 300px;
    margin-bottom: 3rem;
}

.footer-logo a {
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-disclaimer {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent p {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.cookie-consent.hidden {
    display: none;
}

.accept-cookies {
    align-self: flex-end;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.accept-cookies:hover {
    background-color: var(--secondary-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.loading-content h3 {
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-background);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1.8rem;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px = 0.9rem */
    }

    .hero-section .container,
    .two-column {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px = 0.8rem */
    }

    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-section .container,
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-image {
        order: -1;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .provider-card {
        flex-direction: column;
    }
    
    .provider-logo {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 3rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .zip-form {
        flex-direction: column;
    }
    
    .cookie-consent {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: none;
    }
}

/* Modern Effects */
.tip-card, .provider-card, .zip-search-box {
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.05),
                -8px -8px 15px rgba(255, 255, 255, 0.8);
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.03) rotate(1deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1,
.hero-content p,
.hero-content .zip-search-box {
    animation: fadeIn 0.8s forwards;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .zip-search-box {
    animation-delay: 0.4s;
}

/* Parallax effect */
.intro-section,
.quality-section,
.providers-section,
.cost-section,
.tips-section,
.faq-section,
.conclusion-section {
    background-attachment: fixed;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
.language-selector:focus {
    outline: 3px solid rgba(58, 134, 255, 0.5);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}