/* QUICK CUSTOMIZATION
   Edit the palette and type settings here for site-wide changes.
   The service colors below control matching homepage and service-page accents. */
:root {
  color-scheme: light;
  --forest: #25271f;
  --forest-soft: #34372d;
  --ink: #2b2924;
  --muted: #79756c;
  --cream: #f3efe6;
  --paper: #faf8f2;
  --accent: #c89e68;
  --olive: #85856b;
  --line: #ded9cf;
  --service-boundary: #d3aa78;
  --service-topographic: #91b9b2;
  --service-construction: #d8a083;
  --service-litigation: #b6a4ce;
  --small-text-scale: 1.3;
  --font-display: "Montserrat", "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

/* BASE / RESET */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { color: var(--forest); background: var(--accent); }
.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; }

/* HEADER / BRAND / NAVIGATION
   Header height and horizontal padding are set on .site-header. */
.site-header { height: 82px; padding: 0 7.1%; display: flex; align-items: center; justify-content: space-between; background: var(--paper); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--forest); }
.brand-logo { display: none; max-width: 48px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.brand-logo.is-loaded { display: block; }
.brand-logo.is-loaded + .brand-fallback { display: none; }
.brand-fallback { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 35px; height: 35px; display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: "Montserrat", var(--font-body); font-size: calc(13px * var(--small-text-scale)); font-weight: 600; letter-spacing: .01em; line-height: 1.15; transform: scaleX(1.05); }
.navigation { display: flex; gap: 34px; align-items: center; }
.navigation > a:not(.button) { color: #5b5a50; font-size: calc(12px * var(--small-text-scale)); font-weight: 500; transition: color .2s ease; }
.navigation > a:not(.button):hover { color: var(--forest); }

/* BUTTONS / LINKS */
.button { min-height: 46px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 0; font-size: calc(11px * var(--small-text-scale)); font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--forest); }
.button-dark:hover { background: var(--forest-soft); }
.button-lime { color: var(--forest); background: var(--accent); }
.button-lime:hover { background: #d7b17f; }
.button span, .text-link span, .service-card a span, .contact-email span { font-size: 15px; }
.nav-cta { min-height: 40px; margin-left: 4px; font-size: calc(10px * var(--small-text-scale)); }
.menu-toggle { display: none; }

/* HOME HERO
   Adjust min-height, height, and max-height to change the banner size. */
.hero { position: relative; min-height: 630px; height: min(720px, calc(100svh - 82px)); max-height: 760px; display: flex; align-items: center; overflow: hidden; color: white; background: var(--forest); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("background.jpg") center 48% / cover; transform: scale(1.015); }
.hero-shade { background: linear-gradient(90deg, rgba(30, 28, 23, .89) 0%, rgba(30, 28, 23, .71) 39%, rgba(30, 28, 23, .12) 100%), linear-gradient(0deg, rgba(30, 28, 23, .28), transparent 34%); }
.hero-content { position: relative; width: min(850px, 85%); margin-left: 12%; padding: 35px 0 51px; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; color: #706f60; font-size: calc(9px * var(--small-text-scale)); font-weight: 700; letter-spacing: .17em; }
.eyebrow > span { width: 20px; height: 1px; display: inline-block; background: var(--olive); }
.eyebrow-light { color: rgba(255,255,255,.72); }
.eyebrow-light > span { background: var(--accent); }
.hero h1, .section-heading h2, .intro h2, .about h2, .project-content h2, .contact h2 { margin: 27px 0 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -.065em; }
.hero h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: 1.02; }
.hero h1 span, .section-heading h2 span, .intro h2 span, .about h2 span, .contact h2 span { color: var(--accent); }
.hero-copy { max-width: 380px; margin: 23px 0 0; color: rgba(255,255,255,.8); font-size: calc(13px * var(--small-text-scale)); line-height: 1.85; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; gap: 25px; }
.hero-actions .button { min-height: 49px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); font-size: calc(11px * var(--small-text-scale)); font-weight: 700; }
.text-link-light { color: white; }
.text-link span, .service-card a span { transition: transform .2s ease; }
.text-link:hover span, .service-card a:hover span { transform: translate(2px, -2px); }
.hero-note { position: absolute; right: 7%; bottom: 56px; display: flex; gap: 13px; align-items: flex-start; color: rgba(255,255,255,.8); font-size: calc(9px * var(--small-text-scale)); line-height: 1.7; }
.hero-note-line { width: 24px; height: 1px; margin-top: 7px; background: var(--accent); }
.hero-index { position: absolute; left: 7%; bottom: 57px; color: rgba(255,255,255,.55); font-size: calc(10px * var(--small-text-scale)); letter-spacing: .12em; }
.hero-index span { color: var(--accent); }

/* SHARED CONTENT WIDTH / INTRO
   .section-wrap controls content gutters; .intro controls its section spacing. */
.section-wrap { padding-left: 12%; padding-right: 12%; }
.intro { position: relative; display: grid; grid-template-columns: 1fr 2.45fr; gap: 7%; padding-top: 88px; padding-bottom: 86px; }
.intro-label { display: flex; flex-direction: column; justify-content: space-between; }
.vertical-label { color: #a0a297; font-size: calc(8px * var(--small-text-scale)); font-weight: 600; letter-spacing: .17em; writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; }
.intro h2 { max-width: 640px; margin-top: 0; font-size: clamp(38px, 5vw, 61px); line-height: 1.1; }
.intro h2 span { color: var(--olive); }
.intro-bottom { margin-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.intro-bottom p { max-width: 445px; margin: 0; color: #71766e; font-size: calc(12px * var(--small-text-scale)); line-height: 1.9; }
.intro-number { position: absolute; right: 7%; bottom: 35px; color: #b7baae; font-size: calc(9px * var(--small-text-scale)); letter-spacing: .15em; }
.intro-number span { padding: 0 7px; color: #a3a599; }

/* SERVICES
   Service accent colors are set in :root under --service-*.
   Adjust .services padding or .service-card min-height to change spacing. */
.services { padding-top: 78px; padding-bottom: 84px; color: white; background: var(--forest); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; }
.section-heading h2 { margin-top: 24px; font-size: clamp(43px, 5.4vw, 66px); line-height: 1.08; }
.section-heading h2 span { color: #c2b797; }
.section-heading-copy { max-width: 275px; margin: 0 0 5px; color: rgba(255,255,255,.65); font-size: calc(11px * var(--small-text-scale)); line-height: 1.85; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 43px; border-top: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.service-card { min-height: 250px; padding: 21px 23px 21px 0; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.service-card + .service-card { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.17); }
.service-card--boundary, .service-page--boundary { --service-accent: var(--service-boundary); }
.service-card--topographic, .service-page--topographic { --service-accent: var(--service-topographic); }
.service-card--construction, .service-page--construction { --service-accent: var(--service-construction); }
.service-card--litigation { --service-accent: var(--service-litigation); }
.service-card::before { position: absolute; top: 0; left: 0; width: 38px; height: 2px; background: var(--service-accent); content: ""; }
.service-number { align-self: flex-end; color: var(--service-accent); font-size: calc(9px * var(--small-text-scale)); letter-spacing: .12em; }
.service-icon { width: 42px; height: 42px; margin-top: 10px; color: var(--service-accent); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin: 23px 0 9px; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.service-card p { margin: 0; color: rgba(255,255,255,.61); font-size: calc(10px * var(--small-text-scale)); line-height: 1.8; }
.service-card a { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 10px; color: var(--service-accent); font-size: calc(9px * var(--small-text-scale)); font-weight: 700; }

/* PROFESSIONAL OVERSIGHT
   Adjust .about padding for section spacing and .about-image height for image size. */
.about { padding-top: 90px; padding-bottom: 90px; display: grid; grid-template-columns: 1fr .87fr; gap: 10%; align-items: center; }
.about-image { position: relative; min-height: 460px; background: #d6cbb7; }
.about-image::after { position: absolute; inset: 15px -15px -15px 15px; border: 1px solid #c8b99f; content: ""; z-index: -1; }
.about-image img { width: 100%; height: 460px; display: block; object-fit: cover; filter: saturate(.75); }
.image-caption, .image-coordinate { position: absolute; color: white; z-index: 1; text-shadow: 0 1px 5px rgba(0,0,0,.4); }
.image-caption { left: 23px; bottom: 24px; font-size: calc(8px * var(--small-text-scale)); font-weight: 700; letter-spacing: .16em; }
.image-coordinate { right: 20px; bottom: 25px; font-size: calc(7px * var(--small-text-scale)); letter-spacing: .08em; }
.about-copy { padding: 12px 0; }
.about h2 { margin-top: 24px; font-size: clamp(40px, 4.7vw, 58px); line-height: 1.09; }
.about h2 span { color: var(--olive); }
.about-description { margin: 20px 0 27px; color: #71766e; font-size: calc(11px * var(--small-text-scale)); line-height: 1.9; }
.values-list { margin-bottom: 25px; border-top: 1px solid var(--line); }
.values-list > div { display: grid; grid-template-columns: 33px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.values-list > div > span { padding-top: 2px; color: var(--olive); font-size: calc(9px * var(--small-text-scale)); font-weight: 700; }
.values-list p { margin: 0; color: #777c73; font-size: calc(9px * var(--small-text-scale)); line-height: 1.75; }
.values-list strong { color: var(--ink); font-size: calc(11px * var(--small-text-scale)); font-weight: 700; }

/* SELECTED PROJECTS
   Adjust .work padding for section spacing and .project-card min-height for card size. */
.work { padding-top: 80px; padding-bottom: 82px; background: #efebe2; }
.work-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.work-heading h2 { margin: 24px 0 0; font-family: var(--font-display); font-size: clamp(43px, 5.2vw, 62px); font-weight: 500; letter-spacing: -.06em; line-height: 1.08; }
.work-heading h2 span { color: var(--olive); }
.work-heading > .text-link { margin-bottom: 6px; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 35px; border-top: 1px solid #d8d1c5; border-bottom: 1px solid #d8d1c5; }
.project-card { min-height: 230px; padding: 20px 20px 18px 0; display: flex; flex-direction: column; align-items: flex-start; }
.project-card + .project-card { padding-left: 20px; border-left: 1px solid #d8d1c5; }
.project-type, .project-location { color: #85816a; font-size: calc(8px * var(--small-text-scale)); font-weight: 700; letter-spacing: .12em; line-height: 1.6; }
.project-card h3 { margin: 21px 0 9px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.project-card p { margin: 0; color: #73776e; font-size: calc(10px * var(--small-text-scale)); line-height: 1.8; }
.project-location { margin-top: auto; padding-top: 15px; color: #888b80; font-size: calc(7px * var(--small-text-scale)); }

/* FAQ */
.faq-section { padding-top: 76px; padding-bottom: 80px; background: #efebe2; }
.faq-heading { max-width: 760px; margin-bottom: 32px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-card { padding: 22px; border-top: 2px solid var(--olive); background: var(--paper); }
.faq-card h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.25; }
.faq-card p { margin: 0; color: #73776e; font-size: calc(11px * var(--small-text-scale)); line-height: 1.8; }

/* SERVICE AREA STATS
   Adjust .stats min-height to change the space around these metrics. */
.stats { min-height: 160px; display: grid; grid-template-columns: repeat(2, 1fr) 1.2fr; align-items: center; gap: 25px; }
.stat strong { font-family: var(--font-display); font-size: 39px; font-weight: 500; letter-spacing: -.06em; }
.stat strong span { color: var(--olive); font-size: 26px; }
.stat:first-child strong { font-size: 30px; }
.stat:first-child strong span { font-size: 21px; }
.stat:nth-child(3) strong { font-size: 30px; }
.stat p { margin: 4px 0 0; color: #82867d; font-size: calc(9px * var(--small-text-scale)); }
.stats-note { display: flex; gap: 12px; align-items: flex-start; justify-self: end; }
.stats-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #a2936d; }
.stats-note p { margin: 0; color: #777c73; font-size: calc(9px * var(--small-text-scale)); line-height: 1.8; }

/* CONTACT / QUOTE FORM
   Adjust .contact padding for section spacing. Form field spacing and control heights
   are grouped below. */
.contact { padding: 76px 8% 78px; color: white; background: #2a2c23; }
.contact-inner { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: 1fr .83fr; gap: 13%; align-items: start; }
.contact h2 { margin-top: 24px; font-size: clamp(48px, 5vw, 67px); line-height: 1.04; }
.contact h2 span { color: var(--accent); }
.contact-copy > p:not(.eyebrow) { max-width: 350px; margin: 19px 0 26px; color: rgba(255,255,255,.67); font-size: calc(11px * var(--small-text-scale)); line-height: 1.85; }
.contact-details { padding-top: 9px; border-top: 1px solid rgba(255,255,255,.22); }
.contact-details > div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.contact-details > div > span { color: var(--accent); font-size: calc(8px * var(--small-text-scale)); font-weight: 700; letter-spacing: .15em; }
.contact-details p { margin: 6px 0 0; color: rgba(255,255,255,.84); font-size: calc(11px * var(--small-text-scale)); }
.contact-details .contact-note { margin-top: 16px; color: rgba(255,255,255,.48); font-size: calc(9px * var(--small-text-scale)); line-height: 1.8; }
.quote-section .contact-inner { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 8%; }
.quote-aside { padding-top: 23px; }
.quote-aside .contact-copy h2 { max-width: 440px; font-size: clamp(43px, 4.6vw, 61px); }
.quote-aside .contact-details { margin-top: 43px; }
.contact-details a { transition: color .2s ease; }
.contact-details a:hover { color: var(--accent); }
.quote-form { padding: clamp(24px, 4vw, 43px); color: var(--ink); background: var(--paper); }
.quote-form-intro { margin: 0 0 23px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.quote-form-intro span { color: #777c73; font-family: var(--font-body); font-size: calc(9px * var(--small-text-scale)); font-weight: 400; }
.quote-field { min-width: 0; margin-bottom: 17px; }
.quote-field label { margin-bottom: 7px; display: block; color: #3a433b; font-size: calc(10px * var(--small-text-scale)); font-weight: 700; }
.quote-field label > span:not(.optional) { color: #99744a; }
.quote-field label .optional { color: #82867d; font-size: calc(9px * var(--small-text-scale)); font-weight: 400; }
.quote-field input, .quote-field select, .quote-field textarea { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--ink); outline: none; border: 1px solid #d8d1c5; border-radius: 0; background: #fffdf8; font-family: var(--font-body); font-size: calc(11px * var(--small-text-scale)); transition: border-color .2s, box-shadow .2s; }
.quote-field textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.quote-field input::placeholder, .quote-field textarea::placeholder { color: #92958d; }
.quote-field input:focus, .quote-field select:focus, .quote-field textarea:focus { border-color: #85856b; box-shadow: 0 0 0 2px rgba(133,133,107,.18); }
.quote-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.quote-honeypot { display: none; }
.quote-submit { cursor: pointer; }
.quote-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.quote-status { min-height: 18px; margin: 13px 0 0; font-size: calc(10px * var(--small-text-scale)); line-height: 1.7; }
.quote-status:empty { display: none; }
.quote-status.is-success { color: #267343; }
.quote-status.is-error { color: #a53a35; }

/* FOOTER */
.site-footer { min-height: 92px; padding: 18px 7.1%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand .brand-mark { width: 29px; height: 29px; }
.footer-brand .brand-logo { max-width: 40px; max-height: 40px; }
.footer-brand .brand-name { font-size: calc(11px * var(--small-text-scale)); }
.site-footer > p, .copyright, .back-to-top { color: #7c8078; font-size: calc(8px * var(--small-text-scale)); }
.back-to-top { font-weight: 700; }

/* SERVICE PAGES
   Adjust hero padding and .service-page-body padding to tune page spacing. */
.service-page-hero { padding-top: 78px; padding-bottom: 82px; border-top: 3px solid var(--service-accent); background: var(--cream); }
.service-page-hero .eyebrow a { color: inherit; }
.service-page-hero h1 { max-width: 950px; margin: 24px 0 0; font-family: var(--font-display); font-size: clamp(42px, 6vw, 76px); font-weight: 500; letter-spacing: -.06em; line-height: 1.06; }
.service-page-hero h1::after { width: 52px; height: 3px; margin-top: 22px; display: block; background: var(--service-accent); content: ""; }
.service-page-hero .eyebrow > span { background: var(--service-accent); }
.service-page-hero .button-lime { background: var(--service-accent); }
.service-page-lead { max-width: 700px; margin: 22px 0 26px; color: #69675e; font-size: calc(15px * var(--small-text-scale)); line-height: 1.8; }
.service-page-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .7fr); gap: 9%; padding-top: 58px; padding-bottom: 68px; }
.service-page-copy h2, .service-page-aside h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.service-page-copy h2:not(:first-child) { margin-top: 38px; }
.service-page-copy p, .service-page-copy li, .service-page-aside p { color: #69675e; font-size: calc(13px * var(--small-text-scale)); line-height: 1.85; }
.service-page-copy ul { padding-left: 20px; }
.service-page-copy li + li { margin-top: 7px; }
.service-page-aside { align-self: start; padding: 25px 28px 28px; border-top: 3px solid var(--service-accent); background: #efebe2; }
.service-page-aside .eyebrow { margin-bottom: 18px; }
.service-page-aside h2 { font-size: 24px; }
.service-page-aside p { margin: 0 0 20px; font-size: calc(11px * var(--small-text-scale)); }
.service-page-links { display: grid; gap: 12px; margin-top: 20px; padding-top: 19px; border-top: 1px solid #d8d1c5; }
.service-page-links a { color: var(--forest); font-size: calc(11px * var(--small-text-scale)); font-weight: 700; }
.service-page-links a:hover { color: var(--service-accent); }
.service-page-footer { border-top: 1px solid var(--line); }

/* SERVICE HERO IMAGE TREATMENT
   Update background-image or background-position here to change a service banner. */
.service-page--boundary .service-page-hero,
.service-page--topographic .service-page-hero,
.service-page--construction .service-page-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: white;
  background-color: var(--forest);
  background-repeat: no-repeat;
  background-size: cover;
}
.service-page--boundary .service-page-hero {
  background-image: linear-gradient(90deg, rgba(23,37,30,.94) 0%, rgba(23,37,30,.8) 44%, rgba(23,37,30,.4) 100%), linear-gradient(0deg, rgba(23,37,30,.52), transparent 42%), url("pexels-khoiru-ummah-kendari-boundary.jpg");
  background-position: center, center, center 48%;
}
.service-page--topographic .service-page-hero {
  background-image: linear-gradient(90deg, rgba(23,37,30,.94) 0%, rgba(23,37,30,.79) 46%, rgba(23,37,30,.4) 100%), linear-gradient(0deg, rgba(23,37,30,.55), transparent 42%), url("pexels-heiler-topographic.jpg");
  background-position: center, center, center 48%;
}
.service-page--construction .service-page-hero {
  background-image: linear-gradient(90deg, rgba(23,37,30,.94) 0%, rgba(23,37,30,.8) 45%, rgba(23,37,30,.38) 100%), linear-gradient(0deg, rgba(23,37,30,.55), transparent 42%), url("pexels-themightynelson-construction.jpg");
  background-position: center, center, center 48%;
}
.service-page--boundary .service-page-hero h1,
.service-page--topographic .service-page-hero h1,
.service-page--construction .service-page-hero h1 { color: white; }
.service-page--boundary .service-page-hero .eyebrow,
.service-page--topographic .service-page-hero .eyebrow,
.service-page--construction .service-page-hero .eyebrow { color: rgba(255,255,255,.78); }
.service-page--boundary .service-page-lead,
.service-page--topographic .service-page-lead,
.service-page--construction .service-page-lead { color: rgba(255,255,255,.84); }
.service-image-credit {
  position: absolute;
  right: 12%;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  padding: 6px 9px;
  color: rgba(255,255,255,.82);
  background: rgba(23,37,30,.65);
  font-size: calc(9px * var(--small-text-scale));
  line-height: 1.4;
}
.service-image-credit a { text-decoration: underline; text-underline-offset: 2px; }
.service-image-credit a:hover { color: white; }

/* TOPOGRAPHIC MAPPING METHODS */
.topographic-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 34px; }
.topographic-method { padding: 20px; border-top: 2px solid var(--service-accent); background: #efebe2; }
.topographic-method .eyebrow { margin-bottom: 15px; font-size: calc(8px * var(--small-text-scale)); }
.topographic-method h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.topographic-method p:last-child { margin-bottom: 0; }

/* WIDE SCREENS */
@media (min-width: 1500px) {
  .section-wrap { padding-left: max(12%, calc((100% - 1120px) / 2)); padding-right: max(12%, calc((100% - 1120px) / 2)); }
}

/* TABLETS */
@media (max-width: 900px) {
  .site-header { padding: 0 5%; }
  .navigation { gap: 20px; }
  .section-wrap { padding-left: 8%; padding-right: 8%; }
  .hero-content { width: min(850px, 82%); margin-left: 9%; }
  .hero h1 { font-size: clamp(42px, 6vw, 70px); }
  .intro { grid-template-columns: .7fr 2.3fr; gap: 4%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { padding-right: 14px; }
  .service-card + .service-card { padding-left: 14px; }
  .service-card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .service-card:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.17); }
  .about { gap: 7%; }
  .about-image, .about-image img { min-height: 420px; height: 420px; }
  .project-card { padding-right: 13px; }
  .project-card + .project-card { padding-left: 13px; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact { padding-right: 6%; padding-left: 6%; }
  .quote-section .contact-inner { gap: 5%; }
  .quote-form { padding: 25px; }
}

/* PHONES
   Mobile section spacing, image heights, and card layout are adjusted here. */
@media (max-width: 680px) {
  html { scroll-padding-top: 70px; }
  .site-header { height: 70px; padding: 0 6%; }
  .brand-mark { width: 31px; height: 31px; }
  .menu-toggle { width: 42px; height: 42px; padding: 12px 8px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { width: 24px; height: 1px; display: block; background: var(--forest); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .navigation { position: absolute; top: 70px; left: 0; right: 0; padding: 10px 6% 25px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); box-shadow: 0 15px 20px rgba(0,0,0,.08); }
  .navigation.is-open { display: flex; }
  .navigation > a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: calc(13px * var(--small-text-scale)); }
  .navigation .nav-cta { margin: 17px 0 0; align-self: flex-start; }
  .hero { min-height: 620px; height: calc(88svh - 70px); max-height: 720px; }
  .hero-image { background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(30,28,23,.86), rgba(30,28,23,.43)), linear-gradient(0deg, rgba(30,28,23,.5), transparent 55%); }
  .hero-content { width: 88%; margin: 0 auto; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(39px, 9.5vw, 58px); }
  .hero-copy { max-width: 340px; font-size: calc(12px * var(--small-text-scale)); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .hero-note { right: 6%; bottom: 25px; font-size: calc(8px * var(--small-text-scale)); }
  .hero-index { display: none; }
  .section-wrap { padding-left: 7%; padding-right: 7%; }
  .intro { grid-template-columns: 1fr; gap: 23px; padding-top: 61px; padding-bottom: 67px; }
  .vertical-label { display: none; }
  .intro h2 { font-size: 43px; }
  .intro-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .intro-bottom p { font-size: calc(11px * var(--small-text-scale)); }
  .services { padding-top: 61px; padding-bottom: 64px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-heading h2 { font-size: 48px; }
  .section-heading-copy { max-width: 350px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 29px; }
  .service-card {
    min-height: 0;
    padding: 18px 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas: "icon number" "icon title" "icon description" "icon link";
    column-gap: 13px;
  }
  .service-card + .service-card { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.17); }
  .service-number { grid-area: number; justify-self: end; }
  .service-icon { grid-area: icon; width: 36px; height: 36px; margin-top: 13px; }
  .service-card h3 { grid-area: title; margin: 3px 28px 7px 0; }
  .service-card p { grid-area: description; }
  .service-card a { grid-area: link; margin-top: 10px; padding-top: 0; }
  .service-card h3 { font-size: 14px; }
  .service-card p { font-size: calc(9px * var(--small-text-scale)); }
  .about { grid-template-columns: 1fr; gap: 35px; padding-top: 65px; padding-bottom: 68px; }
  .about-image, .about-image img { min-height: 350px; height: 350px; }
  .about-image { margin-right: 12px; }
  .about h2 { font-size: 48px; }
  .work { padding-top: 61px; padding-bottom: 63px; }
  .work-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .work-heading h2 { font-size: 48px; }
  .project-grid { grid-template-columns: 1fr 1fr; margin-top: 29px; }
  .project-card { min-height: 215px; padding: 17px 14px 15px 0; }
  .project-card + .project-card { padding-left: 14px; }
  .project-card:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid #d8d1c5; }
  .project-card:nth-child(4) { border-top: 1px solid #d8d1c5; }
  .faq-section { padding-top: 61px; padding-bottom: 64px; }
  .faq-card { padding: 19px; }
  .stats { min-height: 180px; grid-template-columns: 1fr 1fr; gap: 22px 15px; padding-top: 28px; padding-bottom: 28px; }
  .stat strong { font-size: 34px; }
  .stats-note { justify-self: start; }
  .contact { padding: 62px 7%; }
  .contact-inner, .quote-section .contact-inner { grid-template-columns: 1fr; gap: 26px; }
  .contact h2 { font-size: 57px; }
  .quote-aside { padding-top: 0; }
  .quote-aside .contact-copy h2 { max-width: 420px; font-size: 48px; }
  .quote-aside .contact-details { max-width: 480px; width: 100%; margin-top: 27px; }
  .quote-fields-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 23px 20px; }
  .site-footer { padding: 22px 6%; flex-wrap: wrap; gap: 13px; }
  .site-footer > p { display: none; }
  .service-page-hero { padding-top: 58px; padding-bottom: 62px; }
  .service-page-hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .service-page-lead { font-size: calc(13px * var(--small-text-scale)); }
  .service-page-body { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 54px; }
  .service-page--boundary .service-page-hero,
  .service-page--topographic .service-page-hero,
  .service-page--construction .service-page-hero { min-height: 430px; }
  .service-image-credit { right: 7%; bottom: 12px; }
  .topographic-methods { grid-template-columns: 1fr; }
}

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