/*
Theme Name: NRC Lawn Care
Version: 1.0.0
Text Domain: kit
*/

:root {
  --ink: #15241a;
  --mute: rgba(21, 36, 26, .72);
  --g1: #3f8f2f;
  --g2: #6cb33f;
  --g3: #2c6a22;
  --pale: #eef7e6;
  --sky: #4aa3df;
  --sun: #ffd23f;
  --wrap: 1200px;
  --gap: 24px;
  --head: 'Krona One', 'Arial Black', sans-serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --stripe: repeating-linear-gradient(125deg, var(--g1) 0 70px, var(--g2) 70px 140px);
}

body { font: 400 17px/1.6 var(--body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .4em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.kicker { font: 700 .95rem/1.2 var(--body); color: var(--g1); margin: 0 0 12px; letter-spacing: .02em; }
.fine { font-size: .9rem; color: var(--mute); }
.proto-note { margin: 0; padding: 7px var(--gap); background: var(--ink); color: #fff; font: 500 .88rem/1.3 var(--body); text-align: center; }

.masthead { background: #fff; border-bottom: 4px solid transparent; border-image: var(--stripe) 1; }
.masthead-in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gap); min-height: 72px; }
.brand-name { font: 400 1.25rem/1 var(--head); color: var(--ink); white-space: nowrap; }
.brand-name b { font-weight: 400; color: #fff; background: var(--g1); padding: 4px 8px 3px; margin-right: 6px; border-radius: 4px; }
.nav-list a { font: 600 1rem/1 var(--body); color: var(--ink); padding: 8px 0; border-bottom: 3px solid transparent; }
.nav-list a:hover { border-color: var(--g2); }
.nav-call { font: 700 1.05rem/1 var(--body); text-decoration: none; background: var(--g1); color: #fff; padding: 13px 16px; border-radius: 40px; }
.nav-toggle { background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 40px; padding: 0 14px; font: 600 1rem var(--body); }
.top-call { display: none; }
@media (max-width: 1080px) {
  .site-nav { background: #fff; padding: 8px var(--gap) 22px; }
  .nav-list a { font-size: 1.2rem; border-bottom: 1px solid rgba(0,0,0,.08); }
  .top-call { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 16px; background: var(--g1); color: #fff; font: 700 1rem/1 var(--body); text-decoration: none; border-radius: 40px; }
  .nav-toggle { margin-left: 10px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; font: 700 1.08rem/1 var(--body); text-decoration: none; border-radius: 40px; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-call { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #c9a21d; }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 2px #fff; backdrop-filter: blur(4px); }
.acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* hero: the words lie on the lawn in perspective, cut like mower stripes */
.nrc-hero { position: relative; min-height: calc(100svh - 106px); max-height: 960px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--g3); color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-media .stripes { position: absolute; inset: 0; background: var(--stripe); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,24,12,.82) 0%, rgba(10,24,12,.45) 38%, rgba(10,24,12,0) 62%); }
.hero-copy { width: 100%; padding-bottom: clamp(30px, 6vh, 64px); perspective: 900px; }
.hero-kicker { font: 600 1rem/1.2 var(--body); margin: 0 0 18px; color: var(--sun); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.cut { font-size: clamp(2.6rem, 7.4vw, 7rem); line-height: .95; margin: 0 0 18px; transform: rotateX(28deg); transform-origin: 0 100%; text-shadow: 0 10px 30px rgba(0,0,0,.45); }
.cut span { display: inline-block; padding: .04em .14em .02em; margin: 0 -.06em .08em 0; background: linear-gradient(90deg, rgba(108,179,63,.92), rgba(63,143,47,.92)); }
.cut span.b { background: linear-gradient(90deg, rgba(44,106,34,.92), rgba(63,143,47,.92)); color: var(--sun); }
.js .cut span { clip-path: inset(0 100% 0 0); animation: mow .9s cubic-bezier(.6,0,.2,1) forwards; }
.js .cut span:nth-child(2) { animation-delay: .18s; } .js .cut span:nth-child(3) { animation-delay: .36s; } .js .cut span:nth-child(4) { animation-delay: .54s; }
@keyframes mow { to { clip-path: inset(0 0 0 0); } }
.hero-lead { max-width: 36em; font-size: 1.15rem; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.7); margin: 0; }
.flag { position: absolute; right: clamp(20px, 6vw, 90px); bottom: clamp(120px, 26vh, 260px); display: flex; align-items: flex-start; text-decoration: none; color: var(--ink); transform-origin: 0 100%; animation: sway 3.2s ease-in-out infinite; }
.flag-pole { width: 4px; height: 150px; background: #f4f4f4; border-radius: 2px; box-shadow: 1px 2px 4px rgba(0,0,0,.4); }
.flag-cloth { background: var(--sun); padding: 10px 16px 12px 14px; font: 600 .82rem/1.25 var(--body); clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.flag-cloth b { font: 400 1rem/1.2 var(--head); }
@keyframes sway { 50% { transform: rotate(-2.5deg); } }

/* rating bar */
.ratebar { background: var(--ink); color: #fff; }
.rate-in { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.rate-in p { margin: 0; }
.stars span { color: var(--sun); letter-spacing: .1em; font-size: 1.2rem; }
.stars b { font: 400 1.2rem var(--head); margin: 0 4px; }
.rate-in a { color: var(--sun); font-weight: 700; text-decoration: none; }

.band { padding: clamp(64px, 9vw, 110px) 0; }

/* schedule picker */
.plan { background: var(--pale); }
.plan-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.plan p { color: var(--mute); }
.seg { display: inline-flex; background: #fff; border-radius: 40px; padding: 5px; box-shadow: inset 0 0 0 2px #d4e7c4; margin: 10px 0 12px; }
.seg button { border: 0; background: none; font: 700 1.05rem var(--body); padding: 12px 22px; border-radius: 40px; cursor: pointer; color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--g1); color: #fff; }
.cal { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.4); }
.cal-head, .cal-row { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head span { font: 700 .78rem/1 var(--body); color: var(--mute); text-align: center; padding-bottom: 8px; }
.cal-row { margin-bottom: 6px; }
.cal-row .wk { font: 700 .8rem/32px var(--body); color: var(--mute); text-align: center; }
.cal-row i { height: 32px; border-radius: 8px; background: #f1f5ee; }
.cal-row i.cut { background: var(--stripe); background-size: 200% 200%; box-shadow: inset 0 0 0 2px var(--g3); animation: pop .45s cubic-bezier(.3,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.cal-count { margin: 12px 0 0; font-weight: 700; color: var(--g3) !important; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4.2; border-radius: 22px; text-decoration: none; color: #fff; background: var(--g3); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.tile-stripes { position: absolute; inset: 0; background: var(--stripe); }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,24,12,.85), rgba(10,24,12,0) 58%); }
.tile-t { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; }
.tile-t b { display: block; font: 400 1.3rem/1.1 var(--head); margin-bottom: 8px; }
.tile-t span { font-size: .92rem; color: rgba(255,255,255,.88); }

/* the self-mowing band */
.mowband { position: relative; height: 150px; overflow: hidden; background: var(--g3); }
.mow-mown { position: absolute; inset: 0; background: var(--stripe); }
.mow-shag { position: absolute; inset: 0; left: var(--cut, 0%); background:
  repeating-linear-gradient(98deg, rgba(20,60,15,.55) 0 3px, transparent 3px 7px),
  repeating-linear-gradient(80deg, rgba(160,200,90,.45) 0 2px, transparent 2px 9px),
  linear-gradient(0deg, #3d7a24, #5c9a35); }
.mower { position: absolute; top: 50%; left: var(--cut, 0%); width: 74px; height: 50px; margin: -25px 0 0 -40px; background: var(--sun); border-radius: 12px 16px 8px 8px; box-shadow: 0 6px 12px rgba(0,0,0,.35), inset -10px -6px 0 rgba(0,0,0,.12); }
.mower::before, .mower::after { content: ''; position: absolute; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: #222; }
.mower::before { left: 6px; } .mower::after { right: 6px; }

/* map */
.area { background: #fff; }
.area-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.area p { color: var(--mute); }
.map { margin: 0; background: #fff; padding: 12px; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.45); }
.map-svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.map-svg .sea { fill: var(--sky); }
.map-svg .sl { fill: rgba(255,255,255,.85); font: 400 16px var(--head); letter-spacing: .14em; }
.map-svg .pin circle { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.map-svg .pin.hq circle { fill: var(--ink); stroke: var(--sun); stroke-width: 4; }
.map-svg .pin text { fill: var(--ink); font: 700 15px var(--body); paint-order: stroke; stroke: #e3f1d5; stroke-width: 5px; }
.js .map .pin { opacity: 0; transform: translateY(-12px); transition: opacity .5s ease calc(var(--d) * .14s + .3s), transform .6s cubic-bezier(.3,1.6,.4,1) calc(var(--d) * .14s + .3s); }
.js .map.in .pin { opacity: 1; transform: none; }

/* quote */
.quote { background: var(--pale); }
.quote-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote p { color: var(--mute); }
.quote-call { font: 400 1.15rem/1.3 var(--head); color: var(--ink) !important; }
.quote-call a { text-decoration-color: var(--g2); text-decoration-thickness: 4px; }
.quote-form { background: #fff; padding: clamp(22px, 3vw, 34px); border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.35); }
.kit-form label { font-weight: 600; font-size: .95rem; }
.kit-form input, .kit-form select, .kit-form textarea { border: 2px solid #d4e3c8; border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--ink); }
.kit-form input:focus, .kit-form select:focus, .kit-form textarea:focus { outline: none; border-color: var(--g1); box-shadow: 0 0 0 3px rgba(63,143,47,.22); }
.kit-form input.touched:invalid { border-color: #b3261e; }
.btn-solid { background: var(--g1); color: #fff; border: 0; border-radius: 40px; padding: 0 26px; font: 700 1.08rem/1 var(--body); box-shadow: 0 5px 0 var(--g3); }
.form-note { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.form-note.ok { background: #e3f3df; color: var(--g3); }
.form-note.err { background: #fbe5e3; color: #8a1c14; }

.foot { background: var(--ink); color: rgba(255,255,255,.78); padding: 48px 0 0; border-top: 8px solid transparent; border-image: var(--stripe) 1; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-title { font: 400 1.3rem/1 var(--head); color: #fff; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--sun); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-base { max-width: var(--wrap); margin: 36px auto 0; padding: 18px var(--gap) 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

.js .from-l { opacity: 0; transform: translateX(-60px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.js .from-r { opacity: 0; transform: translateX(60px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.js .from-l.in, .js .from-r.in { opacity: 1; transform: none; }
html { overflow-x: clip; }

@media (max-width: 900px) {
  .nrc-hero { flex-direction: column; align-items: stretch; min-height: 0; max-height: none; background: var(--ink); }
  .hero-media { position: relative; height: 62vw; min-height: 230px; z-index: 0; }
  .hero-media::after { display: none; }
  .hero-copy { padding: 26px 0 30px; }
  .cut { transform: none; font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .flag { bottom: auto; top: 40px; right: 18px; }
  .flag-pole { height: 110px; }
  .plan-in, .area-in, .quote-in { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .cal { padding: 14px; } .cal-head, .cal-row { grid-template-columns: 30px repeat(7, minmax(0, 1fr)); gap: 4px; }
  .foot-in { grid-template-columns: 1fr; }
  .js .from-l { transform: translateX(-26px); } .js .from-r { transform: translateX(26px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .cut span { animation: none; clip-path: none; }
  .flag { animation: none; }
  .js .from-l, .js .from-r { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .masthead-in { gap: 8px; padding: 10px 14px; }
  .brand-name { font-size: 1rem; }
  .brand-name b { padding: 3px 6px 2px; margin-right: 4px; }
  .top-call { padding: 0 12px; }
  .nav-toggle { margin-left: 6px; padding: 0 10px; }
}
.hero-kicker { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 14px rgba(0,0,0,.8); }
