:root {
  --cream: #fffaf0;
  --paper: #f8edd9;
  --green-950: #07331c;
  --green-900: #074d26;
  --green-800: #08662d;
  --green-700: #0d7838;
  --saffron: #f6b800;
  --saffron-soft: #ffd45a;
  --red: #d82e28;
  --blue: #154da8;
  --ink: #241b17;
  --muted: #645a51;
  --line: rgba(36, 27, 23, .16);
  --white: #fff;
  --shadow: 0 24px 70px rgba(52, 35, 18, .16);
  --radius: 30px;
  --max: 1180px;
  --header: 86px;
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body.dialog-open { overflow: hidden; }

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: .8rem 1rem;
  color: var(--white);
  background: var(--green-950);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.pattern-bar {
  height: 10px;
  background:
    linear-gradient(135deg, transparent 0 28%, var(--saffron) 28% 42%, transparent 42% 58%, var(--red) 58% 72%, transparent 72%),
    var(--blue);
  background-size: 46px 16px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header);
  color: var(--green-950);
  background: rgba(255, 250, 240, .96);
  border-bottom: 1px solid rgba(7, 51, 28, .12);
  backdrop-filter: blur(14px);
}

.header-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: var(--header);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--green-900);
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--saffron);
  border-radius: 50% 50% 44% 44%;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
}

.brand-mark::after {
  content: "";
  width: 7px;
  height: 22px;
  position: absolute;
  bottom: -4px;
  background: var(--green-900);
  border-radius: 7px;
}

.brand-copy { line-height: 1; }

.brand-copy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.28rem;
}

.brand-copy small {
  display: block;
  margin-top: .34rem;
  color: var(--blue);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.primary-nav a {
  color: var(--green-950);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:not(.button):hover,
.primary-nav a[aria-current="page"] { color: var(--red); }

.primary-nav .button-green { color: var(--white); }

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  color: var(--white);
  background: var(--green-900);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
}

.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

.button {
  min-height: 48px;
  padding: .85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--green-950);
  background: var(--saffron);
  border: 2px solid var(--saffron);
  border-radius: 999px;
  font-size: .76rem !important;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--saffron-soft);
  box-shadow: 0 12px 30px rgba(246, 184, 0, .24);
  transform: translateY(-2px);
}

.button-green {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.button-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, .72);
}

.button-red {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.button-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}

.hero {
  min-height: min(820px, calc(100vh - var(--header)));
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: var(--white);
  background-color: var(--green-950);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 35, 19, .96) 0%, rgba(5, 35, 19, .88) 39%, rgba(5, 35, 19, .28) 70%, rgba(5, 35, 19, .08) 100%);
}

.home-hero {
  background-image: image-set(
    url("../images/home-hero-1200.webp") 1x,
    url("../images/home-hero-1536.webp") 2x
  );
}

.services-hero {
  background-image: image-set(
    url("../images/services-hero-1200.webp") 1x,
    url("../images/services-hero-1536.webp") 2x
  );
}

.about-hero {
  background-image: image-set(
    url("../images/about-hero-1200.webp") 1x,
    url("../images/about-hero-1536.webp") 2x
  );
}

.contact-hero {
  background-image: image-set(
    url("../images/contact-hero-1200.webp") 1x,
    url("../images/contact-hero-1536.webp") 2x
  );
}

.hero-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.hero-copy {
  width: min(100%, 650px);
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--saffron); }

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--green-950);
  font-family: var(--display);
  font-weight: 900;
  line-height: .98;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  color: var(--white);
  font-size: clamp(3.5rem, 8vw, 7rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
}

h3 {
  margin-bottom: .7rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.accent { color: var(--saffron); }
.red { color: var(--red); }
.blue { color: var(--blue); }

.lead {
  max-width: 58ch;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.06rem, 1.6vw, 1.26rem);
  font-weight: 700;
  line-height: 1.75;
}

.hero .lead { color: #f7efe2; }

.hero-points {
  margin: 2.3rem 0 0;
  padding: 1.35rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.hero-points div { min-width: 0; }

.hero-points strong {
  display: block;
  color: var(--saffron);
  font-family: var(--display);
  font-size: 1.25rem;
}

.hero-points span {
  display: block;
  color: #f2e9dc;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: clamp(4.8rem, 9vw, 8rem) 0;
}

.section-narrow { width: min(calc(100% - 40px), 900px); }

.section-intro {
  max-width: 760px;
  margin-bottom: 2.8rem;
}

.section-intro p:last-child { margin-bottom: 0; }

.cream-band { background: var(--paper); }
.green-band { color: var(--white); background: var(--green-950); }
.green-band h2,
.green-band h3 { color: var(--white); }
.green-band .eyebrow { color: var(--saffron); }

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.split.reverse .media { order: 2; }

.media {
  min-width: 0;
  margin: 0;
  position: relative;
}

.media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media.illustration img {
  object-fit: cover;
  border: 10px solid var(--white);
}

.media figcaption {
  width: min(90%, 560px);
  margin: -2.3rem auto 0;
  padding: 1rem 1.2rem;
  position: relative;
  color: var(--green-950);
  background: var(--saffron);
  border-radius: 18px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 14px 30px rgba(36, 27, 23, .14);
}

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
  list-style: none;
}

.check-list li {
  min-width: 0;
  padding: .8rem 0 .8rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-700);
  font-weight: 900;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  min-width: 0;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(52, 35, 18, .08);
}

.green-band .card {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}

.card-number {
  width: 46px;
  height: 46px;
  margin-bottom: 1.3rem;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--saffron);
  border-radius: 50%;
  font-weight: 900;
}

.pill-list {
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  list-style: none;
}

.pill-list li {
  padding: .55rem .85rem;
  color: var(--green-950);
  background: #f4e7cf;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
}

.promise-strip {
  padding: clamp(3rem, 6vw, 5rem) 0;
  color: var(--white);
  background: var(--blue);
}

.promise-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.promise-strip h2 { max-width: 14ch; margin: 0; color: var(--white); }

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-card,
.request-form {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-card { background: var(--green-950); color: var(--white); }
.contact-card h2,
.contact-card h3 { color: var(--white); }

.contact-list {
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  list-style: none;
}

.contact-list li {
  padding: 1rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field { min-width: 0; display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }

.field label {
  color: var(--green-950);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: .85rem 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(7, 51, 28, .25);
  border-radius: 13px;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(246, 184, 0, .42);
  border-color: var(--green-800);
}

.form-disclosure {
  margin: 1rem 0;
  color: var(--muted);
  font-size: .82rem;
}

.form-status {
  margin: 1rem 0 0;
  padding: 1rem;
  color: var(--green-950);
  background: #e3f2df;
  border-left: 5px solid var(--green-700);
  border-radius: 10px;
  font-weight: 800;
}

.site-footer {
  color: #f5eddf;
  background: #041d11;
}

.footer-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
}

.footer-grid h3 { color: var(--white); font-size: 1.12rem; }
.footer-grid a { color: #f5eddf; text-decoration: none; }
.footer-grid a:hover { color: var(--saffron); }

.footer-links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
  list-style: none;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #b8c8bd;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
}

.dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
}

.dialog::backdrop { background: rgba(3, 24, 13, .78); }

.dialog-header {
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  background: var(--green-950);
}

.dialog-header h2 { margin: 0; color: var(--white); font-size: 2rem; }

.dialog-close,
.assistant-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  cursor: pointer;
}

.dialog .request-form { border: 0; border-radius: 0; box-shadow: none; }

.assistant-launcher {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  min-height: 56px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--white);
  background: var(--green-900);
  border: 2px solid var(--saffron);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .25);
  font-weight: 900;
  cursor: pointer;
}

.assistant-launcher span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--saffron);
  border-radius: 50%;
}

.assistant-panel {
  width: min(390px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 24px));
  position: fixed;
  z-index: 130;
  right: 12px;
  bottom: 12px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(7, 51, 28, .18);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.assistant-header {
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  background: var(--green-950);
  border-radius: 23px 23px 0 0;
}

.assistant-header strong,
.assistant-header small { display: block; }
.assistant-header small { color: #cde0d2; }

.assistant-log {
  max-height: 330px;
  padding: 1rem;
  display: grid;
  gap: .7rem;
  overflow-y: auto;
}

.assistant-message {
  max-width: 88%;
  margin: 0;
  padding: .8rem .9rem;
  background: var(--white);
  border-radius: 16px 16px 16px 5px;
  box-shadow: 0 6px 18px rgba(52, 35, 18, .08);
}

.assistant-message.user {
  margin-left: auto;
  color: var(--white);
  background: var(--blue);
  border-radius: 16px 16px 5px 16px;
}

.assistant-actions {
  padding: 0 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.assistant-choice {
  min-width: 0;
  padding: .75rem;
  color: var(--green-950);
  background: var(--white);
  border: 1px solid rgba(7, 51, 28, .22);
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.assistant-choice:hover,
.assistant-choice:focus-visible {
  background: var(--saffron-soft);
  border-color: var(--saffron);
}

@media (max-width: 980px) {
  .menu-toggle { display: grid; }

  .primary-nav {
    width: min(360px, calc(100% - 28px));
    padding: 1rem;
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: .25rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .75rem; }

  .hero { min-height: 720px; }
  .split,
  .form-shell { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --header: 76px; }
  body { font-size: 15px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 44px; height: 44px; }

  .header-shell,
  .hero-shell,
  .section,
  .promise-shell,
  .footer-shell { width: min(calc(100% - 28px), var(--max)); }

  .hero {
    min-height: 720px;
    background-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 35, 19, .45) 0%, rgba(5, 35, 19, .92) 46%, rgba(5, 35, 19, .99) 100%);
  }

  .home-hero { background-image: url("../images/home-hero-768.webp"); }
  .services-hero { background-image: url("../images/services-hero-768.webp"); }
  .about-hero { background-image: url("../images/about-hero-768.webp"); }
  .contact-hero { background-image: url("../images/contact-hero-768.webp"); }

  h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 14vw, 4rem);
    overflow-wrap: anywhere;
  }

  h2 { font-size: clamp(2.15rem, 11vw, 3.25rem); }

  .hero-points,
  .card-grid,
  .card-grid.two,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .field-wide { grid-column: auto; }
  .button-row .button { width: 100%; }
  .media figcaption { width: 92%; }
  .footer-bottom { flex-direction: column; }

  .assistant-launcher {
    right: 10px;
    bottom: 10px;
  }

  .assistant-launcher span:last-child { display: none; }
  .assistant-actions { grid-template-columns: 1fr; }
}

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