:root {
  --ink: #24231f;
  --muted: #6d6860;
  --paper: #f7f3eb;
  --surface: #fffaf2;
  --line: #ded4c3;
  --sage: #5d7565;
  --sage-dark: #32473c;
  --clay: #b8755b;
  --blue: #58718a;
  --shadow: 0 24px 70px rgba(46, 38, 29, 0.12);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 235, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 212, 195, 0.8);
}

.home-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--sage-dark);
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.home-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.home-button:hover {
  background: #fff;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav a,
.footer-links a,
.header-cta {
  text-decoration: none;
}

.nav a,
.footer-links a {
  color: var(--muted);
}

.nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  min-height: 42px;
  padding: 9px 15px;
  color: #fff;
  background: var(--sage-dark);
  border: 1px solid var(--sage-dark);
  border-radius: 8px;
  font-weight: 600;
}

.header-cta:hover {
  background: var(--sage);
  border-color: var(--sage);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 46vw);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 72px) 36px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--sage-dark);
  line-height: 1.2;
}

.sublead {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--sage);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--sage-dark);
  color: #fff;
  border-color: var(--sage-dark);
}

.button.ghost {
  background: transparent;
  color: var(--sage-dark);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.hero-photo {
  min-height: min(680px, calc(100vh - 140px));
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(36, 35, 31, 0.04), rgba(36, 35, 31, 0.22)), url("../images/portrait-office.jpeg") center 32% / cover;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(64px, 10vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.text-block {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.image-panel {
  min-height: 560px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel.field {
  background: url("../images/portrait-field.jpeg") center / cover;
}

.compact {
  max-width: 620px;
}

.note,
.payment-note {
  padding: 16px 18px;
  color: var(--sage-dark);
  background: rgba(93, 117, 101, 0.1);
  border: 1px solid rgba(93, 117, 101, 0.2);
  border-radius: 8px;
}

.requests {
  background: #edf0eb;
}

.request-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-grid article {
  min-height: 124px;
  padding: 22px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(222, 212, 195, 0.9);
  border-radius: 8px;
}

.request-grid article {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 13px 16px 13px 18px;
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid rgba(222, 212, 195, 0.9);
  border-left: 4px solid rgba(184, 117, 91, 0.72);
  border-radius: 8px;
  color: var(--sage-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(46, 38, 29, 0.05);
}

.education {
  background: var(--surface);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
  max-width: 1040px;
}

.timeline div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-weight: 800;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

.service-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.service-grid p {
  color: var(--muted);
}

.service-grid strong {
  margin-top: auto;
  color: var(--sage-dark);
  font-size: 18px;
}

.payment-note {
  max-width: 760px;
  margin: 24px 0 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 560px);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(64px, 10vw, 118px) clamp(18px, 5vw, 72px);
  background: var(--sage-dark);
  color: #fff;
}

.contact-copy {
  max-width: 640px;
}

.contact-copy .eyebrow,
.contact-copy a {
  color: #dfe8df;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: #dfe8df;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  color: var(--ink);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(20, 28, 23, 0.25);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-form [hidden] {
  display: none !important;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: 2px solid rgba(93, 117, 101, 0.3);
  border-color: var(--sage);
}

.check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.check input {
  min-height: 18px;
  margin-top: 3px;
}

.check a {
  color: var(--sage-dark);
}

.contact-form small {
  min-height: 16px;
  color: #a13f35;
  font-size: 13px;
  font-weight: 500;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.form-status[data-type="success"] {
  color: #2f6f44;
}

.form-status[data-type="error"] {
  color: #a13f35;
}

.success-toast {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  background: rgba(36, 35, 31, 0.14);
}

.success-toast[hidden] {
  display: none !important;
}

.success-toast div {
  padding: 18px 28px;
  color: #fff;
  background: var(--sage-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 28, 23, 0.28);
  font-size: 20px;
  font-weight: 800;
}

.legal-page {
  max-width: 920px;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.legal-page h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-page p {
  color: var(--muted);
}

.legal-page a {
  color: var(--sage-dark);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #efe7da;
  border-top: 1px solid var(--line);
}

.footer div:first-child,
.footer-links {
  display: grid;
  gap: 6px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .intro,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    min-height: 560px;
    order: -1;
  }

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

  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-cta {
    font-size: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-photo,
  .image-panel {
    min-height: 420px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .request-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
