/* CSS for Canton Veterinary Clinic - Fixed & Optimized */

/* Color Variables */
:root {
    --primary: #0a7c3e;
    --primary-dark: #085c2e;
    --secondary: #8e1e42;
    --secondary-dark: #711836;
    --light: #ffffff;
    --dark: #264653;
    --text: #333333;
    --bg-main: #f7f4ed;
    --bg-accent: #e8e0cc;
    --bg-sections: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-main);
    width: 100%;
    max-width: 100vw;
}

.main-wrapper {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    background-color: var(--bg-main);
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

main > section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

a, button, input, select, textarea {
    position: relative;
    z-index: 1;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    background-color: white;
}

.logo {
    text-align: center;
    max-width: 650px;
    width: 100%;
    padding: 0 1rem;
}

.logo-image {
    width: 100%;
    height: auto;
    max-height: 210px;
    object-fit: contain;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: url('../images/cows.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color:  #f7f4ed;
    overflow: hidden;
    margin-bottom: -10px;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 12%;
}

.hero-text {
    z-index: 2;
    max-width: 600px;
    text-align: left;
    position: relative;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #f7f4ed !important;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #f7f4ed !important;
}

.contact-btn {
    padding: 12px 24px;
    font-size: 1.2rem;
    background-color: #ffffffcc !important;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3) !important;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: #0a7c3e;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.hero-hills {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.hero-hills svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== VET CAROUSEL SECTION ===== */
.vet-carousel-section {
    padding: 5rem 2rem;
    background-color: #085c2e;
    color: white;
    text-align: center;
    width: 100%;
}

.vet-carousel-section .section-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.vet-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.vet-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 1.35rem);
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.vet-carousel::-webkit-scrollbar {
    display: none;
}

.vet-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.vet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.vet-image {
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    background-color: rgba(10, 124, 62, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vet-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.vet-info {
    padding: 1.5rem;
    text-align: left;
    color: #333;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vet-info h3 {
    color: #0a7c3e;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.vet-info h4 {
    color: #8e1e42;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.vet-info p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.vet-link {
    color: #0a7c3e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.vet-link:hover {
    color: #8e1e42;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.left {
    left: 1rem;
}

.carousel-arrow.right {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.3);
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
}

/* ===== SECTION TITLES ===== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 2rem;
    background-color: white;
    width: 100%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-img {
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4rem 2rem;
    background: url('../images/horses.jpg') center/cover no-repeat;
    color: var(--secondary);
    text-align: center;
    width: 100%;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    background-color: white;
    color: var(--secondary);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section.footer-about {
    order: 2; /* Put in the middle */
}

.footer-section:nth-child(2) {
    order: 1; /* First location on left */
}

.footer-section:nth-child(3) {
    order: 3; /* Second location on right */
}

.copyright {
    order: 4; /* Stay at bottom */
}  

.footer-logo {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hours {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

.contact-info li {
    margin-bottom: 0.8rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.8rem;
    grid-column: 1 / -1;
}

/* ===== PAGE BANNERS ===== */
.page-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/page-banner.jpg');
    background-size: cover;
    background-position: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    width: 100%;
    padding: 3rem 2rem;
}

.page-banner-content {
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(10, 124, 62, 0.7);
    border-radius: 10px;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
}

.simple-page-header {
    padding: 40px 20px;
    background: #0a7c3e;
    border-bottom: 3px solid var(--primary);
}

.simple-page-header h1 {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin: 0;
}

/* ===== TEAM SECTION (Veterinarians Page) ===== */
.team-section {
    margin: 0 auto;
    padding: 60px 80px 80px 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
    width: 100%;
    max-width: none;
    padding: 0 80px;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #d4eeda;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 20px;
}

.team-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.vet-name {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
}

.vet-title {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.vet-bio {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.memberships {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.memberships strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.memberships p {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.6;
}

.education {
    display: inline-block;
    background: linear-gradient(135deg, #8e1e42 0%, #a86278 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
}

.award-badge {
    background: #ffd700;
    color: #2c3e50;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 15px;
    font-weight: 600;
    display: inline-block;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--bg-main);
    width: 100%;
}

.contact-section .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.single-location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.contact-info-large {
    background-color: var(--bg-sections);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.contact-info h2, .contact-info-large h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: #555;
    line-height: 1.6;
}

.contact-form {
    background-color: var(--bg-sections);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.contact-form h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 124, 62, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.map-container, .map-container-large {
    background-color: var(--bg-sections);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.map-container {
    height: 450px;
}

.map-container-large {
    height: 600px;
}

.map-container h3, .map-container-large h3 {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

.map-container-large h3 {
    padding: 1rem;
    font-size: 1.3rem;
}

.map-content {
    flex: 1;
    width: 100%;
    position: relative;
}

.map-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: #f7f4ed;
    padding: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 4 columns on desktop */
    gap: 5px;
    padding: 5px;
    transition: 0.3s;
}

.gallery:hover .gallery__image {
    filter: grayscale(1);
}

.gallery__link {
    overflow: hidden;
    height: 400px;
    max-height: 400px;
    display: block;
    text-decoration: none;
}

.gallery__link:hover .gallery__image {
    filter: grayscale(0);
}

.gallery__link:hover .gallery__caption {
    opacity: 1;
}

.gallery__thumb {
    position: relative;
    height: 100%;
    margin: 0;
}

.gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.gallery__image:hover {
    transform: scale(1.1);
}

.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px 15px 15px;
    width: 100%;
    font-family: 'Helvetica', sans-serif;
    font-size: 14px;
    color: white;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    transition: 0.3s;
}

/* ===== SHOP SECTION ===== */
.shop-hero-split {
    width: 100%;
    background-color: white;
    position: relative;
    min-height: 300px;
}

.shop-hero-split .hero-split-container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/cat.jpg') center/cover no-repeat;
    background-color: #264653;
}

.shop-hero-split .hero-split-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.shop-hero-split .hero-split-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 3rem 2rem;
    color: white;
}

.shop-hero-split .hero-split-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.shop-hero-split .hero-split-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.95;
}

.featured-stores-section {
    padding: 0;
    background: #f7f4ed;
    width: 100%;
}

.featured-stores-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.featured-store-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    min-height: 400px;
}

.featured-store-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.featured-store-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.featured-store-card:nth-child(even) .store-image-large {
    order: 2;
}

.featured-store-card:nth-child(even) .store-content-large {
    order: 1;
}

.store-image-large {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.store-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-store-card:hover .store-image-large img {
    transform: scale(1.1);
}

.store-content-large {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.store-content-large h2 {
    font-size: 2.5rem;
    color: #0a7c3e;
    margin-bottom: 20px;
    font-weight: 700;
}

.store-content-large p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.store-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0a7c3e 0%, #085c2e 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 5px 15px rgba(10, 124, 62, 0.3);
}

.featured-store-card:hover .store-cta-btn {
    background: linear-gradient(135deg, #8e1e42 0%, #711836 100%);
    box-shadow: 0 8px 25px rgba(142, 30, 66, 0.4);
    transform: translateX(5px);
}

/* ===== VETS HERO SPLIT ===== */
.vets-hero-split {
    width: 100%;
    background-color: white;
    position: relative;
    min-height: 250px;
}

.hero-split-container {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/horseBanner.jpg') center/cover no-repeat;
    background-color: #264653;
}

.hero-split-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-split-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 1.5rem 2rem;
    color: white;
}

.hero-split-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-split-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== LOCATION CTA SECTION ===== */
.location-cta-section {
    padding: 5rem 2rem;
    background: #f7f4ed;
    width: 100%;
    text-align: center;
}

.location-cta-container {
    max-width: 1000px;
    margin: 0 auto;
}

.location-cta-container h1 {
    color: #0a7c3e;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.location-cta-container p {
    color: #8e1e42;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.location-cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.location-button {
    background: white;
    padding: 2rem 3rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.location-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.location-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a7c3e;
    margin-bottom: 0.5rem;
}

.location-button:hover .location-name {
    color: #8e1e42;
}

.location-details {
    font-size: 1rem;
    color: #666;
}

.location-phone {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a7c3e;
    margin-top: 0.5rem;
}

/* ===== LOCATION POPUP ===== */
.location-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.location-popup-overlay.active {
    display: flex;
}

.location-popup {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #8e1e42;
}

.location-popup h2 {
    color: #0a7c3e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.location-popup p {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.popup-buttons {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
}

.popup-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.popup-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #0a7c3e;
}

.popup-office-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a7c3e;
}

.popup-office-phone {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

.popup-btn:hover .popup-office-name {
    color: #8e1e42;
}

/* Main Header - Not Sticky */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 900;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 1.25rem 3rem;
    max-width: 100%;
    margin: 0;
    gap: 3rem;
    min-height: 140px;
}

.header-logo {
    flex-shrink: 0;
    margin-right: auto;
    line-height: 0;
}

.header-logo img {
    height: 130px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-nav {
    flex-shrink: 0;
    display: flex;
}

.header-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav .nav-links a {
    text-decoration: none;
    color: #0a7c3e;
    font-weight: 600;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.header-nav .nav-links a:hover,
.header-nav .nav-links a.active {
    color: #8e1e42;
}

.header-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #8e1e42;
    transition: width 0.3s ease;
}

.header-nav .nav-links a:hover::after,
.header-nav .nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    color: #0a7c3e;
    font-weight: 600;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
    color: #8e1e42;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #8e1e42;
    transition: width 0.3s ease;
}

.dropdown-toggle:hover::after,
.dropdown-toggle.active::after {
    width: 100%;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #0a7c3e;
    font-size: 1rem;
    transition: background 0.3s;
    text-align: center;
}

.dropdown-menu a:hover {
    background: rgba(10, 124, 62, 0.1);
    color: #8e1e42;
}

.dropdown-menu a::after {
    display: none;
}

.header-location {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
    width: 280px;
}

.location-info-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    order: 2;
    min-height: 40px;
}

.location-phone {
    color: #0a7c3e;
    font-weight: 600;
    text-decoration: none;
}

.location-phone:hover {
    color: #8e1e42;
}

.location-address-compact {
    color: #666;
    font-size: 0.8rem;
}

.toggle-switch {
    display: inline-flex;
    background: linear-gradient(135deg, #0a7c3e 0%, #085c2e 100%);
    border-radius: 30px;
    padding: 4px;
    cursor: pointer;
    order: 1;
}

.toggle-option {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    user-select: none;
    color: rgba(255, 255, 255, 0.7);
}

.toggle-option.active {
    background: white;
    color: #0a7c3e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Sticky Scroll Header */
.scroll-header {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a7c3e 0%, #085c2e 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: top 0.3s ease;
    padding: 0.75rem 3rem;
}

.scroll-header.visible {
    top: 0;
}

.scroll-header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.scroll-location {
    color: white;
    font-size: 0.9rem;
    min-width: 200px;
}

.scroll-location.left {
    text-align: left;
}

.scroll-location.right {
    text-align: right;
}

.scroll-location-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.scroll-location a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s;
}

.scroll-location a:hover {
    opacity: 0.8;
}

.scroll-header-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.scroll-header-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-header-links a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Scroll header dropdown menu styling */
.scroll-header .dropdown-menu a {
    color: #0a7c3e !important; /* Force green color for scroll header dropdown */
    background: white;
}

.scroll-header .dropdown-menu a:hover {
    background: rgba(10, 124, 62, 0.1) !important;
    color: #8e1e42 !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002;
}

/* Animated Splash Background */
.nav-splash {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 1px;
    height: 1px;
    z-index: 1000;
    pointer-events: none;
}

.nav-splash::after {
    content: '';
    display: block;
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a7c3e 0%, #085c2e 100%);
    width: 284vmax;
    height: 284vmax;
    top: -142vmax;
    left: -142vmax;
    transform: scale(0);
    transform-origin: 50% 50%;
    transition: transform 0.5s cubic-bezier(0.755, 0.050, 0.855, 0.060);
    will-change: transform;
}

.nav-splash.active::after {
    transform: scale(1);
}

/* ===== RESPONSIVE DESIGN ===== */

/* PC/Desktop - shift logo slightly right */
@media (min-width: 1367px) {
    .header-logo {
        margin-right: auto;
        margin-left: 4rem; /* Shift logo slightly to the right */
    }
    
    .header-nav {
        transform: translateX(-4rem); /* Shift nav buttons to the left */
    }
    
    .header-location {
        transform: translateX(-1rem); /* Shift location button to the left */
    }
}

    @media (min-width: 1600px) {
    .gallery {
        grid-template-columns: repeat(6, 1fr); /* 6 columns on very large screens */
    }
}

/* Desktop header adjustments - includes iPad Air */
@media (max-width: 1366px) {
    /* Hide scroll header */
    .scroll-header {
        display: none !important;
    }

    .dropdown:hover .dropdown-menu {
    transform: none !important;
    }

    gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery__link {
        height: 350px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .footer-section.footer-about {
        grid-column: 1 / -1;
        order: -1 !important;
        text-align: center;
    }
    
    .footer-section:nth-child(2) {
        order: 0 !important;
        grid-column: 1 / 2;
    }
    
    .footer-section:nth-child(3) {
        order: 0 !important;
        grid-column: 2 / 3;
    }
    
    .copyright {
        grid-column: 1 / -1;
        order: 999;
    }
    
    /* Make main header sticky */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-nav .nav-links .dropdown .dropdown-toggle {
        font-weight: 700 !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    }
    
    .header-content {
        padding: 1.75rem 2rem; /* Better padding for iPad Air and larger screens */
        display: flex;
        align-items: center;
        justify-content: center; /* Center everything */
        min-height: 160px; /* Better height for 150px logo */
        position: relative; /* For positioning hamburger */
    }

    .header-logo {
        order: 0;
        margin: 0 auto; /* Center the logo */
        flex-shrink: 0;
    }
    
    .header-logo img {
        height: 130px; /* Bigger logo on tablets/iPads */
    }

    
    /* HIDE desktop navigation links */
    .header-nav .nav-links {
        display: none !important; /* Force hide desktop nav */
    }
    
    /* HIDE LOCATION TOGGLE */
    .header-location {
        display: none !important; /* Force hide location toggle */
    }

        /* SHOW hamburger menu */
    .mobile-menu-btn {
        display: inline-flex !important; /* Force show */
        align-items: center;
        justify-content: center;
        position: absolute; /* Changed from static */
        right: 1rem; /* Position on right side */
        z-index: 1002;
        background: linear-gradient(135deg, #0a7c3e 0%, #085c2e 100%);
        border: none;
        cursor: pointer;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 48px;
        height: 48px;
        box-shadow: 0 4px 12px rgba(10, 124, 62, 0.25);
        margin-left: 0; /* Remove auto margin */
    }
    
    .mobile-menu-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(10, 124, 62, 0.35);
    }
    
    .mobile-menu-btn:active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn svg {
        display: block;
        width: 24px;
        height: 24px;
    }
    
    .menuicon__bar {
        fill: none;
        stroke: white;
        stroke-width: 2.5;
        stroke-linecap: round;
        transform-origin: 50% 50%;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    }
    
    .menuicon__circle {
        display: none;
    }
    
    .mobile-menu-btn.active {
        background: linear-gradient(135deg, #8e1e42 0%, #711836 100%);
        box-shadow: 0 6px 20px rgba(142, 30, 66, 0.35);
    }
    
    .mobile-menu-btn.active .menuicon__bar:nth-child(1),
    .mobile-menu-btn.active .menuicon__bar:nth-child(4) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .menuicon__bar:nth-child(2) {
        transform: rotate(45deg);
    }
    
    .mobile-menu-btn.active .menuicon__bar:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .nav-splash::after {
    background: linear-gradient(135deg, rgba(10, 124, 62, 0.70) 0%, rgba(8, 92, 46, 0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
    
    /* Navigation Menu - Fullscreen Overlay */
    .header-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        visibility: hidden;
        pointer-events: none;
        padding: 2rem;
    }
    
    .header-nav.active {
        visibility: visible;
        pointer-events: auto;
    }
    
    .header-nav.active .nav-links {
        display: flex !important; /* Show when menu is active */
    }
    
    .header-nav .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .header-nav .nav-links li {
        opacity: 0;
        width: 100%;
        max-width: 400px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .header-nav .nav-links li:nth-child(1) { 
        transform: translateY(-50px);
        transition-delay: 0.05s;
    }
    .header-nav .nav-links li:nth-child(2) { 
        transform: translateY(-50px);
        transition-delay: 0.1s;
    }
    .header-nav .nav-links li:nth-child(3) { 
        transform: translateY(-50px);
        transition-delay: 0.15s;
    }
    .header-nav .nav-links li:nth-child(4) { 
        transform: translateY(-50px);
        transition-delay: 0.2s;
    }
    .header-nav .nav-links li:nth-child(5) { 
        transform: translateY(-50px);
        transition-delay: 0.25s;
    }
    
    .header-nav.active .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle) {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 124, 62, 0.1), transparent);
    transition: left 0.5s ease;
}
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle):hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle):hover {
    background: white;
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(10, 124, 62, 0.3);
    color: var(--secondary);
}
    
    /* Dropdown in mobile menu */
    .dropdown {
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem !important;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1.25rem 2rem !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 58px;
}
    
    .dropdown-toggle::after {
        display: none;
    }
    
    .dropdown-toggle:hover {
    background: white;
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(10, 124, 62, 0.3);
    color: var(--secondary);
}
    
    .dropdown-arrow {
        display: inline-block;
        margin-left: 0.5rem;
        font-size: 0.7rem;
        opacity: 0.7;
    }
    
        .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
        align-items: center;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0;
        width: 100%;
        transition: all 0.3s ease, margin-top 0.3s ease, max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        margin-top: 0.75rem;
    }
    
    .dropdown-menu a {
    width: 100%;
    font-size: 1.1rem !important;
    padding: 1.25rem 2rem !important;  /* Keep the !important */
    text-align: center;
    color: var(--primary) !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    
    .dropdown-menu a:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 124, 62, 0.3);
    color: var(--secondary);
}
    
    /* Carousel adjustments for iPads */
    .vet-carousel-container {
        padding: 0 70px;
    }
    
    .vet-carousel {
        grid-auto-columns: calc(50% - 1rem);
        gap: 2rem;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
    }
}

/* iPad-sized devices - larger hamburger button */
@media (max-width: 1366px) and (min-width: 769px) {
    .mobile-menu-btn {
        width: 56px !important; /* Larger button for iPad */
        height: 56px !important;
        right: 1.5rem; /* Adjust position for larger button */
    }
    
    .mobile-menu-btn svg {
        width: 28px !important; /* Larger hamburger lines */
        height: 28px !important;
    }
}

/* Tablets - 769px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }
    
    .header-logo img {
        height: 130px; /* Bigger logo on tablets/iPads */
    }

    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-overlay {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-img {
        height: 300px;
    }

    .hero {
        margin-bottom: -3px;
    }
    
    .about {
        margin-top: -2px;
    }

    
    .contact-grid,
    .single-location-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container,
    .map-container-large {
        height: 450px;
    }
    
    .contact-section .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .team-grid {
        padding: 0 30px;
    }
    
    .featured-stores-container {
        padding: 60px 30px;
        gap: 40px;
    }
    
    .featured-store-card {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }
    
    .featured-store-card:nth-child(even) .store-image-large {
        order: 1;
    }
    
    .featured-store-card:nth-child(even) .store-content-large {
        order: 2;
    }
    
    .store-image-large {
        min-height: 300px;
    }
    
    .store-content-large {
        padding: 40px 30px;
    }
    
    .store-content-large h2 {
        font-size: 2rem;
    }
    
    .store-content-large p {
        font-size: 1.1rem;
    }
    
    .hero-split-container {
        min-height: 400px;
    }
    
    .hero-split-content {
        padding: 3rem 2rem;
    }
    
    .hero-split-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-split-content p {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .location-info-compact {
        display: none;
    }
    
    .header-nav .nav-links {
        gap: 1.25rem;
    }
    
    .header-nav .nav-links a {
        font-size: 1rem;
    }
    
    .header-location {
        width: auto;
        margin-left: 1rem;
    }
}

/* Mobile Devices - 768px and below */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-logo img {
        height: 80px;
    }
    
    /* Hide scroll header on mobile */
    .scroll-header {
        display: none !important;
    }
    
    /* Make main header sticky on mobile */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-img {
        height: 300px; /* Reduce height on mobile */
        width: 100%;
    }

    .hero {
        margin-bottom: -3px;
    }
    
    .about {
        margin-top: -2px;
    }

    .header-logo img {
        height: 100px;
    }
    
    /* FIX 3: Shop product cards - prevent image smashing */
    .featured-store-card {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }
    
    .store-image-large {
        min-height: 200px;
        height: 200px;
    }
    
    .store-content-large {
        padding: 20px 15px;
    }
    
    .store-content-large h2 {
        font-size: 1.5rem;
    }
    
    .store-content-large p {
        font-size: 0.95rem;
    }
    
    /* FIX 4: Contact page maps - proper sizing on phones */
    .map-container,
    .map-container-large {
        height: 250px;
        min-height: 250px;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-info-large,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-grid,
    .single-location-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header-content {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 80px; /* Add proper height */
    }
    
    .header-location {
        display: none;
    }
    
    .mobile-menu-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(10, 124, 62, 0.35);
    }
    
    .mobile-menu-btn:active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn svg {
        display: block;
        width: 24px;
        height: 24px;
    }
    
    .menuicon__bar {
        fill: none;
        stroke: white;
        stroke-width: 2.5;
        stroke-linecap: round;
        transform-origin: 50% 50%;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    }
    
    .menuicon__circle {
        display: none;
    }
    
    .mobile-menu-btn.active {
        background: linear-gradient(135deg, #8e1e42 0%, #711836 100%);
        box-shadow: 0 6px 20px rgba(142, 30, 66, 0.35);
    }
    
    .mobile-menu-btn.active .menuicon__bar:nth-child(1),
    .mobile-menu-btn.active .menuicon__bar:nth-child(4) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .menuicon__bar:nth-child(2) {
        transform: rotate(45deg);
    }
    
    .mobile-menu-btn.active .menuicon__bar:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .nav-splash::after {
    background: linear-gradient(135deg, rgba(10, 124, 62, 0.7) 0%, rgba(8, 92, 46, 0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }   

    .header-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        visibility: hidden;
        pointer-events: none;
        padding: 2rem;
    }
    
    .header-nav.active {
        visibility: visible;
        pointer-events: auto;
    }
    
    .header-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .header-nav .nav-links li {
        opacity: 0;
        width: 100%;
        max-width: 400px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .header-nav .nav-links li:nth-child(1) { 
        transform: translateY(-50px);
        transition-delay: 0.05s;
    }
    .header-nav .nav-links li:nth-child(2) { 
        transform: translateY(-50px);
        transition-delay: 0.1s;
    }
    .header-nav .nav-links li:nth-child(3) { 
        transform: translateY(-50px);
        transition-delay: 0.15s;
    }
    .header-nav .nav-links li:nth-child(4) { 
        transform: translateY(-50px);
        transition-delay: 0.2s;
    }
    .header-nav .nav-links li:nth-child(5) { 
        transform: translateY(-50px);
        transition-delay: 0.25s;
    }
    
    .header-nav.active .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle) {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 124, 62, 0.1), transparent);
    transition: left 0.5s ease;
}
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle):hover {
    background: white;
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(10, 124, 62, 0.3);
    color: var(--secondary);
}
    
    .header-nav .nav-links > li > a:not(.dropdown-toggle):hover::before {
        left: 100%;
    }
    
    .dropdown {
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem !important;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1.25rem 2rem !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 58px;
}
    
    .dropdown-toggle::after {
        display: none;
    }
    
    .dropdown-toggle:hover {
    background: white;
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(10, 124, 62, 0.3);
    color: var(--secondary);
}
    
    .dropdown-arrow {
        display: inline-block;
        margin-left: 0.5rem;
        font-size: 0.7rem;
        opacity: 0.7;
    }
    
        .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
        align-items: center;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0;
        width: 100%;
        transition: all 0.3s ease, margin-top 0.3s ease, max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        margin-top: 0.75rem;
    }
    
    .dropdown-menu a {
    width: 100%;
    font-size: 1.1rem !important;
    padding: 1.25rem 2rem !important;
    text-align: center;
    color: var(--primary) !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    
    .dropdown-menu a:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 124, 62, 0.3);
    color: var(--secondary);
}
    
    .logo-container {
        padding: 1rem 0;
    }
    
    .logo {
        max-width: 90%;
        padding: 0 1rem;
    }
    
    .logo-image {
        max-height: 100px;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        display: none;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }
    
    .hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-overlay {
        padding-left: 5%;
        padding-right: 5%;
        background: rgba(0, 0, 0, 0.5);
        justify-content: center;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-hills {
        height: 80px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Carousel - Show 1 card */
    .vet-carousel-section {
        padding: 3rem 1rem;
    }
    
    .vet-carousel-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .vet-carousel-container {
        padding: 0 50px;
    }
    
    .vet-carousel {
        grid-auto-columns: 100%;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .vet-card {
        min-height: 420px;
    }
    
    .vet-image {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
    
    .vet-info {
        padding: 1.25rem;
    }
    
    .vet-info h3 {
        font-size: 1.2rem;
    }
    
    .vet-info h4 {
        font-size: 0.95rem;
    }
    
    .vet-info p {
        font-size: 0.9rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .carousel-arrow.left {
        left: 0.5rem;
    }
    
    .carousel-arrow.right {
        right: 0.5rem;
    }
    
    .carousel-dots {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-section {
        padding: 40px 20px 60px 20px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .card-image {
        height: 280px;
    }

    .card-content {
        padding: 25px;
    }

    .vet-name {
        font-size: 1.5rem;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery__link {
        height: 250px;
    }
    
    .gallery__image {
        height: 250px;
    }
    
    .location-cta-container h1 {
        font-size: 2rem;
    }
    
    .location-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .location-button {
        width: 100%;
        max-width: 400px;
        min-width: auto;
    }
    
    .simple-page-header {
        padding: 30px 20px;
    }
    
    .simple-page-header h1 {
        font-size: 2rem;
    }
    
    .page-banner {
        min-height: 200px;
        padding: 2rem 1rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .map-container,
    .map-container-large {
        height: 350px;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .single-location-layout {
        gap: 1.5rem;
    }
    
    .location-popup {
        padding: 2rem;
        width: 95%;
    }
    
    .location-popup h2 {
        font-size: 1.5rem;
    }
    
    .popup-office-name {
        font-size: 1.2rem;
    }
    
    .popup-office-phone {
        font-size: 1rem;
    }
    
    .shop-hero-split .hero-split-content h1 {
        font-size: 2.5rem;
    }
    
    .shop-hero-split .hero-split-content p {
        font-size: 1.2rem;
    }
    
    .featured-stores-container {
        padding: 40px 20px;
    }
    
    .store-content-large h2 {
        font-size: 1.8rem;
    }
    
    .store-content-large p {
        font-size: 1rem;
    }
    
    .hero-split-content h1 {
        font-size: 2rem;
    }
    
    .hero-split-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        right: 0.5rem;
    }

    .dropdown {
        width: 100%;
        max-width: 400px;
    }
    
    .dropdown-toggle {
        width: 100%;
        padding: 1.25rem 2rem !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 16px !important;
        min-height: 58px !important;
    }
    
    .dropdown-menu a {
        padding: 1.25rem 2rem !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 16px !important;
        min-height: 58px !important;
    }

    .header-logo img {
        height: 80px;
    }
    
    .logo {
        max-width: 95%;
    }
    
    .logo-image {
        max-height: 80px;
    }
    
    .hero {
        min-height: 350px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-hills {
        height: 60px;
    }
    
    .hero {
        margin-bottom: -3px;
    }
    
    .about {
        margin-top: -2px;
    }
    
    .about-img {
        height: 250px;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery__link {
        height: 300px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .location-cta-container h1 {
        font-size: 1.5rem;
    }
    
    .location-cta-container p {
        font-size: 1rem;
    }
    
    .location-button {
        padding: 1.5rem 2rem;
        min-width: auto;
    }
    
    .location-name {
        font-size: 1.3rem;
    }
    
    .location-phone {
        font-size: 1rem;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
        min-height: 70px;
    }
    
    /* Carousel adjustments */
    .vet-carousel-section {
        padding: 2.5rem 0.5rem;
    }
    
    .vet-carousel-container {
        padding: 0 45px;
    }
    
    .vet-card {
        min-height: 400px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow.left {
        left: 0.25rem;
    }
    
    .carousel-arrow.right {
        right: 0.25rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .vet-carousel-container {
        padding: 0 40px;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}