:root {
  --canopy: #0e1f17;
  --ink: #10201a;
  --gold: #f2b33d;
  --leaf: #1b6b45;
  --mist: #f3f5f1;
  --line: #e1e6df;
  --muted: #4b5a52;
  --on-dark: #d5ded8;
  --on-dark-muted: #a9b8af;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--leaf); }
a:hover { color: #0e3d27; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
section[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.intro p, .lead { font-size: 18px; color: var(--muted); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.mist { background: var(--mist); }
.dark { background: var(--canopy); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f6c260; color: var(--ink); }
.btn-ghost { border: 1px solid var(--on-dark); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1b3528; color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: rgba(16, 32, 26, .08); color: var(--ink); }

/* Header */
.site-header { background: var(--canopy); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: 20px; padding-bottom: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a:not(.btn) {
  color: var(--on-dark); text-decoration: none; font-size: 15px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav .btn { min-height: 44px; }
/* The links wrapper is a popover only on phones; everywhere else it is layout-neutral. */
.nav-links { display: contents; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; color: #fff;
  background: var(--canopy) url(assets/hero-2400.jpg) center 62% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 31, 23, .95) 0%, rgba(14, 31, 23, .84) 40%, rgba(14, 31, 23, .2) 100%);
}
.hero .wrap { position: relative; padding-top: 104px; padding-bottom: 148px; }
.hero-copy { max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 700; }
.hero-sub { font-size: 19px; color: var(--on-dark); max-width: 560px; }
.hero-note { font-size: 14px; color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Proof strip */
.proof { background: var(--mist); border-bottom: 1px solid var(--line); }
.proof .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-top: 28px; padding-bottom: 28px; }
.proof-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.proof ul { display: contents; list-style: none; margin: 0; padding: 0; }
.proof li { font-family: var(--display); font-weight: 600; font-size: 16px; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); }
.card-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-dark h3 { color: var(--gold); }
.card-dark p { color: var(--on-dark); }

.card-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }
.card-dark .card-link { color: var(--gold); }

/* Service pages */
.page-hero { background: var(--canopy); color: #fff; }
.page-hero .wrap { padding-top: 72px; padding-bottom: 88px; }
.page-hero .hero-copy { max-width: 760px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; font-weight: 700; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { text-decoration: underline; }
.lead { max-width: 760px; }
.more-services { color: var(--muted); font-size: 15px; line-height: 2; }
.foot-services { flex-basis: 100%; line-height: 2; }

/* Why */
.why { display: flex; flex-wrap: wrap; gap: 48px; }
.why .intro { flex: 1 1 320px; min-width: 0; }
.why-points { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px 40px; }
.point { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.point h3 { font-size: 19px; }
.point p { color: var(--muted); }

/* Work */
.case { background: var(--mist); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.case .tag { font-size: 13px; color: var(--leaf); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.case h3 { font-size: 26px; }
.case p:last-child { color: var(--muted); }
.case-dark { background: var(--canopy); color: #fff; }
.case-dark .tag { color: var(--gold); }
.case-dark p:last-child { color: var(--on-dark); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--display); font-weight: 700; font-size: 36px; color: var(--gold); }
.steps h3 { font-size: 20px; }
.steps p:last-child { color: var(--on-dark); }

/* Pricing */
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan-featured { border: 2px solid var(--ink); }
.plan h3 { font-size: 22px; }
.price { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.plan p:last-child { color: var(--muted); }

/* Contact */
.cta { background: var(--gold); padding: 80px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-copy p { font-size: 18px; color: #2b2410; }

.cta .wrap { align-items: flex-start; }
.cta-alt a { color: var(--ink); font-weight: 600; }

/* Contact form */
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.lead-card { flex: 1 1 440px; min-width: 0; max-width: 540px; background: #fff; border-radius: 12px; padding: 28px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.lf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; }
.lf-field small { font-weight: 400; font-size: 13px; color: var(--muted); }
.lf-wide { grid-column: 1 / -1; }
.lf-field input, .lf-field select, .lf-field textarea {
  width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #8a9990; border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 400; font-size: 16px;
}
.lf-field textarea { padding: 12px; min-height: 112px; resize: vertical; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lf-submit[disabled] { opacity: .6; cursor: default; }
.lf-status { font-size: 15px; }
.lf-status:empty { display: none; }
.lf-status.is-error { color: #9b1c1c; }
.lf-note { font-size: 13px; color: var(--muted); }
.lf-done { display: flex; flex-direction: column; gap: 10px; }
.lf-done[hidden], .lead-form[hidden] { display: none; }
.lf-done h3 { font-size: 22px; }
.lf-done p { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; min-height: 48px; font-family: var(--display); font-weight: 600; font-size: 19px; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 720px; }

/* Text pages */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.prose h2 { font-size: 22px; margin-top: 16px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer { background: var(--canopy); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.site-footer strong { color: #fff; font-family: var(--display); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .hero-copy { gap: 20px; }

@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .hero { background-image: url(assets/hero-1280.jpg); }
  .hero::before { background: rgba(14, 31, 23, .86); }
  .hero .wrap { padding-top: 64px; padding-bottom: 80px; }
  .site-nav { gap: 0 20px; }
}

/* Phones */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 48px 0; }
  .stack { gap: 28px; }
  .intro { gap: 10px; }
  .intro p, .lead { font-size: 17px; }
  h2 { font-size: 28px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  section[id] { scroll-margin-top: 12px; }

  /* Header: one 60px row. Logo left, "Book a call" and menu button right. */
  .site-header .wrap { position: relative; flex-wrap: nowrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .brand { gap: 8px; font-size: 18px; white-space: nowrap; }
  .brand svg { width: 28px; height: 28px; flex: none; }
  .site-nav { flex-wrap: nowrap; gap: 8px; }
  .site-nav .btn { padding: 0 14px; white-space: nowrap; }

  /* Hero */
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .hero-copy { gap: 18px; }
  .hero h1 { font-size: clamp(32px, 9.6vw, 40px); }
  .hero-sub { font-size: 17px; }
  .hero-note { font-size: 15px; }
  .actions { gap: 10px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }

  /* Proof strip: label, then a tidy two-column list */
  .proof .wrap { display: block; padding-top: 22px; padding-bottom: 22px; }
  .proof ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 12px; }
  .proof li { font-size: 15px; line-height: 1.3; padding-left: 10px; border-left: 2px solid var(--gold); }

  .card { padding: 20px; gap: 8px; }
  .card h3 { font-size: 20px; }

  .why { gap: 28px; }
  .why-points { grid-template-columns: 1fr; gap: 20px; }
  .point { gap: 6px; padding-top: 14px; }

  .case { padding: 22px; gap: 8px; min-height: 0; }
  .case h3 { font-size: 22px; }

  /* Process: number beside the step instead of above it */
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; align-items: baseline; }
  .step-n { grid-row: 1 / span 2; font-size: 28px; line-height: 1; }
  .steps li > :not(.step-n) { grid-column: 2; }

  .plan { padding: 22px; gap: 8px; }
  .plan h3 { font-size: 20px; }
  .price { font-size: 28px; line-height: 1.2; }

  .cta { padding: 48px 0; }
  .cta .wrap { gap: 22px; }
  .cta-copy { flex-basis: 100%; gap: 10px; }
  .cta-copy p { font-size: 17px; }
  .cta .actions { flex: 1 1 100%; }
  .lead-card { flex-basis: 100%; max-width: none; padding: 20px; }
  .lead-form { grid-template-columns: 1fr; gap: 14px; }
  .lf-submit { width: 100%; justify-content: center; }
  .faq summary { font-size: 17px; padding: 14px 0; }
  .page-hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .page-hero h1 { font-size: clamp(30px, 8.6vw, 38px); }

  .site-footer .wrap { flex-direction: column; gap: 6px; padding-top: 28px; padding-bottom: 20px; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

  .notfound { min-height: 100vh; min-height: 100svh; }
}

/* Phones, browsers with the Popover API: section links live in a menu under the header. */
@supports selector(:popover-open) {
  @media (max-width: 640px) {
    .nav-toggle {
      display: inline-flex; align-items: center; justify-content: center; flex: none;
      width: 44px; height: 44px; padding: 0; border-radius: 8px; cursor: pointer;
      background: transparent; color: #fff; border: 1px solid rgba(213, 222, 216, .45);
    }
    .nav-links { display: none; }
    .nav-links:popover-open {
      display: flex; flex-direction: column;
      position: absolute; inset: 60px 0 auto 0; width: auto; height: auto; max-width: none;
      margin: 0; padding: 4px 20px 12px; border: 0; border-top: 1px solid rgba(255, 255, 255, .12);
      background: var(--canopy); color: #fff; box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
    }
    .nav-links::backdrop { background: transparent; }
    .site-nav .nav-links a { font-size: 17px; min-height: 52px; display: flex; color: #fff; }
    .site-nav .nav-links a + a { border-top: 1px solid rgba(255, 255, 255, .1); }
  }
}
/* Phones, older browsers: no menu button; the links sit in one slim scrollable row instead. */
@supports not selector(:popover-open) {
  @media (max-width: 640px) {
    .site-header .wrap { padding-bottom: 52px; }
    .site-nav { margin-left: auto; }
    .nav-links {
      display: flex; gap: 24px; position: absolute; left: 20px; right: 20px; bottom: 4px;
      overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    }
    .site-nav .nav-links a { font-size: 16px; }
  }
}
/* Very narrow phones (320px class) */
@media (max-width: 359px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 6px; }
  .brand { gap: 6px; font-size: 17px; }
  .brand svg { width: 26px; height: 26px; }
  .site-nav { gap: 6px; }
  .site-nav .btn { padding: 0 10px; font-size: 15px; }
  .nav-links:popover-open { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
