/**
 * assets/css/custom.css
 * Fairhaven Fine Art Photography — Modern Image-Led Redesign
 * Deep forest greens, warm taupe, soft sky blues, generous whitespace, elegant serif typography
 */

:root {
    /* Refined Nature-Inspired Palette */
    --forest-green: #2F3E36;
    --warm-taupe: #8C7C6B;
    --sky-blue: #6B8A9E;
    --warm-beige: #EDE7DC;
    --paper-white: #FAF7F2;
    --soft-stone: #D4C9B9;
    --rich-charcoal: #2C2C2C;
    --muted-sage: #5C6E5F;

    /* Legacy aliases for compatibility */
    --primary-blue: #6B8A9E;
    --accent-green: #5C6E5F;
    --earth-brown: #8C7C6B;
    --cream-bg: #EDE7DC;
    --text-dark: #2C2C2C;
}

/* Base */
body {
    color: var(--rich-charcoal);
    background-color: #fff;
    font-size: 1.05rem;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--paper-white);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Legal pages (privacy, terms, shipping) use dark text on light background */
.legal-page h1,
.legal-page h5 {
    color: #000;
}

/* Restore dark headings on light background sections (e.g. home page welcome & cards) */
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-stone h1, .bg-stone h2, .bg-stone h3, .bg-stone h4, .bg-stone h5, .bg-stone h6 {
    color: var(--rich-charcoal);
}

/* Admin area: force readable dark headings (admin uses light backgrounds) */
.admin-area h1,
.admin-area h2,
.admin-area h3,
.admin-area h4,
.admin-area h5,
.admin-area h6 {
    color: var(--rich-charcoal);
}

a {
    color: var(--sky-blue);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--forest-green);
}

/* Elegant Serif for Headings (Playfair Display) */
h1, h2, .display-4, .display-5 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

/* Buttons - Premium & Restrained */
.btn-primary {
    background-color: var(--forest-green);
    border-color: var(--forest-green);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.65rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #1f2a24;
    border-color: #1f2a24;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--forest-green);
    border-color: var(--forest-green);
    border-radius: 0;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--forest-green);
    color: white;
    border-color: var(--forest-green);
}

.btn-outline-earth {
    color: var(--warm-taupe);
    border-color: var(--warm-taupe);
    border-radius: 0;
}
.btn-outline-earth:hover {
    background-color: var(--warm-taupe);
    color: white;
}

/* Memorial specific warm button */
.btn-memorial {
    background-color: var(--warm-taupe);
    border-color: var(--warm-taupe);
    color: white;
    border-radius: 0;
}
.btn-memorial:hover {
    background-color: #6f6356;
}

/* Navigation - Elegant */
.navbar {
    background-color: var(--paper-white) !important;
    border-color: var(--soft-stone) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}
.navbar-brand img {
    height: 58px;           /* Much larger, more prominent */
    width: auto;
    vertical-align: middle;
    margin-top: -4px;
}

.nav-link {
    color: var(--rich-charcoal) !important;
    font-weight: 500;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--forest-green) !important;
}

/* Hero Treatment */
.hero-overlay {
    background: linear-gradient(
        rgba(30, 40, 35, 0.55), 
        rgba(60, 75, 70, 0.38)
    );
}

.hero-text {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Gallery & Images */
.gallery-img {
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.1, 1), 
                box-shadow 0.4s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    cursor: pointer;
}
.gallery-img:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Product Cards - Art Object Treatment */
.product-card {
    transition: all 0.4s cubic-bezier(0.2, 0, 0.1, 1);
    border: 1px solid var(--soft-stone);
    background-color: white;
}
.product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
    transform: translateY(-5px);
}

/* Memorials - Sepia / Old Photograph Vibe */
.memorial-hero-overlay {
    background: linear-gradient(
        rgba(120, 100, 80, 0.55), 
        rgba(90, 75, 60, 0.35)
    );
}

.memorial-card {
    background-color: #f4f0e6;
    border: 1px solid #c8b8a0;
    transition: all 0.35s ease;
}
.memorial-card:hover {
    box-shadow: 0 10px 28px rgba(120, 100, 80, 0.15);
}

.memorial-quote {
    font-style: italic;
    border-left: 3px solid var(--warm-taupe);
    padding-left: 1.5rem;
    color: #5c5246;
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(47, 62, 54, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

#lightbox.active {
    display: flex;
}

#lightbox .lightbox-content {
    max-width: 920px;
    width: 100%;
    text-align: center;
    color: white;
}

#lightbox img {
    max-width: 100%;
    max-height: 72vh;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
    display: block;
    margin: 0 auto;
}

#lightbox-caption {
    max-width: 720px;
    margin: 1rem auto 0;
}

#lightbox .btn-outline-light {
    margin-top: 1rem;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 0.2rem rgba(107, 138, 158, 0.2);
}

/* Generous Section Spacing */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (min-width: 992px) {
    .section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

/* Homepage: breathing room after hero */
.home-first-section {
    padding-top: 3rem !important;
}
@media (min-width: 992px) {
    .home-first-section {
        padding-top: 4.5rem !important;
    }
}

/* Footer - Always at bottom (even with little content) */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    background-color: var(--warm-beige);
    border-color: var(--soft-stone);
    margin-top: auto;   /* Pushes footer to bottom */
}
footer a {
    color: var(--warm-taupe);
}
footer a:hover {
    color: var(--forest-green);
}

/* Utility */
.bg-mist,
.bg-cream {
    background-color: var(--warm-beige);
}
.bg-stone {
    background-color: var(--paper-white);
}

.text-forest {
    color: var(--forest-green);
}

.elegant-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--soft-stone), transparent);
}

/* Responsive Logo */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 36px;
    }
}
