:root {
    /* Based on client questionnaire: Orange and white */
    --brand-orange: #E45700;
    --brand-orange-dark: #C04800;
    --brand-light: #fefefe;
    --brand-dark: #2c2c2c;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--brand-dark);
}

.text-brand {
    color: var(--brand-orange) !important;
}

.bg-brand {
    background-color: var(--brand-orange) !important;
}

.btn-brand {
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background-color: var(--brand-orange-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-brand {
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    background: transparent;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background: var(--brand-orange);
    color: white;
}

.border-brand {
    border-color: var(--brand-orange) !important;
}

.tracking-wide {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Hide navbar brand logo when offcanvas is open */
.navbar .nav-logo-overlay.offcanvas-open {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Remove offcanvas box styling on desktop */
@media (min-width: 1200px) {
    .offcanvas {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}

.navbar-nav .nav-link {
    color: #555;
    margin-left: 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--brand-orange) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-orange);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 520px;
    background: url('assets/hero-bg.jpg') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Cards Transition */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

/* Form Controls Focus */
.form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.25rem rgba(244, 123, 32, 0.25);
}

/* Icons */
.icon-box i {
    line-height: 1;
}

/* Page Navigation Transitions */
body {
    opacity: 1;
}

body.page-leave {
    animation: pageLeave 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageLeave {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Product Gallery */
.product-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.product-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-gallery-item:hover img {
    transform: scale(1.1);
}

.product-gallery-item .overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.product-gallery-item:hover .overlay-bg {
    background: rgba(0, 0, 0, 0.5);
}

.product-gallery-item h3 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.product-gallery-item .view-text {
    font-size: 1rem;
    position: relative;
}

.product-gallery-item .view-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--brand-orange);
    transition: width 0.3s ease;
}

.product-gallery-item:hover .view-text::after {
    width: 60px;
}

/* === Products Page === */

/* Filter Sidebar Buttons */
.filter-btn {
    display: flex;
    align-items: center;
    width: auto;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .filter-btn {
        width: 100%;
    }
}

.filter-btn:hover {
    background-color: #f5f5f5;
    color: #222;
}

.filter-btn.active {
    background-color: var(--brand-orange);
    color: #fff;
    font-weight: 600;
}

.filter-btn.active .filter-count {
    background-color: rgba(255,255,255,0.25);
    color: #fff;
}

.filter-count {
    background-color: #f0f0f0;
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #f8f8f8;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

/* Hover Overlay for Inquire Button */
.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-hover-overlay {
    opacity: 1;
}

.product-hover-overlay .btn {
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.product-card:hover .product-hover-overlay .btn {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-body {
    padding: 14px 16px 16px;
}

.product-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-size {
    display: inline-block;
    font-size: 0.75rem;
    color: #888;
    background-color: #f5f5f5;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 2px;
}

/* Search input focus */
#productSearch:focus {
    box-shadow: 0 0 0 3px rgba(var(--brand-orange-rgb, 232, 126, 4), 0.15);
    outline: none;
}

/* Mobile adjustments for products page */
@media (max-width: 991.98px) {
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .product-card-title {
        font-size: 0.82rem;
    }
    .product-card-body {
        padding: 10px 12px 14px;
    }
}

/* Blog Images Responsive Height */
.blog-img {
    height: 400px;
}

@media (max-width: 991.98px) {
    .blog-img {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .blog-img {
        height: 250px;
    }
}

/* Why Choose Section Image */
.why-choose-img {
    height: 520px;
}

@media (max-width: 991.98px) {
    .why-choose-img {
        height: auto;
        max-height: 400px;
    }
}

/* Category Filters Scrollbar */
#categoryFilters::-webkit-scrollbar {
    height: 4px;
}

#categoryFilters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#categoryFilters::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#categoryFilters::-webkit-scrollbar-thumb:hover {
    background: var(--brand-orange);
}

/* Hero Entrance Animation */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
}

/* Responsive Hero Typography */
.hero-title {
    font-size: 4.5rem;
}

.hero-subtitle {
    font-size: 1.75rem;
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: calc(2.5rem + 1.5vw);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 60px;
        background-attachment: scroll;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    .hero-text {
        font-size: 1rem;
    }
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition .overlay-left,
.page-transition .overlay-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--brand-dark, #1a1e21);
}

.page-transition .overlay-left { left: 0; transform: translateX(-100%); }
.page-transition .overlay-right { right: 0; transform: translateX(100%); }

.page-transition .transition-logo {
    position: relative;
    z-index: 2;
    height: 90px;
    opacity: 0;
    transform: scale(0.6);
}

/* Enter animation: overlays slide in, logo appears */
.page-transition.entering .overlay-left {
    animation: slideInLeft 0.45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-transition.entering .overlay-right {
    animation: slideInRight 0.45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-transition.entering .transition-logo {
    animation: logoReveal 0.5s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Exit animation: logo fades, overlays slide out */
.page-transition.exiting .overlay-left {
    transform: translateX(0);
    animation: slideOutLeft 0.45s 0.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-transition.exiting .overlay-right {
    transform: translateX(0);
    animation: slideOutRight 0.45s 0.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-transition.exiting .transition-logo {
    opacity: 1;
    transform: scale(1);
    animation: logoExit 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInLeft {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}
@keyframes slideInRight {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}
@keyframes slideOutLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes slideOutRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes logoExit {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.15); }
}

/* Nav Logo Overlay */
.nav-logo-overlay {
    height: 140px;
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 1050;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 991.98px) {
    .nav-logo-overlay {
        height: 100px;
        position: absolute;
        top: 0px;
        left: 0;
    }
    .navbar:has(.navbar-collapse.show) .nav-logo-overlay {
        height: 40px;
        position: relative;
        top: -5px;
    }
}

/* ===== HOME PAGE MOBILE: Transparent Navbar + Hero Logo ===== */
/* Hero centered logo (mobile only) */
.hero-logo-mobile {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1199.98px) {
    /* Transparent navbar on home page initially */
    .home-page .navbar {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1040;
        background-color: transparent !important;
        box-shadow: none !important;
        transition: background-color 0.4s ease, box-shadow 0.4s ease;
    }
    
    /* Hide the navbar logo initially on home page */
    .home-page .navbar .nav-logo-overlay {
        opacity: 0;
        transform: scale(0.5);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Make toggler icon white on transparent bg */
    .home-page .navbar .navbar-toggler-icon {
        filter: brightness(0) invert(1);
        transition: filter 0.4s ease;
    }

    /* ---- Scrolled state ---- */
    .home-page .navbar.navbar-scrolled {
        background-color: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    .home-page .navbar.navbar-scrolled .nav-logo-overlay {
        opacity: 1;
        transform: scale(1);
    }

    .home-page .navbar.navbar-scrolled .navbar-toggler-icon {
        filter: none;
    }

    /* Hero logo fades out on scroll */
    .hero-logo-mobile.logo-hidden {
        opacity: 0;
        transform: translateY(-40px) scale(0.6);
    }
}

/* Home page navbar: white on desktop */
@media (min-width: 1200px) {
    .home-page .navbar {
        background-color: #fff !important;
        box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Footer Hover Effects */
.hover-white {
    transition: color 0.3s ease;
}
.hover-white:hover {
    color: #ffffff !important;
}
