/* Rehak's Mowing — mobile-first, no frameworks. */

:root {
  --green-900: #123d1d;
  --green-700: #1d5b2c;   /* primary */
  --green-500: #2e7d32;
  --mint-100: #eef8f0;    /* page background */
  --mint-200: #d9efdd;
  --accent: #f5b301;      /* CTA yellow, used with dark text */
  --accent-dark: #d99a00;
  --ink: #142a19;
  --ink-soft: #3a4f3f;
  --white: #ffffff;
  --radius: 14px;
  --tap: 52px;
  --wrap: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;          /* 18px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--mint-100);
  padding-bottom: calc(var(--tap) + 28px + env(safe-area-inset-bottom)); /* room for sticky bar */
}

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

h1, h2, h3 { line-height: 1.2; color: var(--green-900); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--green-700); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--green-900);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green-900); color: var(--white);
  padding: 0.75rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--mint-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: var(--tap);
  font-weight: 800; font-size: 1.35rem; color: var(--green-900); text-decoration: none;
}
.wordmark-icon { width: 34px; height: 34px; flex: none; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.75rem;
  color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px;
}
.site-nav a:hover { background: var(--mint-100); color: var(--green-700); }

/* Hero */
.hero { background: var(--green-700); color: var(--white); padding: 2.5rem 0 2.75rem; }
.hero h1 { color: var(--white); }
.hero-lead { font-size: 1.2rem; max-width: 36rem; }
.hero-price { font-size: 1.35rem; }
.hero-price strong { color: var(--accent); }
.hero-hours { margin: 1.25rem 0 0; color: #e3f2e5; max-width: 36rem; }

/* Buttons */
.cta-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--tap); padding: 0.85rem 1.5rem;
  font-size: 1.2rem; font-weight: 800; text-decoration: none;
  border-radius: 999px; border: 3px solid transparent;
}
.btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn-call { background: var(--accent); color: var(--ink); }
.btn-call:hover { background: #ffc629; }
.btn-text { background: var(--white); color: var(--green-900); border-color: var(--white); }
.btn-text:hover { background: var(--mint-100); }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.ticks li {
  position: relative; padding: 0.85rem 1rem 0.85rem 3.25rem;
  background: var(--white); border-radius: var(--radius); font-weight: 700; font-size: 1.2rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.note { max-width: 42rem; }
.not-included {
  max-width: 42rem; padding: 1rem 1.25rem;
  border-left: 5px solid var(--accent-dark); background: #fff7e0; border-radius: 0 var(--radius) var(--radius) 0;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--mint-100); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem 4.75rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.15rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--green-700); color: var(--white);
  font-weight: 800; font-size: 1.3rem; display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; }

.chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1rem;
  background: var(--white); border: 2px solid var(--green-500); color: var(--green-900);
  border-radius: 999px; font-weight: 700;
}
.chips .chip-more { border-style: dashed; font-weight: 600; }

/* Gallery / before-after slider */
.gallery-grid { display: grid; gap: 1.5rem; max-width: 26rem; margin: 0 auto; }
.ba { margin: 0; }
.ba-frame {
  --v: 0.5; /* slider value 0–1; position matches the 56px range thumb centre */
  --pos: calc(28px + (100% - 56px) * var(--v));
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius); background: var(--mint-200);
  touch-action: pan-y;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-label {
  position: absolute; top: 0.6rem; z-index: 2; pointer-events: none;
  background: rgba(18, 61, 29, 0.88); color: var(--white);
  font-size: 0.95rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px;
}
.ba-label-before { left: 0.6rem; }
.ba-label-after { right: 0.6rem; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; pointer-events: none;
  width: 4px; margin-left: -2px; background: var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6 3 12l6 6V6zm6 0v12l6-6-6-6z' fill='%23142a19'/%3E%3C/svg%3E") center / 60% no-repeat;
  border: 3px solid var(--white); box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.ba-range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 600px; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 56px; height: 600px; border: 0; cursor: ew-resize; }
.ba-frame:focus-within { outline: 3px solid var(--green-900); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent); }
.ba figcaption { margin-top: 0.6rem; font-weight: 600; color: var(--ink-soft); }

/* FAQs */
.faqs { display: grid; gap: 0.75rem; max-width: 48rem; }
.faqs details { background: var(--white); border-radius: var(--radius); border: 2px solid var(--mint-200); }
.faqs summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--tap); padding: 0.9rem 1.25rem;
  font-weight: 700; font-size: 1.15rem; color: var(--green-900);
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint-100);
  font-size: 1.5rem; line-height: 1; color: var(--green-700);
}
.faqs details[open] summary::after { content: "−"; }
.faqs details p { padding: 0 1.25rem 1.1rem; margin: 0; }

/* Footer */
.site-footer { background: var(--green-900); color: #e3f2e5; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-name { font-weight: 800; font-size: 1.35rem; color: var(--white); margin-bottom: 0.25rem; }
.footer-phone { font-size: 1.5rem; font-weight: 800; display: inline-flex; align-items: center; min-height: 48px; }
.footer-heading { font-size: 1.1rem; color: var(--accent); margin-bottom: 0.35rem; }
.site-footer p { margin-bottom: 0.4rem; }
.copyright { margin-top: 1.5rem; font-size: 1rem; }

/* Sticky mobile call/text bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--mint-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.sticky-bar .btn { padding: 0.6rem 0.75rem; }
.sticky-bar .btn-text { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.sticky-bar .btn-text:hover { background: var(--green-900); }

/* Tablet and up */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .site-nav { display: block; }
  .hero { padding: 4rem 0; }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .ticks { grid-template-columns: repeat(2, 1fr); max-width: 42rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4.5rem 1.25rem 1.25rem; }
  .steps li::before { top: 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); max-width: 52rem; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr 1fr; }
  .section { padding: 4rem 0; }
}
