/* ===========================================================
   North Fork Lawn & Hedge: demo site styles
   Direction: "Cut line" (2026-09-15). Measured and architectural.
   Cool off-white ground, near-black green ink, one deep moss for
   dark panels, one survey-flag orange used like a flag: rarely.
   One grotesk family, Familjen Grotesk.

   Structure (second pass, same day): a SERVICE GRID with the
   estimate form living in the hero. No full-bleed hero, no
   headline over a photo. Two-column hero on paper (headline left,
   form on a moss panel right), then a bento of services whose
   tiles differ in span and surface, a compact pinned calendar
   tile, a scroll-snapping strip of hamlets, a 21:9 hedge panel.
   Motion comes from ../../assets/motion.css (loaded after this).
   =========================================================== */

:root {
  --ground: #f3f4f0;
  --ground-2: #e9ebe5;
  --ink: #101512;
  --ink-2: #4b524d;
  --ink-3: #6f7671;        /* 4.7:1 on ground */
  --moss: #1d3a2a;
  --moss-2: #163021;
  --flag: #ff5a1f;
  --flag-ink: #b23a0b;     /* 5.2:1 on ground */
  --on-dark: #f3f4f0;
  --on-dark-2: rgba(243, 244, 240, 0.72);
  --line: rgba(16, 21, 18, 0.14);
  --line-strong: rgba(16, 21, 18, 0.3);
  --line-dark: rgba(243, 244, 240, 0.18);

  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  --w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 3px;
  --pill: 999px;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --step-2: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem);
  --step-3: clamp(2.5rem, 1.5rem + 4.6vw, 4.8rem);
  --step-4: clamp(2.8rem, 1.2rem + 6.2vw, 6.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; }
.skip-link { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem !important; top: 1rem; background: var(--ink); color: var(--on-dark); z-index: 100; }
.wrap { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 244, 240, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 40px; }
.brand-mark { width: 22px; height: 12px; background: var(--moss); border-radius: 2px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 3px; background: var(--flag); border-radius: 2px; }
.nav-toggle-wrap { margin-left: auto; order: 3; }
.nav-toggle-wrap summary { list-style: none; cursor: pointer; }
.nav-toggle-wrap summary::-webkit-details-marker { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--pill); background: transparent; }
.nav-panel { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav-link { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-2); padding: .5rem 0; min-height: 40px; display: inline-flex; align-items: center; }
.nav-link:hover { color: var(--ink); }
.nav-phone { font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.35rem; border-radius: var(--pill); font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; transition: transform var(--m-dur-fast, 160ms) var(--m-ease-out, ease-out), background var(--m-dur-base, 300ms) var(--m-ease-out, ease-out), color var(--m-dur-base, 300ms); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--moss); }
.btn-flag { background: var(--flag); color: #fff; }
.btn-flag:hover { background: #e84d14; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.on-dark .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.on-dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; }
  .site-header:has(.nav-toggle-wrap[open]) .nav-panel { position: absolute; left: 0; right: 0; top: 68px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; }
  .site-header:has(.nav-toggle-wrap[open]) .nav-link, .site-header:has(.nav-toggle-wrap[open]) .nav-phone { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-header:has(.nav-toggle-wrap[open]) .btn { margin-top: .9rem; }
}

/* ---------- Hero: headline left, the estimate form right ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
.hero-kicker { font-weight: 600; color: var(--flag-ink); margin-bottom: 1rem; }
.hero-title { font-size: var(--step-4); line-height: 0.94; font-weight: 700; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
.hero-lede { max-width: 44ch; font-size: var(--step-1); line-height: 1.4; color: var(--ink-2); margin-top: 1.4rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); color: var(--ink-2); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts .icon { color: var(--flag); }
.hero-call { margin-top: 1.6rem; color: var(--ink-2); }
.hero-call a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--flag); }

/* The form is the product: a moss panel, white fields. */
.estimate { background: var(--moss); color: var(--on-dark); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); }
.estimate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.estimate-head h2 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.estimate-head span { font-size: .9rem; color: var(--on-dark-2); white-space: nowrap; }
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--on-dark); }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .9rem; border: 1px solid transparent; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 46px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; gap: .9rem; }
.form-note { color: var(--on-dark-2); font-size: .88rem; }
.estimate .btn-flag { width: 100%; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } .estimate .btn-flag { width: auto; } }

/* ---------- Services: bento ---------- */
.services { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.services-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; margin-bottom: 1.4rem; }
.services-head h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; }
.services-head p { color: var(--ink-2); max-width: 52ch; }
.bento { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: clip; }
@media (min-width: 700px) { .tile { min-height: 220px; justify-content: flex-end; } }
.tile h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.tile p { color: var(--ink-2); margin-top: .5rem; max-width: 34ch; }
.tile .from { display: block; margin-top: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .from small { display: block; font-weight: 500; color: var(--ink-3); font-size: .85rem; }
/* one photo tile */
.tile-photo { color: var(--on-dark); background: var(--ink); min-height: 380px; border-color: transparent; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.tile-photo .panel { position: relative; background: var(--moss); padding: 1.1rem 1.2rem; margin: 0 -1.4rem -1.4rem; }
.tile-photo p { color: var(--on-dark-2); }
.tile-photo .from small { color: var(--on-dark-2); }
/* one orange rule */
.tile-rule { border-top: 3px solid var(--flag); }
/* one tinted type tile */
.tile-tint { background: var(--ground-2); border-color: transparent; }
/* one dark tile: the phone */
.tile-dark { background: var(--ink); color: var(--on-dark); border-color: transparent; }
.tile-dark p { color: var(--on-dark-2); }
.tile-dark a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-1); font-weight: 700; color: var(--on-dark); text-decoration: none; margin-top: .4rem; }
.tile-dark a:hover { color: var(--flag); }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); }
  .tile-photo { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Calendar: the one pinned moment, kept compact ---------- */
.year { --m-pin-length-once: 130vh; --m-pin-height: auto; --m-pin-top: 84px; margin-top: 12px; }
.year-tile { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.4rem; }
.year-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.2rem; }
.year-head h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; }
.year-head p { color: var(--ink-2); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; border-top: 1px solid var(--ink); padding-top: .7rem; position: relative; }
.months li { font-weight: 600; font-size: .88rem; letter-spacing: .02em; text-align: center; color: var(--ink-3); }
.months li.on { color: var(--ink); }
.marker { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--flag); transform-origin: left; transform: scaleX(1); }
.year-steps { display: grid; gap: 0 2rem; margin-top: 1.4rem; }
.year-step { display: grid; grid-template-columns: 6.5rem 1fr; gap: .2rem .8rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.year-step .when { font-weight: 700; font-size: .95rem; }
.year-step h4 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.year-step p { color: var(--ink-2); font-size: .95rem; margin-top: .15rem; }
.year-step .fill { grid-column: 1 / -1; height: 3px; background: var(--flag); transform-origin: left; transform: scaleX(1); border-radius: 2px; margin-top: .5rem; }
@media (min-width: 900px) { .year-steps { grid-template-columns: 1fr 1fr; } }
@supports (view-timeline-name: --m-pin) {
  @media (prefers-reduced-motion: no-preference) {
    .marker { animation: sweep linear both; animation-timeline: --m-pin; animation-range: 5% 90%; --m-seq-dur: 1400ms; }
    .year-step .fill { animation: fill linear both; animation-timeline: --m-pin; }
    .year-step:nth-child(1) .fill { animation-range: 5% 25%; }
    .year-step:nth-child(2) .fill { animation-range: 25% 50%; }
    .year-step:nth-child(3) .fill { animation-range: 50% 70%; }
    .year-step:nth-child(4) .fill { animation-range: 70% 90%; }
  }
}
@keyframes sweep { from { transform: scaleX(0.02); } to { transform: scaleX(1); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 899px) {
  .year { --m-pin-length: 0; --m-pin-length-once: 0; min-height: 0 !important; }
  .year .m-pin { position: static; min-height: 0; }
  .months li { font-size: .7rem; }
  .year-step { grid-template-columns: 5.5rem 1fr; }
}

/* ---------- Hamlets: a scroll-snapping strip of chips ---------- */
.area { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.area-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.2rem; }
.area-head h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; }
.area-head p { color: var(--ink-2); max-width: 52ch; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem 0 .8rem; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.chip { flex: none; scroll-snap-align: start; min-width: 12.5rem; padding: 1rem 1.1rem; border: 1px solid var(--ink); border-radius: var(--radius); display: grid; gap: .15rem; }
.chip b { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.chip span { color: var(--ink-2); font-size: .92rem; }
.chip-flag { background: var(--moss); color: var(--on-dark); border-color: var(--moss); }
.chip-flag span { color: var(--on-dark-2); }

/* ---------- Hedge panel: 21:9, one caption ---------- */
.panel-wrap { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.hedge-panel { position: relative; aspect-ratio: 21 / 9; min-height: 240px; border-radius: var(--radius); overflow: clip; background: var(--ink); isolation: isolate; }
.hedge-panel img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.hedge-panel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.4rem; color: var(--on-dark); background: linear-gradient(180deg, rgba(16,21,18,0) 0%, rgba(16,21,18,0.7) 100%); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--ink-2); font-size: .95rem; }
.footer-grid { display: grid; gap: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; }
.disclaimer { color: var(--ink-3); font-size: .85rem; max-width: 70ch; }
.disclaimer a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
