/* ============================================================================
   FORESTDALE LAWN CO. — STYLES
   ----------------------------------------------------------------------------
   🎨 OWNER: To change the whole color scheme, edit the variables in :root below.
   You can swap the entire palette from this one place. A few alternate
   directions are included as comments — uncomment one to try it.
   (All text/pricing/contact content lives in CONFIG at the top of site.js.)
   ============================================================================ */

:root {
  /* ---- PRIMARY PALETTE (default) ---- */
  --green-deep: #1f3d2b;   /* headings, footer, primary buttons */
  --green-mid: #2c573c;    /* gradients */
  --green-accent: #5fa052; /* highlights, accents, rules */
  --cream: #f4f1ea;        /* alt section backgrounds */
  --white: #ffffff;
  --ink: #1c241e;          /* body text */
  --ink-soft: #51604f;     /* muted text */
  --line: #e4e7df;         /* borders */

  /* ---- ALTERNATE PALETTES (uncomment a block to try it) ----
  -- Charcoal + green --
  --green-deep:#23262a; --green-mid:#33383d; --green-accent:#5fa052; --cream:#f1f2f0; --ink:#1d1f22; --ink-soft:#565b60;
  -- Navy coastal --
  --green-deep:#16324f; --green-mid:#1d4561; --green-accent:#3f8e7d; --cream:#eef3f4; --ink:#15222e; --ink-soft:#4a5b67;
  -- Sage premium --
  --green-deep:#33483b; --green-mid:#465f4c; --green-accent:#8aa873; --cream:#f3f1e7; --ink:#26302a; --ink-soft:#5a665d;
  ------------------------------------------------------------- */

  /* ---- Type & layout ---- */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1100px;
  --maxw-narrow: 620px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(31, 61, 43, 0.06), 0 4px 12px rgba(31, 61, 43, 0.06);
  --shadow: 0 10px 30px rgba(31, 61, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(31, 61, 43, 0.16);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; letter-spacing: -0.02em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-deep); color: var(--white);
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green-accent); outline-offset: 2px; border-radius: 4px; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  min-height: 50px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: 0 12px 24px rgba(31, 61, 43, 0.22); }
.btn--ghost { background: var(--white); color: var(--green-deep); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--green-accent); color: var(--green-deep); }
.btn--sm { padding: .55rem 1.1rem; min-height: 42px; font-size: .95rem; }
.btn--lg { padding: 1rem 1.8rem; min-height: 56px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ============================================================================
   HEADER
   ============================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }

/* ============================================================================
   HERO  (photographic — logo sits front and center on a white badge)
   ============================================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--green-deep);
  padding: clamp(3rem, 10vw, 6rem) 1.3rem clamp(3.4rem, 11vw, 6.5rem);
  text-align: center;
  color: var(--white);
}
.hero--photo {
  background-image: url("assets/hero.jpg");
  background-size: cover; background-position: center 60%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 61, 43, 0.58) 0%, rgba(31, 61, 43, 0.78) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero__badge {
  display: inline-block;
  background: var(--white);
  padding: clamp(.9rem, 3vw, 1.2rem) clamp(1.3rem, 5vw, 1.9rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 0 auto clamp(1.5rem, 5vw, 2.2rem);
}
.hero__logo { width: clamp(190px, 52vw, 300px); height: auto; display: block; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .4em;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700;
  color: #bcdcb0;
  margin: 0 0 1rem;
}
.hero__eyebrow .pin { width: 15px; height: 15px; }
.hero__title {
  font-size: clamp(1.9rem, 6.5vw, 3rem); font-weight: 800;
  color: var(--white); margin-bottom: .35em;
  max-width: 18ch; margin-inline: auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero__tagline { font-size: clamp(1.1rem, 4vw, 1.35rem); font-weight: 700; color: #bfe0b4; margin: 0 0 .8em; }
.hero__blurb { color: #dcead6; max-width: 46ch; margin: 0 auto 2rem; font-size: 1.06rem; }
.hero__cta { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }

/* ============================================================================
   TRUST BAR
   ============================================================================ */
.trust {
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: #eaf3e6;
  padding: 1.1rem 1rem;
}
.trust__list {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--maxw);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .7rem 1.8rem;
  font-weight: 600; font-size: .95rem;
}
.trust__item { display: inline-flex; align-items: center; gap: .5em; }
.trust__check { width: 17px; height: 17px; color: var(--green-accent); flex: none; }

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section { padding: clamp(3rem, 9vw, 5.5rem) 1.3rem; }
.section--alt { background: var(--cream); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__inner--narrow { max-width: var(--maxw-narrow); }
.section__kicker {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 800; color: var(--green-accent);
  margin: 0 0 .5rem;
}
.section__title { font-size: clamp(1.7rem, 5.5vw, 2.4rem); font-weight: 800; color: var(--green-deep); }
.section__lead { color: var(--ink-soft); margin: 0 0 2.2rem; font-size: 1.08rem; max-width: 52ch; }

.prose { margin: 0 0 1.1rem; color: var(--ink); font-size: 1.06rem; }
.about__cta { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.8rem; }

/* About: text + image */
.about__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.about__media { margin: 0; }
.about__media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); display: block;
}

/* ============================================================================
   IMAGE BAND
   ============================================================================ */
.band {
  position: relative;
  min-height: clamp(220px, 38vw, 320px);
  display: grid; place-items: center; text-align: center;
  background: var(--green-deep) url("assets/edge.jpg") center/cover no-repeat;
}
.band__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31, 61, 43, 0.62), rgba(44, 87, 60, 0.62));
}
.band__text {
  position: relative; z-index: 1;
  color: var(--white); font-weight: 800;
  font-size: clamp(1.3rem, 4.4vw, 2rem); letter-spacing: -0.02em;
  max-width: 22ch; margin: 0; padding: 2.4rem 1.3rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* ---- Service cards ---- */
.grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dccd; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(95, 160, 82, 0.12); color: var(--green-deep);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.3rem; color: var(--green-deep); margin-bottom: .25em; }
.card__price {
  display: inline-block; font-weight: 700; color: var(--green-accent);
  margin: 0 0 .6rem; font-size: 1.02rem;
}
.card__desc { margin: 0; color: var(--ink-soft); }

/* ============================================================================
   CONTACT / FORM
   ============================================================================ */
.contact-shortcut { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; }

.or-divider {
  text-align: center; color: var(--ink-soft);
  margin: 1.6rem 0; position: relative; font-size: .9rem;
}
.or-divider::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--line); z-index: 0;
}
.or-divider span { position: relative; background: var(--white); padding: 0 .9rem; z-index: 1; }
.section--alt .or-divider span { background: var(--cream); }

.form {
  display: grid; gap: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .96rem; color: var(--green-deep); padding: 0; }
.field--group { display: grid; gap: .6rem; }
.req { color: var(--green-accent); }
.field__opt { font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
.field__hint { margin: 0; font-size: .82rem; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: .85rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfa;
  color: var(--ink);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa79a; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(95, 160, 82, 0.14);
  outline: none;
}
.field textarea { resize: vertical; }

.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer; background: #fbfcfa;
  transition: border-color .15s, background .15s;
}
.radio:has(input:checked) { border-color: var(--green-accent); background: rgba(95, 160, 82, 0.10); color: var(--green-deep); }
.radio input { width: auto; accent-color: var(--green-accent); margin: 0; }

.form__fineprint { margin: -.2rem 0 0; font-size: .82rem; color: var(--ink-soft); text-align: center; }

.form-success {
  background: var(--white);
  border: 2px solid var(--green-accent);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.form-success h3 { color: var(--green-deep); margin-bottom: .3em; font-size: 1.4rem; }
.form-success p { margin: 0; color: var(--ink-soft); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: #c8d6c2;
  padding: 3rem 1.3rem;
  text-align: center;
}
.site-footer__inner { max-width: var(--maxw-narrow); margin: 0 auto; }
.site-footer__name { font-size: 1.45rem; font-weight: 800; color: var(--white); margin: 0 0 .3rem; letter-spacing: -0.02em; }
.site-footer__area { margin: 0 0 .6rem; }
.site-footer__phone { margin: 0 0 1.1rem; }
.site-footer__phone a { color: var(--white); font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.site-footer__phone a:hover { text-decoration: underline; }
.site-footer__social { display: flex; gap: 1.2rem; justify-content: center; margin: 0 0 1.2rem; }
.site-footer__social a { color: var(--green-accent); font-weight: 700; text-decoration: none; }
.site-footer__social:empty { display: none; }
.site-footer__fine { font-size: .8rem; opacity: .7; margin: 0; }

/* ============================================================================
   RESPONSIVE — scale up from mobile baseline
   ============================================================================ */
@media (min-width: 600px) {
  .hero__cta { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .hero__cta .btn { flex: 0 1 auto; }
  .about__cta { flex-direction: row; }
}
@media (min-width: 820px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .about__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
