/* Green Machine Services — main stylesheet */

:root {
  --green-900: #12321a;
  --green-800: #1a4423;
  --green-700: #235c2e;
  --green-600: #2c7a3a;
  --green-500: #3c9a4c;
  --lime-500: #9bd648;
  --lime-600: #82c236;
  --ink: #16201a;
  --ink-soft: #4a564d;
  --paper: #f7f8f3;
  --paper-alt: #eef1e8;
  --white: #ffffff;
  --line: #e2e6da;
  --shadow: 0 10px 30px rgba(18, 50, 26, 0.10);
  --shadow-sm: 0 4px 14px rgba(18, 50, 26, 0.08);
  --radius: 14px;
  --maxw: 1180px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--green-900); color: #dfe8dd; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b9c7b6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-600);
  background: rgba(155, 214, 72, .12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--lime-500); background: rgba(155,214,72,.14); }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime-500); color: var(--green-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--lime-600); box-shadow: var(--shadow); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-700); }
.btn-ghost { border-color: var(--green-700); color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-call { background: #fff; border-color: var(--green-700); color: var(--green-800); padding: 11px 20px 11px 16px; font-size: .92rem; }
.btn-call svg { width: 16px; height: 16px; }
.btn-call:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 243, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--green-900); }
.brand-text span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.header-cta-mobile { display: none; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--lime-500);
  transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--green-800); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--green-900);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; z-index: 95; top: 70px; left: 0; right: 0; height: calc(100vh - 70px); height: calc(100dvh - 70px); background: var(--paper); flex-direction: column; align-items: stretch; padding: 20px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; overflow-y: auto; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .header-cta .btn-primary, .header-cta .btn-call { display: none; }
  .main-nav .header-cta-mobile { display: block; margin-top: 18px; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Floating mobile action bar ===== */
.mobile-actionbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 74px; }
  .mobile-actionbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(18, 50, 26, .12);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .mobile-actionbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 600;
    color: var(--green-800);
    transition: background .15s ease;
  }
  .mobile-actionbar a svg { width: 20px; height: 20px; }
  .mobile-actionbar a:active { background: var(--paper-alt); }
  .mobile-actionbar a.primary { background: var(--lime-500); color: var(--green-900); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,50,26,.78) 0%, rgba(18,50,26,.55) 40%, rgba(18,50,26,.88) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; padding: 90px 0; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .4em; }
.hero p.lead { color: #e7ecdf; font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.page-hero {
  position: relative;
  color: #fff;
  padding: 150px 0 70px;
  background-size: cover;
  background-position: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,50,26,.82), rgba(18,50,26,.72)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .3em; }
.page-hero p { color: #dbe6d7; max-width: 560px; font-size: 1.05rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--lime-500); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 14px; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--green-900); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 0;
}
.trust-item { display: flex; align-items: center; gap: 12px; color: #dbe6d7; font-size: .92rem; font-weight: 500; }
.trust-item svg { flex-shrink: 0; color: var(--lime-500); width: 26px; height: 26px; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon-badge { margin-bottom: 18px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: .95rem; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--green-700); font-size: .9rem; }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-700), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--lime-500);
}
.icon-badge svg { width: 28px; height: 28px; }

/* ===== Split section ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } .split.reverse .split-media { order: 0; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-media.stack { position: relative; }
.check-list { margin: 22px 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--lime-600); margin-top: 2px; }

/* ===== Service rows (services page) ===== */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-media { order: 2; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; } .service-row.reverse .service-media { order: 0; } }
.service-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.service-num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--lime-600); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; display: block; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); position: relative; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid a::after { content: '+'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; background: rgba(18,50,26,0); opacity: 0; transition: opacity .2s ease, background .2s ease; font-family: var(--font-head); }
.gallery-grid a:hover::after { opacity: 1; background: rgba(18,50,26,.28); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; background: rgba(10,20,12,.92); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 1.4rem; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 1.6rem; cursor: pointer; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }

/* ===== Testimonials / stats ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat h3 { font-size: 2.2rem; color: var(--lime-500); margin-bottom: 4px; }
.stat p { color: #b9c7b6; margin: 0; font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  border-radius: 20px;
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.cta-banner p { color: #cfe0cc; margin: 0; }

/* ===== Forms ===== */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: 7px; color: var(--green-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(60,154,76,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .checkbox-grid { grid-template-columns: repeat(2, 1fr); } }
.chk { display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: .88rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.chk:has(input:checked) { border-color: var(--lime-600); background: rgba(155,214,72,.12); }
.chk input { accent-color: var(--green-700); }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 16px; }
.form-success { display: none; background: rgba(155,214,72,.15); border: 1.5px solid var(--lime-600); color: var(--green-900); padding: 16px 18px; border-radius: 12px; font-weight: 500; margin-bottom: 20px; }
.form-success.show { display: block; }

/* ===== Contact page info ===== */
.contact-info-list { margin-top: 6px; }
.contact-info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.contact-info-list .icon-badge svg { width: 22px; height: 22px; }
.contact-info-list strong { display: block; font-family: var(--font-head); color: var(--green-900); margin-bottom: 2px; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--green-800); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease; }
.social-btn:hover { background: var(--lime-600); color: var(--green-900); transform: translateY(-3px); }
.social-btn svg { width: 20px; height: 20px; }

/* ===== Team / value cards ===== */
.value-card { text-align: left; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: #b9c7b6; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 10px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.05rem; }
.footer-col h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: .92rem; color: #b9c7b6; transition: color .15s ease; }
.footer-col a:hover { color: var(--lime-500); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: .82rem; color: #8ba087; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #8ba087; }
.footer-bottom a:hover { color: var(--lime-500); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--paper-alt); color: var(--green-800); border: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
