:root {
    --pc-blue: #004b87;
    --pc-red: #ce1126;
    --bg-light: #ffffff;
    --text-light: #212529;
    --card-bg: #f8f9fa;
}

body.dark-mode {
    --bg-light: #121212;
    --text-light: #e0e0e0;
    --card-bg: #1e1e1e;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
}

.navbar { background-color: var(--pc-blue) !important; transition: all 0.3s; }
.btn-primary { background-color: var(--pc-blue); border-color: var(--pc-blue); }
.btn-outline-primary { color: var(--pc-blue); border-color: var(--pc-blue); }
.text-pc-red { color: var(--pc-red) !important; }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 75, 135, 0.7), rgba(0, 75, 135, 0.7)), url('../img/store-3.jpg');
    background-size: cover;
    background-position: center 0px; /* Start at the top */
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    /* Ensure the transition is smooth */
    will-change: background-position;
}

.hero-home { padding: 180px 0; }

.card { background-color: var(--card-bg); border: none; color: inherit; transition: transform 0.2s; }
.card:hover { transform: translateY(-5px); }

.sticky-top { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
#dark-mode-toggle { cursor: pointer; }

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Cards */
.feature-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Make circles around icons highly visible */
.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: #ffffff !important; /* Pure white background */
    border: 4px solid #ffffff; /* Thick white border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Stronger shadow for visibility */
}

/* Artisan/Product Image Zoom */
.zoom-container {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.zoom-container img {
    transition: transform 0.5s ease;
}

.feature-card:hover .zoom-container img {
    transform: scale(1.1);
}

/* Badge for Staff Picks */
.badge-artisan {
    background-color: var(--pc-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    position: absolute;
    top: 15px;
    right: 15px;
}

.section-accent {
    /* Top to Bottom Gradient using your base red and a high-contrast dark red */
    background: linear-gradient(to bottom, #9d202c 0%, #4a060b 100%);
    border: none;
}

/* Fix for card alignment */
.card-body-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mt-auto-fix {
    margin-top: auto !important;
}

/* Subtle pattern for the Curated section to break up white space */
.bg-pattern {
    background-color: #fdfdfd;
    background-image: radial-gradient(#dee2e6 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

/* This forces the 'window' for the image to be identical on every card */
.zoom-container {
    height: 300px; /* Fixed height for all image containers */
    overflow: hidden;
    width: 100%;
    background-color: #f8f9fa; /* Background color fills any gaps if needed */
}

.card-body.d-flex.flex-column {
    flex-grow: 1; /* Tells the body to take up all remaining space */
}

/* This forces the image to fill the 300px container perfectly without distortion */
.zoom-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Crops the photo to fill the space instead of stretching it */
    object-position: center;
    transition: transform 0.5s ease;
}

/* Standardize image height for Local page cards */
.local-card-img {
    height: 250px; /* Adjust this value if you want them taller or shorter */
    width: 100%;
    object-fit: cover; /* This fills the area without stretching the photo */
    object-position: center; /* Keeps the focus in the middle */
}

/* Promo Callout Styling */
.promo-section {
    background: linear-gradient(135deg, var(--pc-blue) 0%, #003366 100%);
    position: relative;
    overflow: hidden;
}

/* Optional subtle background pattern overlay */
.promo-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.price-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.price-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Custom Styling for Pharmacy Services Section */
.services-tabs .nav-link {
    color: var(--pc-blue);
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.services-tabs .nav-link.active {
    background-color: var(--pc-blue) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 75, 135, 0.2);
}

.services-tabs .nav-link:hover:not(.active) {
    background-color: #f0f4f8;
    border-color: var(--pc-blue);
}

.tab-content-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--pc-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 200px;
}

/* Booking Accordion Styling */
.booking-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.booking-accordion .accordion-button {
    font-weight: 700;
    color: var(--pc-blue);
    padding: 20px;
}

.booking-accordion .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--pc-red);
}

.booking-accordion .accordion-button i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.btn-close {
    z-index: 10;
    transition: transform 0.2s ease;
}

.btn-close:hover {
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.05);
}

.hero-title-branded {
    background-color: #ffffffe0;
    display: inline-block; /* Fits the background to the text length */
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.text-black { color: #000000 !important; }
.text-pc-blue { color: var(--pc-blue) !important; }
.text-pc-red { color: var(--pc-red) !important; }