:root {
    --primary: #2a7d18;
    --secondary: #062b5c;
    --accent: #43bd16;
    --ink: #172b3f;
    --muted: #607182;
    --paper: #f4f8f3;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: #fff; font-family: 'DM Sans', sans-serif; }
h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Manrope', sans-serif; }
.text-primary { color: var(--primary) !important; }
.bg-primary, .btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-primary { border-radius: 4px !important; font-weight: 700; box-shadow: 0 10px 24px rgba(12, 62, 53, .16); transition: transform .2s ease, box-shadow .2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(12, 62, 53, .23); }
.topbar { background: var(--secondary); padding: 8px 0; }
.topbar small { color: #fff; }
.topbar .fa { color: var(--accent); }
.navbar { z-index: 1000; box-shadow: 0 6px 24px rgba(18, 49, 38, .08); }
.navbar-brand { min-height: 76px; gap: 10px; color: var(--secondary) !important; font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.navbar-brand img { display: block; width: 58px; height: 58px; object-fit: contain; }
.navbar-brand::after { content: none; }
.brand-wordmark { display: block; color: var(--secondary); font-size: .9rem; font-weight: 800; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase; }
.brand-wordmark small { display: block; margin-top: 4px; color: var(--primary); font-family: 'DM Sans', sans-serif; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.navbar-nav .nav-link { color: #38534a; font-weight: 700; padding: 27px 18px !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary); }

.page-header1, .page-header2, .page-header3, .page-header4 {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 330px;
    margin-bottom: 0 !important;
    background-position: center 54%;
    background-size: cover;
    isolation: isolate;
}
.page-header1 { background-image: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=2000&q=85'); }
.page-header2 { background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2000&q=85'); }
.page-header3 { background-image: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?auto=format&fit=crop&w=2000&q=85'); }
.page-header4 { background-image: url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?auto=format&fit=crop&w=2000&q=85'); }
.page-header1::before, .page-header2::before, .page-header3::before, .page-header4::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, rgba(4, 28, 61, .86), rgba(4, 28, 61, .24)); }
.page-header1 h1, .page-header2 h1, .page-header3 h1, .page-header4 h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }

.counter-wrapper { padding: 30px 0; background: var(--paper); }
.counter-wrapper .counter-container { width: min(1140px, 92%); margin: auto; }
.counter-wrapper .counter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.counter-wrapper .counter-col { min-width: 0; }
.counter-wrapper .counter-box { height: 100%; padding: 25px 14px; text-align: center; background: #fff; border: 1px solid #e1e9e1; border-radius: 4px; }
.counter-wrapper .icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; color: var(--secondary); background: var(--accent); border-radius: 4px; font-size: 21px; }
.counter-wrapper .counter-box h1 { margin-bottom: 5px; color: var(--secondary); font-size: 2.2rem; font-weight: 800; }
.counter-wrapper .counter-box h5 { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 700; }
.about-text h1, .contact-text h1 { color: var(--secondary); font-weight: 800; }
.about-text p, .contact-text p { color: var(--muted); line-height: 1.75; }
.about img { object-fit: cover; }
.about img.founder-portrait { object-position: center 24%; }
.container-xxl.py-5 { padding-top: 76px !important; padding-bottom: 76px !important; }
.container-xxl h1 { color: var(--secondary); font-weight: 800; }
.team-item { height: 100%; padding: 28px 18px !important; background: #fff; border: 1px solid #e1e9e1; border-top: 3px solid var(--primary); border-radius: 4px; box-shadow: 0 12px 30px rgba(17, 53, 39, .06); transition: transform .2s ease, box-shadow .2s ease; }
.team-item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(17, 53, 39, .12); }
.team-item h5 { color: var(--secondary); font-weight: 800; }
.team-item span { color: var(--muted); }

.service-item { height: 100%; background: #fff; border: 1px solid #e1e9e1; border-radius: 4px !important; box-shadow: 0 12px 34px rgba(17, 53, 39, .07); transition: transform .25s ease, box-shadow .25s ease; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(17, 53, 39, .14); }
.service-item > img { width: 100%; height: 220px; object-fit: cover; }
.service-item .position-relative { min-height: 190px; padding-top: 48px !important; }
.service-item h4 { color: var(--secondary); font-size: 1.15rem; font-weight: 800; }
.service-item p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.service-item .service-icon { position: absolute; top: -36px; left: 24px; display: grid; place-items: center; width: 72px; height: 72px; color: var(--secondary); background: var(--accent) !important; border-radius: 4px; box-shadow: 0 0 0 6px #fff; }
.service-item .service-icon i { font-size: 30px; }
.container-fluid.bg-light { background: var(--paper) !important; }
.feature-text h1 { color: var(--secondary); font-weight: 800; }
.feature-text p { color: var(--muted); line-height: 1.7; }
.feature .btn-lg-square { background: var(--primary) !important; border-radius: 4px !important; }

.contact-form .form-control { border: 1px solid #e1e9e1; border-radius: 3px; }
.contact-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 118, 75, .12); }
.contact iframe { min-height: 430px; border: 0; }
.contact .map-directions { position: absolute; right: 16px; bottom: 16px; z-index: 2; padding: 11px 15px; color: var(--secondary); background: #fff; border-radius: 3px; box-shadow: 0 8px 22px rgba(12, 62, 53, .18); font-size: .9rem; font-weight: 800; text-decoration: none; }
.contact .map-directions:hover { color: var(--primary); }
.portfolio-container { align-items: stretch; }
.portfolio-item { transition: opacity .2s ease, transform .2s ease; }
.portfolio-item.is-filtered { display: none; }
.portfolio-img { position: relative; aspect-ratio: 3 / 2; background: var(--paper); border-radius: 4px !important; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portfolio-img:hover img { transform: scale(1.035); }
.portfolio-btn { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 62, 53, .36); opacity: 0; transition: opacity .2s ease; }
.portfolio-img:hover .portfolio-btn, .portfolio-img:focus-within .portfolio-btn { opacity: 1; }
.portfolio-btn .btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; border-color: #fff; }
.portfolio-item h5 { color: var(--secondary); font-size: 1.02rem; font-weight: 700; }
#portfolio-flters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; }
#portfolio-flters li { margin: 0 !important; padding: 9px 16px; color: var(--secondary); background: var(--paper); border: 1px solid #dce6dc; border-radius: 3px; cursor: pointer; font-weight: 700; list-style: none; }
#portfolio-flters li.active, #portfolio-flters li:hover { color: #fff; background: var(--primary); border-color: var(--primary); }

.footer { margin-top: 0 !important; padding-top: 48px !important; background: var(--secondary) !important; }
body .footer { background-color: var(--secondary) !important; }
.footer h5 { color: #fff; font-family: 'Manrope', sans-serif; font-weight: 800; }
.footer p, .footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: var(--accent); }
.footer .btn.btn-link { color: rgba(255,255,255,.78) !important; }
.footer .btn.btn-link:hover { color: var(--accent) !important; }
.footer .btn.btn-primary { color: var(--secondary); background: var(--accent) !important; border-color: var(--accent) !important; }
.footer .copyright { white-space: normal; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: var(--secondary) !important; background: var(--accent) !important; border-color: var(--accent) !important; border-radius: 3px !important; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 767.98px) {
    .topbar { display: none; }
    .navbar-brand { min-height: 66px; padding-left: 18px !important; font-size: 15px; }
    .navbar-nav .nav-link { padding: 12px 18px !important; }
    .page-header1, .page-header2, .page-header3, .page-header4 { min-height: 250px; }
    .counter-wrapper .counter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .counter-wrapper .counter-box { padding: 20px 10px; }
    .container-xxl.py-5 { padding-top: 54px !important; padding-bottom: 54px !important; }
    .service-item > img { height: 205px; }
    .service-item .position-relative { min-height: 0; padding-bottom: 24px !important; }
    .contact iframe { position: relative !important; min-height: 340px; }
    .portfolio-btn { opacity: 1; background: linear-gradient(transparent 65%, rgba(12, 62, 53, .3)); place-items: end center; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}