/* Shared basics for the home page: reset, buttons, form, questions, phone bar, footer.
   The look of each part comes from the variables and rules further down this file. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body, 17px); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: var(--fw-head, 600); line-height: 1.12; letter-spacing: var(--ls-head, -0.02em); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus, #20B69D); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--max, 1160px); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 50px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--btn-radius, 999px); font: 600 16px/1.1 var(--font-ui, var(--font-body)); text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn-primary { background: var(--btn-bg, #0B3F34); color: var(--btn-ink, #fff); }
.btn-primary:hover { background: var(--btn-bg-hover, #145847); }
.btn-ghost { border-color: var(--line-strong, currentColor); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Header and phone menu */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 34px; }
.nav ul { display: flex; gap: 26px; }
.nav a, .header-phone { font: 500 15px/1 var(--font-ui, var(--font-body)); text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--accent-ink, #0B3F34); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px/1 var(--font-ui, var(--font-body)); cursor: pointer; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.menu { border-top: 1px solid var(--line); background: var(--header-bg, var(--bg)); }
.menu ul { display: grid; gap: 2px; padding: 12px 0; }
.menu ul a { display: block; padding: 12px 0; font: 600 19px/1.2 var(--font-ui, var(--font-body)); text-decoration: none; }
.menu-actions { display: grid; gap: 10px; padding: 0 0 20px; }
@media (max-width: 900px) {
  .nav, .header-phone span:first-of-type { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .brand img { height: 30px; }
}

/* Sample sites */
.sample-tag { font: 600 12px/1.3 var(--font-ui, var(--font-body)); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Questions (the FAQPage JSON-LD in the head is these, word for word) */
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 18px/1.35 var(--font-head); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary .plus { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong, var(--line)); transition: transform 0.2s ease; }
.faqs details[open] summary .plus { transform: rotate(45deg); }
.faqs details p { padding: 0 0 22px; max-width: 64ch; color: var(--muted); }

/* Contact form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field-more summary { font: 600 14px/1.3 var(--font-ui, var(--font-body)); }
.label-opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--field-line, var(--line-strong, #c9c4ba)); border-radius: var(--field-radius, 10px); background: var(--field-bg, #fff); color: var(--ink); font: 16px/1.4 var(--font-ui, var(--font-body)); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus, #20B69D); outline-offset: 0; border-color: transparent; }
.field-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; color: var(--muted); }
.field-more summary::-webkit-details-marker { display: none; }
.field-more .plus { display: grid; place-items: center; }
.field-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot .small { font-size: 14px; color: var(--muted); max-width: 34ch; }
.form-status { padding: 14px 16px; border-radius: 10px; background: var(--ok-bg, #e3f5ef); color: var(--ok-ink, #0B3F34); font-weight: 500; }
.form-status.is-bad { background: #fdecea; color: #8a1c12; }
.form-status a { color: inherit; font-weight: 700; }
@media (max-width: 620px) {
  .form, .field-more-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
}

/* Phone bar: shows once the top has scrolled away, hides near the form (assets/home.js) */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--mbar-bg, var(--bg)); transform: translateY(110%); visibility: hidden; transition: transform 0.3s ease, visibility 0s linear 0.3s; }
  .mbar.show { transform: none; visibility: visible; transition: transform 0.3s ease, visibility 0s; }
  .mbar .btn { min-height: 46px; padding: 0 12px; }
}

/* Footer */
.site-footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--foot-bg, #0B3F34); color: var(--foot-ink, #e8f1ee); font-size: 15px; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 48px; }
.footer-brand img { height: 36px; width: auto; }
.footer-about { margin-top: 14px; max-width: 34ch; opacity: 0.85; }
.footer-contact { margin-top: 14px; display: grid; gap: 6px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.footer-h { font: 600 13px/1 var(--font-ui, var(--font-body)); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 14px; }
.footer-more { columns: 2; column-gap: 24px; }
.footer-more li { margin-bottom: 8px; break-inside: avoid; }
.footer-more a { text-decoration: none; opacity: 0.9; }
.footer-more a:hover { text-decoration: underline; opacity: 1; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; opacity: 0.75; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Option 2, Southland drone: Jack's drone shot full width and bright, then a clean light page.
   Plus Jakarta Sans for headings, Figtree for everything else. */
:root {
  --bg: #FFFFFF;
  --soft: #F2F6F4;
  --ink: #142320;
  --muted: #55635F;
  --line: #E1E8E5;
  --line-strong: #C5D1CD;
  --deep: #0B3F34;
  --teal: #20B69D;
  --accent-ink: #0B3F34;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fw-head: 750;
  --ls-head: -0.022em;
  --header-bg: rgba(255, 255, 255, 0.96);
  --mbar-bg: rgba(255, 255, 255, 0.97);
  --max: 1200px;
  --btn-radius: 12px;
}
.btn-lg { min-height: 56px; padding: 0 26px; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: #E3F3EE; }
.kicker { font: 600 13px/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }

/* Hero: the photo stays bright; the words sit on a white card over its bottom edge */
.hero { position: relative; padding-bottom: clamp(40px, 5vw, 72px); }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: clamp(420px, 66vh, 700px); object-fit: cover; object-position: 50% 62%; }
.hero-photo figcaption { position: absolute; right: clamp(16px, 3vw, 40px); top: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 600; color: var(--ink); }
.hero-photo figcaption .icon { color: var(--teal); }
.hero-card { position: relative; max-width: 720px; margin-top: clamp(-220px, -16vw, -90px); padding: clamp(28px, 4vw, 52px); border-radius: 20px; background: #fff; box-shadow: 0 40px 80px -50px rgba(11, 63, 52, 0.55); }
.hero h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 800; color: var(--deep); line-height: 1.04; }
.lede { margin-top: 18px; max-width: 36em; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-soft { background: var(--soft); }
.head { margin-bottom: clamp(30px, 4vw, 48px); }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.head h2, .faq-head h2, .contact h2 { font-size: clamp(32px, 4vw, 50px); color: var(--deep); }
.head p { color: var(--muted); font-size: 18px; max-width: 34em; }

/* Sample sites */
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sample { display: block; text-decoration: none; }
.sample-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(11, 63, 52, 0.6); }
.sample-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.sample:hover .sample-shot img { transform: scale(1.03); }
.sample-meta { display: grid; gap: 3px; padding-top: 16px; }
.sample-name { display: flex; align-items: center; gap: 8px; font: 700 21px/1.25 var(--font-head); color: var(--ink); }
.sample-name .icon { width: 16px; height: 16px; color: var(--teal); }
.sample-kind { color: var(--muted); font-size: 15px; }
.sample-url { display: none; }

/* Who you'll deal with */
.who { background: var(--deep); color: #EAF3F0; }
.who-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-top: clamp(40px, 5vw, 56px); padding-bottom: clamp(40px, 5vw, 56px); }
.who-photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 4px solid rgba(255, 255, 255, 0.15); }
.who .kicker { color: #7FDCC8; margin-bottom: 8px; }
.who h2 { font-size: clamp(28px, 3vw, 38px); color: #fff; }
.who-copy p:last-child { margin-top: 10px; max-width: 58ch; opacity: 0.9; }
.who a:not(.btn) { color: #fff; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { padding-top: 22px; border-top: 2px solid var(--deep); }
.steps .num { font: 500 15px/1 var(--font-body); color: var(--teal); letter-spacing: 0.08em; }
.steps h3 { margin: 12px 0 8px; font-size: 24px; }
.steps p { color: var(--muted); }
.aside { margin-top: 36px; color: var(--muted); font-size: 15px; }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.prices li { padding: 30px; }
.prices li + li { border-left: 1px solid var(--line); }
.prices h3 { font: 600 16px/1.3 var(--font-body); letter-spacing: 0; color: var(--ink); }
.amount { display: grid; margin: 12px 0 10px; font: 800 46px/1 var(--font-head); color: var(--deep); }
.amount span { margin-bottom: 6px; font: 500 13px/1 var(--font-body); color: var(--muted); }
.prices li p:last-child { color: var(--muted); font-size: 15px; }
.extras { margin-top: 24px; font-weight: 500; }
.extras-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 64px; }
.faq-head p { margin-top: 14px; color: var(--muted); }
.faq-head a, .faqs a { color: var(--deep); font-weight: 600; }
.faqs summary { font-family: var(--font-body); }

/* Contact */
.contact { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: start; }
.contact-copy > p { margin-top: 14px; color: var(--muted); }
.contact-list { display: grid; gap: 10px; margin-top: 24px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--deep); }
.contact-list .icon { color: var(--teal); }
.form { padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: #fff; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .head-row, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .samples, .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .prices li + li { border-left: 0; border-top: 1px solid var(--line); }
  .who-inner { grid-template-columns: auto minmax(0, 1fr); }
  .who-call { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .hero-photo img { height: 340px; }
  .hero-photo figcaption { top: 12px; right: 12px; font-size: 12px; }
  .hero-card { margin-top: -72px; padding: 24px 20px; margin-left: -4px; margin-right: -4px; }
  .hero h1 { font-size: 34px; }
  .actions .btn { flex: 1 1 auto; }
  .who-inner { grid-template-columns: minmax(0, 1fr); }
  .who-photo { width: 104px; height: 104px; }
  .who-call { width: 100%; }
  .prices li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 20px; }
  .prices .amount { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 32px; text-align: right; }
  .amount span { font-size: 12px; }
}

/* Fixes after the first look: quick facts beside the card, a tighter gap, bigger prices */
.hero { padding-bottom: 0; }
.hero-photo img { height: clamp(440px, 70vh, 780px); }
.hero-row { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.hero-facts { display: grid; gap: 18px; padding-bottom: 8px; }
.hero-facts li { padding-left: 18px; border-left: 3px solid var(--teal); color: var(--muted); font-size: 16px; line-height: 1.4; }
.hero-facts strong { display: block; font: 750 24px/1.2 var(--font-head); color: var(--deep); }
#work { padding-top: clamp(56px, 6vw, 80px); }
.prices li { padding: 34px 36px; }
.amount { font-size: 56px; }
.prices h3 { font-size: 18px; }
@media (max-width: 900px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 620px) {
  .hero-facts { grid-template-columns: minmax(0, 1fr); padding: 4px 4px 0; }
  .hero-facts strong { font-size: 20px; display: inline; margin-right: 6px; }
  .prices li { padding: 20px; }
  .prices .amount { font-size: 32px; }
}

/* On-site tech: three cards (four when the CCTV switch in scripts/pages.mjs is on) */
.onsite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.onsite-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.onsite-card { display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.onsite-card:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px -36px rgba(11, 63, 52, 0.5); }
.onsite-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #E3F3EE; color: var(--deep); }
.onsite-ico svg { width: 24px; height: 24px; }
.onsite-card h3 { margin-top: 18px; font-size: 21px; color: var(--ink); }
.onsite-card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.onsite-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 15px; color: var(--deep); }
.onsite-more .icon { width: 16px; height: 16px; }
.onsite-note { margin-top: 20px; color: var(--muted); font-size: 15px; }
#onsite .actions { margin-top: 32px; }
@media (max-width: 1000px) { .onsite-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .onsite-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .onsite-card { padding: 22px; } #onsite .actions .btn { flex: 1 1 auto; } }

/* Client reviews (Google) */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.review { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.review-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.review-shot:hover img { transform: scale(1.03); }
.review-body { display: flex; flex-direction: column; gap: 14px; flex: 1; margin: 0; padding: 26px 28px 28px; }
.review-stars { margin: 0; color: #F5A623; font-size: 20px; letter-spacing: 3px; line-height: 1; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.review figcaption { display: grid; gap: 2px; }
.review-name { font: 700 17px/1.3 var(--font-head); color: var(--ink); }
.review-biz { font-size: 15px; color: var(--muted); }
.review-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 600; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.review-link:hover { border-color: var(--teal); }
.review-link .icon { width: 14px; height: 14px; color: var(--teal); }
@media (max-width: 860px) {
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review-body { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { .review-shot img { transition: none; } }

/* Pages split out of the home page (/work, /how-it-works, /prices, /about, /contact) */
.page-first .head h1, .page-first .faq-head h1, .contact.page-first h1 { font-size: clamp(36px, 4.6vw, 58px); color: var(--deep); font-weight: 800; line-height: 1.06; }
.page-first .head .kicker, .contact.page-first .kicker { margin-bottom: 10px; }
.section.page-first { padding-top: clamp(44px, 6vw, 76px); }
.who.page-first h1 { font-size: clamp(32px, 3.6vw, 46px); color: #fff; }
.who.page-first .who-inner { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.next-band { background: var(--soft); border-top: 1px solid var(--line); }
.next-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.next-copy h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--deep); }
.next-copy p { margin: 10px 0 0; color: var(--muted); font-size: 18px; max-width: 34em; }
.next-inner .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .next-inner { grid-template-columns: minmax(0, 1fr); }
  .next-inner .actions .btn { flex: 1 1 100%; justify-content: center; }
}
.next-inner .actions { margin-top: 0; }
