
/* =============================
   Pacho Energies â€“ Professional Color System
   ============================= */

:root {
    /* Primary */
    --green-primary: #008001;
    --orange-accent: #FDA400;

    /* Secondary */
    --cream-light: #FEFFF1;
    --black-primary: #232323;

    /* Supporting */
    --gray-muted: #6B7280;
    --border-light: #E5E7EB;
}

.text-brand {
    color: var(--green-primary) !important;
}

.bg-brand {
    background-color: var(--green-primary) !important;
    color: white;
}

.border-brand {
    border-color: var(--green-primary) !important;
}


body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--black-primary);
    background-color: #ffffff;
}


/* NAVBAR â€“ Clean White Corporate */
/*.custom-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 2000;
}
*/
.custom-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;   /* ✅ important */
    top: 0;
    z-index: 9999;
}

/* Links */
.nav-link {
    color: var(--black-primary) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 8px;
    position: relative;
}

/* Hover effect (subtle underline in brand color) */
.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--green-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--green-primary) !important;
}

/* ACTIVE LINK (important for UX) */
.nav-link.active {
    color: var(--green-primary) !important;
}
.nav-link.active::after {
    width: 100%;
}




/* =============================
   MEGA MENU â€“ PREMIUM STYLE
   ============================= */
/*
.mega-menu {
    position: static;
}
*/

.mega-menu {
    position: relative;
}

.mega-menu-content {
    position: absolute;
    top: 100%;

    left: 50%;
    transform: translateX(-55%); /* ðŸ‘ˆ centers under Products */

    width: 600px;
    max-width: 90vw; /* ðŸ‘ˆ prevents overflow on smaller screens */

    display: none;

    background-color: #ffffff;
    border-radius: 12px;
    border-top: 3px solid var(--green-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);

    padding: 20px;
    z-index: 3000;

    max-height: 500px;
    overflow-y: auto;
}

.mega-menu:hover .mega-menu-content {
    display: block;
}



/* Column titles */

.mega-title {
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 15px;
}

.mega-item:hover {
    background: rgba(0,128,1,0.05);
    padding-left: 6px;
}
/* Links */
.mega-item {
    display: block;
    text-decoration: none;
    color: var(--black-primary);
    padding: 8px 0;
    font-weight: 500;
}

.mega-item small {
    display: block;
    color: var(--gray-muted);
    font-size: 12px;
}

/* Hover effect */
.mega-item:hover {
    color: var(--green-primary);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

/* ================= MEGA MENU GRID FIX ================= */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* tighter */
}


/* each column */
.mega-column {
    min-width: 200px;
}
/* PRIMARY BUTTON â€“ Subtle Authority */
.btn-primary {
    background-color: var(--green-primary);
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #195b3c;
}

/* HERO â€“ Professional, Not Flashy */
.hero-section {
    background-color: var(--green-soft);
    padding: 90px 0;
}
.hero-section h1 {
    /color: var(--black-primary);
    font-weight: 700;
}
.hero-section .lead {
    color: var(--gray-muted);
}




/* CLIENT LOGOS */


/* ================= NAVBAR LOGO ================= */

/* Logo */
/*
.navbar-brand img.logo-style {
    height: 60px;
    width: auto;
    object-fit: contain;
}
/* ================= NAVBAR LOGO FINAL FIX ================= */
.navbar-brand .logo-style {
    height: 60px !important;   /* increase freely: 90px, 120px, etc */
    width: auto;
    object-fit: contain;
}
.navbar-brand img {
    image-rendering: -webkit-optimize-contrast;
}

/* ================= MARQUEE WRAPPER ================= */
.logo-marquee-wrapper {
    overflow: hidden;
    position: relative;
}

/* scrolling container */
.logo-marquee {
    display: flex;
    align-items: center;
    animation: scroll-logos 25s linear infinite;
}

/* each logo item */
.logo-client {
    flex: 0 0 auto;
    margin: 0 40px;
}

/* actual image inside logo item */
.logo-client img {
    height: 120px;
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

/* marquee animation */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.btn-accent {
    background-color: var(--orange-accent);
    border: none;
    color: #fff;
}

.btn-accent:hover {
    background-color: #e59400;
}


/* FEATURE CARDS */
/* Feature cards subtle hover and shadow */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 32px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.feature-card .btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.feature-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* Icons scaling on hover */
.feature-card i {
transition: transform 0.3s ease, color 0.3s ease;
}


.feature-card:hover i {
transform: scale(1.15);
color: var(--green-primary);
}

.project-card img {
    width: 100%;           /* make image fill the card width */
    height: 250px;         /* fixed height for all cards */
    object-fit: cover;     /* crop/scale images without distortion */
    border-radius: 10px;   /* match your card style */
}


.project-card {
    transition: all 0.4s ease;
    opacity: 1;
}
.project-card.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}
.icon-wrapper i {
    transition: transform 0.3s ease, color 0.3s ease;
}
.feature-card:hover .icon-wrapper i {
    transform: translateY(-5px) scale(1.2);
    color: #28a745;
}

/* Buttons hover enhancement */
.btn-primary {
transition: background-color 0.3s ease, transform 0.2s ease;
}


.btn-primary:hover {
background-color: #195b3c;
transform: translateY(-2px);
}

.btn-light:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}




/* SECTION BACKGROUNDS */
.section-light {
    background-color: var(--green-soft);
}
.section-blue {
    background-color: var(--blue-soft);
}


/* ================= FOOTER ALIGNMENT ================= */

/* ================= FOOTER LAYOUT ================= */

.site-footer {
    background-color: var(--black-primary);
    color: #ffffff;
    padding: 20px 0;
}

/* 3-column layout: left | center | right */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LEFT: logo */
.footer-left img {
    height: 45px;
    width: auto;
}

/* CENTER: copyright */
.footer-center {
    text-align: center;
}

.footer-text {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* RIGHT: social links (empty for now, but aligned right) */
.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* optional future social styling */
.footer-right a {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    transition: 0.3s ease;
}

.footer-right a:hover {
    color: var(--orange-accent);
    transform: translateY(-2px);
}

/* mobile: stack cleanly */
@media (max-width: 576px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .footer-right {
        justify-content: center;
    }
}


/* ==================*/

/* PRODUCTS - CLEAN PRODUCT CARD SYSTEM (FIXED) */

/* Card base */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

/* Hover effect (single source of truth) */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* IMAGE WRAPPER (standardized) */
.product-img-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Image */
.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Hover zoom */
.product-card:hover .product-img-container img {
    transform: scale(1.08);
}

/* Alternative image class safety (if used elsewhere) */
.card-img-top {
    height: 220px;
    width: 100%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

/* PRICE */
.price-tag {
    margin-top: 10px;
    font-weight: 700;
    color: var(--green-primary);
}

/* FILTER SELECT (single definition only) */
.filter-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 12px;
}

/* HIDE STATE (consistent across filters) */
.project-card.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
}


/* ==================*/


/* BRAND BUTTON SYSTEM */
.btn-accent {
    background: var(--orange-accent);
    color: black;
    font-weight: 600;
    border: none;
}

.btn-accent:hover {
    background: #e69500;
}

/* OUTLINE BRAND BUTTON */
.btn-outline-brand {
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
    background: transparent;
    font-weight: 600;
}

.btn-outline-brand:hover {
    background: var(--green-primary);
    color: white;
}

/* SERVICE CARDS PREMIUM FEEL */
.service-card {
    border-radius: 16px;
    overflow: hidden;
}

/* IMAGE STYLING */

/*
.service-image {
    height: 200px;
   overflow: hidden;
    object-fit: cover;
    transition: transform 0.5s ease;
}
*/
.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}



/* ================= PRODUCT CARD IMAGE ================= */
.product-image {
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.07);
}

/* ================= FILTER SELECT ================= */
.filter-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 12px;
}

/* ================= PROJECT CARD ================= */
.product-card {
    border-radius: 16px;
    overflow: hidden;
}

/* ================= HIDE ANIMATION ================= */
.project-card.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
}



/* ================= PRODUCT IMAGE ================= */
.product-img {
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-box:hover .product-img img {
    transform: scale(1.08);
}

/* ================= PRICE TAG ================= */
.price-tag {
    margin-top: 10px;
    font-weight: 700;
    color: var(--green-primary);
}

/* ================= CARD HOVER ================= */
.product-box {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-box:hover {
    transform: translateY(-6px);
}

/* ================= FILTER ================= */
.filter-select {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 6px 12px;
}

/* ================= HIDE ================= */
.project-card.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
}


/* ================= BLOG IMAGE ================= */
.blog-image {
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-inner:hover .blog-image img {
    transform: scale(1.08);
}

/* ================= FILTER PILLS ================= */
.filter-pill-group {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    border: 1px solid var(--border-light);
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    color: var(--black-primary);
}

.filter-pill:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.filter-pill.active {
    background: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
}

/* ================= BLOG CARD ================= */
.blog-card-inner {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card-inner:hover {
    transform: translateY(-6px);
}


.blog-hero {
    background:
        linear-gradient(
            135deg,
            rgba(12, 48, 34, 0.85),
            rgba(25, 92, 60, 0.75)
        ),
        url("/static/images/blog_hero.jpg") center/cover no-repeat;

    position: relative;
}

/* softer text tone */
.blog-hero p {
    color: rgba(255, 255, 255, 0.85);
}

/* ================= HOME HERO ================= */
.home-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            rgba(8, 35, 22, 0.92),
            rgba(0, 90, 55, 0.78)
        ),
        url("/static/images/home.jpeg") center/cover no-repeat;

    overflow: hidden;
}

/* badge */
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

/* subtitle */
.hero-subtitle {
    color: rgba(255,255,255,0.85);
    max-width: 800px;
    margin: 0 auto;
}

/* glow effect */
.hero-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    animation: floatGlow 12s infinite ease-in-out;
}

.glow-1 {
    background: #2d6a4f;
    top: -120px;
    left: -100px;
}

.glow-2 {
    background: #f4a261;
    bottom: -140px;
    right: -120px;
    animation-delay: 3s;
}

@keyframes floatGlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(40px); }
}

.home-hero {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
}

/* CLEAN CORPORATE BACKGROUND (NO RED TONE) */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../static/images/home.jpeg") center/cover no-repeat;
    transform: scale(1.05);
}

/* SOFT DARK OVERLAY (GREEN-TINTED, NOT RED) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 40, 30, 0.88),
        rgba(0, 0, 0, 0.65)
    );
}

/* CLEAN GLOW (ONLY GREEN + BLUE TONES) */
.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}

.glow-1 {
    background: #28a745; /* corporate green */
    top: -120px;
    left: -100px;
}

.glow-2 {
    background: #0d6efd; /* professional blue */
    bottom: -120px;
    right: -100px;
}

/* content spacing */
.hero-content {
    z-index: 2;
}

/* badge */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
}

/* stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat h3 {
    font-size: 1.8rem;
    margin: 0;
}

.hero-stats .stat p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}
.home-hero {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../static/images/home_hero.jpg") center/cover no-repeat;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,40,20,0.85), rgba(0,0,0,0.6));
}

.service-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
/* ================= ABOUT HERO (MATCHES HOME SYSTEM) ================= */

.about-hero {
    min-height: 75vh; /* keeps same height */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* BACKGROUND IMAGE LAYER */
.about-hero .hero-bg {
    position: absolute;
    inset: 0;
    transform: scale(1.05);
}

/* OVERLAY (brand-consistent dark green tone) */
.about-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 40, 20, 0.9),
        rgba(0, 0, 0, 0.65)
    );
}

/* CONTENT ABOVE EVERYTHING */
.about-hero .hero-content {
    z-index: 2;
}

/* SUBTITLE REFINEMENT */
.hero-subtitle {
    color: rgba(255,255,255,0.85);
    max-width: 750px;
    margin: 0 auto;
}

/* GLOW EFFECT (premium feel) */
.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    animation: floatGlow 12s infinite ease-in-out;
}

.glow-1 {
    background: #28a745; /* brand green */
    top: -120px;
    left: -100px;
}

.glow-2 {
    background: #0d6efd; /* subtle blue contrast */
    bottom: -120px;
    right: -100px;
}

/* ANIMATION */
@keyframes floatGlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(40px); }
}

/* ================= CLEAN CORPORATE HERO ================= */
.contact-hero-clean {
    background: linear-gradient(
        135deg,
        #0b3d2e 0%,     /* deep professional green */
        #0f5a3a 50%,
        #0a0f0d 100%    /* near-black for contrast */
    );

    padding: 110px 0;
    color: #ffffff;
    position: relative;
}

/* subtle energy glow (premium feel) */
.contact-hero-clean::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(253, 164, 0, 0.12),
        transparent 60%
    );
}

/* badge */
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    background: rgba(254, 255, 241, 0.08);
    border: 1px solid rgba(254, 255, 241, 0.15);
    color: var(--cream-light);
    backdrop-filter: blur(6px);
}

/* text tuning */
.contact-hero-clean h1 {
    letter-spacing: -0.5px;
}

.contact-hero-clean p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 15px auto 0;
}


/* FORM CARD */
.contact-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* INPUTS */
.custom-input {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 12px;
}

.custom-input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 1, 0.15);
}

/* PRIMARY BUTTON */
.btn-primary {
    background-color: var(--green-primary);
    border: none;
}

.btn-primary:hover {
    background-color: #0b5f0b;
}