/* ==========================================================================
   Meadowline Lawn Care (demo site) — shared stylesheet

   This is a demo built by Graham Cloud Services, not a real company's site
   — see the persistent .demo-banner in every page. Palette is warm and
   light rather than corporate's dark navy/teal, on purpose: research on
   lawn-care sites (docs/superpowers/specs/2026-07-30-lawncare-demo-design.md)
   called out a "calm, high-end" look with generous white space as the
   standout pattern in the category.
   ========================================================================== */

@import url("/fonts/fonts.css?v=1");

:root {
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #23291f;
  --ink-soft: #55604e;
  --line: #e2ddcd;

  --forest: #1f4a34;
  --forest-2: #16351f;
  --leaf: #4a8a5c;
  --leaf-dark: #396d48;
  --leaf-soft: #e8f2e9;

  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --gutter: 1.5rem;
  --radius: 14px;
  --band-y: 5.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--forest-2);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--leaf-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band {
  padding: var(--band-y) 0;
}
.band--tight { padding: 3rem 0; }
.band--raised { background: var(--white); }
.band--tint { background: var(--leaf-soft); }

.kicker {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--leaf-dark);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.req {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85em;
}

.band-head { margin-bottom: 3rem; }
.band-head--wide .lede { max-width: 70ch; }

/* ---------------------------------------------------------------------- */
/* Demo banner + header                                                    */
/* ---------------------------------------------------------------------- */

.demo-banner {
  background: var(--forest-2);
  color: var(--white);
  font-size: 0.85rem;
}
.demo-banner-inner {
  padding: 0.5rem var(--gutter);
  text-align: center;
}
.demo-banner a {
  color: var(--white);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--forest-2);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--forest);
  display: inline-block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--forest-2);
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
}
.nav-links a.active:not(.btn),
.nav-links a:not(.btn):hover { color: var(--leaf-dark); }
.nav-cta { margin-left: 0.25rem; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--leaf);
  color: var(--white);
}
.btn-primary:hover { background: var(--leaf-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--leaf-soft); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.7;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(31, 74, 52, 0.18);
}

/* ---------------------------------------------------------------------- */
/* Stats row                                                                */
/* ---------------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--forest);
}
.stat-label {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Grids + cards                                                           */
/* ---------------------------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-top: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.service-card svg {
  width: 34px;
  height: 34px;
  stroke: var(--leaf-dark);
  fill: none;
  stroke-width: 1.6;
  margin-bottom: 1rem;
}
.service-price {
  font-family: var(--display);
  font-weight: 700;
  color: var(--forest);
  margin-top: 0.75rem;
}

.testimonial-card { position: relative; }
.testimonial-quote {
  font-size: 1.05rem;
  color: var(--ink);
}
.testimonial-name {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--forest-2);
}

/* ---------------------------------------------------------------------- */
/* Gallery                                                                  */
/* ---------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery-item img { border-radius: 0; }
.gallery-caption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.gallery-note {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--forest-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
}
.form-field [aria-invalid="true"] {
  border-color: #b3451f;
}
.form-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.side-card {
  background: var(--leaf-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.side-card h3 { margin-bottom: 0.75rem; }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
}
.side-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--leaf-dark);
  font-weight: 700;
}

.cta-band {
  text-align: center;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
}
.cta-band h2, .cta-band .lede { color: var(--white); }
.cta-band .lede { margin: 0 auto 1.75rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--forest-2);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4rem;
}
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-mark { background: var(--leaf); }
.footer-brand p { color: rgba(255, 255, 255, 0.7); margin-top: 0.75rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--display);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: var(--white); }
.footer-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------------- */
/* 404                                                                      */
/* ---------------------------------------------------------------------- */

.error-page {
  text-align: center;
  padding: 7rem 0;
}
.error-code {
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--leaf-soft);
  -webkit-text-stroke: 2px var(--forest);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0 0;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; }
  .grid-2, .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
}
