/* Eight Services Agriculture LLC
   Layout concept: a landscape drawing set. Full-bleed site photography in bands,
   with project facts set like a drawing title block and plant schedule. */
:root {
  --forest: #173b2f;        /* brand deep green, from the corporate profile */
  --forest-ink: #0f2a21;
  --frond: #2f8f55;         /* palm frond green from the logo */
  --trunk: #8a4b1c;         /* date-palm trunk brown, used sparingly */
  --limestone: #f5f0e6;     /* warm limestone ground */
  --sand: #e6dcc8;
  --bg: var(--limestone);
  --surface: #fbf8f2;
  --fg: #1c2b25;
  --muted: #55655d;
  --line: #d6ccb7;
  --accent: var(--frond);
  --accent-fg: #ffffff;
  --band-bg: var(--forest);
  --band-fg: #eef1ea;
  --band-muted: #b9c7bd;
  --link: #1f6e40;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem);
  --radius: 4px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1a15; --surface: #15241e; --fg: #e9ece4; --muted: #a8b6ad; --line: #2b3d35;
    --accent: #4fb877; --accent-fg: #0b1a12; --band-bg: #122a21; --band-fg: #eef1ea; --band-muted: #a9bbb0;
    --link: #7fd3a0; --sand: #23352d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1a15; --surface: #15241e; --fg: #e9ece4; --muted: #a8b6ad; --line: #2b3d35;
  --accent: #4fb877; --accent-fg: #0b1a12; --band-bg: #122a21; --band-fg: #eef1ea; --band-muted: #a9bbb0;
  --link: #7fd3a0; --sand: #23352d; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); display: block;
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 1px; margin-right: 10px; background: currentColor; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.prose { max-width: 66ch; display: grid; gap: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 0.6em; }
.prose h3 { margin-top: 0.4em; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.3em; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { width: 38px; height: 38px; }
.brand strong { font-family: var(--font-display); font-size: 1.15rem; display: block; line-height: 1.1; }
.brand span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: var(--radius); padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.nav .btn { color: var(--accent-fg); }
.nav .btn:hover { background: var(--accent); }

/* Hero */
.hero { position: relative; color: #f4f2ea; background: #10241c; isolation: isolate; }
.hero picture, .hero > img { position: absolute; inset: 0; z-index: -2; }
.hero img.bg { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,30,22,.86) 0%, rgba(10,30,22,.55) 55%, rgba(10,30,22,.15) 100%); }
.hero .wrap { padding-block: clamp(72px, 12vw, 150px); display: grid; gap: 24px; }
.hero h1 { max-width: 14ch; color: #fff; }
.hero .lede { color: #dfe6dd; }
.hero .eyebrow { color: #c9d8cc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn.ghost { color: #fff; }
.page-hero { background: var(--band-bg); color: var(--band-fg); }
.page-hero .wrap { padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 18px; }
.page-hero .eyebrow, .page-hero .lede { color: var(--band-muted); }
.crumbs { font-size: var(--step--1); color: var(--band-muted); }
.crumbs a { color: var(--band-fg); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* Title block strip: the drawing-sheet detail */
.titleblock { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.titleblock dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.titleblock dl > div { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.titleblock dl > div:first-child { border-left: 0; padding-left: 0; }
.titleblock dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.titleblock dd { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
@media (max-width: 760px) {
  .titleblock dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock dl > div { padding: 14px 12px; }
  .titleblock dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .titleblock dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.band { background: var(--band-bg); color: var(--band-fg); }
.band .eyebrow, .band .lede, .band .muted { color: var(--band-muted); }
.band a { color: var(--band-fg); }
.alt { background: var(--surface); }

/* Intro split */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1.05fr 1fr; align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split img { aspect-ratio: 4 / 3; } }

/* Services index: a numbered schedule because services follow the project lifecycle */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.service:hover h3 { color: var(--link); }
.service .num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.service p { color: var(--muted); }
.service .more { font-weight: 600; color: var(--link); }
.band .service { border-color: rgba(255,255,255,.14); }
.band .services { border-color: rgba(255,255,255,.14); }
.band .service p, .band .service .num { color: var(--band-muted); }
.band .service .more { color: #9fdcb5; }

/* Project mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); margin: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.03); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(8,22,16,.82)); }
.tile figcaption strong { font-family: var(--font-display); font-size: var(--step-1); display: block; }
.tile figcaption span { font-size: var(--step--1); opacity: .85; }
.t-7 { grid-column: span 7; } .t-5 { grid-column: span 5; } .t-4 { grid-column: span 4; } .t-8 { grid-column: span 8; } .t-6 { grid-column: span 6; } .t-12 { grid-column: span 12; }
.t-wide img { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .mosaic > * { grid-column: span 12; } .t-wide img { aspect-ratio: 16 / 9; } }
.tile button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.tile button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Project schedule table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; width: 4.5em; }
td strong { font-family: var(--font-display); }

/* Lists of scope items */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.cols-2 > *, .cols-3 > * { min-width: 0; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cols-2 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.panel h3 { font-size: var(--step-1); }

/* Process: real sequence, so numbered */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.process li { padding: 24px 20px 0 0; border-top: 2px solid var(--accent); display: grid; gap: 8px; align-content: start; min-width: 0; }
.process li::before { counter-increment: step; content: "Stage " counter(step); font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.band .process li::before { color: var(--band-muted); }
.process p { color: var(--muted); }
.band .process p { color: var(--band-muted); }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Quote / statement */
.statement { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; max-width: 30ch; font-weight: 500; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; color: var(--accent); font-family: var(--font-body); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 70ch; display: grid; gap: 10px; }

/* CTA band */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: var(--step-3); max-width: 18ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn.ghost { color: var(--band-fg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 22px; margin: 0; }
.contact-list dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 4px 0 0; font-size: var(--step-1); font-family: var(--font-display); }
.contact-list dd a { color: var(--fg); text-decoration-color: var(--accent); }
form.quote { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.form-result { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.form-result .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hint { font-size: var(--step--1); color: var(--muted); }

/* Footer */
.site-footer { background: var(--forest-ink); color: #cfd8d1; font-size: 0.95rem; }
.site-footer .wrap { padding-block: 56px 32px; display: grid; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #93a89a; font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #eef1ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #93a89a; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #93a89a; font-size: 0.85rem; }

/* WhatsApp float */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #1f8f4e; color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); display: inline-flex; gap: 8px; align-items: center;
}
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 600px) { .wa-float { padding: 14px; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa-float svg { width: 24px; height: 24px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(6,14,10,.92); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius); }
.lightbox p { color: #e6ece6; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); background: #fff; color: #111; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }

.muted { color: var(--muted); }
.stack { display: grid; gap: 16px; }
.answer-box { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; max-width: 70ch; }
