:root {
    --primary: #F9F7F2;
    --accent: #FB927E;
    --charcoal: #2D2D2D;
    --sage: #7B8E7E;
    --gold: #D4AF37;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--charcoal);
}
.serif { font-family: 'Playfair Display', serif; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F9F7F2; }
::-webkit-scrollbar-thumb { background: #FB927E; border-radius: 10px; }

.nav-standard {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(45, 45, 45, 0.05);
    transition: all 0.3s ease;
}
.nav-link {
    color: var(--charcoal) !important;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active-link {
    opacity: 1;
    color: var(--accent) !important;
}
.nav-link.active-link {
    border-bottom: 2px solid var(--accent);
}

.btn-gold {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: var(--gold) !important;
    color: white !important;
}
.btn-accent {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background-color: var(--accent) !important;
    color: white !important;
}
.text-hover-accent {
    transition: color 0.3s;
}
.text-hover-accent:hover {
    color: var(--accent) !important;
}

/* Transparent Nav utilities for index page */
.navbar, .navbar-brand span, .nav-link, .brand-logo-img {
    transition: all 0.4s ease !important;
}
@media (min-width: 992px) {
    .nav-transparent {
        background-color: transparent !important;
        box-shadow: none !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }
    .nav-transparent .navbar-brand span,
    .nav-transparent .nav-link,
    .nav-transparent .brand-logo {
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.75), 0 16px 48px rgba(0, 0, 0, 0.85);
    }
    .nav-transparent .brand-logo-img {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75)) drop-shadow(0 16px 48px rgba(0, 0, 0, 0.85));
    }
    .nav-transparent .navbar-toggler-icon {
        filter: invert(1);
    }
}

.brand-logo {
    color: var(--charcoal);
    transition: all 0.3s ease;
}

/* Force opaque navbar on mobile */
@media (max-width: 991.98px) {
    .nav-transparent {
        background-color: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        border-bottom: 1px solid rgba(45, 45, 45, 0.05) !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .nav-transparent .brand-logo, .nav-transparent .nav-link {
        color: var(--charcoal) !important;
        text-shadow: none !important;
    }
    .nav-transparent .navbar-toggler-icon {
        filter: none !important;
    }
    .brand-logo {
        font-size: 1.15rem !important;
        white-space: nowrap;
    }
}

/* Custom Tailwind Utilities translation */
.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.pt-40 { padding-top: 10rem !important; }
.pt-48 { padding-top: 12rem !important; }
.pb-24 { padding-bottom: 6rem !important; }
.mb-20 { margin-bottom: 5rem !important; }
.mb-16 { margin-bottom: 4rem !important; }
.mb-12 { margin-bottom: 3rem !important; }

.text-10px { font-size: 10px !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1 !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }
.text-7xl { font-size: 4.5rem !important; line-height: 1 !important; }
.text-8xl { font-size: 6rem !important; line-height: 1 !important; }

.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }
.text-charcoal { color: var(--charcoal) !important; }
.text-sage { color: var(--sage) !important; }
.text-gold { color: var(--gold) !important; }

.bg-charcoal { background-color: var(--charcoal) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }

.tracking-widest { letter-spacing: 0.1em !important; }
.tracking-2em { letter-spacing: 0.2em !important; }
.tracking-3em { letter-spacing: 0.3em !important; }
.tracking-4em { letter-spacing: 0.4em !important; }
.leading-tight { line-height: 1.25 !important; }

@media (min-width: 768px) {
    .md-text-8xl { font-size: 6rem !important; line-height: 1 !important; }
    .md-text-7xl { font-size: 4.5rem !important; line-height: 1 !important; }
    .md-text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }
    .md-text-5xl { font-size: 3rem !important; line-height: 1 !important; }
    .md-text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
}

/* Lightbox Styles */
.gallery-img {
    transition: transform 0.7s, opacity 0.7s;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    opacity: 0.8;
}
#lightbox-modal {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
    opacity: 0;
    z-index: 1050;
}
.modal-active {
    opacity: 1 !important;
    visibility: visible !important;
}
.lightbox-img {
    max-height: 75vh;
    max-width: 90vw;
    object-fit: contain;
    transition: all 0.3s;
}
.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.nav-btn:hover { background: rgba(251, 146, 126, 0.8); }

/* Viewport Scroll Freezing */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Lightbox Thumbnail Set styling */
.lightbox-thumbnail {
    width: 55px;
    height: 55px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.4;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.lightbox-thumbnail:hover {
    opacity: 0.8;
}
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--accent);
}
#modal-thumbnails::-webkit-scrollbar {
    display: none;
}

/* Gallery Slider Container */
#love-stories-slider::-webkit-scrollbar {
    display: none;
}

/* Premium Gallery Slider Navigation Arrows */
.gallery-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background-color: white !important;
    border: 1px solid rgba(45, 45, 45, 0.08) !important;
    color: var(--charcoal) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    z-index: 10;
    transition: all 0.3s ease;
}
.gallery-nav-btn:hover {
    background-color: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
}
.gallery-nav-btn.prev-btn {
    left: -23px;
}
.gallery-nav-btn.next-btn {
    right: -23px;
}
@media (max-width: 991.98px) {
    .gallery-nav-btn {
        display: none !important; /* Touch swipe is native and beautiful on mobile/tablet */
    }
}

/* Gallery Dots Styling */
.gallery-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(45, 45, 45, 0.2);
    border: none;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.gallery-dot-btn:hover {
    background-color: rgba(45, 45, 45, 0.4);
}
.gallery-dot-btn.active {
    background-color: var(--accent);
    transform: scale(1.2);
    width: 24px;
    border-radius: 5px;
}
