:root {
  --ink: #132018;
  --muted: #5c6b62;
  --paper: #ffffff;
  --mist: #f3f7f2;
  --forest: #183f2a;
  --forest-deep: #0c2819;
  --leaf: #65ad37;
  --leaf-bright: #83c746;
  --line: #dce7dd;
  --shadow: 0 18px 55px rgba(20, 55, 34, .12);
  --radius: 1.1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: .5rem;
  color: white;
  background: var(--forest-deep);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(220, 231, 221, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 70px; height: 70px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: .95rem; letter-spacing: .02em; }
.brand-copy span { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a {
  padding: .65rem .8rem;
  border-radius: .55rem;
  color: #314239;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--forest); background: var(--mist); }
.site-nav .nav-cta { margin-left: .35rem; color: white; background: var(--forest); }
.site-nav .nav-cta:hover { color: white; background: var(--forest-deep); }

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: white;
  color: var(--forest);
}
.menu-button svg { width: 24px; height: 24px; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--leaf);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; color: var(--forest-deep); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: center;
  color: white;
  background: var(--forest-deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 32, 18, .96) 0%, rgba(8, 32, 18, .8) 47%, rgba(8, 32, 18, .18) 100%),
    url('/assets/projects/project-1-1.webp') center 36% / cover;
}
.hero::after {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -10rem;
  bottom: -18rem;
  border: 1px solid rgba(131, 199, 70, .45);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(131, 199, 70, .05), 0 0 0 10rem rgba(131, 199, 70, .035);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; padding-block: 7rem; }
.hero .eyebrow { color: #a8df73; }
.hero h1 { max-width: 780px; color: white; }
.hero-lead { max-width: 680px; margin-top: 1.5rem; color: #dce8df; font-size: clamp(1.05rem, 2vw, 1.25rem); }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #102516; background: var(--leaf-bright); }
.button-primary:hover { background: #97d65a; }
.button-secondary { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.button-secondary:hover { border-color: white; background: rgba(255,255,255,.14); }
.button-dark { color: white; background: var(--forest); }
.button-dark:hover { background: var(--forest-deep); }
.button-outline { color: var(--forest); border-color: var(--forest); background: transparent; }
.button-outline:hover { background: var(--mist); }

.trust-bar { background: var(--forest); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.2rem 1rem; border-right: 1px solid rgba(255,255,255,.12); text-align: center; font-weight: 750; }
.trust-item:last-child { border-right: 0; }
.trust-item span { display: block; color: #abd984; font-size: .72rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-soft { background: var(--mist); }
.section-dark { color: white; background: var(--forest-deep); }
.section-dark h2, .section-dark h3 { color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading > div { max-width: 720px; }
.section-heading p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.section-dark .section-heading p:not(.eyebrow) { color: #cfe0d3; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 30px rgba(23, 54, 34, .05);
}
.service-number { display: block; margin-bottom: 1.7rem; color: var(--leaf); font-weight: 900; }
.service-card p { margin-top: .7rem; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-photo { position: relative; }
.feature-photo img { width: 100%; aspect-ratio: 4 / 3; border-radius: 1.4rem; object-fit: cover; box-shadow: var(--shadow); }
.feature-note { position: absolute; right: -1rem; bottom: -1rem; max-width: 235px; padding: 1rem 1.15rem; border-radius: .8rem; color: white; background: var(--forest); box-shadow: var(--shadow); font-weight: 800; }
.feature-copy > p:not(.eyebrow) { margin-top: 1.1rem; color: var(--muted); }
.check-list { display: grid; gap: .8rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 1.35rem 1fr; gap: .7rem; }
.check-list li::before { content: "✓"; color: var(--leaf); font-weight: 950; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(16, 49, 27, .07);
}
.project-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-body { padding: 1.25rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .65rem; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.project-body p { margin-top: .7rem; color: var(--muted); }
.project-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.text-link, .gallery-button { padding: 0; border: 0; color: var(--forest); background: none; font-weight: 900; text-decoration: underline; text-decoration-color: #9fc98d; text-underline-offset: .23rem; cursor: pointer; }

.page-hero { padding-block: clamp(4rem, 9vw, 7rem); color: white; background: var(--forest-deep); }
.page-hero h1 { color: white; font-size: clamp(2.7rem, 7vw, 5.2rem); }
.page-hero p:not(.eyebrow) { max-width: 710px; margin-top: 1.2rem; color: #d5e5d8; font-size: 1.15rem; }

.project-intro { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 2.2rem; }
.project-intro p { max-width: 680px; color: var(--muted); }
.project-count { color: var(--forest); font-weight: 900; }

.project-grid-full .project-card { display: flex; flex-direction: column; }
.project-grid-full .project-body { display: flex; flex: 1; flex-direction: column; }
.project-grid-full .project-actions { margin-top: auto; padding-top: 1rem; }

.gallery-dialog {
  width: min(1040px, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.1rem;
  background: white;
  box-shadow: 0 24px 90px rgba(0,0,0,.35);
}
.gallery-dialog::backdrop { background: rgba(4, 17, 9, .78); backdrop-filter: blur(4px); }
.dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: white; }
.dialog-head h2 { font-size: 1.35rem; }
.dialog-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--forest); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dialog-content { padding: 1rem; }
.dialog-meta { margin: 0 0 1rem; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; border-radius: .7rem; object-fit: cover; background: var(--mist); }
.gallery-grid img.is-portrait { aspect-ratio: 3 / 4; }
.dialog-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 0 .3rem; }

.contact-strip { color: white; background: var(--forest); }
.contact-strip-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-block: 3rem; }
.contact-strip h2 { color: white; font-size: clamp(1.8rem, 4vw, 3rem); }
.contact-strip p { margin-top: .6rem; color: #d7e6da; }
.contact-strip .button-row { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.contact-card span { display: block; color: var(--leaf); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { display: block; margin-top: .35rem; color: var(--forest-deep); font-size: 1.18rem; }
.contact-card a { text-decoration-color: #a8c99a; text-underline-offset: .2rem; }

.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-detail { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.service-detail p { margin-top: .7rem; color: var(--muted); }

.site-footer { padding-block: 3rem 1.5rem; color: #d2dfd5; background: #091d12; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 88px; height: 88px; object-fit: contain; border-radius: .6rem; background: white; }
.footer-brand strong { color: white; }
.footer-col h2 { color: #93cf61; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: .45rem; margin-top: .7rem; }
.footer-links a { width: fit-content; text-decoration-color: #51735d; text-underline-offset: .2rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.11); color: #9eb2a3; font-size: .85rem; }

:focus-visible { outline: 3px solid #86c950; outline-offset: 3px; }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .site-nav { position: absolute; top: 86px; right: 1rem; left: 1rem; display: none; padding: .6rem; border: 1px solid var(--line); border-radius: .9rem; background: white; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .services-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .contact-strip-inner { grid-template-columns: 1fr; }
  .contact-strip .button-row { margin-top: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 1.2rem, 1160px); }
  .nav-wrap { min-height: 76px; }
  .brand img { width: 58px; height: 58px; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy span { font-size: .65rem; }
  .site-nav { top: 76px; }
  .hero { min-height: 610px; }
  .hero::before { background: linear-gradient(180deg, rgba(8,32,18,.88), rgba(8,32,18,.98)), url('/assets/projects/project-1-1.webp') center / cover; }
  .hero-content { padding-block: 5.2rem; }
  .button-row, .button { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust-item:last-child { border-bottom: 0; }
  .services-grid, .project-grid, .service-detail-grid, .contact-grid, .footer-grid, .gallery-grid { grid-template-columns: 1fr; }
  .section-heading, .project-intro, .footer-bottom { align-items: start; flex-direction: column; display: flex; }
  .feature-note { right: .5rem; bottom: -.8rem; }
  .footer-grid > :first-child { grid-column: auto; }
  .dialog-footer { align-items: stretch; flex-direction: column; }
  .dialog-footer .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
