/**
 * assets/css/custom.css
 * 
 * Custom styles for Fairhaven Fine Art Photography.
 * 
 * This file overrides and extends Bootstrap 5.3.
 * 
 * Color Palette (nature-inspired, soft & professional):
 *   --primary-blue:   #3D6B8A
 *   --accent-green:   #5D7A5F
 *   --earth-brown:    #8B6F4E
 *   --cream-bg:       #F8F4ED
 *   --text-dark:      #2C3E3A
 */

:root {
    --primary-blue: #3D6B8A;
    --accent-green: #5D7A5F;
    --earth-brown: #8B6F4E;
    --cream-bg: #F8F4ED;
    --text-dark: #2C3E3A;
}

/* Base body styling */
body {
    color: var(--text-dark);
    background-color: #fff;
}

/* Brand colors applied to Bootstrap components */
.text-primary {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #2d5068;
    border-color: #2d5068;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

/* Soft cream background sections (used on home, about, etc.) */
.bg-cream {
    background-color: var(--cream-bg);
}

/* Gallery image cards */
.gallery-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Lightbox styles (used by main.js) */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

#lightbox .lightbox-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
}

/* Admin section styling */
.admin-sidebar {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.admin-card {
    transition: transform 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-3px);
}

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(61, 107, 138, 0.25);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
}

/* Product cards on shop */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Memorial page respectful styling */
.memorial-quote {
    font-style: italic;
    border-left: 4px solid var(--accent-green);
    padding-left: 1rem;
}

/* End of custom.css */