/* Footer refinements to match Plantech look */
#footer {
    font-family: 'Poppins', sans-serif
}

#footer .footer-top {
    padding-top: 36px;
    padding-bottom: 18px
}

#footer h5, #footer h4 {
    font-weight: 600
}

#footer .footer-contact p, #footer .footer-links ul li a, #footer .small {
    color: rgba(255, 255, 255, 0.9)
}

#footer .footer-links ul {
    padding-left: 0
}

#footer .footer-links ul li {
    margin-bottom: 6px
}

#footer .social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

#footer img {
    max-height: 40px
}

/* Contact page styles */
.contact-hero {
    background: linear-gradient(180deg, #f7fbf7, #eef6ee)
}

.contact-hero .display-5 {
    color: #1f4c21
}

.contact-hero .lead {
    color: #466a43
}

@media (max-width:767px) {
    .contact-hero .text-lg-end {
        text-align: left !important
    }
}

/* Contact info card styles */
.contact-info-card .contact-card-image {
    height: 200px;
    object-fit: cover
}

.contact-info-card .info-item {
    background: linear-gradient(180deg, #fff, #fbfbfb);
    border: 1px solid rgba(0, 0, 0, 0.04)
}

.contact-info-card .info-item .icon {
    font-size: 1.35rem;
    color: var(--accent);
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center
}

.contact-info-card h5 {
    font-weight: 600
}

.contact-info-card .info-item h6 {
    margin-bottom: 4px;
    font-size: 0.98rem
}

.contact-info-card .info-item small {
    color: #556b4a
}

/* Make contact form visually similar to Plantech: soft card + green button */
#contact-form .form-control {
    border-radius: 6px
}

#contact-form button {
    min-width: 140px
}

:root {
    --accent: #2f8f3c;
    --muted: #666
}

/* Brand color tokens and accessible text colors for green backgrounds */
:root {
    --brand-green: #116530;
    --brand-green-dark: #0d593c;
    --text-on-green: #ffffff;
    --text-on-green-muted: rgba(255, 255, 255, 0.92);
    --text-on-green-muted-2: rgba(255, 255, 255, 0.78)
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    margin: 0;
    background: #fff
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.brand {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none
}

.main-nav a {
    margin-left: 16px;
    color: #333;
    text-decoration: none
}

.hero {
    background: linear-gradient(180deg, #f6fff5, transparent);
    padding: 48px 0;
    text-align: left
}

.hero h1 {
    font-size: 34px;
    margin: 0 0 8px;
    color: #214d21
}

.lead {
    font-size: 18px;
    color: var(--muted)
}

/* Owl carousel hero and gallery styles and graceful fallback */
.hero-carousel {
    width: 100%;
}

.hero-slide {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.28);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px
}

.hero-content h1 {
    color: #fff;
    font-size: 36px
}

.hero-content .lead {
    color: #f0f7ee
}

.gallery-carousel .gallery-slide img {
    border-radius: 6px;
    max-height: 260px;
    object-fit: cover
}

/* Fallback: if Owl Carousel JS isn't loaded, display slides vertically */
@media (max-width: 800px) {
    .hero-slide {
        height: 260px
    }

    .hero-content h1 {
        font-size: 26px
    }
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none
}

.features, .products {
    padding: 24px 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px
}

.grid-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    display: block
}

.muted {
    color: var(--muted)
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
}

.card {
    background: #fbfbfb;
    padding: 12px;
    border-radius: 6px
}

.product-category {
    margin-bottom: 18px
}

.product-sub ul {
    margin: 6px 0 12px 20px
}

.footer-grid {
    display: flex;
    gap: 18px;
    justify-content: space-between
}

.site-footer {
    border-top: 1px solid #eee;
    padding: 18px 0;
    margin-top: 24px
}

.copyright {
    margin-top: 8px;
    color: var(--muted)
}

@media (max-width:700px) {
    .header-inner {
        flex-direction: column;
        gap: 8px
    }

    .footer-grid {
        flex-direction: column
    }
}

/* Sticky header styling */
.site-sticky {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    z-index: 10050;
    transition: transform .28s ease, box-shadow .18s ease, border-color .18s ease, padding .18s ease
}

.site-sticky.scrolled {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 4px;
    padding-bottom: 4px;
    background: rgba(255, 255, 255, 0.98)
}

/* When header should be hidden (scroll down), translate it up */
.site-sticky.hidden {
    transform: translateY(-110%)
}

/* When auto-hide is disabled, prevent the hidden transform so the header stays visible */
.site-sticky.no-auto-hide.hidden {
    transform: none !important
}

.site-sticky.no-auto-hide {
    transition: none !important
}

/* Transparent header when at top (over green slider or hero). We'll keep text white for contrast */
.site-sticky.transparent {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 0 !important
}

.site-sticky.transparent .logo img {
    filter: brightness(1.05) saturate(.8)
}

/* Don't hide header when mobile nav or overlays are active */
body.mobile-nav-active #header.site-sticky, body.glightbox-open #header.site-sticky {
    transform: none !important;
}

/* Ensure header is above the mobile nav overlay */
body.mobile-nav-active #header.site-sticky {
    z-index: 10051
}

/* --- Mobile nav fixes: ensure toggle is clickable and menu displays --- */
/* Keep the header and toggle above hero/overlays that might otherwise capture clicks */
#header.site-sticky {
    z-index: 11110 !important;
}

.mobile-nav-toggle {
    position: relative;
    z-index: 11111 !important;
    pointer-events: auto;
    cursor: pointer;
}

/* Force mobile menu visible and interactive when active */
.mobile-nav-active .navmenu > ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Ensure the active header state is above overlays while mobile menu is open */
.mobile-nav-active #header.site-sticky {
    z-index: 11112 !important;
}

/* Keep header text readable if transparent only when the top hero is dark */
body.hero-top-dark #header.header.transparent #navmenu ul li a {
    color: var(--text-on-green) !important
}

body.hero-top-dark #header.header.transparent #navmenu .mobile-nav-toggle {
    color: var(--text-on-green) !important
}

/* Header height and anchor scrolling adjustments */
:root {
    --header-height: 56px
}

/* Keep header offset small (used for caption padding only) */
body {
    --header-offset: 0px;
}

@media (max-width: 767px) {
    body {
        --header-offset: 0px;
    }
}

/* Remove the default top padding on main so content sits directly under the header */
main {
    padding-top: 0;
}

/* Make anchor links scroll to visible area under sticky header */
html {
    scroll-padding-top: calc(var(--header-height) + 8px);
}

/* Header sizing and typography to match reference */
#header.header {
    padding: 2px 0;
}

/* Make the header bar green to match brand */
#header.header {
    background: linear-gradient(180deg, var(--brand-green), var(--brand-green-dark)) !important;
    border-bottom: 0 !important;
}

/* Ensure nav links are readable on green header */
#header.header #navmenu ul li a {
    color: var(--text-on-green) !important;
}

#header.header #navmenu .mobile-nav-toggle {
    color: var(--text-on-green) !important;
}

/* Keep sticky scrolled header green instead of switching to white */
#header.header.site-sticky.scrolled {
    background: linear-gradient(180deg, var(--brand-green), var(--brand-green-dark)) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* When header is green, active/hover nav links should use lighter text-on-green for emphasis */
#header.header #navmenu ul li a.active, #header.header #navmenu ul li a:hover {
    color: var(--text-on-green) !important;
    background: rgba(255,255,255,0.06);
}

#header .logo img {
    height: 34px;
    width: auto;
}

#navmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

#navmenu ul li {
    display: inline-block;
}

/* Nav link styling tuned to match Plantraisers look: larger, slightly looser
   letter-spacing, pill hover background and centered underline indicator */
#navmenu ul li a {
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    font-size: 15px; /* slightly larger for better legibility */
    font-weight: 600; /* strong but not overly heavy */
    color: var(--text-on-green) !important;
    padding: 10px 18px; /* more breathing room */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    border-radius: 999px; /* pill-style hover */
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

#navmenu ul li a.active, #navmenu ul li a:hover {
    color: var(--accent) !important;
    background: rgba(47, 143, 60, 0.08);
    transform: translateY(-2px);
}

/* centered nav on desktop like Longonot */
@media (min-width: 992px) {
    #navmenu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10055;
    }

    #header .container-fluid.container-xl {
        display: flex;
        align-items: center;
        gap: 1rem
    }

    /* give room for logo and right-side actions */
    #navmenu ul {
        gap: clamp(1rem, 2vw, 2rem);
    }

    /* Ensure the nav is always visible in desktop view */
    #navmenu {
        display: block !important
    }

    #navmenu ul {
        display: flex !important
    }
}

/* Homepage-specific nav fix: ensure the nav is visible and readable on the homepage */
@media (min-width: 992px) {

    /* Show the centered nav explicitly on homepage and contact pages */
    body.page-home #navmenu, body.page-contact #navmenu {
        display: block !important;
        z-index: 11011 !important
    }

    body.page-home #navmenu ul, body.page-contact #navmenu ul {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important
    }

    body.page-home #header.site-sticky, body.page-contact #header.site-sticky {
        z-index: 11010 !important
    }

    body.page-home #header.header.transparent #navmenu ul li a, body.page-contact #header.header.transparent #navmenu ul li a {
        color: var(--text-on-green) !important
    }

    /* Also force readable nav links on these pages regardless of header.transparent state */
    body.page-home #navmenu ul li a, body.page-contact #navmenu ul li a {
        color: var(--text-on-green) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    body.page-home #navmenu .mobile-nav-toggle, body.page-contact #navmenu .mobile-nav-toggle {
        color: var(--text-on-green) !important
    }
}

/* subtle underline hover effect */

/* centered, thicker underline that grows from center */
#navmenu ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    height: 3px;
    width: 0%;
    background: var(--accent);
    transition: width .18s ease;
    border-radius: 2px;
}

#navmenu ul li a:hover::after,
#navmenu ul li a.active::after {
    width: 52%;
}

/* make header links slightly larger for brand aesthetic */
@media (min-width: 1200px) {
    #navmenu ul li a {
        font-size: 15px;
        padding: 8px 16px
    }
}

/* subtle uplift effect on hover for a feel of interaction */
#navmenu ul li a:hover {
    transform: translateY(-2px);
}

/* Keep mobile nav toggle right aligned and visible */
@media (max-width: 991px) {
    #navmenu {
        position: static;
        transform: none;
    }

    #navmenu .mobile-nav-toggle {
        position: static;
        margin-left: 8px;
    }
}

#navmenu .mobile-nav-toggle {
    font-size: 1.25rem;
}

/* Resize logo slightly larger on desktop for better proportion with centered nav */
@media (min-width: 992px) {
    #header .logo img {
        height: 44px;
    }
}

/* Ensure consistent header height and spacing across pages */
#header.header {
    height: var(--header-height);
    min-height: 48px
}

#header .container-xl, #header .container-fluid {
    height: 56px;
    display: flex;
    align-items: center
}

@media (max-width: 991px) {
    :root {
        --header-height: 64px
    }

    #header.header {
        height: auto;
        min-height: var(--header-height)
    }

    #header .container-xl, #header .container-fluid {
        height: auto;
        align-items: center
    }

    .logo img.site-logo {
        height: 48px
    }
}

/* Improve hit area for nav links on touch devices */
.navmenu ul li a {
    line-height: 1.2
}

@media (max-width: 767px) {
    #header.header {
        padding: 4px 0;
    }

    #header .logo img {
        height: 36px;
    }

    #navmenu ul {
        gap: 0.5rem;
    }

    main {
        padding-top: 8px;
    }
}

.hero {
    background: #fff;
    padding: 48px 0;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2f8f3c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #163b16;
    line-height: 1.2;
}

.hero-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Helpers for high-contrast text on green backgrounds */
.text-on-green {
    color: var(--text-on-green) !important
}

.text-on-green-muted {
    color: var(--text-on-green-muted) !important
}

.text-on-green-muted-2 {
    color: var(--text-on-green-muted-2) !important
}

.text-shadow-on-dark {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35)
}

/* When header sits over dark/green areas (top of page), show white nav for readability */
/* Default transparent nav color for light hero/white backgrounds */
/* Keep nav dark when header is transparent and hero is not dark */
body:not(.hero-top-dark) #header.header.transparent #navmenu ul li a {
    color: var(--text-on-green) !important
}

body:not(.hero-top-dark) #header.header.transparent #navmenu ul li a.active, body:not(.hero-top-dark) #header.header.transparent #navmenu ul li a:hover {
    color: #2f8f3c !important;
    opacity: 0.95
}

/* White nav links when transparent over dark hero/header images */
body.hero-top-dark #header.header.transparent #navmenu ul li a {
    color: var(--text-on-green) !important
}

body.hero-top-dark #header.header.transparent #navmenu ul li a.active, body.hero-top-dark #header.header.transparent #navmenu ul li a:hover {
    color: var(--text-on-green) !important;
    opacity: 0.95
}

/* Make hero descriptions and small text on dark/slanted green overlays white */
.home-hero .hero-desc, .home-hero .hero-subtitle, .home-hero .hero-title {
    color: var(--text-on-green) !important
}

.home-hero .hero-desc {
    color: var(--text-on-green-muted) !important
}

/* Force readable text on image/service cards with dark overlays */
.service-card .service-content h5, .service-card .service-content p {
    color: var(--text-on-green) !important
}

.service-card .service-content p {
    color: var(--text-on-green-muted) !important
}

.service-card .service-content {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35)
}

/* Make smaller muted text legible on green backgrounds */
.products-sub, .connect-with-us .connect-desc, .product-sub {
    color: var(--text-on-green-muted) !important
}

/* For blocks with a green accent background where links appear, use white link color */
.bg-accent a, .bg-success a {
    color: var(--text-on-green) !important
}

/* Ensure contrast for footer (dark but still green-themed) */
#footer .footer-contact p, #footer .footer-links ul li a, #footer .small {
    color: rgba(255, 255, 255, 0.95)
}

@media (max-width: 768px) {
    .hero {
        padding: 32px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 16px;
    }
}

/* Hero Swiper slide sizing and image */
.hero-swiper {
    padding: 28px 0;
}

.hero-slide-row {
    min-height: 420px;
}

.hero-slide-image {
    max-height: 480px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .hero-slide-row {
        min-height: 320px;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .hero-slide-row {
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 12px;
    }
}

/* Contact page: hero with background image and centered title */
.contact-hero-hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    padding: 110px 0 48px;
    color: #fff
}

.contact-hero-hero .contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.36)
}

.contact-hero-hero .hero-content {
    position: relative;
    z-index: 2
}

.hero-contact-title {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
    margin: 0
}

@media (max-width:768px) {
    .contact-hero-hero {
        padding: 80px 0 28px
    }

    .hero-contact-title {
        font-size: 28px;
        letter-spacing: 3px
    }
}

/* Contact form card (left) */
.contact-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid rgba(22, 61, 22, 0.04)
}

.contact-form-card .form-label {
    font-weight: 600;
    color: #556b4a
}

.contact-form-card .form-control {
    border-radius: 4px;
    border: 1px solid #dfe6dc
}

.contact-form-card button {
    background: var(--accent);
    border: 0;
    padding: 10px 18px;
    border-radius: 6px
}

/* Right column: connect with us */
.connect-with-us {
    background: transparent;
    padding: 20px
}

.connect-with-us .connect-title {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 20px
}

.connect-with-us .connect-desc {
    color: #334a36;
    margin-bottom: 20px;
    font-size: 14px
}

.info-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 22px;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start
}

.info-card .info-icon {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
    color: var(--accent);
    background: transparent
}

.info-card h6 {
    font-size: 18px;
    margin: 12px 0 0;
    color: #233a23;
    font-weight: 700
}

.info-card .info-value {
    display: block;
    margin-top: 8px;
    color: #6b7b6a;
    font-weight: 700;
    font-size: 14px;
    white-space: normal;
    word-break: break-word
}

/* Primary (left) card style similar to screenshot */
.info-card-primary {
    background: #78a986;
    color: #fff;
    border: 0;
    min-height: 190px
}

.info-card-primary .info-icon {
    background: #fff;
    color: var(--accent);
    width: 84px;
    height: 84px;
    font-size: 30px
}

.info-card-primary h6 {
    color: #fff
}

.info-card-primary .info-value {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    white-space: normal;
    word-break: break-word
}

.info-card-primary .info-divider {
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    width: 70%;
    margin: 14px auto 0;
    border-radius: 3px
}

/* Default white cards: small divider and icon styling */
.info-card .info-divider {
    height: 2px;
    background: rgba(47, 143, 60, 0.08);
    width: 70%;
    margin: 12px auto 0;
    border-radius: 2px
}

.info-card .link-reset {
    color: inherit;
    text-decoration: none
}

.info-card .stretched-link {
    position: absolute;
    inset: 0;
    border-radius: 8px
}

.map-card {
    border-radius: 6px;
    overflow: hidden
}

/* small adjustments for mobile stacking */
@media (max-width:991px) {
    .row-cols-md-3 .col {
        flex: 0 0 33.33333%;
        max-width: 33.33333%
    }
}

/* Products / Services page */
.products-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff
}

.products-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32)
}

.products-title {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    margin: 0;
    padding: 48px 0 10px;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.products-sub {
    color: #fff !important;
    opacity: 0.92;
    margin-bottom: 40px
}

.product-filters .btn {
    border-radius: 20px
}

.products-grid .product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column
}

.product-card .product-thumb {
    height: 180px;
    background-size: cover;
    background-position: center
}

.product-card h5 {
    font-size: 18px;
    margin-bottom: 6px
}

.product-card p {
    margin-bottom: 10px
}

/* Ensure product/service cards and their content areas are white and readable */
.products-grid .product-card, .product-card .p-3 {
    background: #ffffff !important;
    color: #222 !important;
}

.product-card {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Homepage product categories: four-card grid similar to Seedlings Categories */
.product-categories {
    --card-radius: 10px;
}
.product-category-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-category-card .card-img-top {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.product-category-card .card-body {
    padding: 1rem;
}
.product-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.product-category-card .card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #163b16;
    margin-bottom: .35rem;
}
.product-category-card .card-text {
    margin-bottom: .5rem;
}

@media (max-width: 768px) {
    .product-category-card .card-img-top {
        height: 140px;
    }
}

/* Mobile-friendly typography and spacing tweaks */
@media (max-width: 768px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .hero-title { font-size: 28px; }
    .hero-lead { font-size: 15px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    .btn { padding: 12px 18px; font-size: 15px; }
    .product-category-card .card-title { font-size: 1rem; }
    .service-card { min-height: 260px; }
    .gallery-featured { height: 220px; }
    .gallery-thumb-item { width: 64px; height: 52px; }
}

/* make gallery thumbs horizontally scrollable on small screens */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}
.gallery-thumbs::-webkit-scrollbar { height: 8px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 6px; }

/* Gallery grid similar to Plantech 'OUR GALLERY' */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.gallery-item a { display:block; }
.gallery-thumb {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover .gallery-thumb { transform: scale(1.04); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }

/* Featured gallery image and thumbnail strip */
.gallery-featured-wrap {
    display: block;
}
.gallery-featured {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-featured:hover { transform: translateY(-4px); }
.gallery-thumbs { margin-top: 12px; }
.gallery-thumb-item { width: 92px; height: 68px; overflow: hidden; cursor: pointer; border-radius: 6px; border: 2px solid transparent; }
.gallery-thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb-item.active { border-color: var(--accent); transform: scale(1.02); }

@media (max-width: 768px) {
    .gallery-featured { height: 260px; }
    .gallery-thumb-item { width: 72px; height: 56px; }
}
/* Top carousel styles (Gallery page) */
.gallery-top-carousel .swiper { height: 420px; }
.gallery-top-carousel .swiper-slide { background-size: cover; background-position: center; display:block; position:relative; }
.gallery-top-carousel .slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,33,12,0.46), rgba(7,33,12,0.22)); z-index:1; }
.gallery-top-carousel .slide-caption { position: relative; z-index:2; max-width:720px; padding:28px; background: rgba(12,44,15,0.48); border-radius:10px; color:var(--text-on-green); box-shadow:0 12px 36px rgba(0,0,0,0.22); }
.gallery-top-carousel .caption-title { font-size: 30px; margin:0 0 8px; color:var(--text-on-green); }
.gallery-top-carousel .caption-desc { color: var(--text-on-green-muted); }
.gallery-top-carousel .swiper-button-next, .gallery-top-carousel .swiper-button-prev { color: #fff; }

@media (max-width: 992px) { .gallery-top-carousel .swiper { height: 320px; } .gallery-top-carousel .caption-title { font-size: 22px; } .gallery-top-carousel .slide-caption { max-width: 92%; margin: 0 auto; } }

@media (max-width: 576px) { .gallery-top-carousel .swiper { height: 240px; } .gallery-top-carousel .slide-caption { padding:12px; border-radius:8px; } .gallery-top-carousel .caption-title { font-size: 18px; } }


@media (min-width: 992px) {
    .gallery-thumb { height: 220px; }
}

@media (max-width: 576px) {
    .gallery-thumb { height: 140px; }
}

.product-thumb {
    filter: none;
}

/* About/figure enhancements */
.about-figure { display: block; background: #fff; padding: 8px; border-radius: 8px; }
.about-image { width: 100%; height: auto; object-fit: cover; display: block; border-radius: 8px; }
.about-figure figcaption { color: #556b4a; }

/* Gallery: hover overlay, focus styles and featured caption */
.gallery-featured { position: relative; background-size: cover; background-position: center; }
.gallery-featured-overlay { position: absolute; inset: auto 0 12px 0; display:flex; justify-content:center; }
.gallery-featured-caption { background: rgba(0,0,0,0.45); color: var(--text-on-green); padding: 8px 12px; border-radius: 8px; font-weight:700; display:inline-block; box-shadow: 0 8px 20px rgba(0,0,0,0.28); }

.gallery-thumb-item { width: 96px; }
.gallery-thumb-item .thumb-link { position: relative; display:block; }
.gallery-thumb-item .thumb-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,55,15,0.0), rgba(15,55,15,0.2)); opacity: 0; transition: opacity .18s ease, transform .18s ease; border-radius: 6px; }
.gallery-thumb-item:hover .thumb-overlay, .gallery-thumb-item:focus-within .thumb-overlay, .gallery-thumb-item.active .thumb-overlay { opacity: 1; transform: scale(1.02); }
.gallery-thumb-item:focus-within { outline: 3px solid rgba(47,143,60,0.18); border-radius:6px; }

/* small animation when featured changes */
.gallery-featured.fade-in { animation: fadeInBg .5s ease both; }
@keyframes fadeInBg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Improve gallery captions spacing */
.gallery-featured-wrap .small { margin-top: 8px; }

/* Nav hover/active: yellow accent for all menu items */
#navmenu ul li a:hover,
#navmenu ul li a.active,
#header.header #navmenu ul li a:hover,
#header.header #navmenu ul li a.active,
body.hero-top-dark #navmenu ul li a:hover,
body.hero-top-dark #navmenu ul li a.active {
    color: #ffd24a !important; /* bright yellow */
    background: rgba(255,210,74,0.08) !important;
    text-shadow: none !important;
}

/* Ensure underline indicator uses yellow when active */
#navmenu ul li a.active::after, #navmenu ul li a:hover::after {
    background: #ffd24a !important;
}

/* Explicit hover & focus for #navmenu links and mobile toggle */
#navmenu ul li a:focus,
#navmenu ul li a:hover {
    color: #ffd24a !important;
}

#navmenu .mobile-nav-toggle:hover,
#navmenu .mobile-nav-toggle:focus {
    color: #ffd24a !important;
}

@media (max-width:768px) {
    .products-title {
        font-size: 28px;
        padding: 28px 0 8px
    }

    .product-card .product-thumb {
        height: 160px
    }
}

/* Home page hero */
.home-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 55, 15, 0.45), rgba(15, 55, 15, 0.25))
}

.hero-inner {
    padding: 80px 0
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 1px
}

.hero-lead {
    font-size: 18px;
    max-width: 820px;
    margin: 10px auto;
    color: rgba(255, 255, 255, 0.95)
}

.stats-band .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent)
}

.stats-band .stat-label {
    color: #445c44
}

/* service card with background image and overlay */
.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
    max-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04)
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 30%, rgba(0, 0, 0, 0.12) 100%)
}

.service-content {
    position: relative;
    padding: 28px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.service-content h5 {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--accent);
    font-weight: 800
}

.service-content p {
    margin: 0;
    font-size: 15px;
    color: #334a36;
    max-width: 380px
}

.call-to-action {
    background: linear-gradient(180deg, #f0faf0, #eaf7ea)
}

@media (max-width:768px) {
    .hero-title {
        font-size: 30px
    }

    .hero-inner {
        padding: 50px 0
    }
}

/* top image slider */
.home-slider {
    position: relative
}

.home-slider .swiper {
    height: 420px
}

.home-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: block
}

.home-slider .swiper-slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 33, 12, 0.25), rgba(7, 33, 12, 0.15));
}

.home-slider .swiper-slide .slide-caption {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 520px;
    background: rgba(12, 44, 15, 0.66);
    padding: 26px;
    border-radius: 8px;
    color: #fff
}

.home-slider .swiper-slide .caption-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 700
}

.home-slider .swiper-slide .caption-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0
}

.home-slider .swiper-button-next, .home-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12)
}

.home-slider .swiper-button-next:after, .home-slider .swiper-button-prev:after {
    font-size: 18px
}

.home-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.9
}

.home-slider {
    margin-top: calc(-1 * var(--header-height));
    z-index: 0
}

.home-slider .swiper {
    overflow: visible
}

/* make sure caption isn't overlapped by the header — add padding-top equal to header height if needed */
.home-slider .slide-caption {
    padding-top: calc(var(--header-height) + 8px)
}

/* Reduce vertical spacing immediately after the top slider and for common section blocks
	This targets the sections following the slider (home sections like Services, Gallery, Products) */
.home-slider+section.py-5, main>section.py-5 {
    padding-top: 1.25rem !important;
    padding-bottom: 2rem !important;
}

@media (max-width: 768px) {
    .home-slider+section.py-5, main>section.py-5 {
        padding-top: .85rem !important;
        padding-bottom: 1.4rem !important;
    }
}

@media (max-width: 992px) {
    .home-slider .swiper {
        height: 320px
    }

    .home-slider .swiper-slide .slide-caption {
        left: 5%;
        max-width: 60%;
        padding: 18px
    }

    .home-slider .swiper-slide .caption-title {
        font-size: 20px
    }
}

@media (max-width: 576px) {
    .home-slider .swiper {
        height: 260px
    }

    .home-slider .swiper-slide .slide-caption {
        position: static;
        transform: none;
        margin-top: 12px;
        background: rgba(12, 44, 15, 0.72);
        padding: 14px;
        border-radius: 6px
    }
}


/* Products details / collapsible lists */
.product-list summary {
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    background: #f7fff7
}

.product-list summary:hover {
    background: #eef9ee
}

.product-list .p-3 {
    background: #fff
}

.product-list ul {
    margin: 8px 0 0 20px
}

/* --- Homepage visual polish: typography, spacing, and image treatments --- */
:root {
    --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
    --heading-font: 'Poppins', 'Open Sans', Arial, sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.65;
    color: #222;
}

/* Headings */
h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    color: #163b16;
    margin-top: 0;
}

h2 {
    font-size: 28px;
    letter-spacing: 0.2px;
    margin-bottom: 12px;
}

h3 { font-size: 20px; margin-bottom: 10px; }

.lead {
    font-size: 17px;
    color: #3d5a3f;
    max-width: 860px;
}

/* Cards and images */
.card, .info-card, .product-category-card {
    border-radius: 10px;
    overflow: hidden;
}

.card img, .map-card img, .product-category-card .card-img-top, .gallery-thumb img {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
    transition: transform .28s ease, box-shadow .28s ease;
}

.card img:hover, .gallery-thumb img:hover, .product-category-card .card-img-top:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 46px rgba(0,0,0,0.12);
}

/* Service cards: increase overlay contrast and anchor CTA style */
.service-card .service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,30,10,0.46), rgba(8,30,10,0.52));
}

.service-card .service-content h5 { color: #fff; font-size: 22px; }
.service-card .service-content p { color: rgba(255,255,255,0.92); }
.service-card .service-content .btn-light {
    background: rgba(255,255,255,0.95);
    color: var(--brand-green-dark);
    border-radius: 8px;
}

/* Product category cards: subtle overlay on hover */
.product-category-card .card-img-top { height: 180px; object-fit: cover; }
.product-category-card:hover .card-img-top { transform: scale(1.03); }

/* Gallery featured improvement */
.gallery-featured { border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.14); }
.gallery-featured-overlay { bottom: 18px; }

/* Gallery page grid and overlays */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-item { position: relative; overflow: hidden; border-radius: 10px; }
.gallery-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; transition: transform .22s ease, box-shadow .22s ease; display:block; }
.gallery-item .gallery-item-overlay { position: absolute; inset: 0; display:flex; align-items:flex-end; justify-content:center; padding:12px; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.36)); opacity:0; transition: opacity .18s ease, transform .18s ease; }
.gallery-item:hover .gallery-item-overlay, .gallery-item:focus-within .gallery-item-overlay { opacity:1; }
.gallery-item-caption { color: var(--text-on-green); background: rgba(0,0,0,0.48); padding:6px 10px; border-radius:6px; font-weight:600; }

@media (min-width: 992px) { .gallery-thumb { height: 180px; } }
@media (max-width: 576px) { .gallery-thumb { height: 140px; } .gallery-grid { gap: 8px; } }

/* force up to 5 columns on larger screens for a 5-per-row layout */
@media (min-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Improve small text contrast */
.small, .text-muted { color: #6b7b6a; }

/* CTA buttons: larger, friendlier */
.btn-success, .btn-success:visited {
    background: linear-gradient(180deg,var(--brand-green),var(--brand-green-dark));
    color: var(--text-on-green);
    border: 0;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15,81,36,0.12);
}

.btn-outline-success {
    border-radius: 8px;
    padding: 8px 14px;
}

/* Tighten spacing between vertical sections for a modern feel */
section.py-5 { padding-top: 32px; padding-bottom: 36px; }

/* Improve footer link contrast */
#footer .footer-links a { color: rgba(255,255,255,0.95); text-decoration: none; }

/* Accessibility: increase focus outline visibility */
a:focus { outline: 3px solid rgba(47,143,60,0.16); outline-offset: 2px; }

/* Small screens: keep images proportionate */
@media (max-width: 576px) {
    .product-category-card .card-img-top { height: 140px; }
    .service-card { min-height: 280px; }
}

/* About page specifics */
.about-hero { background-size: cover; background-position: center; padding: 80px 0; position: relative; color: var(--text-on-green); }
.about-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,35,12,0.58), rgba(8,35,12,0.22)); border-radius: 12px; }
.about-hero-content { position: relative; z-index: 2; padding: 24px; }
/* Improve contrast for about hero text */
.about-hero-content h1,
.about-hero-content .lead {
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Slightly reduce hero padding on small screens for better layout */
@media (max-width: 768px) {
    .about-hero { padding: 48px 0; }
    .about-hero-content { padding: 20px; }
    .about-hero-content h1 { font-size: 1.8rem; }
}
.about-thumb { width: 100%; height: 140px; object-fit: cover; }
.partner-list { list-style: none; padding-left: 0; }
.partner-list li { margin-bottom: 6px; }

/* products grid */
.products-grid .card { border-radius: 10px; }

@media (max-width: 768px) {
    .about-hero { padding: 48px 0; }
}

/* Homepage visual improvements: larger centered hero, stronger overlay, nicer CTAs */
.home-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 80px 0 72px;
}

.home-hero .home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 33, 12, 0.62), rgba(7, 33, 12, 0.28));
    z-index: 0;
}

.home-hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px;
    text-align: center;
}

.home-hero .hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.04;
    margin: 0 0 10px;
    color: var(--text-on-green);
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.home-hero .hero-lead {
    font-size: 20px;
    color: var(--text-on-green-muted);
    max-width: 900px;
    margin: 10px auto 18px;
}

.home-hero .hero-cta {
    display: inline-flex;
    gap: 12px;
    margin-top: 18px;
}

.home-hero .hero-cta .btn {
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15,55,15,0.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .12s ease;
}

.home-hero .hero-cta .btn.secondary {
    background: rgba(255,255,255,0.12);
    color: var(--text-on-green);
    border: 1px solid rgba(255,255,255,0.12);
}

.home-hero .hero-cta .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15,55,15,0.22);
}

/* Responsive hero adjustments */
@media (max-width: 992px) {
    .home-hero .hero-title { font-size: 40px; }
    .home-hero { padding: 60px 0 48px; }
}

@media (max-width: 576px) {
    .home-hero .hero-title { font-size: 28px; }
    .home-hero .hero-lead { font-size: 15px; }
    .home-hero .hero-inner { padding: 18px; }
}

/* Slider-based hero (existing template uses .home-slider/.swiper) */
.home-slider .swiper {
    height: 520px;
}

.home-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.home-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,30,12,0.64), rgba(10,30,12,0.34));
    z-index: 1;
}

.home-slider .slide-caption {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 28px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.06));
    border-radius: 12px;
    color: var(--text-on-green);
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.home-slider .caption-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    line-height: 1.02;
    margin: 0 0 8px;
    color: var(--text-on-green);
    text-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.home-slider .caption-desc {
    color: var(--text-on-green-muted);
    font-size: 16px;
    margin-bottom: 12px;
}

.home-slider .slide-caption .btn {
    padding: 10px 16px;
    border-radius: 8px;
}

.home-slider .slide-caption .btn.btn-success {
    background: linear-gradient(180deg,var(--brand-green),var(--brand-green-dark));
    border: 0;
}

.home-slider .slide-caption .btn.btn-outline-light {
    background: rgba(255,255,255,0.08);
    color: var(--text-on-green);
    border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 992px) {
    .home-slider .swiper { height: 420px; }
    .home-slider .caption-title { font-size: 30px; }
    .home-slider .slide-caption { max-width: 92%; margin: 0 auto; }
}

@media (max-width: 576px) {
    .home-slider .swiper { height: 280px; }
    .home-slider .caption-title { font-size: 20px; }
    .home-slider .caption-desc { font-size: 14px; }
    .home-slider .slide-caption { padding: 12px; border-radius: 8px; }
}

/* Make the prominent CTA in the page call-to-action stronger */
.call-to-action {
    background: linear-gradient(180deg,#e9f6ea,#e1f1e2);
}

.call-to-action h3 {
    color: #163b16;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 6px;
}

.call-to-action p { color: #2e5130; }

.call-to-action .btn-success.btn-lg {
    background: linear-gradient(180deg,var(--brand-green),var(--brand-green-dark));
    border: 0;
    padding: 14px 26px;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(17,101,48,0.18);
}

.call-to-action .btn-success.btn-lg:hover { transform: translateY(-3px); }

/* Slightly tighten spacing for feature/service sections to improve perceived density */
section.py-5 { padding-top: 28px; padding-bottom: 32px; }

/* Improve product category card titles and CTA alignment */
.product-category-card .card-title { font-size: 1rem; color: #133914; }
.product-category-card .card-body { padding-bottom: 1.1rem; }

/* small utility: subtle section dividers */
.container > h2 + p { margin-top: -4px; margin-bottom: 12px; }
