/* 4. UI Colors Usage Guide
 Use Green for:

Primary buttons

Icons

Highlights

Active states

Stats / key numbers

Form submit buttons

CTAs

 Use Dark (#1D2124) for:

Headings

Text

Navbars

Footers

 Use Gray (#6C757D) for:

Paragraph muted text

Secondary labels

Form descriptions

Footer small text

 Use Light (#F8F9FA) for:

Section backgrounds

Cards background

Spacing background

 5. Section Style Guide
 Hero Section

Background: white
H1: dark
Keyword highlight: green
Buttons: solid green

 Features Section

Background: light (#F8F9FA)
Icons: green
Title: dark
Paragraph: muted gray

Pricing / Services

Cards: white
Shadow: soft
CTA button: green

 Footer

Background: dark
Links hover: green
Text: light gray*/

/* theme.css - Full theme for Bootstrap 5.3 based on logo colors
   - Load this AFTER bootstrap.min.css
   - Load Google Fonts before CSS (see instructions in chat)
   ------------------------------------------------------------ */

:root {
    /* Brand colors */
    --primary-green: #6ba761; /*#00924A*/
    ;
    --primary-green-600: #007A3E; /* hover */
    --primary-dark: #1D2124; /* headings / main text */
    --muted-gray: #6C757D;
    --light-bg: #F8F9FA;
    --border-light: #E6E6E6;
    /* Bootstrap variable integration (Bootstrap 5 uses these vars) */
    --bs-body-font-family: "Poppins", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --bs-body-font-size: 1rem; /* 1rem == html font-size */
    --bs-heading-color: var(--primary-dark);
    --bs-body-color: var(--primary-dark);
    --bs-border-color: var(--border-light);
    --bs-primary: var(--primary-green);
    --bs-bgGreen: #f2f2f2;
}

/*=========================
  Mobile-first root sizing
  =========================*/
html {
    font-size: 16px;
}

@media(min-width:768px) {
    html {
        font-size: 14px;
    }
}

/*=========================
  Base typography
  =========================*/
body {
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
    background-color: var(--bs-bgGreen);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

/* Headings - responsive + consistent */
h1, h2, h3, h4, h5, h6 {
    color: var(--bs-heading-color);
    margin-top: 0;
    margin-bottom: .5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-family: var(--bs-body-font-family);
}

h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
}
/* Small utilities for heading emphasis */
.text-heading-green {
    color: var(--primary-green);
}

.text-muted, .muted {
    color: var(--muted-gray) !important;
}
.bg-primary {
    background-color: #6ba761 !important;
}
p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
}

small {
    font-size: .85rem;
    color: var(--muted-gray);
}

/*=========================
  Buttons
  =========================*/
.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: #fff;
    border-radius: 8px;
    padding: .625rem 1rem;
    font-weight: 600;
    transition: all .15s ease-in-out;
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--primary-green-600) !important;
        border-color: var(--primary-green-600) !important;
        box-shadow: 0 6px 18px rgba(0,146,74,0.12);
        color:white;
    }

.btn-outline-primary {
    --bs-btn-color: var(--primary-green) !important;
    --bs-btn-border-color: var(--primary-green) !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-green) !important;
    --bs-btn-hover-border-color: var(--primary-green) !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-green) !important;
    --bs-btn-active-border-color: var(--primary-green) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--primary-green) !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary-green) !important;
    --bs-gradient: none;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus {
        background-color: var(--primary-green) !important;
        color: #fff !important;
        border-color: var(--primary-green-600) !important;
        box-shadow: 0 6px 18px rgba(0,146,74,0.12);
    }

.btn-outline-dark {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    border-radius: 8px;
}

    .btn-outline-dark:hover {
        background-color: var(--primary-dark);
        color: #fff;
    }

/* Primary small CTA */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/*=========================
  Form controls
  =========================*/
.form-control {
    border-radius: 10px;
    border: 1px solid var(--border-light);
    padding: .625rem .75rem;
    box-shadow: none;
}

    .form-control:focus {
        border-color: var(--primary-green);
        box-shadow: 0 6px 18px rgba(0,146,74,0.08);
        outline: none;
    }

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.form-text {
    color: var(--muted-gray);
}

/* File upload / upload box */
.upload-box {
    border: 1px dashed var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(248,249,250,0.6), rgba(255,255,255,0.4));
}

    .upload-box .bi {
        font-size: 2rem;
        color: var(--primary-green);
    }

/*=========================
  Cards & surfaces
  =========================*/
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(29,33,36,0.06);
    background: #fff;
}

    .card .card-title {
        color: var(--primary-dark);
        font-weight: 600;
    }

    .card .card-text {
        color: var(--muted-gray);
    }

.card-ghost {
    background: transparent;
    box-shadow: none;
    border: 1px solid var(--border-light);
}

/*=========================
  Navbar
  =========================*/
.navbar-brand {
    font-weight: 700;
    color: var(--primary-dark) !important;
    letter-spacing: -0.01em;
}

.navbar {
    padding: .8rem 1rem;
}

    .navbar .nav-link {
        color: var(--primary-dark);
        font-weight: 500;
    }

        .navbar .nav-link:hover {
            color: var(--primary-green);
        }

/* Mobile menu tweaks */
.navbar-toggler {
    border-radius: 8px;
}

/*=========================
  Hero section
  =========================*/


/* Highlight within hero */
.badge-accent {
    background: rgba(0,146,74,0.08);
    color: var(--primary-green);
    padding: .35rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
}

/*=========================
  Features grid
  =========================*/
.feature-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(29,33,36,0.04);
}

    .feature-icon .bi {
        font-size: 1.6rem;
        color: var(--primary-green);
    }

.feature-card {
    border-radius: 12px;
    padding: 1rem;
}

/*=========================
  Tables
  =========================*/
.table thead th {
    border-bottom: 2px solid var(--border-light);
    color: var(--primary-dark);
}

.table tbody td {
    color: #333;
}

/*=========================
  Footer
  =========================*/
main {
    flex: 1; /* This makes main expand to fill available space */
}

header, footer {
    flex-shrink: 0; /* Prevent header/footer from shrinking */
}

.footer {
    background: var(--primary-dark);
    position: relative;
    bottom: 0;
    width: 100%;
    color: #ADB5BD;
    padding: 2.5rem 0;
    font-size: .95rem;
}

    .footer a {
        color: #CED4DA;
        text-decoration: none;
    }

        .footer a:hover {
            color: var(--primary-green);
        }

    .footer .brand {
        color: #fff;
        font-weight: 700;
    }

    /* Footer small text */
    .footer small {
        color: #99A0A4;
    }

/*=========================
  Utilities & helpers
  =========================*/
.text-primary {
    color: var(--primary-green) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

.shadow-soft {
    box-shadow: 0 8px 28px rgba(29,33,36,0.06) !important;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-3 {
    gap: 1rem;
}

/* small helper for accenting words inside headings */
.h-accent {
    display: inline-block;
    padding: .125rem .35rem;
    border-radius: 6px;
    background: rgba(0,146,74,0.06);
    color: var(--primary-green);
    font-weight: 600;
}

/*=========================
  Responsive tweaks
  =========================*/
@media (max-width:575.98px) {


    .feature-icon {
        width: 56px;
        height: 56px;
    }
}

@media (min-width:576px) and (max-width:991.98px) {

}

/*=========================
  Accessibility & focus
  =========================*/
:focus {
    outline: none;
}

a:focus, button:focus, .form-control:focus {
    box-shadow: 0 6px 18px rgba(0,146,74,0.12);
}

/*=========================
  Dark mode option (toggle with .dark-mode on <body>)
  =========================*/
body.dark-mode {
    background-color: #0f1720;
    color: #E6EEF3;
}

    body.dark-mode .card {
        background-color: #0b1216;
        box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    }

    body.dark-mode .navbar {
        background-color: #071018;
    }

    body.dark-mode .footer {
        background-color: #071018;
        color: #9fb3c2;
    }

    body.dark-mode .text-primary {
        color: var(--primary-green);
    }

    body.dark-mode .form-control {
        background: #0b1216;
        color: #dbeaf2;
        border-color: rgba(255,255,255,0.06);
    }

/*=========================
  Small utilities for devs
  =========================*/
.debug-outline * {
    outline: 1px dashed rgba(0,0,0,0.08);
}

.nav-link span.fw-bold {
    transition: color .2s;
}

.nav-link:hover span.fw-bold {
    color: var(--bs-primary);
}

.navbar .nav-link:hover span.text-muted {
    color: var(--bs-dark) !important;
}

.dropdown-item:hover .fw-bold {
    color: var(--bs-primary);
}

.dropdown-item:hover .text-muted {
    color: var(--bs-dark) !important;
}

.nav-item.active > .nav-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    color: var(--bs-primary) !important;
}

.navbar-nav:hover .nav-item {
    opacity: 0.4;
    filter: blur(1px);
    transition: 0.2s ease;
}

.navbar-nav .nav-item:hover {
    opacity: 1 !important;
    filter: none !important;
}

.dropdown-item.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    color: var(--bs-primary) !important;
}

.nav-link.active,
.dropdown-toggle.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    color: var(--bs-primary) !important;
}

.dropdown-item.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    color: var(--bs-primary) !important;
}
/* ============================
   GLOBAL PRIMARY OVERRIDE
   FOR CHECKBOX, RADIO, SWITCH
   ============================ */

/* Base border color */
.form-check-input {
    border-color: var(--bs-primary);
}

    /* Hover */
    .form-check-input:hover {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
    }

    /* Focus outline (when tabbed/selected) */
    .form-check-input:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
    }

    /* ---------------------------
   CHECKBOX
   --------------------------- */
    .form-check-input[type="checkbox"]:checked {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

    /* Fix checkbox checkmark color */
    .form-check-input[type="checkbox"] {
        --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4.5 8.5l2 2 5-5'/%3e%3c/svg%3e");
    }

    /* ---------------------------
   RADIO
   --------------------------- */
    .form-check-input[type="radio"]:checked {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

    /* ---------------------------
   SWITCH (checkbox type)
   --------------------------- */
    .form-check-input[type="checkbox"].form-switch-input:checked {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

/* Switch handle */
.form-switch .form-check-input:checked {
    background-image: var(--bs-form-switch-bg);
}

/* Optional: smoother switch transition */
.form-check-input {
    transition: all 0.25s ease;
}
/* Default nav link */
.nav-link {
    color: var(--bs-dark);
}

    /* Hover */
    .nav-link:hover {
        color: var(--bs-primary);
    }

    /* Active */
    .nav-link.active,
    .nav-item.active > .nav-link {
        color: var(--bs-primary) !important;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 2px;
    }

a {
    color: var(--bs-primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
        color: var(--bs-primary);
    }

/*.navbar.sticky-top {
    z-index: 1030;*/ /* above everything */
/*backdrop-filter: blur(8px);*/ /* smooth blur */
/* background-color: rgba(255, 255, 255, 0.9); /* transparent white */
/*}*/

.sticky-shadow {
    transition: box-shadow .2s ease-in-out;
}

    .sticky-shadow.scrolled {
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    }
/* Initial navbar style */
#mainNavbar {
    transition: all 0.3s ease;
}

    /* Sticky class added after scroll */
    #mainNavbar.sticky {
        position: fixed;
        padding: 7px 10px !important;
        left: 0;
        right: 0;
        z-index: 1030;
        background-color: white;
    }
/* Reusable sticky class for any element */
.sticky-element {
    transition: all 0.3s ease; /* smooth transition */
    position: relative; /* default */
}

    /* When element becomes sticky */
    .sticky-element.stuck {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        transform: translateY(0);
    }

        /* Optional: Add smooth slide effect */
        .sticky-element.stuck.slide-down {
            transform: translateY(-100%);
            animation: slideDown 0.3s forwards;
        }

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}
/* Square pattern background class - can be applied to any element */
/* ============================================
           SQUARE PATTERN BACKGROUND CLASS
           Apply to any element for grid pattern overlay
           ============================================ */

/* Base pattern class with CSS variables */
.square-bg-pattern {
    position: relative;
    --square-color: 0, 0, 0; /* RGB values for line color (default black) */
    --square-opacity: 0.1; /* Opacity of the lines (0 to 1) */
    --square-size: 30px; /* Size of each square */
    --line-thickness: 1px; /* Thickness of the lines */
    overflow: hidden; /* This keeps pattern inside rounded corners */
    border-radius: inherit; /* Optional: inherits border-radius from parent */
}

    .square-bg-pattern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(var(--square-color), var(--square-opacity)) var(--line-thickness), transparent var(--line-thickness)), linear-gradient(90deg, rgba(var(--square-color), var(--square-opacity)) var(--line-thickness), transparent var(--line-thickness));
        background-size: var(--square-size) var(--square-size);
        pointer-events: none;
        z-index: 1;
    }

    .square-bg-pattern.rounded-squares::before {
        background-image: radial-gradient(circle at 15px 15px, rgba(var(--square-color), var(--square-opacity)) 15px, transparent 15px);
        background-size: var(--square-size) var(--square-size);
    }

    .square-bg-pattern > * {
        position: relative;
        z-index: 2;
    }

    /* ============================================
           PATTERN VARIATIONS (using same variables)
           ============================================ */

    /* Dots pattern */
    .square-bg-pattern.dots {
        --dot-color: 0, 0, 0;
        --dot-opacity: 0.2;
        --dot-size: 30px;
        --dot-radius: 2px;
    }

        .square-bg-pattern.dots::before {
            background-image: radial-gradient(circle at 50% 50%, rgba(var(--dot-color), var(--dot-opacity)) var(--dot-radius), transparent var(--dot-radius));
            background-size: var(--dot-size) var(--dot-size);
        }

    /* Crosshatch pattern */
    .square-bg-pattern.crosshatch {
        --cross-color: 0, 0, 0;
        --cross-opacity: 0.1;
        --cross-size: 30px;
        --cross-thickness: 1px;
    }

        .square-bg-pattern.crosshatch::before {
            background-image: linear-gradient(45deg, rgba(var(--cross-color), var(--cross-opacity)) var(--cross-thickness), transparent var(--cross-thickness)), linear-gradient(-45deg, rgba(var(--cross-color), var(--cross-opacity)) var(--cross-thickness), transparent var(--cross-thickness));
            background-size: var(--cross-size) var(--cross-size);
        }

    /* Double grid pattern */
    .square-bg-pattern.double-grid {
        --grid-color: 0, 0, 0;
        --grid-opacity: 0.1;
        --grid-size: 30px;
        --grid-sub-opacity: 0.05;
        --grid-sub-size: 15px;
    }

        .square-bg-pattern.double-grid::before {
            background-image: linear-gradient(rgba(var(--grid-color), var(--grid-opacity)) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--grid-color), var(--grid-opacity)) 1px, transparent 1px), linear-gradient(rgba(var(--grid-color), var(--grid-sub-opacity)) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--grid-color), var(--grid-sub-opacity)) 1px, transparent 1px);
            background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), var(--grid-sub-size) var(--grid-sub-size), var(--grid-sub-size) var(--grid-sub-size);
            background-position: 0 0, 0 0, calc(var(--grid-sub-size)/2) calc(var(--grid-sub-size)/2), calc(var(--grid-sub-size)/2) calc(var(--grid-sub-size)/2);
        }

/* Animated pattern */
@keyframes squareMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: var(--square-size) var(--square-size);
    }
}

.square-bg-pattern.animated::before {
    animation: squareMove 20s linear infinite;
}

/* ============================================
           PREDEFINED CLASSES (quick presets)
============================================ */

.square-bg-pattern.subtle {
    --square-color: 0, 0, 0;
    --square-opacity: 0.05;
    --square-size: 16px;
    --line-thickness: 0.5px;
}

.square-bg-pattern.bold {
    --square-color: 0, 0, 0;
    --square-opacity: 0.2;
    --square-size: 40px;
    --line-thickness: 2px;
}

.square-bg-pattern.white-subtle {
    --square-color: 255, 255, 255;
    --square-opacity: 0.1;
    --square-size: 30px;
}

.square-bg-pattern.white-bold {
    --square-color: 255, 255, 255;
    --square-opacity: 0.2;
    --square-size: 40px;
    --line-thickness: 2px;
}

.square-bg-pattern.primary-blue {
    --square-color: 64, 128, 255;
    --square-opacity: 0.15;
    --square-size: 35px;
}

/* ============================================
           HERO SECTION STYLES (from your image)
           ============================================ */


.tracking-wide {
    letter-spacing: 2px;
}

.display-3, .display-4 {
    line-height: 1.2;
}

/* Custom button styles for hero */




/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* ============================================
           DEMO SECTION STYLES
           ============================================ */

.demo-box {
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: #333;
}


/* End of theme.css */
