/* Custom styles for 1st Choice Liquor website */

/* Color palette variables for consistent theming */
:root {
    --primary-color: #B40024; /* deep red accent */
    --secondary-color: #8A0019; /* darker red for gradients */
    --dark-bg: #000000; /* base black background */
    --card-bg: #181818; /* card background */
    --light-text: #e6e6e6; /* general light text */
}

/* Hero background image settings */
.bg-image {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
}

.bg-image .container {
    position: relative;
    z-index: 1;
}

/* Section headings */
section h2 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Gallery images */
#gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#gallery .col-6 {
    padding: 0.25rem;
}

/* Dark theme adjustments */
body {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

nav.navbar {
    background-color: var(--dark-bg) !important;
}

section {
    background-color: transparent;
}

/* Cards or content wrappers inside dark background */
.bg-light {
    background-color: #111 !important;
}

/* Headings colors */
h2, h5, h4 {
    color: #ffffff;
}

/* Gallery hover effect */
#gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Category sections in gallery */
.category-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.category-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Horizontal scroll gallery styles */
.scroll-container {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

/* Wrapper that holds the gallery items. Using flexbox allows items to
   line up horizontally. The overflow-x property enables horizontal
   scrolling while hiding native scrollbars. */
.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
.scrolling-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Individual gallery items inside the scrolling container. Setting
   flex: 0 0 auto prevents the items from shrinking and ensures
   they remain their intrinsic width. A margin-right provides spacing
   between images. */
.scrolling-wrapper > .gallery-item {
    flex: 0 0 auto;
    margin-right: 1rem;
}

/* Scroll navigation buttons. Positioned centrally on the y-axis,
   these buttons overlay the gallery and use a semi-transparent
   background for contrast on dark backgrounds. When disabled, the
   buttons are faded and cannot be clicked. */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}
.scroll-btn.left {
    left: -16px;
}
.scroll-btn.right {
    right: -16px;
}
.scroll-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Icon size inside scroll buttons */
.scroll-btn i {
    font-size: 1.2rem;
}

/* Hover and active states for scroll buttons */
.scroll-btn:hover:not(.disabled) {
    background-color: var(--primary-color);
}

.scroll-btn:active:not(.disabled) {
    transform: translateY(-50%) scale(0.9);
}

/* Review item styling */
.review-item {
    flex: 0 0 auto;
    width: 280px;
    margin-right: 1rem;
    padding: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    background-color: var(--card-bg);
    color: var(--light-text);
}

.review-item p {
    margin-bottom: 0.5rem;
}

.review-item small {
    color: #b0b0b0;
}

/* Dark card styling for information panels */
.card-dark {
    background-color: var(--card-bg);
    border: 1px solid var(--secondary-color);
    color: var(--light-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Contact & Hours section override for dark theme */
#contact {
    background-color: #111;
    color: #e6e6e6;
}

/* Call To Action section with gradient background */
#cta {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Heading and text inside CTA remain light */
#cta h2 {
    color: #fff;
}

#cta p {
    color: #ddd;
}

#contact a {
    color: #7ec3ff;
}

/* Footer styling */
footer {
    background-color: #0a0a0a;
    color: #8c8c8c;
}

/* Primary button styling with red accent */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
}

/* Hero text styling for readability */
header .display-3,
header .lead {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
