/* Agrimec — Fabrication & Maintenance
   Dark paddock-at-dusk palette: green-black base, logo green, red-dirt + wheat accents.
   Saira (headings, uppercase) / Public Sans (body), self-hosted. */

@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-variable.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-variable.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
}

:root {
  --bg:        #10160D;
  --bg-2:      #151D11;
  --card:      #1A2316;
  --card-2:    #212C1C;
  --line:      #2D3A27;
  --text:      #ECE8DC;
  --muted:     #A9B09D;
  --night:     #0A0E08;
  --green:     #236A0B;
  --green-2:   #2C7F10;
  --green-deep:#18480A;
  --leaf:      #8CC05A;
  --clay:      #D98357;
  --wheat:     #E3C77E;
  --sand:      #D6CCB4;

  --font-head: 'Saira', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); }
a:hover { color: var(--wheat); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; margin: 0 0 .5em; color: #F6F3EA; }
h1, h2 { text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }
h3, .hero-sub, .lead { text-wrap: pretty; }
h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); line-height: .98; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 650; letter-spacing: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
.accent { color: var(--leaf); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--wheat); color: var(--night); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* Label: small caps line with a wheat-grain tick */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .8rem/1.3 var(--font-body); letter-spacing: .15em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 16px;
}
.label::before {
  content: ''; width: 8px; height: 14px; border-radius: 50%;
  background: var(--wheat); transform: rotate(28deg); flex: none;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 .95rem/1.25 var(--font-body); letter-spacing: .04em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer;
  padding: 17px 24px; border-radius: 6px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); color: #fff; }
.btn-line { border-color: rgba(236, 232, 220, .45); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--text); color: var(--night); border-color: var(--text); }
.btn-wheat { background: var(--wheat); color: var(--night); }
.btn-wheat:hover { background: #F0D897; color: var(--night); }
.btn-sm { padding: 12px 16px; font-size: .85rem; }

.text-link { font-weight: 700; text-decoration: none; color: var(--leaf); display: inline-flex; gap: 8px; align-items: center; }
.text-link::after { content: '→'; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 8, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) {
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--text);
  padding: 10px 13px; position: relative;
}
.nav-links a:not(.btn):hover { color: var(--wheat); }
.nav-links a[aria-current="page"] { color: var(--leaf); }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--leaf); }
.nav-links .btn { margin-left: 12px; }
.hamburger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .header-inner { min-height: 70px; }
  .brand img { height: 50px; }
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--night); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .btn { margin: 14px 0 0; }
}

/* ─── Sections ─────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 124px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-night { background: var(--night); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.section-head p.label { color: var(--clay); font-size: .8rem; margin-bottom: 16px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Furrow rule: ploughed-row texture used as a divider */
.furrow {
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 14px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ─── Home hero: full-bleed dusk photo ─────────────────────── */
.hero { position: relative; isolation: isolate; min-height: clamp(580px, 84vh, 840px); display: flex; align-items: center; padding: 72px 0 96px; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; z-index: -2; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 7, .9) 0%, rgba(8, 12, 7, .74) 34%, rgba(8, 12, 7, .3) 56%, rgba(8, 12, 7, 0) 70%),
    linear-gradient(0deg, rgba(16, 22, 13, 1) 0%, rgba(16, 22, 13, 0) 24%);
}
.hero-copy { max-width: 700px; }
.hero h1 { margin-bottom: 24px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #E6E3D8; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); max-width: 36ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; color: #E6E3D8; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.hero-meta li { display: flex; align-items: center; gap: 9px; }
.hero-meta svg { color: var(--leaf); flex: none; }
@media (max-width: 700px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 40px 0 0; }
  .hero::before { display: none; }
  .hero-bg { position: static; order: 2; margin-top: 8px; }
  .hero-bg img { position: static; height: auto; aspect-ratio: 3 / 2; object-position: 50% 60%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
  .hero h1, .hero-sub, .hero-meta { text-shadow: none; }
}

/* ─── Paddock / Pit / Plant ──────────────────────────────────── */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff;
  isolation: isolate; border: 1px solid var(--line);
}
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.sector::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 8, .05) 0%, rgba(10, 14, 8, .3) 30%, rgba(10, 14, 8, .86) 58%, rgba(10, 14, 8, .97) 100%); }
.sector-body { text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.sector:hover img { transform: scale(1.04); }
.sector:hover { color: #fff; }
.sector-body { padding: 28px; }
.sector .sector-word { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: .9; color: var(--wheat); margin: 0 0 12px; }
.sector h3 { color: #fff; font-size: 1.2rem; margin: 0 0 6px; }
.sector p { color: #E2E4DA; margin: 0 0 16px; font-size: .98rem; }
.sector .more { font-weight: 700; color: var(--leaf); }
.sector .more::after { content: ' →'; }
@media (max-width: 900px) { .sectors { grid-template-columns: 1fr; } .sector { min-height: 380px; } }

/* ─── Service rows (home) ─────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.svc-row:hover { color: var(--text); }
.svc-row img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.svc-row h3 { margin: 0 0 4px; font-size: 1.25rem; }
.svc-row p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.svc-row .arrow { width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.svc-row:hover .arrow { background: var(--green); border-color: var(--green); color: #fff; }
.svc-row:hover h3 { color: var(--leaf); }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 72px 1fr; }
  .svc-row img { width: 72px; height: 72px; }
  .svc-row .arrow { display: none; }
}

/* ─── Workshop / on-site split ─────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.split-card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.split-card .body { padding: 30px 32px 34px; }
.split-card h3 { font-size: 1.6rem; }
.split-card p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 8px 11px; border-radius: 4px; background: var(--card-2); color: var(--wheat); margin-bottom: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ─── Hire band ─────────────────────────────────────────────── */
.hire-band { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hire-band > img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.hire-band p { color: var(--muted); }
.machine-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.machine-list li { border: 1px solid var(--line); border-left: 3px solid var(--wheat); border-radius: var(--radius); padding: 18px 20px; background: var(--card); }
.machine-list b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #F6F3EA; margin-bottom: 4px; }
.machine-list span { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .hire-band { grid-template-columns: 1fr; } }

/* ─── Work strip ───────────────────────────────────────────── */
.work-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 12px; }
.work-strip figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.work-strip img { width: 100%; height: 360px; object-fit: cover; }
.work-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(10, 14, 8, .96) 0%, rgba(10, 14, 8, .82) 45%, rgba(10, 14, 8, 0) 100%); padding: 48px 14px 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); font-size: .88rem; font-weight: 600; line-height: 1.3; color: #F2EFE6; }
@media (max-width: 900px) {
  .work-strip { grid-template-columns: 1fr 1fr; }
  .work-strip img { height: 240px; }
}

/* ─── Call band ─────────────────────────────────────────────── */
.call-band { background: var(--green-deep); color: #D8E3CD; position: relative; overflow: hidden; border-top: 3px solid var(--green); }
.call-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px);
}
.call-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center; }
.call-band h2 { color: #fff; margin-bottom: 12px; }
.call-band p { margin: 0; font-size: 1.08rem; max-width: 52ch; }
.call-band .accent { color: var(--wheat); }
.call-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.call-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #fff; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.call-big:hover { color: var(--wheat); }
.call-big small { display: block; font: 700 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--wheat); margin-bottom: 6px; }
@media (max-width: 860px) { .call-inner { grid-template-columns: 1fr; } }

/* ─── Page hero (inner pages) ─────────────────────────────── */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); margin-bottom: 20px; }
.page-hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 0; }
.page-hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Service jump chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips a { text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--text); border: 1px solid var(--line); background: var(--card); padding: 9px 13px; border-radius: 6px; }
.chips a:hover { border-color: var(--leaf); color: var(--leaf); }

/* ─── Services detail ──────────────────────────────────────── */
.svc-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-detail:first-child { border-top: 0; }
.svc-detail:nth-child(even) .svc-media { order: 2; }
.svc-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.svc-media img.wide { aspect-ratio: 4 / 3; }
.svc-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.svc-body > p { color: var(--muted); font-size: 1.05rem; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.sector-tags span { font: 700 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.sector-tags span.paddock { background: rgba(140, 192, 90, .12); border-color: rgba(140, 192, 90, .35); color: var(--leaf); }
.sector-tags span.pit { background: rgba(217, 131, 87, .12); border-color: rgba(217, 131, 87, .35); color: var(--clay); }
.sector-tags span.plant { background: rgba(214, 204, 180, .1); border-color: rgba(214, 204, 180, .3); color: var(--sand); }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 4px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 860px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-media { order: 0; }
  .svc-media img { aspect-ratio: 4 / 3; }
}

/* ─── Hire page ─────────────────────────────────────────────── */
.machines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.machine { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.machine img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 860px) { .machine img { aspect-ratio: 4 / 3; } }
.machine .body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.machine .make { font: 700 .76rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.machine h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 14px; }
.machine p { color: var(--muted); }
.machine .ticks { margin: 10px 0 24px; }
.machine .btn { margin-top: auto; align-self: flex-start; }
.includes { background: var(--card-2); border-left: 3px solid var(--wheat); border-radius: 4px; padding: 14px 16px; font-size: .95rem; margin-bottom: 22px; color: var(--muted); }
.includes b { color: var(--text); }
@media (max-width: 860px) { .machines { grid-template-columns: 1fr; } }

.hire-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hire-type { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-lg); padding: 30px; }
.hire-type p { color: var(--muted); margin: 0; }
.hire-type .big { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 2.3rem; color: var(--wheat); line-height: 1; margin-bottom: 14px; }
@media (max-width: 860px) { .hire-types { grid-template-columns: 1fr; } }

/* ─── Gallery ─────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { font: 600 .92rem/1 var(--font-body); border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 11px 16px; border-radius: 6px; cursor: pointer; }
.filter-btn:hover { border-color: var(--leaf); }
.filter-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.gallery-grid { columns: 3 260px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--card); display: block; width: 100%; padding: 0; border: 0; text-align: left; font: inherit; color: inherit; }
.gallery-item img { width: 100%; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(10, 14, 8, .96) 0%, rgba(10, 14, 8, .82) 45%, rgba(10, 14, 8, 0) 100%); padding: 48px 14px 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); font-size: .88rem; font-weight: 600; line-height: 1.3; color: #F2EFE6; opacity: 0; transition: opacity .25s; }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; }
@media (hover: none) { .gallery-item .cap { opacity: 1; } }
.gallery-item[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6, 9, 5, .95); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: calc(100vh - 150px); max-width: 100%; width: auto; border-radius: 6px; }
.lightbox-caption { color: var(--text); margin-top: 16px; text-align: center; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 6px; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 70px 12px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; } }

/* ─── About ─────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid .prose p:not(.label) { color: var(--muted); font-size: 1.06rem; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.about-photos img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.pull {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: 1;
  font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 20ch; margin: 0; color: #F6F3EA;
}
.pull em { font-style: normal; color: var(--wheat); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.value svg { color: var(--leaf); margin-bottom: 18px; }
.value h3 { font-size: 1.18rem; }
.value p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.do-list { list-style: none; padding: 0; margin: 0; }
.do-list li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.06rem; color: var(--text); }
.do-list li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 9px; height: 15px; border-radius: 50%; background: var(--wheat); transform: rotate(28deg); }

/* ─── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid > *, .form-row > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.call-card { background: var(--green-deep); border-top: 3px solid var(--green); color: #D8E3CD; border-radius: var(--radius-lg); padding: 34px; margin-bottom: 16px; }
.call-card .who { font: 700 .76rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--wheat); margin-bottom: 12px; }
.call-card h2 { font-size: 1.9rem; margin-bottom: 6px; }
.call-card a.phone { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem); color: #fff; text-decoration: none; margin: 10px 0 18px; }
.call-card a.phone:hover { color: var(--wheat); }
.call-card p { margin: 0; }
.info-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); color: var(--muted); }
.info-list li:last-child { border-bottom: 0; }
.info-list span { font: 700 .74rem/1.9 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.info-list a { font-weight: 600; overflow-wrap: anywhere; }

.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-wrap h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.form-wrap > p { color: var(--muted); }
.form-fields { display: grid; gap: 18px; margin: 26px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group label, .form-group legend { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 7px; padding: 0; }
.form-group fieldset { border: 0; padding: 0; margin: 0; }
.req { color: var(--clay); }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #737B69; }
select option { background: var(--bg); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); background: var(--night); }
textarea { min-height: 150px; resize: vertical; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; cursor: pointer; background: var(--bg); }
.radio-row input { width: auto; accent-color: var(--green-2); margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--leaf); background: rgba(140, 192, 90, .1); }
.err { display: none; color: #FF9B85; font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #FF9B85; }
.form-group.invalid .err { display: block; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--night); color: var(--muted); padding: 80px 0 32px; font-size: .96rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-logo { height: 92px; width: auto; margin-bottom: 20px; }
.footer-heading { font: 700 .76rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--wheat); margin: 8px 0 18px; }
.footer-links { display: grid; gap: 10px; }
.site-footer a { color: #E4E8DA; text-decoration: none; }
.site-footer a:hover { color: var(--wheat); }
.footer-call { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; display: inline-block; margin-bottom: 6px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── Mobile call bar ─────────────────────────────────────── */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-shadow: 0 -6px 20px rgba(0, 0, 0, .4); }
  .mobile-bar a { padding: 17px 10px; text-align: center; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; }
  .mobile-bar .call { background: var(--green); color: #fff; }
  .mobile-bar .msg { background: var(--wheat); color: var(--night); }
  body { padding-bottom: 56px; }
}

/* ─── Simple pages (thank-you / 404) ─────────────────────── */
.simple { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.simple h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
.simple p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 30px; }
.simple .hero-ctas { justify-content: center; }

/* ─── Reveal ───────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media print {
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .site-header, .mobile-bar { position: static; }
}

/* Page hero followed directly by content (projects, contact) */
.page-hero + .section-flush { padding-top: clamp(36px, 5vw, 56px); }
.more-link { margin: 36px 0 0; }

@media (max-width: 640px) {
  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-item .cap { display: none; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .machine .btn { align-self: stretch; }
}
