/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #34a853;
    --accent-color: #ff7200;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --gradient-start: #0056b3;
    --gradient-end: #0086ff;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

/* Header & Navigation */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.site-logo a {
    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: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    background: darken(var(--accent-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 114, 0, 0.3);
    color: white;
}

.cta-button.secondary {
    background: var(--primary-color);
}

.cta-button.secondary:hover {
    background: darken(var(--primary-color), 10%);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.main-nav {
    display: none;
    width: 100%;
    background: var(--bg-color);
    padding: 1rem 0;
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav ul li {
    margin: 0.5rem 0;
}

.main-nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    position: absolute;
    transition: var(--transition);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-nav-toggle.active .hamburger {
    background: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.05);
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    min-width: 150px;
    display: none;
    z-index: 10;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-dropdown li:last-child {
    border-bottom: none;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    color: var(--text-color);
}

.language-dropdown a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.gradient-bg h1, .gradient-bg h2, .gradient-bg h3 {
    color: white;
}

.gradient-bg a {
    color: rgba(255, 255, 255, 0.9);
}

.gradient-bg a:hover {
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    margin: 0 auto;
    max-width: 100%;
}

.hero-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ZIP Code Search */
.zip-search-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.zip-search-container.centered {
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
}

.zip-search-container.highlight-container {
    background: linear-gradient(135deg, #ff7200, #ff9a00);
    color: white;
}

.zip-search-container.highlight-container h2,
.zip-search-container.highlight-container h3 {
    color: white;
}

.zip-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.zip-form input {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.zip-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 114, 0, 0.3);
}

/* Sections */
section {
    padding: 4rem 0;
}

.vet-costs-section, .local-perspective-section, .money-saving-section, .conclusion-section {
    background-color: var(--light-bg);
}

.providers-section, .local-clinic-section, .faq-section {
    color: white;
}

/* Two Column Layout */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-column img {
    border-radius: var(--radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    margin: 0 auto;
}

.image-column img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
}

.gradient-bg .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Provider Cards */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.provider-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.provider-logo {
    width: 150px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    border-radius: var(--radius);
    background: white;
    padding: 0.5rem;
}

/* FAQ Section */
.faq-container {
    margin: 2rem 0;
}

details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

details:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: var(--transition);
}

details[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 0.8rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.8rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    z-index: 9999;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-consent a {
    color: var(--accent-color);
    text-decoration: underline;
}

#accept-cookies {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    margin-left: 1rem;
    white-space: nowrap;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.searching-text {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.company-logos img {
    width: 80px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
    margin: 0 auto;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

.search-results {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: fadeIn 0.5s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .two-column-grid {
        grid-template-columns: 1fr 1fr;
    }

    .two-column-grid.reversed {
        grid-template-columns: 1fr 1fr;
    }

    .reversed .content-column {
        order: 2;
    }

    .reversed .image-column {
        order: 1;
    }

    .info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zip-form {
        flex-direction: row;
    }

    .zip-form input {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        width: auto;
        padding: 0;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 1.5rem;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-only {
        display: inline-block;
    }

    .provider-cards {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .desktop-only {
        display: none;
    }
}