:root {
  --bg: #f3f6f1;
  --ink: #142018;
  --muted: #3d4f42;
  --line: rgba(20, 32, 24, 0.12);
  --green: #1f4d32;
  --green-deep: #0f2a1c;
  --moss: #6f8f72;
  --sun: #e8d48b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 42, 28, 0.18);
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --banner-h: 2.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(111, 143, 114, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 212, 139, 0.16), transparent 55%),
    var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.preview-banner {
  background: #1a1a1a;
  color: #f5f5f5;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.preview-banner strong {
  color: var(--sun);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 241, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: none;
  gap: 1.35rem;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 24px rgba(31, 77, 50, 0.28);
}

.btn:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-small {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;

  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 42, 28, 0.25) 0%, rgba(15, 42, 28, 0.72) 58%, rgba(15, 42, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 42, 28, 0.45), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 40rem;
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: rise 700ms ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 14ch;
  animation: rise 800ms ease both;
  animation-delay: 80ms;
}

.lede {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
  animation: rise 850ms ease both;
  animation-delay: 140ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 900ms ease both;
  animation-delay: 200ms;
}

.section {
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--moss);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-lede {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 38ch;
}

.service-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

/* Reveal moved to the [data-reveal] system in the P11 polish block below. */

.service-list h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

.strip {
  padding: 0;
}

.strip-inner {
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, var(--green-deep), var(--green) 55%, #2f6a45);
  color: var(--white);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.strip p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.35;
  max-width: 28ch;
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  max-width: 42ch;
}

.about-photo {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: min(420px, 70vw);
  object-fit: cover;
}

.contact {
  padding-bottom: 5.5rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-phone {
  margin-top: 1.25rem;
  color: var(--muted);
}

.contact-phone a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.quote-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(31, 77, 50, 0.35);
  outline-offset: 1px;
}

.form-note {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--green);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 0.4rem;
}

.footer-inner p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Local SEO / Starter chrome (§3a) */
.page-hero {
  padding: 3.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.faq-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.65);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.nap {
  color: var(--muted);
  font-size: 0.92rem;
}

.nap p {
  margin: 0.15rem 0;
}

.nap-card {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.35rem !important;
}

.footer-links a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .strip-inner {
    padding: 2rem 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .brand-mark,
  .hero h1,
  .lede,
  .hero-actions,
  .service-list li {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   P11 client polish — 2026-07-30
   Appended to the Starter template AND to Lucas. Behaviour is identical in all
   four packs; only the accent colour differs, and that comes from the pack via
   --accent / --go, never from here.

   Rules this block keeps:
   - Nothing here may hide content unless JS has announced itself on <html>.
     A visitor with JS blocked, and every headless screenshot, must see the
     full page. This is why every reveal rule is scoped to html.js.
   - prefers-reduced-motion removes transforms and transitions outright.
   - Hover lift only on a real pointer, never on touch.
   ========================================================================== */

/* --- 1. Scroll reveal --------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
  will-change: opacity, transform;
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --- 3. Hover / press micro-interactions -------------------------------- */
.service-list li,
.review-card,
.faq-list details,
.nap-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-list li:hover,
  .review-card:hover,
  .nap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 20, 15, 0.1);
  }
}

.btn:active,
.reviews-link:active {
  transform: scale(0.98);
  transition: transform 100ms ease;
}

/* Photo zoom. The frame must clip, or the image grows past its corners. */
.about-photo,
.hero-media,
.photo-frame {
  overflow: hidden;
}

.about-photo img,
.photo-frame img {
  transition: transform 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-photo:hover img,
  .photo-frame:hover img {
    transform: scale(1.03);
  }
}

/* --- 4. Service icons --------------------------------------------------- */
.svc-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--accent, var(--go, currentColor));
}

/* Icon column only when an icon is present. About "How we work" reuses
   .service-list with h3+p and no icon — a forced 24px first column wrapped
   those titles one word per line (ClearPath 2026-08-01). */
.service-list li:has(> .svc-icon) {
  grid-template-columns: 24px 1fr;
  column-gap: 0.85rem;
  align-items: start;
}

.service-list li > .svc-icon {
  grid-row: 1 / span 2;
  margin-top: 0.15rem;
}

/* --- 5. Review strip ---------------------------------------------------- */
.star-row {
  display: inline-flex;
  gap: 1px;
  vertical-align: -2px;
}

.star-row svg {
  width: 15px;
  height: 15px;
  color: #e6b800;
}

.g-mark {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

/* --- 6. Image discipline ------------------------------------------------ */
/* height:auto is load-bearing next to width/height attributes: a used height
   from the attribute makes the browser ignore aspect-ratio entirely. */
.about-photo img,
.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* --- 7. Type ------------------------------------------------------------ */
h1,
.section h2,
.page-hero h1 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* --- 2. Mobile sticky call bar ------------------------------------------
   Live client sites only. Previews and outreach mockups carry .is-preview on
   <body> and never show it, so a pitch screenshot is not covered by a bar the
   lead cannot use yet. */
.callbar {
  display: none;
}

@media (max-width: 720px) {
  body:not(.is-preview) .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40; /* AI helper launcher sits at 60 and must stay above */
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
    min-height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--accent, var(--go, #16371f));
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
  }

  body:not(.is-preview) .callbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 56px;
    padding: 0 0.75rem;
    font-family: var(--font-body, inherit);
    font-weight: 650;
    font-size: 1rem;
    line-height: 1.1;
    text-decoration: none;
    color: #fff;
  }

  body:not(.is-preview) .callbar a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 600;
  }

  body:not(.is-preview) .callbar a:active {
    background: rgba(0, 0, 0, 0.12);
  }

  /* Last content must clear the bar. */
  body:not(.is-preview) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  /* And the AI launcher must clear it too, or it sits under the bar. */
  body:not(.is-preview) .lh-widget {
    bottom: calc(56px + 12px + env(safe-area-inset-bottom));
  }
}

/* --- Reduced motion: last word ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-list li,
  .review-card,
  .faq-list details,
  .nap-card,
  .about-photo img,
  .photo-frame img,
  .btn,
  .reviews-link {
    transition: none;
  }

  .service-list li:hover,
  .review-card:hover,
  .nap-card:hover,
  .about-photo:hover img,
  .photo-frame:hover img,
  .btn:active,
  .reviews-link:active {
    transform: none;
    box-shadow: none;
  }
}
