:root {
  --green-950: #15271c;
  --green-900: #1d3827;
  --green-800: #24452f;
  --green-700: #2f5b3e;
  --green-500: #6f8d62;
  --sage-200: #d8e0d2;
  --sage-100: #e8ede4;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --sand: #d7c8ac;
  --ink: #1d241f;
  --muted: #5d665f;
  --line: rgba(29, 56, 39, 0.17);
  --shadow: 0 24px 60px rgba(17, 34, 23, 0.14);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --header-height: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
section[id] { scroll-margin-top: var(--header-height); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  background: var(--paper);
  border-radius: 8px;
  color: var(--green-900);
  font-weight: 700;
}
.skip-link:focus { transform: none; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.1; }
h1 { max-width: 850px; margin-bottom: 24px; font-size: clamp(3rem, 7.5vw, 6.4rem); font-weight: 500; letter-spacing: -.055em; }
h2 { margin-bottom: 25px; color: var(--green-950); font-size: clamp(2.25rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -.045em; }
h2 span { color: var(--green-700); font-size: .58em; letter-spacing: -.015em; }
h3 { color: var(--green-950); font-size: 1.45rem; font-weight: 600; }
p { margin-top: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(247, 244, 236, .96);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(15, 36, 22, .06);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green-900); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand img { width: 66px; height: 66px; padding: 4px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 3px 16px rgba(10,28,17,.12); }
.site-header:not(.scrolled) .brand { color: white; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 32px); }
.site-nav a { position: relative; color: var(--green-950); font-size: .83rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.site-header:not(.scrolled) .site-nav a { color: white; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: currentColor; transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.site-header:not(.scrolled) .nav-toggle { color: white; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--green-950) url("../img/hero.jpg") center/cover no-repeat; color: white; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 28, 18, .86) 0%, rgba(12, 28, 18, .63) 46%, rgba(12, 28, 18, .2) 82%), linear-gradient(0deg, rgba(10, 22, 15, .55), transparent 50%); }
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--header-height) + 100px); padding-bottom: clamp(130px, 15vh, 180px); }
.hero .eyebrow { color: #dfe8d7; }
.hero-lead { max-width: 720px; margin-bottom: 35px; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 0 25px; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 850; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-800); color: white; }
.button-primary:hover { background: var(--green-700); }
.hero .button-primary { background: white; color: var(--green-950); }
.hero .button-primary:hover { background: var(--sage-100); }
.button-secondary { border-color: rgba(255,255,255,.65); color: white; }
.button-secondary:hover { background: white; color: var(--green-950); }
.scroll-cue { position: absolute; right: max(20px, calc((100vw - 1180px)/2)); bottom: 38px; z-index: 2; display: flex; align-items: center; gap: 10px; color: white; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { font-size: 1.4rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(7px); } }

.about { background: var(--paper); }
.split-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(45px, 8vw, 110px); }
.image-frame { position: relative; }
.image-frame::before { content: ""; position: absolute; inset: 26px -26px -26px 26px; border: 1px solid var(--green-500); border-radius: var(--radius-lg); }
.image-frame img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.section-copy > p:not(.eyebrow) { color: var(--muted); }
.highlight-card { margin-top: 34px; padding: 24px 26px; display: grid; gap: 5px; border-left: 4px solid var(--green-500); background: var(--sage-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.highlight-card strong { color: var(--green-900); }
.highlight-card span { color: var(--muted); }

.services { background: var(--sage-100); }
.section-heading { max-width: 780px; margin-bottom: 55px; }
.section-heading > p:last-child { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 310px; padding: 32px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.62); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.service-card:hover { transform: translateY(-6px); background: var(--paper); box-shadow: 0 22px 45px rgba(20, 45, 29, .09); }
.service-number { margin-bottom: auto; color: var(--green-500); font-family: Georgia, serif; font-size: 1.25rem; }
.service-card h3 { margin: 46px 0 13px; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }

.process { background: var(--green-950); color: white; }
.process h2, .process h3 { color: white; }
.process .eyebrow { color: var(--sage-200); }
.section-heading.compact { margin-bottom: 45px; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.process-list li { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.process-list > li > span { color: var(--sage-200); font-family: Georgia, serif; font-size: 2rem; }
.process-list h3 { margin-bottom: 7px; }
.process-list p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.68); }

.portfolio { background: var(--cream); }
.portfolio-heading { max-width: none; display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 60px; }
.portfolio-heading > p { margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 315px; gap: 16px; }
.gallery-item { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-md); background: var(--green-900); cursor: zoom-in; }
.gallery-item.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, opacity .3s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 27, 17, .72), transparent 55%); }
.gallery-item span { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: white; font-family: Georgia, serif; font-size: 1.25rem; text-align: left; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.045); opacity: .88; }

.quote-section { background: var(--paper); }
.quote-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(45px, 7vw, 90px); align-items: start; }
.quote-intro { position: sticky; top: calc(var(--header-height) + 35px); }
.quote-intro > p:not(.eyebrow) { color: var(--muted); }
.check-list { margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); color: var(--green-900); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green-500); font-weight: 900; }
.quote-form { position: relative; padding: clamp(24px, 5vw, 50px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); box-shadow: 0 22px 65px rgba(17,34,23,.07); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--green-950); font-size: .86rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid rgba(29,56,39,.24); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input, select { min-height: 53px; padding: 0 15px; }
textarea { min-height: 170px; padding: 14px 15px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(47,91,62,.12); }
[aria-invalid="true"] { border-color: #a43c32 !important; box-shadow: 0 0 0 4px rgba(164,60,50,.1) !important; }
.consent { margin: 24px 0; display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; color: var(--muted); font-size: .86rem; cursor: pointer; }
.consent input { width: 18px; min-height: 18px; margin-top: 4px; accent-color: var(--green-700); }
.form-submit { width: 100%; border: 0; }
.form-submit[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-note { margin: 11px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.form-status { display: none; margin-top: 18px; padding: 13px 15px; border-radius: 10px; font-size: .92rem; }
.form-status.success { display: block; background: #e1efe0; color: #24572d; }
.form-status.error { display: block; background: #f7e4e2; color: #8a2f28; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }

.contact { background: var(--sage-100); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 120px); }
.contact-layout .section-heading { margin-bottom: 0; }
.contact-link { display: inline-block; margin-top: 18px; color: var(--green-800); font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.partners { padding: 35px; border-radius: var(--radius-md); background: rgba(255,255,255,.55); }
.partners p { color: var(--muted); }
.partner-links { display: grid; }
.partner-links a { padding: 13px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); color: var(--green-900); font-weight: 750; text-decoration: none; }
.partner-links a:hover { color: var(--green-500); }

.site-footer { padding: 34px 0; background: var(--green-950); color: rgba(255,255,255,.72); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: .85rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: white; text-decoration: none; }
.footer-brand { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; }

.lightbox { width: min(1120px, calc(100% - 30px)); max-width: none; padding: 0; overflow: visible; border: 0; background: transparent; color: white; }
.lightbox::backdrop { background: rgba(5,15,9,.92); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { padding-top: 12px; text-align: center; }
.lightbox-close, .lightbox-nav { position: fixed; z-index: 2; border: 0; color: white; background: rgba(255,255,255,.12); cursor: pointer; }
.lightbox-close { top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-nav { top: 50%; width: 50px; height: 70px; transform: translateY(-50%); border-radius: 12px; font-size: 3rem; line-height: 1; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

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

@media (max-width: 980px) {
  :root { --header-height: 76px; }
  .brand img { width: 56px; height: 56px; }
  .brand span { font-size: 1.08rem; }
  .nav-toggle { position: relative; z-index: 102; display: block; }
  .site-nav { position: fixed; inset: 0; z-index: 101; padding: 120px 30px 50px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; background: var(--cream); transform: translateX(100%); transition: transform .25s ease; }
  .site-nav.open { transform: none; }
  .site-nav a, .site-header:not(.scrolled) .site-nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--green-950); font-family: Georgia, serif; font-size: 1.7rem; letter-spacing: 0; text-transform: none; }
  .site-nav a::after { display: none; }
  .nav-toggle[aria-expanded="true"] { color: var(--green-950) !important; background: var(--sage-100); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .split-layout, .quote-layout, .contact-layout { grid-template-columns: 1fr; }
  .image-frame { max-width: 620px; }
  .quote-intro { position: static; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portfolio-heading { grid-template-columns: 1fr; gap: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.gallery-wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 74px 0; }
  .brand span { display: none; }
  .hero-content { padding-bottom: 120px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(12,28,18,.84), rgba(12,28,18,.38)), linear-gradient(0deg, rgba(10,22,15,.62), transparent 50%); }
  .button-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .scroll-cue { right: 20px; bottom: 25px; }
  .split-layout { gap: 55px; }
  .image-frame::before { inset: 15px -10px -15px 10px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .process-list li { grid-template-columns: 50px 1fr; gap: 10px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 270px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .quote-form { padding: 24px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lightbox-nav { top: auto; bottom: 18px; width: 56px; height: 48px; transform: none; }
}

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