:root {
    --pe-primary: #2e7d32;        /* Roof green */
    --pe-primary-dark: #1b5e20;
    --pe-accent-yellow: #fdd835;  /* House yellow */
    --pe-accent-orange: #f57c00;  /* ENERGY orange */
    --pe-secondary-dark: #212121;
    --pe-light-bg: #f9fafb;
    --pe-muted: #6c757d;
    --pe-border: #e0e0e0;

    --pe-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: var(--pe-font-main);
    color: var(--pe-secondary-dark);
    margin: 0;
    background-color: #ffffff;
}

/* Top bar */
.top-bar {
    background: var(--pe-primary);
    color: #ffffff;
}
.top-bar .small { color: #e8f5e9; }

/* Prevent GST text from breaking */
.gst-mobile {
    white-space: nowrap;
}

/* Mobile layout: stack items cleanly */
@media (max-width: 576px) {
    .top-bar-left {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px;
    }

    .top-bar-left .small {
        font-size: 0.70rem;
        line-height: 1.2;
    }
}

.btn-call-header {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.8);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}
.btn-call-header:hover {
    background-color: #ffffff;
    color: var(--pe-primary);
}

/* Fix top bar spacing on mobile */
@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important; /* space between left and right */
    }

    .top-bar-left {
        width: 100%;
    }

    .top-bar-right {
        width: 100%;
        display: flex;
        justify-content: flex-start; /* align call button left */
    }

    .btn-call-header {
        margin-top: 4px;
    }
}


/* Navbar / logo */
.logo { height: 40px; width: auto; }
.brand-name { color: var(--pe-secondary-dark); }

.navbar .nav-link {
    font-weight: 500;
    color: #424242;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--pe-primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--pe-primary), var(--pe-accent-orange));
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--pe-primary-dark), var(--pe-accent-orange));
}
.btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
}
.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--pe-primary);
}

/* Hero / slider */
.hero-section { position: relative; min-height: 55vh; color: #ffffff; }
.hero-section .carousel-item { height: 64vh; }
.object-fit-cover { object-fit: cover; height: 100%; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgb(102 223 108 / 57%), rgb(245 124 0 / 50%)
    );
}
.hero-content { position: relative; z-index: 0; }

.badge-soft {
    background-color: rgba(253,216,53,0);
    color: #fffde7;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.75rem;
}
.hero-image { 
    width: 100%; height: auto; object-fit: cover; 
} 
@media (max-width: 768px) { 
    .hero-image { 
        content: url('/img/mobile-hero-banner.png');
    } 
}

/* Sections */
.section-padding { padding: 4rem 0; }
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pe-secondary-dark);
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--pe-muted);
    max-width: 650px;
}

/* Cards */
.card-feature,
.card-product {
    border-radius: 0.75rem;
    border: 1px solid var(--pe-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, var(--pe-accent-yellow), var(--pe-primary));
    color: #ffffff;
    font-size: 1.5rem;
}

/* Products layout */
.products-layout { margin-top: 2rem; }
.category-sidebar {
    border-radius: 0.75rem;
    border: 1px solid var(--pe-border);
    background-color: var(--pe-light-bg);
    padding: 1.5rem;
}
.category-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.category-list li { margin-bottom: .3rem; }
.category-list a {
    display: block;
    padding: .4rem .75rem;
    border-radius: 999px;
    font-size: .9rem;
    color: var(--pe-secondary-dark);
    text-decoration: none;
}
.category-list a.active,
.category-list a:hover {
    background-color: #ffffff;
    color: var(--pe-primary);
    box-shadow: 0 0 0 1px rgba(46,125,50,0.3);
}

/* Product cards */
/* .card-product img {
    border-radius: 0.75rem 0.75rem 0 0;
    object-fit: cover;
    height: 180px;
}
.card-product-body { padding: 1.25rem; } */

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, #ffffff, #f1f8e9);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--pe-primary);
    box-shadow: 0 0 0 0.2rem rgba(46,125,50,0.25);
}

/* Home page product category hover effect */
.home-category-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0.75rem;
}

.home-category-card:hover {
    transform: translateY(-8px);
    color: var(--pe-accent-orange);
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.20);
    border-color: var(--pe-primary);
}
/* Simulate hover on mobile with active/tap effect */
@media (hover: none) {
    .home-category-card:active {
        transform: scale(0.97);
        color: var(--pe-accent-orange);
        background-color: #ffffff;
        box-shadow: 0 6px 15px rgba(0,0,0,0.20);
        border-color: var(--pe-primary);
    }
}
.map-card iframe {
    border-radius: 0.75rem 0.75rem 0 0;
}

.map-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
    font-size: .9rem;
    background-color: #1b1b1b;
    color: #eeeeee;
}
.footer-link {
    color: #eeeeee;
    text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-float:hover {
    color: #ffffff;
    background-color: #1daf54;
}

/* Invalid feedback smaller */
.invalid-feedback.small { font-size: .8rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section .carousel-item { height: 70vh; }
}

/* Sidebar */
.sidebar {
    border-radius: 0.75rem;
    border: 1px solid var(--pe-border);
    /* background-color: var(--pe-light-bg); */
    padding: 1.5rem;
}
.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}
.accordion-item {
    margin-bottom: 10px;
}
.accordion-header {
    width: 100%;
    background: #f5f5f5;
    border: none;
    padding: 10px;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
}
.accordion-content {
    display: none;
    padding-left: 15px;
    margin-top: 8px;
    flex-direction: column;
}
.accordion-content a {
    display: block;
    margin-bottom: 6px;
    color: var(--pe-secondary-dark);
    text-decoration: none;
    font-size: 14px;
}
.accordion-content a:active,
.accordion-content a:hover {
    background-color: #ffffff;
    color: var(--pe-primary);
}
.accordion-header.active + .accordion-content {
    display: flex;
}

/* Category Blocks */
.category-section {
    margin: 5px 0;
}
.category-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 5px solid var(--pe-primary);
    padding-left: 10px;
}
/* Product Row Layout */
.product-row {
    display: flex;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 20px;
    transition: 0.2s ease;
}
.product-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.product-row img {
    width: 200px;
    height: 265px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f8f8;
}
.product-info {
    flex: 1;
}
.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
/* .price {
    font-size: 18px;
    color: #007b00;
    font-weight: bold;
    margin-bottom: 10px;
} */
.specs {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #444;
}
@media (max-width: 768px) { 
    .product-row { 
        flex-direction: column; /* stack vertically */ align-items: flex-start; /* align left */ 
    } 
    .product-row img { 
        width: 100%; /* full width image */ height: auto; /* keep aspect ratio */ 
    } 
    .product-info { 
        width: 100%; /* details full width */ margin-top: 10px; 
    } 
    .product-name { 
        font-size: 18px; 
    } 
}