/* Sample concept by Launchpoint for Affordable Lawn Service LLC. Not the business's official site. */

/* ---- motion-base ---- */
:root {
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-slow: 520ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- tokens ---- */
:root {
  --ink: #17221a;
  --muted: #4a574d;
  --brand: #1f6a34;
  --brand-dark: #144a24;
  --brand-soft: #e8f2ea;
  --accent: #f5b82e;
  --accent-ink: #1b1608;
  --line: #d3ddd5;
  --bg: #ffffff;
  --cream: #f6f4ec;
  --hero-eyebrow: #ffd36b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 28px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  font: 700 1.05rem/1.2 "Barlow", sans-serif;
  text-decoration: none; text-align: center;
  border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffc94d; }
.btn-outline { border-color: var(--brand); color: var(--brand-dark); background: #fff; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-primary:active { transform: translateY(1px); }

/* ---- sample banner ---- */
.sample-banner {
  background: #2b2f33; color: #f1f3f4;
  font-size: .6875rem; line-height: 1.3; text-align: center;
  padding: 6px 10px;
}
@media (min-width: 768px) { .sample-banner { font-size: .875rem; padding: 8px 16px; } }

/* ---- header ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 8px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.brand {
  font: 700 1.2rem/1.05 "Barlow Condensed", sans-serif; text-decoration: none; color: var(--brand-dark);
  flex: 1 1 0; min-width: 0;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn-call-sm { min-height: 48px; min-width: 64px; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); }
.menu-toggle {
  min-height: 48px; min-width: 64px; padding: 8px 14px; font: 700 1rem "Barlow", sans-serif;
  background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
}
.site-nav { flex: 1 0 100%; display: flex; flex-direction: column; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: flex; }
.site-nav a {
  padding: 14px 6px; min-height: 48px; text-decoration: none; color: var(--ink); font-weight: 600;
  border-top: 1px solid var(--line);
}
.nav-phone { display: none; }
@media (min-width: 900px) {
  .header-inner { padding: 12px 24px; flex-wrap: nowrap; }
  .brand { font-size: 1.7rem; flex: 0 0 auto; }
  .menu-toggle { display: none; }
  .js .site-nav, .site-nav { display: flex; flex: 1 1 auto; flex-direction: row; justify-content: flex-end; align-items: center; gap: 6px; order: 2; }
  .site-nav a { border: 0; padding: 10px 14px; }
  .nav-phone { display: inline-flex; align-items: center; font-weight: 700; color: var(--brand-dark); }
  .header-actions { order: 3; }
  .btn-call-sm { padding: 8px 22px; }
}

/* ---- photo hero ---- */
.photo-hero {
  --shade: var(--hero-shade-rgb, 14, 36, 22);
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: min(82vh, 620px); padding: 40px 20px 44px;
  background: rgb(var(--shade)); color: #fff;
}
.photo-hero-media { position: absolute; inset: -8% 0; z-index: -2; transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }
.photo-hero-media picture, .photo-hero-media img { display: block; width: 100%; height: 100%; }
.photo-hero-media img {
  object-fit: cover; object-position: var(--hero-focus, 50% 50%);
  animation: photo-reveal 900ms var(--ease-out) both, photo-zoom 18s var(--ease-out) both;
  transform-origin: var(--hero-focus, 50% 50%);
}
@keyframes photo-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.photo-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--shade), .62) 0%, rgba(var(--shade), .8) 100%); }
.photo-hero-content { width: 100%; max-width: 1120px; margin: 0 auto; }
.photo-hero-content > * { max-width: 620px; }
.photo-hero-eyebrow {
  margin: 0 0 10px; font-size: clamp(.68rem, 3.1vw, .9rem); font-weight: 700; letter-spacing: 0;
  white-space: nowrap; color: var(--hero-eyebrow);
}
.photo-hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 8.4vw, 3.7rem); line-height: 1.04; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.photo-hero-sub { margin: 0 0 22px; font-size: 1.1rem; line-height: 1.5; color: rgba(255,255,255,.95); }
.photo-hero-actions { display: flex; flex-direction: column; gap: 12px; }
.photo-hero .btn-on-photo { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.9); }
.photo-hero .btn-on-photo:hover { background: rgba(255,255,255,.22); }
@media (min-width: 640px) { .photo-hero-actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 768px) {
  .photo-hero { padding: 88px 32px; }
  .photo-hero-overlay { background: linear-gradient(90deg, rgba(var(--shade), .88) 0%, rgba(var(--shade), .66) 48%, rgba(var(--shade), .22) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-hero-media { transform: none; }
  .photo-hero-media img { animation: none; opacity: 1; transform: none; }
}

/* ---- trust bar ---- */
.trust-bar { background: var(--brand-dark); color: #fff; }
.trust-inner { padding-top: 20px; padding-bottom: 20px; display: grid; gap: 16px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .95rem; line-height: 1.35; font-weight: 500; }
.trust-list li { padding-left: 12px; border-left: 3px solid var(--accent); }
.trust-call { width: 100%; }
@media (min-width: 900px) {
  .trust-inner { grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-call { width: auto; }
}

/* ---- sections ---- */
.section { padding: 56px 0; }
.section-soft { background: var(--cream); }
.section-dark { background: #14281a; color: #fff; }
.section-dark a { color: #ffd36b; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section-dark .lead { color: rgba(255,255,255,.88); }
@media (min-width: 768px) { .section { padding: 84px 0; } }

/* ---- fade-in ---- */
.js .fade-in { opacity: 0; transform: translateY(16px); transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out); }
.js .fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade-in { opacity: 1; transform: none; transition: none; } }

/* ---- hover lift ---- */
.lift { transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lift:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,30,20,.16); } }
.lift:focus-within { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,30,20,.16); }
@media (prefers-reduced-motion: reduce) { .lift, .lift:hover, .lift:focus-within { transform: none; } }

/* ---- service cards ---- */
.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(15,30,20,.06); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; color: var(--brand-dark); }
.card-body p { color: var(--muted); }
.card-text { border-top: 5px solid var(--brand); }
.card-link { margin-top: auto; display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--brand); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---- service picker ---- */
.picker { max-width: 760px; }
.picker-lead { margin: 0 0 18px; color: var(--muted); }
.picker-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .picker-options { grid-template-columns: 1fr 1fr; } }
.picker-opt {
  font: inherit; font-weight: 500; text-align: left; padding: 16px 18px; min-height: 58px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: inherit; cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .picker-opt:hover { border-color: var(--brand); transform: translateY(-2px); } }
.picker-opt:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.picker-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.picker-result { margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: var(--brand-soft); border-left: 6px solid var(--brand); }
.picker-result[hidden] { display: none; }
.picker-result h3 { margin: 0 0 6px; color: var(--brand-dark); }
.picker-result p { margin: 0 0 14px; }
.picker-result.is-entering { animation: picker-in var(--motion-base) var(--ease-out); }
@keyframes picker-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.picker-fallback { margin: 16px 0 0; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) {
  .picker-opt, .picker-opt:hover { transform: none; transition: none; }
  .picker-result.is-entering { animation: none; }
}

/* ---- service area ---- */
.area { display: grid; gap: 28px; }
.note { color: var(--muted); font-size: .98rem; }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.towns li { background: var(--brand-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font: 700 1.35rem/1.1 "Barlow Condensed", sans-serif; color: var(--brand-dark); }
@media (min-width: 800px) { .area { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; } }

/* ---- quote form ---- */
.quote { display: grid; gap: 28px; }
.quote-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px 20px; }
.quote-form a { color: var(--brand); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { font-weight: 500; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 1rem "Barlow", sans-serif; color: var(--ink);
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { min-height: 112px; resize: vertical; }
.form-note { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.form-preview { margin: 12px 0 0; font-weight: 700; font-size: .95rem; color: #8a4b00; text-align: center; }
.form-call { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 900px) { .quote { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 56px; } .quote-form { padding: 32px; } }

/* ---- footer ---- */
.site-footer { background: #0e1a12; color: rgba(255,255,255,.88); padding: 44px 0 28px; font-size: .98rem; }
.site-footer a { color: #ffd36b; }
.site-footer p { margin-bottom: .7em; }
.footer-name { font: 700 1.6rem/1.1 "Barlow Condensed", sans-serif; color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 8px 0; }
.footer-sample { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.credits { font-size: .85rem; color: rgba(255,255,255,.7); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1.1fr .6fr; } }

/* ---- call bar (phones) ---- */
.call-bar { display: none; }
@media (max-width: 767.98px) {
  .call-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50;
    display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 10px 18px;
    border-radius: 16px; background: var(--accent); color: var(--accent-ink); text-decoration: none;
    box-shadow: 0 10px 30px rgba(10,25,15,.32);
    transform: translateY(calc(100% + 24px)); transition: transform var(--motion-base) var(--ease-out);
  }
  .call-bar.is-shown { transform: none; }
  .call-bar:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
  .call-bar-text strong { font-size: 1.15rem; }
  body.has-call-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .call-bar { transition: none; } }
