/* ==========================================================================
   Devicentrix Environmental Services — "Fresh Community Green"
   Bricolage Grotesque + Figtree · pine green + chartreuse
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Figtree:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #F9F8F6;
  --surface: #FFFFFF;
  --surface-tint: #F0F4EE;
  --primary: #0A3B2A;
  --primary-light: #155D44;
  --accent: #D1F34D;
  --accent-hover: #B8D93C;
  --text: #0D2118;
  --muted: #4B6256;
  --border: #E2E8E4;
  --border-dark: rgba(249, 248, 246, 0.16);

  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --r-card: 24px;
  --r-lg: 32px;
  --shadow: 0 8px 32px rgba(10, 59, 42, 0.06);
  --shadow-hover: 0 16px 48px rgba(10, 59, 42, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-weight: 400; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--primary); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--text); }
h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
h4 { font-size: 1.3rem; letter-spacing: -0.02em; }
p { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--muted); font-weight: 400; line-height: 1.55; }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.overline { font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-light); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.overline::before { content: ''; width: 24px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: 15px 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .3s cubic-bezier(.4,0,.2,1), background-color .25s ease, color .25s ease, border-color .25s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--primary); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--dark { background: var(--primary); color: var(--surface); }
.btn--dark:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--surface); transform: translateY(-2px); }
.btn--light { background: transparent; color: var(--surface); border-color: var(--border-dark); }
.btn--light:hover { background: rgba(249,248,246,.12); transform: translateY(-2px); }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }

.badge { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--primary); box-shadow: var(--shadow); }
.badge svg { width: 15px; height: 15px; color: var(--primary-light); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(249,248,246,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: var(--accent); flex-shrink: 0; display: grid; place-items: center; }
.brand__mark svg { width: 25px; height: 25px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--primary); letter-spacing: -0.02em; }
.brand__sub { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links .btn { display: none; }
.nav__link { font-weight: 500; font-size: 0.98rem; color: var(--text); position: relative; padding: 6px 0; transition: color .2s ease; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 999px; background: var(--accent); transition: width .25s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--primary); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--primary); }
.nav__toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0; }
.hero h1 .hl { color: var(--primary-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.hero__meta strong { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary); display: block; letter-spacing: -0.03em; }
.hero__meta span { font-size: 0.86rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(400px, 50vw, 560px); object-fit: cover; border-radius: var(--r-lg); }
.hero__chip { position: absolute; left: -22px; bottom: 30px; background: var(--accent); color: var(--primary); padding: 16px 22px; border-radius: 18px; box-shadow: var(--shadow-hover); max-width: 220px; }
.hero__chip strong { font-family: var(--font-head); font-size: 1.05rem; display: block; }
.hero__chip span { font-size: 0.82rem; opacity: .8; }

/* Mission strip */
.strip { background: var(--primary); color: var(--surface); }
.strip__row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 0; flex-wrap: wrap; }
.strip__item { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.strip__item svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.strip__item span { font-size: 0.96rem; }
.strip__item small { display: block; font-size: 0.78rem; color: #9DBAAD; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 36px 32px; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.step__no { width: 48px; height: 48px; border-radius: 999px; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 22px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.98rem; }

/* Bento impact */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; gap: 18px; }
.bento__cell { border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--border); background: var(--surface); }
.bento__cell--primary { background: var(--primary); color: var(--surface); border-color: var(--primary); }
.bento__cell--accent { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.bento__cell--tint { background: var(--surface-tint); }
.bento__cell--img { padding: 0; overflow: hidden; }
.bento__cell--img img { width: 100%; height: 100%; object-fit: cover; }
.bento__num { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.bento__label { font-size: 0.92rem; margin-top: 8px; opacity: .92; }
.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }

/* Split */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px; align-items: center; }
.split__media img { width: 100%; height: clamp(340px, 42vw, 500px); object-fit: cover; border-radius: var(--r-lg); }
.checklist { margin-top: 26px; display: grid; gap: 15px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.checklist svg { width: 24px; height: 24px; color: var(--primary-light); flex-shrink: 0; margin-top: 2px; }
.checklist strong { color: var(--text); font-weight: 600; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 36px; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--surface-tint); display: grid; place-items: center; margin-bottom: 22px; color: var(--primary); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; }
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; height: 210px; object-fit: cover; }
.card--media .card__body { padding: 30px 32px 34px; }

/* Service feature block */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.svc__media img { width: 100%; height: clamp(320px, 40vw, 460px); object-fit: cover; border-radius: var(--r-lg); }
.svc__tag { display: inline-block; background: var(--surface-tint); color: var(--primary-light); font-weight: 600; font-size: 0.82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }

/* Who we help chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; font-weight: 500; font-size: 0.95rem; color: var(--text); display: inline-flex; align-items: center; gap: 9px; }
.chip svg { width: 16px; height: 16px; color: var(--primary-light); }

/* Band */
.band { background: var(--primary); color: var(--surface); }
.band h2 { color: var(--surface); }
.band p { color: #C6D8CF; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.band__inner .lead { max-width: 600px; color: #C6D8CF; }
.band--accent { background: var(--accent); color: var(--primary); }
.band--accent h2, .band--accent p { color: var(--primary); }
.band--accent .lead { color: #2A4A38; }

/* Page hero */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: clamp(56px, 7vw, 96px) 0; }
.page-hero .lead { max-width: 680px; margin-top: 18px; }
.breadcrumb { font-size: 0.84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary-light); }

/* Values */
.value h4 { margin-bottom: 8px; }
.value p { font-size: 0.98rem; }
.value__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-tint); display: grid; place-items: center; color: var(--primary); margin-bottom: 16px; }
.value__ic svg { width: 24px; height: 24px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact__detail { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact__detail svg { width: 24px; height: 24px; color: var(--primary-light); flex-shrink: 0; margin-top: 3px; }
.contact__detail strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.contact__detail a:hover { color: var(--primary-light); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.field input::placeholder, .field textarea::placeholder { color: #90A69A; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(21,93,68,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; }
.field__error { color: #C0392B; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #C0392B; }
.field.invalid .field__error { display: block; }
.form__note { font-size: 0.86rem; margin-top: 14px; }
.form__success { display: none; background: var(--surface-tint); border: 1px solid var(--primary-light); color: var(--primary); border-radius: 14px; padding: 20px; margin-bottom: 22px; font-weight: 500; }
.form__success.show { display: block; }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.faq__q svg { width: 22px; height: 22px; color: var(--primary-light); transition: transform .3s ease; flex-shrink: 0; }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding-bottom: 24px; }

/* Footer */
.footer { background: var(--primary); color: #C6D8CF; padding: clamp(64px, 8vw, 96px) 0 34px; }
.footer__cta { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 5rem); color: var(--surface); letter-spacing: -0.03em; line-height: 1; margin-bottom: 48px; }
.footer__cta .hl { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; padding-top: 48px; border-top: 1px solid var(--border-dark); }
.footer h4 { color: var(--surface); font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.footer a { color: #9DBAAD; transition: color .2s ease; }
.footer a:hover { color: var(--accent); }
.footer__links { display: grid; gap: 12px; font-size: 0.95rem; }
.footer__brand .brand__name { color: var(--surface); }
.footer__brand .brand__mark { background: var(--accent); color: var(--primary); }
.footer__brand p { color: #9DBAAD; margin-top: 18px; font-size: 0.95rem; max-width: 300px; }
.footer__reg { font-size: 0.9rem; color: #9DBAAD; line-height: 1.9; }
.footer__reg strong { color: var(--surface); font-weight: 600; }
.footer__bottom { border-top: 1px solid var(--border-dark); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: #7C978A; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { order: -1; }
  .hero__chip { left: 16px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .split, .svc, .contact__grid, .cards--2 { grid-template-columns: 1fr; gap: 40px; }
  .svc--rev .svc__media { order: -1; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .strip__row { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .nav__links { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 24px 24px; box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__links .btn { display: inline-flex; margin-top: 10px; width: 100%; justify-content: center; }
  .nav__toggle { display: block; }
  .nav__actions .btn { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 150px; }
  .span-2, .row-2 { grid-column: span 1; grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .hero__media img { height: 340px; }
}
