/* RT's Precision Lawn Service — site v6 */
/* RT's Precision Lawn Service — styles (v3, "dress uniform")
   Navy dress blues, red piping, brass insignia, pressed white. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --navy: #0c1d39;
  --navy-2: #13294d;
  --navy-3: #1c3a69;
  --navy-deep: #07142a;
  --red: #b8202b;
  --red-2: #9e1a24;
  --brass: #b9965b;
  --brass-2: #dcc28c;
  --white: #ffffff;
  --mist: #f2f4f7;
  --ink: #0c1626;
  --muted: #556072;
  --line: #dde2ea;
  --on-navy: #c6d0e0;
  --on-navy-2: #8e9cb5;
  --grass: #3f9933;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r: 2px;
  /* faint twill weave, like uniform cloth */
  --twill: repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 1px, transparent 1px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--font);
  font-stretch: 120%;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin: 0 0 .5em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.008em; }

:focus-visible { outline: 2px solid var(--navy-3); outline-offset: 3px; }
.on-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-2); }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: .5rem 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy) var(--twill);
  color: var(--white);
  box-shadow: 0 2px 0 var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand img { width: 38px; }
.brand-name { font-stretch: 122%; font-weight: 700; font-size: 1.15rem; line-height: 1.05; letter-spacing: -0.005em; }
.brand-name small { display: block; font-stretch: 100%; font-weight: 500; font-size: .74rem; letter-spacing: .02em; color: var(--on-navy-2); margin-top: 2px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav a { display: block; text-decoration: none; color: var(--on-navy); font-weight: 550; font-size: .94rem; padding: .5rem .85rem; position: relative; transition: color .2s ease; }
.nav a:hover { color: var(--white); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--white); }
.nav .btn { margin-left: .9rem; padding: .62rem 1.1rem; }
.nav .btn-white, .nav .btn-white:hover { color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r);
  padding: .45rem .85rem; font: 600 .9rem var(--font); color: var(--white); cursor: pointer;
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: calc(100% + 2px); background: var(--navy-deep); border-bottom: 2px solid var(--red); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.5rem 1.25rem; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--brass-2); }
  .nav .btn { margin: 1rem 0 0; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 .97rem var(--font);
  letter-spacing: .01em;
  text-decoration: none;
  padding: .95rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #e9edf4; }
.btn-line { border-color: rgba(220, 194, 140, .6); color: var(--white); }
.btn-line:hover { border-color: var(--brass-2); background: rgba(220, 194, 140, .08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; transition: color .2s ease; }
.text-link:hover { color: var(--navy-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  background:
    var(--twill),
    radial-gradient(80% 60% at 50% 100%, #2a4f86 0%, rgba(42, 79, 134, 0) 70%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 45%, #1a3766 100%);
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 30; padding: 4.75rem 0 0; }
.slogan {
  color: var(--white);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  margin: 0 auto;
}
.slogan span { display: block; }
.insignia { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.6rem auto 1.4rem; }
.insignia::before, .insignia::after { content: ""; height: 1px; width: 64px; background: var(--brass); opacity: .8; }
.insignia svg { width: 64px; height: 14px; }
.hero-lede { font-size: 1.12rem; line-height: 1.6; max-width: 34em; margin: 0 auto 2rem; color: var(--on-navy); }
.hero .btn-row { justify-content: center; }

/* ---------- Lawn stage ---------- */
.stage { position: relative; height: var(--stage-h, 300px); --lawn-h: 190px; --mower-w: 230px; margin-top: -24px; }
.stage .treeline {
  position: absolute; left: 0; right: 0; bottom: var(--lawn-h); height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='40' viewBox='0 0 640 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V26c20-1 24-12 44-12s22 9 37 9 20-14 41-14 24 12 39 12 18-7 33-7 24 10 43 10 22-15 45-15 26 14 43 14 20-5 35-5 26 9 43 9 20-12 39-12 24 10 41 10 22-7 37-7 22 9 39 9 18-10 37-10 22 12 44 12V40Z' fill='%23071226' opacity='.6'/%3E%3C/svg%3E") repeat-x bottom / 640px 40px;
}
/* Fallback lawn (no scripts / reduced motion before draw): a CSS diamond cut laid flat in perspective.
   Replaced by the drawn diamond cut when the script runs. */
.stage .lawn {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--lawn-h);
  overflow: hidden; background: #50813a;
  perspective: 1200px; perspective-origin: 50% -40%;
}
.stage .lawn::before {
  content: ""; position: absolute; left: -60%; right: -60%; top: 0; height: 420%;
  transform-origin: 50% 0; transform: rotateX(74deg);
  /* diamond cut: a light diamond centered in each dark tile */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Crect width='180' height='180' fill='%23508134'/%3E%3Cpath d='M90 0L180 90L90 180L0 90Z' fill='%2372a248'/%3E%3C/svg%3E") 50% 0 / 140px 140px;
}
.stage.has-svg-lawn .lawn { visibility: hidden; }
/* concrete curb: the lawn ends on a sharply edged line */
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 80;
  background: linear-gradient(180deg, #f4f5f1 0 2px, #e3e5df 2px 6px, #cfd3cb 6px);
  box-shadow: 0 -1px 0 rgba(0,0,0,.18);
}
.page-head .stage::after { height: 6px; }
.stage .lawn-svg, .stage .uncut-ground, .stage .tall-grass, .stage canvas {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
}
.stage .mower { position: absolute; left: 0; top: 0; transform-origin: 50% 97.78%; will-change: transform; }
.tall-grass .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.4s ease-in-out infinite alternate; }
.tall-grass .sway.b { animation-duration: 4.1s; animation-delay: -1.2s; }
.tall-grass .sway.c { animation-duration: 2.9s; animation-delay: -2s; }
@keyframes sway { from { transform: skewX(-2.5deg); } to { transform: skewX(2.5deg); } }
@media (max-width: 880px) {
  .hero-copy { padding-top: 3.25rem; }
  .hero .btn { min-width: 230px; }
  .stage { --stage-h: 230px; --lawn-h: 140px; --mower-w: 150px; margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tall-grass .sway { animation: none; }
}

/* Inner page heading: freshly cut strip, mower parked */
.page-head {
  color: var(--white);
  background: var(--twill), linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, #1a3766 100%);
}
.page-head .wrap { padding: 4.25rem 0 2rem; }
.page-head h1 { color: var(--white); margin-bottom: .35em; }
.page-head p { color: var(--on-navy); max-width: 36em; margin: 0; font-size: 1.12rem; }
.page-head .stage { --stage-h: 120px; --lawn-h: 66px; --mower-w: 124px; margin-top: 0; }
.page-head .stage .treeline { height: 26px; background-size: 640px 26px; }
@media (max-width: 880px) { .page-head .stage { --stage-h: 100px; --lawn-h: 56px; --mower-w: 100px; } }

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section-mist { background: var(--mist); }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 34em; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 1.75rem; } .section { padding: 5rem 0; } }
.prose { max-width: 37em; }
.prose p { color: #26303f; }

.intro { display: grid; grid-template-columns: 4fr 8fr; gap: 5rem; align-items: center; }
.intro-badge { width: 100%; max-width: 300px; filter: drop-shadow(0 16px 26px rgba(12, 29, 57, .22)); }
.intro .statement { margin-bottom: 1.75rem; color: var(--navy); }
.statement { font-stretch: 112%; font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.28; letter-spacing: -0.012em; color: var(--navy); margin: 0; }
@media (max-width: 880px) { .intro { grid-template-columns: 1fr; gap: 2rem; } .intro-badge { max-width: 170px; } }

.record-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 5rem; }
.record-strip div { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.record-strip strong { display: block; font-stretch: 115%; font-weight: 700; font-size: 1.12rem; color: var(--navy); margin-bottom: .25rem; }
.record-strip span { color: var(--muted); font-size: .96rem; }
@media (max-width: 760px) { .record-strip { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 3.5rem; } }

/* Service rows */
.service-list { list-style: none; margin: 3.25rem 0 0; padding: 0; border-top: 2px solid var(--navy); }
.service-list li { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.service-list h3 { margin: 0; font-size: 1.3rem; }
.service-list p { margin: 0; color: var(--muted); max-width: 34em; }
@media (max-width: 760px) { .service-list li { grid-template-columns: 1fr; gap: .4rem; } }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.25rem; border-top: 2px solid var(--navy); }
.plan { padding: 2.1rem 2.25rem 0 0; }
.plan + .plan { padding-left: 2.25rem; border-left: 1px solid var(--line); }
.plan h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.plan p { color: var(--muted); margin: 0; }
.plan .perk { color: var(--navy); font-weight: 650; margin-top: 1.1rem; display: flex; gap: .55rem; align-items: center; }
.perk::before, .est-perk::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.9 7.4.6-5.6 4.9 1.7 7.3L12 17.7l-6.5 3.8 1.7-7.3L1.6 9.3 9 8.7z' fill='%23b9965b'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 880px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Brothers */
.brothers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.brother { padding: 0 3rem 0 0; }
.brother + .brother { padding: 0 0 0 3rem; border-left: 1px solid var(--line); }
.nameplate {
  display: inline-block;
  background: #15181d;
  color: var(--white);
  font-stretch: 125%;
  font-weight: 650;
  font-size: .82rem;
  letter-spacing: .16em;
  padding: .45rem 1rem .4rem 1.16rem;
  box-shadow: inset 0 0 0 3px #15181d, inset 0 0 0 4px rgba(255,255,255,.55);
  margin-bottom: 1.4rem;
}
.brother h2 { margin-bottom: .15em; }
.brother .role { color: var(--muted); margin-bottom: 2rem; }
.record { margin: 0; border-top: 2px solid var(--navy); }
.record div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.record dt { font-weight: 650; color: var(--navy); }
.record dd { margin: 0; color: #26303f; }
@media (max-width: 880px) {
  .brothers { grid-template-columns: 1fr; gap: 3.5rem; }
  .brother, .brother + .brother { padding: 0; border-left: 0; }
}
@media (max-width: 480px) { .record div { grid-template-columns: 1fr; gap: .1rem; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3.25rem; }
.values h3 { font-size: 1.35rem; padding-top: 1.2rem; border-top: 2px solid var(--navy); }
.values p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 2.25rem; } }

/* CTA */
.cta { background: var(--navy) var(--twill); color: var(--white); padding: 5.5rem 0; box-shadow: inset 0 2px 0 var(--red); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { color: var(--white); margin: 0 0 .35rem; }
.cta p { margin: 0; color: var(--on-navy); }

/* ---------- Estimate + contact ---------- */
.estimate-layout { display: grid; grid-template-columns: 1fr 380px; gap: 4.5rem; align-items: start; }
@media (max-width: 1000px) { .estimate-layout { grid-template-columns: 1fr; gap: 3rem; } }

fieldset { border: 0; padding: 0; margin: 0 0 3.25rem; min-width: 0; }
legend { font-stretch: 120%; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.012em; color: var(--navy); padding: 0 0 .9rem; width: 100%; border-bottom: 2px solid var(--navy); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.6rem; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: .55rem; color: var(--navy); }
.hint { font-size: .9rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  width: 100%; font: inherit; padding: .85rem .95rem; border: 1px solid #c9d0db; border-radius: var(--r);
  background: var(--white); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(12, 29, 57, .12); }
textarea { min-height: 120px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.choice span {
  display: block; position: relative; border: 1px solid #c9d0db; border-radius: var(--r);
  padding: .85rem 2.3rem .85rem 1rem; font-weight: 600; line-height: 1.3; background: var(--white);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice span small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.choice span::after {
  content: ""; position: absolute; right: .9rem; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 1px solid #b3bccb; border-radius: 50%; background: var(--white);
}
.choice input[type="checkbox"] + span::after { border-radius: 1px; }
.choice input:hover + span { border-color: #8f9bb0; }
.choice input:checked + span { border-color: var(--navy); background: #f1f4f9; box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + span::after {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.choice input:focus-visible + span { outline: 2px solid var(--navy-3); outline-offset: 2px; }
.hidden { display: none !important; }
.hp { position: absolute; left: -5000px; }

.estimate-panel {
  background: var(--navy) var(--twill); color: var(--white);
  padding: 2.1rem; box-shadow: inset 0 3px 0 var(--red);
}
.estimate-panel h2 { color: var(--on-navy); font-size: 1rem; font-stretch: 100%; font-weight: 600; letter-spacing: .01em; margin-bottom: .9rem; }
.est-amount { font-stretch: 122%; font-weight: 700; font-size: 2.9rem; line-height: 1; letter-spacing: -0.025em; color: var(--white); margin-bottom: .6rem; }
.est-sub { color: var(--on-navy); margin-bottom: 1.6rem; font-size: .97rem; }
.est-lines { list-style: none; margin: 0 0 1.4rem; padding: 0; border-top: 1px solid rgba(185, 150, 91, .45); }
.est-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .94rem; }
.est-lines li span:last-child { color: var(--on-navy-2); }
.est-perk { color: var(--brass-2); font-weight: 650; margin-bottom: 1.4rem; display: flex; gap: .55rem; align-items: flex-start; }
.est-perk::before { margin-top: .3em; }
.est-note { font-size: .85rem; color: var(--on-navy-2); margin: 0; }
.estimate-layout > aside { position: sticky; top: 104px; }
@media (max-width: 1000px) { .estimate-layout > aside { position: static; } }

.call-cards { display: grid; gap: .6rem; margin-top: 1rem; }
.call-cards a {
  display: flex; justify-content: space-between; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; text-decoration: none;
  color: var(--navy); font-weight: 650; font-size: 1.1rem; transition: border-color .2s ease;
}
.call-cards a:hover { border-color: var(--navy); }
.call-cards a span { font-size: .86rem; font-weight: 600; color: var(--red); }
.aside-title { font-size: 1.1rem; margin-top: 2.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep) var(--twill); color: var(--on-navy-2); padding: 5rem 0 2rem; font-size: .95rem; box-shadow: inset 0 2px 0 var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.site-footer h3 { color: var(--white); font-size: .98rem; font-stretch: 100%; font-weight: 650; letter-spacing: .01em; padding-bottom: .7rem; border-bottom: 1px solid rgba(185, 150, 91, .45); margin-bottom: 1rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: flex; gap: 1.25rem; align-items: flex-start; }
.footer-brand img { width: 62px; flex: none; }
.motto { font-stretch: 118%; font-weight: 650; font-size: 1.12rem; line-height: 1.32; color: var(--white); margin: 0 0 .8rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3.5rem; padding-top: 1.5rem; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

/* =====================================================================
   v5 additions
   ===================================================================== */
[hidden] { display: none !important; }

/* Hero: slogan is the display line, the h1 says what and where */
.hero-title {
  color: var(--white);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 auto .6rem;
  max-width: 30em;
}
.hero .hero-lede { margin-bottom: 2rem; }

/* What you can count on */
.commit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-top: 3.25rem; }
.commit-grid div { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.commit-grid h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.commit-grid p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 980px) { .commit-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; } }
@media (max-width: 560px) { .commit-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Recent work: navy band so real photos stand out */
.work { background: var(--navy) var(--twill); color: var(--white); padding: 6rem 0; box-shadow: inset 0 2px 0 var(--red); }
.work h2 { color: var(--white); }
.work .lead { color: var(--on-navy); }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 0 0 1px rgba(185, 150, 91, .5);
  margin: 0;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.ba::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--white); z-index: 3; pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.35);
}
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.ba-knob {
  position: absolute; top: 50%; left: var(--pos); z-index: 4; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.35); pointer-events: none;
}
.ba-knob::before, .ba-knob::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.ba-knob::before { left: 6px; border-right-color: var(--navy); }
.ba-knob::after { right: 6px; border-left-color: var(--navy); }
.ba input[type="range"]:focus-visible ~ .ba-knob { outline: 2px solid var(--brass-2); outline-offset: 3px; }
.ba-tag {
  position: absolute; bottom: .75rem; z-index: 4; pointer-events: none;
  background: rgba(7, 20, 42, .82); color: var(--white); font-size: .82rem; font-weight: 600; padding: .3rem .65rem;
}
.ba-tag.before { left: .75rem; }
.ba-tag.after { right: .75rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.work-grid figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-deep); box-shadow: 0 0 0 1px rgba(185, 150, 91, .35); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .work { padding: 4.5rem 0; } .work-grid { grid-template-columns: 1fr 1fr; gap: .75rem; } }

/* Where we mow */
.area { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
.area-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; border-top: 2px solid var(--navy); }
.area-list li { break-inside: avoid; padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.area-list li span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
@media (max-width: 880px) { .area { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 420px) { .area-list { columns: 1; } }

/* Owner photos (about page) */
.team-photo { margin: 0 0 4rem; aspect-ratio: 16 / 7; overflow: hidden; background: var(--mist); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.brother-photo { margin: 0 0 1.5rem; aspect-ratio: 4 / 5; max-width: 300px; overflow: hidden; background: var(--mist); }
.brother-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .team-photo { aspect-ratio: 4 / 3; margin-bottom: 3rem; } }

/* Estimate: friendly placeholder until the calculator runs */
.est-amount.is-empty { font-size: 1.6rem; line-height: 1.2; color: var(--on-navy); }
.legend-note { display: block; font-size: .95rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-top: .35rem; }
.work-grid { margin-top: 2.75rem; }
.ba-grid:not([hidden]) + .work-grid { margin-top: 1.25rem; }
.aside-note { margin: 1.25rem 0 0; font-size: .93rem; color: var(--muted); }

/* Address: street on its own line, then city / state / ZIP */
.addr-row { display: grid; grid-template-columns: 2fr .8fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .addr-row { grid-template-columns: 1fr 1fr; } .addr-row .field:first-child { grid-column: 1 / -1; } }

/* =====================================================================
   Service area + town pages
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--on-navy-2); margin-bottom: 1.1rem; }
.crumbs a { color: var(--on-navy); text-decoration: none; border-bottom: 1px solid rgba(185, 150, 91, .5); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--brass-2); }

.town-intro { display: grid; grid-template-columns: 7fr 4fr; gap: 5rem; align-items: start; }
.town-intro .prose h2 { margin-bottom: .7em; }
.town-card { position: sticky; top: 104px; }
.town-card .record div { grid-template-columns: 1fr; gap: .15rem; padding: .9rem 0; }
.town-card .record dt { font-size: .86rem; font-weight: 600; color: var(--muted); }
.town-card .record dd { font-weight: 600; color: var(--navy); }
.town-card .btn { display: block; margin-top: 1.5rem; }
@media (max-width: 900px) { .town-intro { grid-template-columns: 1fr; gap: 2.5rem; } .town-card { position: static; } }

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.75rem; }
.notes-grid div { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.notes-grid h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.notes-grid p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .notes-grid { grid-template-columns: 1fr; gap: 2rem; } }

.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; color: #26303f; max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.nearby { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--navy); }
.nearby a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.nearby a strong { display: block; font-weight: 650; }
.nearby a span { font-size: .9rem; color: var(--muted); }
.nearby a:hover strong { color: var(--navy-3); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* Area list links (home + services) */
.area-list a { color: var(--navy); text-decoration: none; }
.area-list a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.area-list { columns: 3; }
@media (max-width: 1000px) { .area-list { columns: 2; } }
@media (max-width: 420px) { .area-list { columns: 1; } }

/* Hub: map + county lists */
.areas-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
@media (max-width: 980px) { .areas-layout { grid-template-columns: 1fr; gap: 3rem; } }
.map-frame { margin: 0; }
.map-frame figcaption { font-size: .88rem; color: var(--muted); margin-top: .75rem; }
.area-map { width: 100%; height: auto; display: block; box-shadow: inset 0 3px 0 var(--red); }
.area-map .map-bg { fill: var(--navy); }
.area-map .map-ring { fill: none; stroke: rgba(185, 150, 91, .45); stroke-width: 1.5; stroke-dasharray: 2 6; }
.area-map .map-ring-label { fill: var(--brass-2); font: 600 13px var(--font); }
.area-map .map-state { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; stroke-dasharray: 10 6; }
.area-map .map-state-label { fill: var(--on-navy-2); font: 600 13px var(--font); }
.area-map .map-town circle { fill: var(--brass); stroke: var(--navy); stroke-width: 2; }
.area-map .map-town text { fill: var(--white); font: 600 15px var(--font); }
.area-map .map-town.is-home circle { fill: var(--white); stroke: var(--red); stroke-width: 3; }
.area-map .map-town.is-home text { font-size: 17px; font-weight: 700; }
.area-map .map-town:hover circle, .area-map .map-town:focus circle { fill: var(--white); }
.area-map .map-town:hover text, .area-map .map-town:focus text { fill: var(--brass-2); text-decoration: underline; }
.area-map a:focus { outline: none; }
.area-map a:focus-visible circle { stroke: var(--brass-2); stroke-width: 4; }

.area-groups { display: grid; gap: 2rem; }
.area-group h3 { font-size: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--navy); margin-bottom: 0; }
.area-group ul { list-style: none; margin: 0; padding: 0; }
.area-group li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.area-group a { font-weight: 600; color: var(--navy); text-decoration: none; }
.area-group a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.area-group span { color: var(--muted); font-size: .92rem; white-space: nowrap; }
@media (max-width: 600px) {
  .area-map .map-town text { font-size: 25px; }
  .area-map .map-town.is-home text { font-size: 28px; }
  .area-map .map-ring-label, .area-map .map-state-label { font-size: 20px; }
  .area-map .map-town circle { r: 9px; }
  .area-map .map-town.is-home circle { r: 12px; }
}

/* =====================================================================
   v9: phone action bar, link rows, forecast band, lawn calendar
   ===================================================================== */
.link-row { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin-top: 2rem; }

/* Call / Text / Estimate bar: phones only */
.action-bar { display: none; }
@media (max-width: 880px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.35fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--navy-deep); box-shadow: 0 -2px 0 var(--red), 0 -10px 24px rgba(7, 20, 42, .25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    min-height: 62px; color: var(--white); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .1); }
  .action-bar svg { width: 22px; height: 22px; fill: var(--brass-2); }
  .action-bar a.is-primary { background: var(--white); color: var(--navy); border-left: 0; }
  .action-bar a.is-primary svg { fill: var(--navy); }
  .action-bar a:active { background: rgba(255, 255, 255, .08); }
  .action-bar a.is-primary:active { background: #e9edf4; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

/* 7-day forecast */
.forecast-band { background: var(--navy) var(--twill); color: var(--white); padding: 3.5rem 0 3rem; box-shadow: inset 0 -2px 0 var(--red); }
.fc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; }
.fc-head h2 { color: var(--white); margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.fc-head p { margin: 0; color: var(--on-navy); font-size: .95rem; max-width: 34em; }
.forecast { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid rgba(185, 150, 91, .45); }
.forecast .fc-status { grid-column: 1 / -1; padding: 1.5rem 0; color: var(--on-navy); }
.forecast .fc-status a { color: var(--white); }
.fc-day { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.1rem 1rem 1.1rem 0; position: relative; }
.fc-day + .fc-day { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .08); }
.fc-name { font-weight: 650; font-size: .95rem; }
.fc-day svg { width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: .2rem 0; }
.fc-short { font-size: .82rem; color: var(--on-navy-2); line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-temps { display: flex; gap: .5rem; align-items: baseline; }
.fc-temps b { font-stretch: 115%; font-weight: 700; font-size: 1.35rem; }
.fc-temps span { color: var(--on-navy); }
.fc-rain { font-size: .86rem; color: var(--on-navy); }
.fc-mow { font-size: .8rem; font-weight: 650; color: #8fd47a; display: inline-flex; align-items: center; gap: .35rem; margin-top: .15rem; }
.fc-mow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fc-mow.is-off { color: var(--on-navy-2); font-weight: 500; }
.fc-mow.is-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.fc-day.is-mow::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--grass); }
.fc-day + .fc-day.is-mow::after { left: 0; }
.fc-foot { margin: 1rem 0 0; font-size: .88rem; }
.fc-foot a { color: var(--on-navy); }
@media (max-width: 980px) {
  .forecast { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-right: -1.5rem; padding-right: 1.5rem; }
  .fc-day { flex: 0 0 132px; scroll-snap-align: start; }
}

/* Month nav + cards */
.month-nav ul { list-style: none; margin: 2.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.month-nav a { display: block; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; }
.month-nav a:hover { border-color: var(--navy); }
.month-nav a.is-now { background: var(--navy); border-color: var(--navy); color: var(--white); }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; margin-top: 3rem; }
.month { border-top: 2px solid var(--navy); padding-top: 1.25rem; scroll-margin-top: 100px; }
.month.is-now { border-top: 4px solid var(--grass); }
.month h3 { font-size: 1.45rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.now-tag { font-size: .78rem; font-weight: 650; font-stretch: 100%; letter-spacing: .01em; color: var(--white); background: var(--grass-deep, #2a6c22); padding: .2rem .55rem; border-radius: var(--r); }
.month-status { color: var(--navy); font-weight: 550; margin-bottom: 1rem; }
.month dl { margin: 0; }
.month dl div { padding: .7rem 0; border-top: 1px solid var(--line); }
.month dt { font-size: .84rem; font-weight: 650; color: var(--muted); margin-bottom: .2rem; }
.month dd { margin: 0; color: #26303f; font-size: .97rem; }
.month dd ul { margin: 0; padding-left: 1.1rem; }
.month dd li + li { margin-top: .35rem; }
@media (max-width: 1000px) { .months { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .months { grid-template-columns: 1fr; gap: 2.25rem; } }

/* Mowing heights table */
.table-wrap { overflow-x: auto; }
.heights { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); font-size: .98rem; }
.heights th, .heights td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.heights thead th { font-size: .84rem; color: var(--muted); font-weight: 650; }
.heights tbody th { color: var(--navy); font-weight: 650; }
.heights td:nth-child(2) { font-weight: 650; color: var(--navy); white-space: nowrap; }
.heights td:last-child { color: var(--muted); }

.sources { padding-left: 1.1rem; }
.sources li { margin-bottom: .55rem; }
.sources a { color: var(--navy); }

/* =====================================================================
   v10: weather bar (every page), home calendar section
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wx-bar { background: var(--navy-deep); color: var(--on-navy); font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.wx-bar .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 38px; }
.wx-label { font-weight: 650; color: var(--white); white-space: nowrap; }
.wx-days { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.4rem; flex: 1; min-width: 0; }
.wx-days li { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.wx-days li + li { padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.wx-days svg { width: 18px; height: 18px; fill: none; stroke: var(--brass-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wx-name { color: var(--on-navy-2); font-weight: 600; }
.wx-days b { color: var(--white); font-weight: 650; }
.wx-lo { color: var(--on-navy-2); }
.wx-rain { color: var(--on-navy); }
.wx-rain::before { content: ""; display: inline-block; width: 6px; height: 8px; margin-right: .3rem; background: var(--on-navy-2); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: polygon(50% 0, 100% 60%, 85% 100%, 15% 100%, 0 60%); vertical-align: 0; }
.wx-status, .wx-status a { color: var(--on-navy-2); }
.wx-more { margin-left: auto; color: var(--on-navy); text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(185, 150, 91, .5); }
.wx-more:hover { color: var(--white); }
@media (max-width: 900px) {
  .wx-label, .wx-more { display: none; }
  .wx-days { justify-content: space-between; gap: .5rem; }
  .wx-days li + li { padding-left: .5rem; }
}
@media (max-width: 480px) {
  .wx-bar { font-size: .74rem; }
  .wx-bar .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .wx-lo { display: none; }
  .wx-days { overflow: hidden; }
  .wx-days svg { width: 15px; height: 15px; }
  .wx-days li { gap: .25rem; }
  .wx-days li + li { padding-left: .4rem; }
  .wx-rain::before { margin-right: .15rem; }
}

/* Home: your lawn this month */
.teaser { display: grid; grid-template-columns: 5fr 6fr; gap: 4.5rem; align-items: start; }
.teaser .btn-row { align-items: center; gap: 1.5rem; margin-top: 2rem; }
.teaser-card { background: var(--white); border-top: 4px solid var(--grass); padding: 1.75rem 2rem 1.25rem; box-shadow: 0 1px 0 var(--line); }
.teaser-card h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.teaser-card dl { margin: 0; }
.teaser-card dl div { padding: .75rem 0; border-top: 1px solid var(--line); }
.teaser-card dt { font-size: .84rem; font-weight: 650; color: var(--muted); margin-bottom: .2rem; }
.teaser-card dd { margin: 0; color: #26303f; }
@media (max-width: 880px) { .teaser { grid-template-columns: 1fr; gap: 2.25rem; } .teaser-card { padding: 1.5rem 1.25rem 1rem; } }
@media (max-width: 420px) { .wx-now { display: none !important; } .wx-now + li { padding-left: 0 !important; border-left: 0 !important; } }
.wx-days li, .wx-days svg { flex: none; }

/* =====================================================================
   v11: weather bar pins with the header and links to the 7-day forecast
   ===================================================================== */
:root { --wx-h: 38px; }
html { scroll-padding-top: calc(var(--wx-h) + 90px); }
.wx-bar { display: block; position: sticky; top: 0; z-index: 101; height: var(--wx-h); text-decoration: none; transition: background-color .2s ease; }
.wx-bar .wrap { height: 100%; min-height: 0; }
.wx-bar:hover { background: #0d1f3d; }
.wx-bar:hover .wx-more { color: var(--white); border-bottom-color: var(--brass-2); }
.wx-bar:focus-visible { outline: 2px solid var(--brass-2); outline-offset: -3px; }
.site-header { top: var(--wx-h); }
.town-card, .estimate-layout > aside { top: calc(var(--wx-h) + 104px); }
.month { scroll-margin-top: calc(var(--wx-h) + 100px); }
@media (max-width: 880px) {
  .site-header .wrap { min-height: 64px; }
  html { scroll-padding-top: calc(var(--wx-h) + 80px); }
}

/* =====================================================================
   v12: staff dashboard + client account
   ===================================================================== */
.staff-link { color: var(--on-navy-2) !important; margin-left: 1rem; font-size: .8rem; }
.app-head { background: var(--navy) var(--twill); color: var(--white); padding: 2.25rem 0 1.75rem; box-shadow: inset 0 -2px 0 var(--red); }
.app-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.app-head h1 { color: var(--white); margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.app-who { display: flex; align-items: center; gap: 1rem; color: var(--on-navy); font-size: .95rem; }
.app-who strong { color: var(--white); }
.app { background: var(--mist); padding: 2.5rem 0 5rem; min-height: 60vh; }
.section.app { padding-top: 3rem; }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-block { display: block; width: 100%; }
.btn-line-dark { border-color: #b3bccb; color: var(--navy); background: var(--white); }
.btn-line-dark:hover { border-color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: default; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
input[type="password"], input[type="date"], input[type="time"], input[type="search"], select {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #c9d0db; border-radius: var(--r); background: var(--white); color: var(--ink);
}
select { appearance: auto; }
input[type="password"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="search"]:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(12, 29, 57, .12); }

.flash { margin: .75rem 0 0; padding: .7rem .9rem; border-radius: var(--r); font-size: .93rem; background: #eef2f7; color: var(--navy); }
.flash.is-ok { background: #edf7e9; color: #24581c; }
.flash.is-error { background: #fbeceb; color: #8d1a22; }
.flash.is-info { background: #eef2f7; color: var(--navy); }
.btn-row .flash { margin: 0; }

.auth-card { max-width: 440px; margin: 1rem auto; background: var(--white); padding: 2.25rem; border-top: 4px solid var(--navy); box-shadow: 0 1px 0 var(--line); }
.auth-card h2 { font-size: 1.6rem; }
.auth-card .field { margin-bottom: 1.1rem; }
.auth-foot { margin: 1rem 0 0; font-size: .93rem; }
.auth-foot a { color: var(--navy); }

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--navy); margin-bottom: 2rem; }
.tabs button { font: 650 1rem var(--font); padding: .8rem 1.4rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: var(--r) var(--r) 0 0; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-row-2 { grid-template-columns: repeat(2, minmax(0, 260px)); }
.stat-row > div, .balance-box { background: var(--white); padding: 1.1rem 1.25rem; border-top: 2px solid var(--navy); }
.stat { display: block; font-stretch: 118%; font-weight: 700; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.stat-label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }

.panel { background: var(--white); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 0 var(--line); }
.panel-title { font-size: 1.15rem; margin-bottom: 1rem; }
.source-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.source-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: .95rem; }
.source-list li span:last-child { color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .source-list { columns: 1; } }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.toolbar select { width: auto; min-width: 150px; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }

.lead-card { background: var(--white); margin-bottom: .5rem; box-shadow: 0 1px 0 var(--line); }
.lead-card summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1.4fr 1.4fr 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; }
.lead-card summary::-webkit-details-marker { display: none; }
.lead-card[open] summary { border-bottom: 1px solid var(--line); }
.lead-name { font-weight: 650; color: var(--navy); }
.lead-where, .lead-when { color: var(--muted); font-size: .93rem; }
.lead-body { padding: 1.25rem; display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.facts a { color: var(--navy); }
.lead-edit { display: flex; flex-direction: column; gap: 1rem; }
.lead-edit label { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; }
.lead-edit select, .lead-edit textarea { margin-top: .35rem; }
@media (max-width: 760px) {
  .lead-card summary { grid-template-columns: 1fr auto; }
  .lead-where, .lead-when { grid-column: 1; font-size: .85rem; }
  .lead-body { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
}
.badge { display: inline-block; font-size: .78rem; font-weight: 650; padding: .2rem .55rem; border-radius: var(--r); background: #eef2f7; color: var(--navy); white-space: nowrap; }
.badge.is-new { background: #fff1d6; color: #7a4d00; }
.badge.is-contacted { background: #e6eefb; color: #173a7a; }
.badge.is-quoted { background: #efe7fb; color: #4b2a85; }
.badge.is-won { background: #e3f3de; color: #24581c; }
.badge.is-lost { background: #f0f1f3; color: #5a6372; }

table.data { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: .82rem; color: var(--muted); font-weight: 650; border-bottom: 2px solid var(--navy); }
table.data .num { text-align: right; white-space: nowrap; }
table.data td.owes { color: #8d1a22; font-weight: 650; }
table.data tr[data-client] { cursor: pointer; }
table.data tr[data-client]:hover td { background: #f6f8fb; }
table.data .sub { display: block; color: var(--muted); font-size: .85rem; }
table.data tr.is-void td { color: var(--muted); text-decoration: line-through; }
table.data tr.is-void td .badge { text-decoration: none; }
#client-list, #ledger, #acct-statement { overflow-x: auto; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }

.client-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.client-top h2 { margin: 0; }
.balance-box { min-width: 200px; }
#client-balance.owes { color: #8d1a22; }
.client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.client-grid .panel { margin-bottom: 1.5rem; }
@media (max-width: 900px) { .client-grid { grid-template-columns: 1fr; gap: 0; } }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.form-grid .panel-title, .span-all { grid-column: 1 / -1; }
#edit-client-form.form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid, #edit-client-form.form-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip { font: 600 .85rem var(--font); padding: .4rem .7rem; border: 1px solid var(--line); background: var(--mist); color: var(--navy); border-radius: var(--r); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.invite-box { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.invite-box label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.copy-row { display: flex; gap: .5rem; margin-bottom: .75rem; }
.copy-row input { flex: 1; font-size: .85rem; }

.acct-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.acct-top h2 { margin: 0; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.acct-grid .panel { margin: 0; }
.balance-card { background: var(--navy) var(--twill); color: var(--white); padding: 1.75rem; box-shadow: inset 0 3px 0 var(--red); }
.balance-card .stat-label { color: var(--on-navy); }
.balance-amount { display: block; font-stretch: 120%; font-weight: 700; font-size: 2.8rem; line-height: 1.1; margin: .25rem 0 1.25rem; }
.balance-card .small { color: var(--on-navy-2); margin: .9rem 0 0; }
.acct-contact span { display: block; }
@media (max-width: 760px) { .acct-grid { grid-template-columns: 1fr; } }

/* v12 fixes: outline button on a <button>, statement rows on phones */
.btn-line { background: transparent; }
#acct-banner { margin: 0 0 1.5rem; }
@media (max-width: 640px) {
  table.ledger thead { display: none; }
  table.ledger, table.ledger tbody { display: block; }
  table.ledger tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: .2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  table.ledger td { border: 0; padding: 0; text-align: left; }
  table.ledger td:empty { display: none; }
  table.ledger .c-date { grid-row: 1; grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
  table.ledger .c-desc { grid-row: 2; grid-column: 1; }
  table.ledger .c-chg, table.ledger .c-pay { grid-row: 2; grid-column: 2; text-align: right; font-weight: 650; }
  table.ledger .c-pay::before { content: "Paid "; font-weight: 400; color: var(--muted); }
  table.ledger td.c-bal { grid-row: 3; grid-column: 1; font-size: .85rem; color: var(--muted); text-align: left; }
  table.ledger .c-bal::before { content: "Balance "; }
  table.ledger .c-act { grid-row: 3; grid-column: 2; text-align: right; }
}

/* =====================================================================
   v14: lead delete, Books tab
   ===================================================================== */
.btn-danger { background: #8d1a22; color: #fff; }
.btn-danger:hover { background: #6f141b; }
.btn-danger-line { background: #fff; color: #8d1a22; border-color: #e3b9bd; }
.btn-danger-line:hover { border-color: #8d1a22; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 .75rem; min-height: 2.4rem; }
.bulk-bar .flash { margin: 0; }
.pick-all { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.pick-all input, .lead-pick input { width: 18px; height: 18px; accent-color: var(--navy); }
.lead-row { display: grid; grid-template-columns: 2.5rem 1fr; align-items: start; }
.lead-pick { display: flex; justify-content: center; padding-top: 1.15rem; cursor: pointer; }
.lead-row .lead-card { min-width: 0; }

.tabs button { flex: none; }
#tab-books.is-loading > *:not(.books-filters) { opacity: .55; transition: opacity .15s; }
.books-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #c9d0db; border-radius: var(--r); background: var(--white); overflow: hidden; }
.seg button { font: 600 .88rem var(--font); padding: .55rem .85rem; border: 0; border-right: 1px solid #e3e7ee; background: transparent; color: var(--navy); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.seg-sm { margin-bottom: 1rem; }
.books-custom { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; }
.books-custom label, .books-grain { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--muted); gap: .2rem; }
.books-custom input { width: auto; padding: .45rem .6rem; }
.books-grain select { width: auto; padding: .45rem .6rem; }
.books-title { font-size: 1.35rem; margin: 0 0 1rem; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .5rem; }
.chart-head .panel-title { margin: 0; }
.chart-head select { width: auto; padding: .45rem .6rem; }
.chart-legend { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.chart-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw-in, .tip-in { background: #2a5ea8; }
.sw-out, .tip-out { background: #c17a2a; }
.books-chart { position: relative; }
.books-chart svg { display: block; overflow: visible; }
.books-chart .grid { stroke: #eceff4; stroke-width: 1; }
.books-chart .axis { stroke: #c9d0db; stroke-width: 1; }
.books-chart .tick { font: 11px var(--font); fill: var(--muted); font-variant-numeric: tabular-nums; }
.books-chart .bar-in { fill: #2a5ea8; }
.books-chart .bar-out { fill: #c17a2a; }
.books-chart .hit { fill: transparent; }
.books-chart .col { cursor: pointer; outline: none; }
.books-chart .col.is-on .hit, .books-chart .col:focus .hit { fill: rgba(12, 29, 57, .05); }
.books-chart .col.is-on .bar { filter: brightness(1.12); }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(12, 29, 57, .12); padding: .55rem .7rem; border-radius: 4px; font-size: .85rem; min-width: 150px; }
.tip-head { font-weight: 650; color: var(--navy); margin-bottom: .25rem; }
.tip-row { display: flex; align-items: center; gap: .4rem; white-space: nowrap; color: var(--muted); }
.tip-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.tip-key { display: inline-block; width: 10px; height: 2px; background: transparent; }
table.pl td, table.pl th { padding: .5rem .25rem; }
table.pl .pl-head th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 1rem; }
table.pl tr:first-child th { padding-top: .25rem; }
table.pl .pl-total td { font-weight: 650; border-top: 1px solid var(--navy); }
table.pl .pl-net td { font-weight: 700; font-size: 1.05rem; color: var(--navy); border-top: 2px solid var(--navy); border-bottom: 0; }
table.data .num { font-variant-numeric: tabular-nums; }
table.breakdown tr[data-drill] { cursor: pointer; }
table.breakdown tr[data-drill]:hover td { background: #f6f8fb; }
table.breakdown .pl-total td { font-weight: 650; border-top: 1px solid var(--navy); }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 760px) { .entry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .entry-grid { grid-template-columns: 1fr; } .seg button { padding: .5rem .6rem; font-size: .82rem; } }
table.entries .c-amt { white-space: nowrap; font-weight: 600; }
table.entries tr.is-income .c-amt { color: var(--ink); }
table.entries tr.is-expense .c-amt { color: var(--muted); }
@media (max-width: 640px) {
  table.entries.ledger tr { grid-template-columns: 1fr auto; }
  table.entries.ledger .c-amt { grid-row: 2; grid-column: 2; text-align: right; }
  table.entries.ledger .c-act { grid-row: 3; grid-column: 2; }
}

/* =====================================================================
   v14: realistic lawn stage (canvas turf, tree line, overgrown grass)
   ===================================================================== */
.stage .mower { transform-origin: 50% 98%; }
.stage.has-svg-lawn .treeline { visibility: hidden; }
.stage canvas.grass-layer { height: auto; transform-origin: 50% 100%; animation: grass-sway 3.8s ease-in-out infinite alternate; }
.stage canvas.grass-layer.front { animation-duration: 3.1s; animation-delay: -1.4s; }
@keyframes grass-sway { from { transform: skewX(-1.1deg); } to { transform: skewX(1.1deg); } }
.stage { --mower-w: 250px; }
@media (max-width: 880px) { .stage { --mower-w: 168px; } }
.page-head .stage { --mower-w: 136px; }
@media (max-width: 880px) { .page-head .stage { --mower-w: 112px; } }
@media (prefers-reduced-motion: reduce) { .stage canvas.grass-layer { animation: none; } }

/* v15: editing a Books entry */
#entry-form.is-editing { box-shadow: inset 0 3px 0 var(--brass), 0 1px 0 var(--line); }
table.entries .c-act { white-space: nowrap; }

/* =====================================================================
   v16: Home Screen app mode, receipts, take a payment
   ===================================================================== */
.install-tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; background: #fff8e6; border: 1px solid #ecd9a8; color: #5c4610; padding: .8rem 1rem; border-radius: var(--r); margin-bottom: 1.25rem; font-size: .93rem; }
.install-tip p { margin: 0; flex: 1 1 260px; }
/* opened from the Home Screen: drop the website chrome, keep the tool */
@media (display-mode: standalone) {
  body.app-staff .wx-bar, body.app-staff .site-header, body.app-staff .site-footer,
  body.app-account .wx-bar, body.app-account .site-footer, body.app-account .page-head .stage { display: none !important; }
  body.app-account .action-bar a.is-primary { display: none; }
  body.app-staff .app-head { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }
}
html.is-standalone body.app-staff .wx-bar, html.is-standalone body.app-staff .site-header, html.is-standalone body.app-staff .site-footer,
html.is-standalone body.app-account .wx-bar, html.is-standalone body.app-account .site-footer, html.is-standalone body.app-account .page-head .stage { display: none !important; }
html.is-standalone body.app-account .action-bar a.is-primary { display: none; }

/* receipts */
.receipt-field { grid-column: 1 / -1; }
.receipt-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
dialog.receipt-view { border: 0; padding: 0; max-width: min(92vw, 720px); width: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.receipt-view::backdrop { background: rgba(7, 18, 38, .72); }
.receipt-view .rv-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.receipt-view .rv-body { padding: 1rem; text-align: center; max-height: 75vh; overflow: auto; }
.receipt-view img { max-width: 100%; height: auto; }

/* take a payment */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-grid .panel { margin-bottom: 0; }
.pay-live { text-align: center; }
.pay-live .pay-amount { display: block; font-stretch: 118%; font-weight: 700; font-size: 2.4rem; color: var(--navy); line-height: 1.1; }
.pay-live .pay-what { color: var(--muted); margin: .25rem 0 1rem; }
.pay-qr { display: inline-block; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 4px; line-height: 0; }
.pay-qr svg, .pay-qr img { width: 220px; height: 220px; }
.pay-live .btn-row { justify-content: center; margin-top: 1rem; }
.pay-status { margin: 1rem auto 0; display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; padding: .55rem .9rem; border-radius: var(--r); background: #eef2f7; color: var(--navy); }
.pay-status.is-paid { background: #e3f3de; color: #24581c; font-size: 1.1rem; }
.pay-status.is-dead { background: #f0f1f3; color: #5a6372; }
.pay-status .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.pay-status.is-paid .dot, .pay-status.is-dead .dot { animation: none; }
@keyframes pulse { 50% { opacity: .25; } }
.pay-empty { color: var(--muted); padding: 2.5rem 1rem; }
.badge.is-open { background: #fff1d6; color: #7a4d00; }
.badge.is-paid { background: #e3f3de; color: #24581c; }
.badge.is-canceled, .badge.is-expired { background: #f0f1f3; color: #5a6372; }
@media (max-width: 520px) {
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { padding: .7rem .85rem; font-size: .92rem; white-space: nowrap; }
}

/* =====================================================================
   v17: calendar
   Job colors (checked for readability; every stop also carries a text label)
   ===================================================================== */
.k-mow-repeat { --c: #008300; } .k-mow-once { --c: #1baf7a; } .k-cleanup { --c: #eda100; } .k-landscape { --c: #e87ba4; } .k-other { --c: #2a78d6; }
#tab-cal.is-loading .cal-month, #tab-cal.is-loading .cal-week, #tab-cal.is-loading .cal-day { opacity: .55; transition: opacity .15s; }
.cal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin-bottom: .75rem; }
.cal-nav { display: flex; align-items: center; gap: .5rem; }
.cal-nav h2 { margin: 0; font-size: 1.5rem; min-width: 9.5em; text-align: center; }
.cal-arrow { width: 40px; height: 40px; border: 1px solid #c9d0db; background: var(--white); border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; }
.cal-arrow:hover { border-color: var(--navy); }
.cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 1rem; padding: 0; font-size: .85rem; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend i, .cal-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.cal-key { margin-right: .45rem; vertical-align: -1px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); }
.cal-dow { background: var(--mist); text-align: center; font-size: .78rem; font-weight: 650; color: var(--muted); padding: .45rem 0; text-transform: uppercase; letter-spacing: .04em; }
.cal-cell { background: var(--white); border: 0; min-height: 104px; padding: .35rem .35rem .45rem; text-align: left; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.cal-cell:hover { background: #f8fafc; }
.cal-cell.is-out { background: #fafbfc; }
.cal-cell.is-out .cal-num { color: #aab2c0; }
.cal-num { align-self: flex-end; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .9rem; font-weight: 600; }
.cal-cell.is-today .cal-num { background: var(--red); color: var(--white); }
.cal-cell.is-sel { box-shadow: inset 0 0 0 2px var(--navy); }
.cal-cell.is-sel:not(.is-today) .cal-num { background: var(--navy); color: var(--white); }
.cal-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-chip { display: block; font-size: .74rem; line-height: 1.25; padding: 2px 5px; border-radius: 3px; background: #f1f4f8; background: color-mix(in srgb, var(--c) 16%, white); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.cal-chip.is-done { opacity: .55; }
.cal-chip.is-done::before { content: "\2713 "; }
.cal-chip.is-skipped { opacity: .45; text-decoration: line-through; background: #f0f1f3; }
.cal-more { font-size: .72rem; color: var(--muted); padding-left: 4px; }
.cal-dots { display: none; justify-content: center; gap: 3px; flex-wrap: wrap; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cal-dots i.is-done, .cal-dots i.is-skipped { opacity: .35; }
@media (max-width: 700px) {
  .cal-cell { min-height: 54px; align-items: center; padding: .25rem 0 .35rem; }
  .cal-num { align-self: center; width: 30px; height: 30px; }
  .cal-chips, .cal-more { display: none; }
  .cal-dots { display: flex; }
  .cal-dow { font-size: .7rem; }
  .cal-nav h2 { font-size: 1.2rem; min-width: 8em; }
  .cal-bar { justify-content: center; }
}
.cal-day { margin-top: 1.25rem; }
.cal-day-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
.cal-day-head .panel-title { margin: 0; }
.visit { display: grid; grid-template-columns: 5.2rem 1fr auto; gap: .25rem 1rem; align-items: start; padding: .85rem .9rem .85rem 1rem; margin-bottom: .6rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 4px; cursor: pointer; }
.visit:hover { box-shadow: 0 2px 10px rgba(12, 29, 57, .08); }
.visit.is-done { opacity: .6; }
.visit.is-skipped { opacity: .5; border-left-style: dashed; }
.v-time { font-weight: 700; color: var(--navy); font-size: .95rem; padding-top: 2px; font-variant-numeric: tabular-nums; }
.v-name { font-size: 1.05rem; color: var(--navy); }
.v-what, .v-notes { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.v-notes { font-style: italic; }
.v-addr { display: inline-block; margin-top: 4px; font-size: .92rem; color: var(--navy); }
.v-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.v-price { font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .visit { grid-template-columns: 1fr auto; }
  .v-time { grid-column: 1 / -1; font-size: .85rem; }
}
.cal-week { display: grid; gap: 1rem; }
.cal-wday { background: var(--white); padding: 1rem 1.1rem; box-shadow: 0 1px 0 var(--line); }
.cal-wday h3 { font-size: 1rem; margin: 0 0 .6rem; }
.cal-wday h3 .link-btn { font-size: 1rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.cal-wday.is-today { box-shadow: inset 4px 0 0 var(--red), 0 1px 0 var(--line); }
.cal-wday .visit:last-child { margin-bottom: 0; }

dialog.sheet { border: 0; padding: 0; width: min(94vw, 640px); max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.sheet::backdrop { background: rgba(7, 18, 38, .6); }
dialog.sheet .rv-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 1; }
.sheet-body { padding: 1rem 1.1rem 1.25rem; }
.sheet-body .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .75rem; }
@media (max-width: 560px) { .sheet-body .three { grid-template-columns: 1fr 1fr; } dialog.sheet { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; } }
.vf-scope { border: 1px solid var(--line); border-radius: 4px; padding: .6rem .9rem; margin: 0 0 1rem; }
.vf-scope legend { font-size: .85rem; font-weight: 650; color: var(--navy); padding: 0 .3rem; }
.choice-inline { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; font-size: .95rem; cursor: pointer; }
.choice-inline input { width: 18px; height: 18px; accent-color: var(--navy); }
.vv-name { font-size: 1.4rem; margin: 0 0 .2rem; }
.vv-when { color: var(--muted); margin: 0 0 1rem; }
.vv-done { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1rem 0; }
.vv-move { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: 1rem; }
.vv-move label { font-weight: 600; color: var(--navy); font-size: .92rem; }
.vv-move input { width: auto; padding: .45rem .6rem; }
.vv-actions { gap: .5rem; }
.toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 1rem; background: var(--navy); color: var(--white); padding: .8rem 1.1rem; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 2rem); font-size: .95rem; }
.toast .link-btn { color: var(--brass-2); font-weight: 650; }
.client-top .btn { align-self: center; }

/* v18: address suggestions on staff forms */
.addr-wrap { position: relative; }
.addr-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; list-style: none; margin: 0; padding: .3rem 0; background: var(--white); border: 1px solid #c9d0db; border-radius: 4px; box-shadow: 0 14px 34px rgba(12, 29, 57, .18); max-height: 280px; overflow-y: auto; }
.addr-list li { padding: .6rem .9rem; cursor: pointer; line-height: 1.3; }
.addr-list li:hover, .addr-list li.is-active { background: #f1f4f9; }
.addr-list strong { display: block; color: var(--navy); font-size: .95rem; }
.addr-list span { display: block; color: var(--muted); font-size: .82rem; }
dialog.sheet { overflow: visible; }
dialog.sheet .sheet-body { max-height: calc(92vh - 60px); overflow-y: auto; }

/* ---- v19: price list on the services page ---- */
.price-list { margin: 1.5rem 0 0; max-width: 560px; border-top: 1px solid #d5dbe4; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid #d5dbe4; }
.price-list dt { font-weight: 600; }
.price-list dd { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stage { overflow-x: clip; } /* stops the grass strip nudging the page a pixel sideways on phones */

/* ---- v20: emailed bills and payment requests ---- */
.pay-send { margin: 1.1rem 0 .4rem; padding-top: 1rem; border-top: 1px solid #e3e7ee; text-align: left; }
.pay-send label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.send-row { display: flex; gap: .5rem; }
.send-row input { flex: 1 1 auto; min-width: 0; }
.send-row .btn { flex: 0 0 auto; }
.pay-send .flash { margin-top: .6rem; }
.invoice-form { margin-bottom: 1.25rem; max-width: 620px; }
.invoice-last { margin: -.25rem 0 1.25rem; }
.invoice { max-width: 620px; }
.invoice.is-paid { border-left: 4px solid #3f8a2f; }
.inv-hi { font-size: 1.1rem; font-weight: 600; margin: 0 0 .75rem; }
.inv-lines { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-variant-numeric: tabular-nums; }
.inv-lines td, .inv-lines th { padding: .7rem .5rem .7rem 0; border-bottom: 1px solid #e3e7ee; text-align: left; vertical-align: top; }
.inv-lines .c-date { color: var(--muted); white-space: nowrap; width: 5.5rem; }
.inv-lines .num { text-align: right; white-space: nowrap; padding-right: 0; }
.inv-lines tfoot th, .inv-lines tfoot td { border-bottom: 0; font-weight: 700; font-size: 1.15rem; padding-top: 1rem; }
.inv-q { margin: 2rem 0 .75rem; font-weight: 600; }
#inv-pay { width: 100%; max-width: 360px; }
.client-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-self: center; margin-right: auto; margin-left: 1.5rem; }
@media (max-width: 640px) { .client-actions { margin-left: 0; width: 100%; } }
