/* style.css - Generic Layout Styles */

/* --- UTILITIES --- */
html {
    scroll-behavior: smooth;
    /* This creates an invisible "cushion" at the top of the viewport.
       Adjust "120px" to match your Header Height + 20px buffer. */
    scroll-padding-top: 120px; 
}

/* Section Spacing */
.section-spacer { padding-top: 5rem; padding-bottom: 5rem; }

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--store-primary);
    color: var(--store-text-contrast);
    border: 1px solid var(--store-primary);
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--store-primary);
}

/* Inverted Button (for Dark Backgrounds) */
.btn-primary-inverse {
    background-color: transparent;
    color: var(--store-primary);
    border: 1px solid var(--store-primary);
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-inverse:hover {
    background-color: var(--store-primary);
    color: var(--store-text-contrast);
}

/* Secondary Button (Outline) */
.btn-secondary {
    background-color: transparent;
    color: var(--store-secondary);
    border: 1px solid var(--store-secondary);
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--store-secondary);
    color: var(--store-text-contrast);
}

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- SPECIFIC COMPONENTS --- */

/* Highlight Box (Opening Times) */
.info-box-highlight {
    background-color: var(--store-bg-light);
    border: 1px solid var(--store-primary);
    padding: 2rem;
    position: relative;
}
.info-box-highlight::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid var(--store-primary);
    opacity: 0.3;
    pointer-events: none;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- THEME BACKGROUND UTILITIES --- */
/* Use these in HTML instead of bg-[var(--...)] */

.bg-brand-dark {
    background-color: var(--store-bg-dark);
    color: var(--store-text-contrast);
}

.bg-brand-light {
    background-color: var(--store-bg-light);
    color: var(--store-text);
}

.bg-brand-contrast {
    background-color: var(--store-bg-contrast);
    color: var(--store-text-contrast);
}

.text-brand-primary { color: var(--store-primary); }
.text-brand-secondary { color: var(--store-secondary); }

/* --- BRANDED MAP STYLES (Chicago Meatpackers) --- */

/* 1. Vintage Aesthetic: Grayscale tiles */
/* Matches the "Emotional vintage photos in black and white" style defined in the guide [3] */
.leaflet-tile {
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
}

/* 2. Corporate Blue Overlay */
/* Uses the Corporate Blue (Pantone 5255 C) to create the "Blue Background" effect [2], [1] */
.map-tint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* We use Secondary (Dark Blue) because Red would be too aggressive for a map background */
    background-color: var(--store-secondary); 
    opacity: 0.35; /* Sufficient opacity to establish the corporate blue identity */
    mix-blend-mode: multiply; /* Blends the blue into the grayscale map details */
    z-index: 400; 
    pointer-events: none; 
}

/* 3. CMP Red Marker */
/* Rotates the standard Leaflet blue marker to match CMP Red (Pantone 1795 C) [2] */
.leaflet-marker-icon {
    /* Rotating blue ~160deg usually hits a deep red/maroon close to the brand color */
    filter: hue-rotate(160deg) saturate(1.5) brightness(0.9); 
}