/* ======================= ROOT & GLOBAL STYLES ======================= */
:root {
    --cultured: #F5F5F0;
    --liver-chestnut: #5C4033;
    --camel: #C5A572;
    --champagne-gold: #D6BA8C;
    --charcoal-gray: #3C3C3C;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.4s;
    --shadow-light: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: var(--font-body);
    background-color: var(--cultured);
    color: var(--charcoal-gray);
    line-height: 1.7;
    font-size: 16px;
}

.page-section { 
    padding: 100px 0; 
    scroll-margin-top: 80px; /* Offset for fixed header */
}
.alt-bg {
     background-color: #fff; 
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--liver-chestnut);
    margin-bottom: 20px;
}

.section-subtitle {
    max-width: 650px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ======================= PROFESSIONAL CTA BUTTON ======================= */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--champagne-gold);
    color: var(--liver-chestnut);
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.cta-button:hover {
    background-color: #c9ac7c;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(92, 64, 51, 0.2);
}
.cta-button i {
    font-size: 1.2rem;
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid var(--cultured);
    color: var(--cultured);
}
.cta-button-secondary:hover {
    background: var(--cultured);
    color: var(--liver-chestnut);
}

/* ======================= ANIMATIONS ======================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================= HEADER & TOP BAR ======================= */
.site-header-sticky {
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: all var(--transition-speed);
}
/* 1. HIDE TOP BAR ON STICKY HEADER */
.site-header-sticky.scrolled .top-bar {
    height: 0; 
    padding-top: 0; 
    padding-bottom: 0; 
}

.top-bar {
    background-color: var(--liver-chestnut);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--cultured);
    transition: height 0.4s ease, padding 0.4s ease; /* Add this line */
    height: 37px;
    overflow: hidden;
}

.top-bar .social-icons a {
    color: var(--cultured);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}
.top-bar .social-icons a:hover {
    color: var(--camel);
}
.top-bar .top-bar-contact a {
    color: var(--cultured);
    text-decoration: none;
    transition: color var(--transition-speed);
}
.top-bar .top-bar-contact a:hover {
    color: var(--camel);
}

.navbar {
    background-color: #ffffff !important;
    padding: 10px 0;
    transition: all var(--transition-speed);
}
.navbar .navbar-brand img {
    height: 100px;
    transition: height var(--transition-speed);
}
/* Adjust logo height on scroll */
.site-header-sticky.scrolled .navbar .navbar-brand img {
    height: 70px;
}

.navbar .nav-link {
    color: var(--liver-chestnut) !important;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    margin: 0 10px;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--camel);
    transition: width var(--transition-speed) ease;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after {
    width: 100%;
}

.search-icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--liver-chestnut);
    padding: 0 15px;
}

/* Custom Navbar Toggler */
.custom-toggler {
    position: relative;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.custom-toggler .toggler-line {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--liver-chestnut);
    transition: all 0.3s ease-in-out;
}
.custom-toggler .toggler-line1 {
    top: 0;
}
.custom-toggler .toggler-line2 {
    top: 50%;
    transform: translateY(-50%);
}
.custom-toggler .toggler-line3 {
    bottom: 0;
}
.custom-toggler[aria-expanded="true"] .toggler-line1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.custom-toggler[aria-expanded="true"] .toggler-line2 {
    opacity: 0;
}
.custom-toggler[aria-expanded="true"] .toggler-line3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}
.custom-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        height: 60px;
    }
    .navbar-collapse {
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 100;
    }
    .site-header-sticky.scrolled .navbar-collapse {
        top: 80px;
    }
    .navbar-nav { 
        padding: 20px;
        margin: 0; 
        text-align: center; 
        border-top: 1px solid #eee; 
    }
}

/* Custom override for navbar container width on XL screens */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1320px;
        padding-left: 25px;
    }
}

/* ======================= HERO SECTION CAROUSEL ======================= */
#heroCarousel {
    height: 90vh;
    background-color: #fff;
}
.hero-carousel-container {
    display: flex;
    height: 100%;
}
.hero-carousel-main {
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
}
.hero-thumbnails {
    flex: 0 0 180px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}
.hero-thumb {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition-speed);
}
.hero-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.hero-thumb.active {
    border-color: var(--camel);
}
.hero-thumb:hover {
    border-color: var(--champagne-gold);
}

.hero-slide .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
}
.hero-slide .hero-tagline { 
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px; 
    animation: fadeInDown 1.5s;
}
.hero-slide .cta-button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--liver-chestnut);
    opacity: 0.6;
}
.carousel-item-zoom {
    height: 90vh;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-in-out;
    transform: scale(1.05);
}
/* 2. HERO BANNER ANIMATION */
.carousel-item.active .carousel-item-zoom {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    #heroCarousel {
        height: 70vh;
    }
    .carousel-item-zoom {
        height: 70vh;
    }
    .hero-carousel-container {
        flex-direction: column-reverse;
    }
    .hero-thumbnails {
        flex-direction: row;
        flex-basis: auto;
        justify-content: center;
        padding: 15px;
    }
    .hero-thumb img {
        height: 60px;
        width: 100px;
    }
    .hero-slide .carousel-caption {
        transform: translateY(-70%);
    }
    .hero-slide .hero-tagline {
        font-size: 2.5rem;
    }
    .hero-slide .cta-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ======================= CARDS & ICONS ======================= */
.frame-card, .mvv-item, .testimonial-card {
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.frame-card:hover, .mvv-item:hover, .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}
.frame-card .frame-image-wrapper {
    height: 250px; /* Fixed height for all images */
    overflow: hidden;
}
.frame-card .frame-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
}
.frame-card h3 {
    padding: 20px;
    background-color: white;
    font-family: var(--font-heading);
    color: var(--liver-chestnut);
    font-weight: 600;
}
.mvv-item-icon {
    font-size: 3rem;
    color: var(--camel);
    margin-bottom: 1rem;
}
.icon-primary-color {
    color: var(--camel) !important;
}

/* ======================= ABOUT LUMAFRAMES SECTION ======================= */
#aboutCarousel .carousel-inner .carousel-item img{
    width: 100%;
    height: 536px;
    object-fit: cover;
}

/* ======================= PRODUCT SHOWCASE SECTION ======================= */
.product-tabs .nav-link {
    color: var(--charcoal-gray);
    font-weight: 600;
    border: 2px solid transparent;
    border-bottom: 2px solid #eee;
    margin: 0 5px;
    transition: all var(--transition-speed);
}
.product-tabs .nav-link.active,
.product-tabs .nav-link:hover {
    color: var(--liver-chestnut);
    border-color: var(--camel);
    background-color: #fff;
}
.product-slider-container {
    position: relative;
}
.product-slider .frame-card {
    margin: 0 10px;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #eee;
    border-radius: 50%;
    color: var(--liver-chestnut);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
    z-index: 10;
}
.slider-arrow:hover {
    background-color: var(--camel);
    color: #fff;
}
.slider-arrow.prev-arrow {
    left: -20px;
}
.slider-arrow.next-arrow {
    right: -20px;
}
@media (max-width: 768px) {
    .slider-arrow.prev-arrow {
        left: -5px;
    }
    .slider-arrow.next-arrow {
        right: -5px;
    }
}

/* ======================= BEFORE & AFTER SECTION ======================= */
.before-after-section .slick-slide {
    margin: 0 15px;
}
.before-after-card {
    box-shadow: var(--shadow-light);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.before-after-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.before-after-card h4 {
    font-family: var(--font-heading);
    padding: 15px;
    margin: 0;
    color: var(--liver-chestnut);
}

/* ======================= CONTACT SECTION ======================= */
#contact {
    background: var(--liver-chestnut);
}
#contact .email-form {
    max-width: 500px;
}

/* Form stacking on mobile */
@media (max-width: 767.98px) {
    .contact-form-stack {
        flex-direction: column;
    }
    .contact-form-stack input {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* ======================= FAQ SECTION ======================= */
#faq .accordion {
    max-width: 750px;
}
.faq-item .accordion-button:not(.collapsed) {
    color: var(--liver-chestnut);
    background-color: #fff;
}
.faq-item .accordion-button {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--liver-chestnut);
}
.faq-item .accordion-button:focus {
    box-shadow: none;
}
.faq-item .accordion-button::after {
    display: none;
}
.faq-icon {
    font-size: 1.8rem;
    color: var(--camel);
    transition: transform var(--transition-speed) ease;
}
.faq-item .accordion-button:not(.collapsed) .faq-icon {
    transform: rotate(45deg);
}

/* ======================= FOOTER ======================= */
.site-footer {
     background-color: var(--liver-chestnut);
}
.site-footer p, .site-footer a, .site-footer h5 {
    font-weight: 600;
}
.site-footer a:hover {
    color: white !important;
}
.footer-logo {
    height: 120px;
}
.footer-social-icons {
    display: flex;
    justify-content: center;
}
.footer-social-icons a {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    margin-right: 15px;
}
.footer-social-icons a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======================= MODALS & BACK TO TOP ======================= */
#welcomeModal .modal-content, #searchModal .modal-content {
    border: none;
    border-radius: 8px;
}
#welcomeModal .modal-header, #searchModal .modal-header {
    border-bottom: none;
}
#welcomeModal .modal-logo {
    height: 120px;
    margin: 20px auto;
    object-fit: contain;
}
#welcomeModal .email-form {
    max-width: 400px;
    margin: auto;
}
#welcomeModal .form-feedback {
    margin-top: 10px;
    font-weight: bold;
}
.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background-color: rgba(255,255,255,0.7);
    border-radius: 50%;
}
.search-input-container {
    position: relative;
}
.search-input-container .form-control {
    padding-left: 2.5rem;
}
.search-input-container .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--camel);
    color: white;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.8;
}
.back-to-top:hover {
    opacity: 1;
    transform: scale(1.1);
    color: white;
}
.back-to-top.show {
    display: flex;
}

/* ======================= MOBILE TOP BAR STYLES ======================= */
.top-bar-mobile-link {
    color: var(--cultured);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.top-bar-mobile-link:hover {
    color: var(--camel);
}

.top-bar-mobile-button {
    padding: 4px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: none; 
}

@media (min-width: 768px) {
    .site-header-sticky.scrolled .top-bar {
        height: 0; 
        padding-top: 0; 
        padding-bottom: 0; 
    }
}

@media (max-width: 767.98px) {
    .site-header-sticky.scrolled .top-bar {
        height: 50px; 
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
    }
    
    .top-bar {
        height: 50px;
        display: flex;
        align-items: center;
        padding: 0;
    }
}


/* ======================= PROFESSIONAL PRIVACY PAGE STYLES ======================= */

.page-header-banner {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header-banner h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--liver-chestnut);
}

.page-subtitle {
    font-size: 1rem;
    color: #777;
    margin-top: 10px;
}

.page-section-narrow {
    padding: 80px 0;
}

.privacy-content-wrapper {
    background-color: #fff;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border-radius: 5px;
}

.privacy-content-wrapper h2, 
.privacy-content-wrapper h3 {
    font-family: var(--font-heading);
    color: var(--liver-chestnut);
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.privacy-content-wrapper h2:first-child,
.privacy-content-wrapper h3:first-child {
    margin-top: 0;
}

.privacy-content-wrapper p {
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.privacy-content-wrapper ul, 
.privacy-content-wrapper ol {
    padding-left: 25px;
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.privacy-content-wrapper a {
    color: var(--camel);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--champagne-gold);
    transition: all 0.3s ease;
}

.privacy-content-wrapper a:hover {
    color: var(--liver-chestnut);
    background-color: #fdf8f0;
}