/* --- WILD ON PETS: REVISED COLOR PALETTE --- */
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f4f9f7; /* Very light cool background */
    --accent-color: #00a896; /* Primary Teal/Aqua for branding and CTAs */
    --hover-color: #00796b; /* Darker teal for hover */
    --text-color: #212529;
    --light-gray: #4a6060; /* Slightly greener dark gray */
    --link-color: #00a896;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------------- */
/* --- Header & Navigation --- */
/* ------------------------------------------------------------------- */
header {
    background-color: var(--primary-bg);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px; /* Slightly larger logo */
    width: auto;
    display: block;
}

/* --- HAMBURGER MENU STYLES (Hidden by default on desktop) --- */
.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    margin-left: auto; /* Push it to the right */
}

.hamburger-menu:hover {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease; /* Optional: for smooth desktop effect */
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Style for Active Page Link in Nav (NEW) --- */
/* Base style for the active page link (non-CTA buttons) */
.nav-links li a.active-page {
    color: var(--accent-color) !important; 
    font-weight: 700; 
    border-bottom: 2px solid var(--accent-color); 
}

/* Specific styling for the CTA button when it's the active page (Contact page) */
.nav-links li a.cta-btn.active-page {
    color: var(--primary-bg) !important; 
    background-color: var(--hover-color); 
    border: 1px solid var(--hover-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-bottom: none !important;
}

/* Ensure the bottom border doesn't appear on the CTA button */
.nav-links li a.cta-btn {
    border-bottom: none !important;
}

.cta-btn {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

main {
    padding: 0; 
}

/* --- Dropdown Menu Styling (Desktop) --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--accent-color); 
    border: 1px solid var(--hover-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    z-index: 100;
}

.dropdown-menu li a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--hover-color);
    color: #ffffff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* --- Search Button in Header (Desktop) --- */
.search-btn {
    background-color: transparent;
    color: var(--text-color) !important;
    border: 1px solid var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.search-btn i {
    margin-right: 8px;
    color: var(--accent-color);
}

.search-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff !important;
    border-color: var(--accent-color);
}

.search-btn:hover i {
    color: #ffffff;
}

/* ------------------------------------------------------------------- */
/* --- Main Content Sections (Hero Banners) --- */
/* ------------------------------------------------------------------- */

/* --- Hero Section (Default light hero) --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg); 
    padding: 100px 0;
}

.hero-content {
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 4rem; /* Increased size for impact */
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
}

/* --- Style for Dark Banner (Index.html & About.html) --- */
.dark-hero-banner {
    min-height: 400px !important; 
    padding: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Images/pets_banner.jpg') no-repeat center center/cover; /* Placeholder image path */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
}

.dark-hero-banner h1 {
    font-size: 3.8rem; 
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
    color: #ffffff; 
}

/* --- Style for Light Page Hero (product.html, products2.html, contact.html) --- */
.light-page-hero {
    min-height: auto; 
    padding: 60px 0; 
    background-color: var(--primary-bg);
}

.light-page-hero h1 {
    font-size: 3.5rem; 
    text-align: center; 
    margin-bottom: 1rem;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 18px 35px; /* Larger CTA */
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none; 
    cursor: pointer; 
}

.primary-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 168, 150, 0.2);
}

/* --- General Section Styling --- */
.services, .news, .about, .team, .contact {
    padding: 80px 0;
    text-align: center;
}

.services h2, .news h2, .about h2, .contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.services .section-description, .contact .section-description { 
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light-gray);
}

/* --- Service & Team Grid Layout --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Custom Grid for Contact Page (2 columns) */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px;
    text-align: center;
    max-width: 800px; 
    margin: 0 auto;
}

.service-card {
    background-color: var(--primary-bg);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--accent-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--light-gray);
    font-size: 1rem;
}

/* ------------------------------------------------------------------- */
/* --- Map Section & Contact Form (UPDATED) --- */
/* ------------------------------------------------------------------- */

.map-container {
    padding: 0;
    margin: 80px auto 40px; 
    width: 100%;
    max-width: 1200px; 
    height: 450px; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px; 
    margin: 0 auto; 
    padding: 30px; 
    background-color: var(--primary-bg); 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.contact-form label {
    display: block; 
    margin-bottom: 5px; 
    font-weight: 500;
}

.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    box-sizing: border-box;
    margin-bottom: 20px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    width: 100%;
}


/* --- Product Grid Styling (Used for Products AND Team Images) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    margin-top: 40px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--primary-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; 
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    width: 100%;
    height: 220px; 
    overflow: hidden;
    position: relative;
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05); 
}

.product-card-content {
    padding: 20px;
}

.product-card-content h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card-content p {
    font-size: 0.95rem;
    color: var(--light-gray);
    margin-bottom: 15px;
}

.product-card-content .btn-view-product {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.product-card-content .btn-view-product:hover {
    background-color: var(--hover-color);
}


/* --- Slideshow Container (For Gallery/Index Pages) --- */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: 60px auto; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slideshow-slide {
    display: none; 
    width: 100%;
    height: 500px; 
    background-color: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    color: #ffffff;
    padding: 20px 30px;
    font-size: 1.1rem;
    text-align: center;
}

/* Slideshow Navigation Buttons */
.slideshow-prev, .slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
}

.slideshow-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slideshow-prev:hover, .slideshow-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Dots/Indicators */
.slideshow-dots {
    text-align: center;
    padding: 20px 0;
}
.slideshow-dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.slideshow-dot.active, .slideshow-dot:hover {
    background-color: var(--accent-color);
}

/* ------------------------------------------------------------------- */
/* --- Footer --- */
/* ------------------------------------------------------------------- */
footer {
    background-color: var(--text-color); 
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p, .footer-section li {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.85rem;
}

/* --- Live Stock Card Specific Styles --- */
.status-tag {
    display: inline-block;
    padding: 4px 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-tag.available {
    background-color: var(--accent-color); 
}
.status-tag.limited {
    background-color: #ffc107; 
}
.product-card-content .price-info {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* ------------------------------------------------------------------- */
/* --- MOBILE RESPONSIVENESS (Max-Width: 768px) --- */
/* ------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; 
    }

    /* --- Header & Navigation Toggle --- */
    header .container {
        /* Keep logo and hamburger on the same line */
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    }
    
    .logo img {
        height: 50px; 
        margin-bottom: 0; /* Important: remove vertical margin from previous setting */
    }

    /* Show the hamburger menu button on mobile */
    .hamburger-menu {
        display: block; 
        order: 3; /* Position it to the right of the logo */
    }

    .nav-links {
        /* Default mobile state: hidden and positioned to drop down */
        display: none;
        position: absolute;
        top: 80px; /* Position below the header */
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        
        /* Layout for stacked menu */
        flex-direction: column;
        align-items: stretch;
        background-color: var(--primary-bg); /* Use a solid background for the menu */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        margin: 0; /* Remove outside margins */
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; 
    }
    
    /* Active state: when the menu button is clicked */
    .nav-links.active {
        display: flex;
        max-height: 500px; /* Large enough to contain all links for the drop effect */
        padding: 10px 15px 20px;
        z-index: 999;
    }

    .nav-links li {
        margin: 0; /* Remove horizontal spacing */
        border-bottom: 1px solid var(--secondary-bg); /* Separator line */
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block; 
        padding: 12px 10px; /* More clickable area */
        border-radius: 0;
        text-align: left;
    }

    /* Dropdown Menu (Mobile) */
    .dropdown-menu {
        position: static; /* Flows in line with other links */
        background-color: var(--secondary-bg); /* Use secondary color for sub-menu */
        border: none;
        box-shadow: none;
        min-width: unset;
        width: 100%;
        margin-top: 0;
        padding-top: 5px;
    }
    .dropdown-menu li a {
        color: var(--text-color); 
        padding: 8px 25px; /* Indent sub-links */
        background-color: transparent; 
    }
    .dropdown-menu li a:hover {
        background-color: var(--accent-color);
        color: #ffffff;
    }

    /* Adjust CTA and Search buttons to be full-width menu items */
    .cta-btn, .search-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0 !important;
        justify-content: center;
        box-sizing: border-box;
    }
    .search-btn {
        background-color: var(--secondary-bg);
        border: 1px solid var(--light-gray);
        color: var(--text-color) !important;
    }
    .search-btn:hover {
        background-color: var(--accent-color);
    }
    

    /* --- Hero Sections --- */
    .hero, .services, .news, .about, .team, .contact, .featured-products {
        padding: 40px 0; 
    }

    .hero-content h1 {
        font-size: 2.5rem; 
    }

    .hero-content p {
        font-size: 1.1rem; 
        margin-bottom: 1.5rem;
    }

    .dark-hero-banner h1 {
        font-size: 2.5rem; 
    }
    
    .primary-btn {
        padding: 15px 30px; 
    }

    /* --- General Section Styling --- */
    .services h2, .news h2, .about h2, .contact h2 {
        font-size: 2rem;
    }

    /* --- Grid Layouts (Single Column) --- */
    .services-grid, .product-grid, .footer-grid, .contact-info-grid {
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    /* Override the 1-2-1 desktop layout from Index.html for service cards */
    .services-grid .service-card:nth-child(1),
    .services-grid .service-card:nth-child(4) {
        grid-column: auto; 
    }

    /* Map and Slideshow */
    .map-container {
        height: 300px; 
        margin: 40px auto 20px;
    }
    
    .slideshow-slide {
        height: 300px; 
    }
    
    .slideshow-caption {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    /* Service Card Mini-Slideshow Height */
    .mini-slideshow-content {
        height: 350px; 
    }
}