/* --- THEME SETTINGS --- */
:root {
    --acm-dark: #1a1a1a;       
    --acm-blue: #007bff;       
    --acm-blue-dark: #0056b3;
    --acm-silver: #f8f9fa;     
    --acm-silver-dark: #e9ecef; 
    --acm-gradient-blue: linear-gradient(135deg, #007bff 0%, #004494 100%);
    --acm-brand-gradient: linear-gradient(90deg, #007bff 0%, #000000 35%, #000000 65%, #007bff 100%);
}

html { scroll-behavior: smooth; }

body {
    background-color: #ffffff;
    color: #444; 
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- THE FLOATING HAMMER BUTTON --- */
.menu-toggle-btn {
    position: fixed; top: 10px; left: -10px; width: 75px; height: 85px;
    background: var(--acm-blue); border-radius: 16%; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    z-index: 999; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--acm-dark); color: white; cursor: pointer;
    font-size: 1.5rem; line-height: 1;
    padding-left: 12px;
}

/* --- WHATSAPP BUTTON & NOTIFICATION --- */
.whatsapp-container { z-index: 9998; }
.whatsapp-btn {
    position: fixed; bottom: 50px; right: 30px; width: 55px; height: 55px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background-color: #4bd459; z-index: 998; box-shadow: 0 4px 20px rgba(48, 81, 51, 0.7);
    border: 3px solid rgba(255,255,255,0.2); color: white; cursor: pointer; font-size: 1.5rem;
    opacity: 0; transform: scale(0.5); pointer-events: none; 
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.whatsapp-btn.visible {
    opacity: 1; transform: scale(1); pointer-events: auto; animation: wa-pulse 3s infinite ease-in-out;
}
@keyframes wa-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); } 
    100% { transform: scale(1); }
}
.wa-message-bubble {
    position: fixed; bottom: 58px; right: 100px; background: white; color: #333;
    padding: 10px 30px 10px 15px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    font-size: 0.9rem; font-weight: 600; z-index: 999; border: 1px solid #eee;
    opacity: 0; transform: translateX(50px); transition: all 0.6s ease-out; pointer-events: none;
}
.wa-message-bubble::after {
    content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
    width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
    border-left: 6px solid white;
}
.wa-message-bubble.show-msg { opacity: 1; transform: translateX(0); pointer-events: auto; }
.wa-close-btn {
    position: absolute; top: 5px; right: 5px; border: none; background: none;
    color: #aaa; font-size: 10px; cursor: pointer; padding: 2px 5px; transition: color 0.2s;
}
.wa-close-btn:hover { color: #333; }
.menu-toggle-btn:hover {
    transform: scale(1.1); background: var(--acm-blue-dark); border-color: var(--acm-blue-dark);
}

/* --- OFFCANVAS SIDEBAR (Hidden Menu) --- */
.offcanvas.sidebar {
    background-color: var(--acm-dark); color: white; border-right: 1px solid #333;
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.8); font-weight: 500; padding: 12px 15px;
    border-radius: 8px; margin-bottom: 5px; transition: all 0.2s; font-size: 1.1rem;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: white; background: var(--acm-blue); transform: translateX(5px);
}
.sidebar .nav-link i { width: 30px; text-align: center; margin-right: 10px; }
.sidebar-brand img {
    max-width: 140px; margin-bottom: 2rem; display: block; margin-left: auto; margin-right: auto;
}
.sidebar-socials {
    margin-top: auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: center; gap: 15px;
}
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: white;
    transition: 0.3s; text-decoration: none;
}
.social-btn:hover { background: var(--acm-blue); color: white; transform: translateY(-3px); }

/* --- HERO SECTION --- */
.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/imgs/gallery/kitchen/4.jpg'); 
    background-size: cover; background-position: center; color: white; padding: 150px 0 100px 0; 
}

/* --- RATINGS BADGE --- */
.ratings-bar { background-color: var(--acm-silver); border-bottom: 1px solid var(--acm-silver-dark); }
.checkatrade-badge {
    background: white; padding: 15px 25px; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: inline-flex; align-items: center; gap: 15px;
    border: 1px solid #e0e0e0; transition: transform 0.3s ease; text-decoration: none; color: inherit;
}
.checkatrade-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); border-color: var(--acm-blue); }
.score-box { background: var(--acm-dark); color: white; font-weight: 800; padding: 5px 10px; border-radius: 6px; }

/* --- GENERAL UI --- */
h1, h2, h3 { color: var(--acm-dark); font-weight: 700; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--acm-blue); margin: 15px auto; border-radius: 2px;
}
.btn-primary {
    background: var(--acm-gradient-blue); border: none; padding: 12px 30px;
    border-radius: 6px; font-weight: 600; transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3); background: var(--acm-blue);
}

/* --- ABOUT US CONTENT CARDS (Accordion) --- */
.about-card {
    background: #fff; padding: 20px; border-radius: 10px;
    border-left: 4px solid var(--acm-blue); box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s; cursor: pointer;
}
.about-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.about-card h4 {
    font-size: 1.2rem; margin-bottom: 0; display: flex; align-items: center;
    justify-content: space-between; gap: 10px; padding-bottom: 10px;
}
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, opacity 0.4s ease; opacity: 0;
}
.about-card.active .accordion-content { opacity: 1; }
.caret-icon { transition: transform 0.3s ease; color: #aaa; transform: rotate(90deg); }
.about-card:hover .caret-icon { color: var(--acm-blue); }
.about-card.active .caret-icon { transform: rotate(0deg); color: var(--acm-blue); }
.about-card.active h4 { margin-bottom: 10px; }

/* --- SERVICES GRID --- */
.service-card {
    background: white; border: 1px solid #eee; border-radius: 10px;
    transition: all 0.3s ease; height: 100%; padding: 2rem; text-align: center;
}
.service-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--acm-blue);
}
.service-icon-wrapper {
    background: var(--acm-silver); width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    color: var(--acm-blue); transition: 0.3s;
}
.service-card:hover .service-icon-wrapper { background: var(--acm-blue); color: white; }

/* --- TESTIMONIALS --- */
.testimonial-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-top: 3px solid var(--acm-blue);
}
.testimonial-quote-icon { color: var(--acm-silver-dark); opacity: 0.5; transition: 0.3s; }
.testimonial-card:hover .testimonial-quote-icon { color: var(--acm-blue); opacity: 0.2; }

/* --- GALLERY: CAROUSEL TRIGGER --- */
.gallery-trigger { cursor: pointer; position: relative; overflow: hidden; border-radius: 12px; }
.gallery-trigger img { height: 500px; object-fit: cover; transition: transform 0.5s ease; width: 100%; }
.gallery-trigger:hover img { transform: scale(1.03); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(2px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; text-align: center; padding: 20px;
}
.gallery-trigger:hover .gallery-overlay, .gallery-trigger.show-overlay .gallery-overlay { opacity: 1; }
.gallery-title {
    font-family: 'Playfair Display', serif; font-size: 2rem; color: white;
    margin-bottom: 0.5rem; transform: translateY(20px); transition: transform 0.3s ease;
}
.gallery-trigger:hover .gallery-title, .gallery-trigger.show-overlay .gallery-title { transform: translateY(0); }
.gallery-desc { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; font-size: 0.9rem; }
.view-btn {
    background: rgba(255,255,255,0.9); color: var(--acm-dark); padding: 12px 25px;
    border-radius: 30px; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
}

/* --- INSTAGRAM PROMO SECTION --- */
.insta-promo-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/imgs/gallery/kitchen/2.jpg');
    background-size: cover; background-position: center; color: white; padding: 80px 0;
    text-align: center; height: 50vh;
}

/* --- GALLERY: MODALS --- */
.modal-header { border-bottom: 1px solid var(--acm-silver-dark);}
.gallery-grid-img { width: 100%; height: 250px; object-fit: cover; border-radius: 6px; cursor: pointer; transition: opacity 0.2s; }
.gallery-grid-img:hover { opacity: 0.8; }

/* --- GALLERY: BEFORE/AFTER SLIDER --- */
.comparison-container {
    position: relative; width: 100%; max-width: 900px; margin: 0 auto;
    aspect-ratio: 16/9; border: 5px solid white; border-radius: 12px;
    overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
@media (max-width: 768px) { .comparison-container { aspect-ratio: 4/5; } }
.img-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
}
.img-before { z-index: 2; width: 100%; clip-path: inset(0 50% 0 0); }
.slider-range {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    z-index: 10; opacity: 0; cursor: ew-resize; margin: 0;
}
.slider-handle {
    position: absolute; top: 0; bottom: 0; width: 4px; background: white;
    left: 50%; z-index: 9; pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.slider-handle::after {
    content: '\f337'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: white; color: var(--acm-blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- ROTATING NOTIFICATION BAR (MARQUEE) --- */
.scrolling-text-bar {
    background: var(--acm-brand-gradient); padding: 15px 0; overflow: hidden;
    white-space: nowrap; position: relative; z-index: 5; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.scrolling-content { display: inline-block; animation: scroll-left 30s linear infinite; }
.scrolling-item {
    display: inline-block; color: white; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; font-size: 1.1rem; margin: 0 30px;
}
.scrolling-item i { color: rgba(255,255,255,0.5); margin-left: 30px; font-size: 0.8rem; }
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- DARK CONTACT SECTION --- */
#contact { background-color: var(--acm-dark); color: white; position: relative; }
#contact .section-title { color: white; }
#contact .lead { color: #aaa; }

/* FIX: Only target links inside the columns (the 3 boxes), ignoring the floating button */
#contact .col-md-4 a {
    text-decoration: none !important;
    color: inherit;
    display: block; 
    height: 100%;
}

.contact-box {
    background: rgba(255,255,255,0.05); padding: 30px; border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
    height: 100%; transition: 0.3s; text-align: center;
}

.contact-box:hover { border-color: var(--acm-blue); background: rgba(255,255,255,0.08); }
.contact-box i { color: white; margin-bottom: 1rem; }
.contact-box h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: white; }
.contact-box span { color: #ccc; font-weight: 500; }

.map-container { position: relative; overflow: hidden; }
footer { background-color: #000; color: #aaa; border-top: 1px solid #333; }
.text-warning { width: 100px; }


/* --- DESKTOP SIDEBAR MODIFICATION (UPDATED) --- */
/* This block ensures that on large screens, the content is pushed 
   to the right so the fixed sidebar doesn't cover it. */
@media (min-width: 992px) {
    /* Hide the mobile toggle button */
    .menu-toggle-btn { 
        display: none !important; 
    }

    /* Force the offcanvas to stay open and fixed */
    .offcanvas.sidebar {
        position: fixed !important;
        transform: none !important; 
        visibility: visible !important;
        top: 0; 
        left: 0; 
        bottom: 0; 
        width: 280px !important; 
        z-index: 1040;
        display: flex; 
        flex-direction: column;
        border-right: 1px solid #333;
    }

    /* Hide the close button inside the sidebar */
    .offcanvas-header .btn-close { 
        display: none; 
    }

    /* FORCE main content to the right */
    main { 
        margin-left: 280px !important; 
        width: calc(100% - 280px) !important;
    }
    
    /* Ensure the cookie banner respects the sidebar too */
    .cookie-banner {
        left: 280px !important;
        width: calc(100% - 280px) !important;
    }
}


/* --- COOKIE BANNER STYLES --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: var(--acm-dark); border-top: 1px solid #333;
    padding: 1rem 0; z-index: 10000; box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    transform: translateY(100%); transition: transform 0.5s ease-in-out;
}
.cookie-banner.show { transform: translateY(0); }
@media (max-width: 576px) {
    .cookie-banner .btn { width: 100%; margin-bottom: 5px; }
    .cookie-banner .text-lg-end .d-flex { justify-content: center !important; }
}

/* --- PORTFOLIO FILTER GALLERY --- */
.portfolio-menu button {
    margin: 0 5px 10px 0;
    border-radius: 30px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s;
}

.portfolio-menu button.active, .portfolio-menu button:hover {
    background-color: var(--acm-blue);
    color: white;
    border-color: var(--acm-blue);
}

.portfolio-item {
    transition: all 0.4s ease-in-out; 
}

/* Hide items that are filtered out */
.portfolio-item.hide {
    display: none;
}

/* Make images look professional */
.gallery-trigger img {
    width: 100%;
    height: 300px; /* Fixed height for neat grid */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-trigger:hover img {
    transform: scale(1.05);
}

/* --- MOBILE GALLERY OPTIMIZATION --- */

/* 1. Scrollable Filter Buttons (Like Instagram) */
.portfolio-menu {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    padding-bottom: 10px; /* Space for scrollbar */
    margin-bottom: 20px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.portfolio-menu::-webkit-scrollbar { 
    display: none; /* Hide scrollbar Chrome/Safari */ 
}
.portfolio-menu button {
    display: inline-block;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 2. Hide items by default for "Load More" logic */
.portfolio-item.d-none {
    display: none !important;
}

/* --- LIGHTBOX STYLES --- */
#lightboxModal .modal-content {
    background: transparent !important; /* Remove white box */
    border: none;
}
#lightboxModal .btn-close {
    background-color: white; /* Make 'X' visible */
    border-radius: 50%;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 1055;
}
#lightboxModal .btn-close:hover {
    opacity: 1;
}

/* Ensure images show a pointer so user knows they are clickable */
.gallery-trigger {
    cursor: zoom-in; 
}