/* ==========================================================================
   M.A.D Landscape Services & More LLC
   Design system: "Modern grounded landscaping"
   One stylesheet, mobile-first, no frameworks.
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --forest: #1F3D2B;
  --forest-700: #16301f;
  --green: #4C8C4A;
  --green-600: #3f7a3d;
  --sand: #D8C3A5;
  --sand-200: #ece2d2;
  --ink: #1A1A1A;
  --muted: #555049;
  --bg: #F7F6F1;
  --white: #ffffff;
  --line: #e4e1d7;

  --shadow-sm: 0 1px 2px rgba(31, 61, 43, .06), 0 1px 3px rgba(31, 61, 43, .08);
  --shadow-md: 0 6px 18px rgba(31, 61, 43, .10);
  --shadow-lg: 0 18px 48px rgba(31, 61, 43, .16);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2rem; }
button { font: inherit; cursor: pointer; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green-600);
  display: inline-block;
  margin-bottom: .75rem;
}

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--sand-200); }
.section--forest { background: var(--forest); color: #eef2ec; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest p { color: #cfdac8; }
.center { text-align: center; }
.measure { max-width: 46rem; }
.measure-wide { max-width: 60rem; }
.mx-auto { margin-inline: auto; }
.grid { display: grid; gap: var(--gap); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff;
  padding: .75rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: var(--sand-200); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 241, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; color: var(--forest); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(145deg, var(--forest), var(--green));
  color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name { font-size: 1.05rem; line-height: 1.08; white-space: nowrap; }
.brand__name small { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .1rem; list-style: none; padding: 0; margin: 0; align-items: center; }
.site-nav a {
  color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .94rem; white-space: nowrap;
  padding: .5rem .62rem; border-radius: 9px; transition: background .15s, color .15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--sand-200); color: var(--forest); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: .7rem; margin-left: .4rem; }
.header-call { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; color: var(--forest); white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: 10px; padding: .5rem; color: var(--forest); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .site-nav { position: fixed; inset: 64px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; padding: 1rem clamp(1.1rem,4vw,2rem) 1.5rem; box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .28s var(--ease); max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a { display: block; padding: .85rem .9rem; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-cta { display: none; }
}
@media (max-width: 420px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__mark svg { width: 21px; height: 21px; }
  .brand__name { font-size: .98rem; }
}

/* ----- Hero ----- */
.hero { position: relative; isolation: isolate; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(22,48,31,.92) 0%, rgba(31,61,43,.78) 45%, rgba(31,61,43,.35) 100%);
}
.hero__inner { padding-block: clamp(4rem, 12vw, 8rem); max-width: 44rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #e9efe4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; margin-top: 2rem; color: #dfe7d9; font-size: .95rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.stars { color: #f3c969; letter-spacing: .08em; }

/* page hero (interior) */
.page-hero { background: var(--forest); color: #fff; position: relative; isolation: isolate; }
.page-hero::before {
  content:""; position:absolute; inset:0; z-index:-1; opacity:.18;
  background-image: radial-gradient(circle at 20% 20%, var(--green) 0, transparent 40%), radial-gradient(circle at 80% 0, var(--sand) 0, transparent 35%);
}
.page-hero__inner { padding-block: clamp(2.8rem, 7vw, 4.5rem); max-width: 50rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d3ddca; font-size: 1.15rem; margin-top: .8rem; }

/* ----- Breadcrumbs ----- */
.breadcrumbs { font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; align-items: center; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--sand); opacity: .8; }
.breadcrumbs li:last-child::after { content: ""; }
.page-hero .breadcrumbs a { color: #cdd9c4; }
.page-hero .breadcrumbs li:last-child { color: #fff; }

/* ----- Cards & grids ----- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--gap); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 1rem; }
.card .card__link { margin-top: auto; font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.card .card__link::after { content: "\2192"; transition: transform .2s var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--sand-200); color: var(--forest);
}
.card__icon svg { width: 28px; height: 28px; }

/* feature / alternating split */
.split { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1fr 1fr; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sand-200); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* ----- Checklist ----- */
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--green); -webkit-mask: var(--tick) center/.8rem no-repeat; mask: var(--tick) center/.8rem no-repeat;
}
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }

/* ----- Steps / process ----- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; position: relative; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: 1.4rem; display: block; margin-bottom: .4rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }

/* ----- Stats band ----- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem 0; text-align: center; }
.stats > * { position: relative; padding: .15rem clamp(.75rem, 2vw, 1.5rem); }
.stats > * + *::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 56%; width: 1px; background: rgba(216, 195, 165, .22); }
@media (max-width: 640px) { .stats > * + *::before { display: none; } }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3rem); color: var(--green); line-height: 1; letter-spacing: -.02em; }
.section--forest .stat__num { color: var(--sand); }
.stat__star { color: #f3c969; font-size: .46em; vertical-align: .85em; margin-left: .12em; letter-spacing: 0; }
.stat__label { font-size: .95rem; margin-top: .55rem; max-width: 19ch; margin-inline: auto; line-height: 1.35; }

/* ----- Testimonials ----- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.review .stars { font-size: 1.05rem; }
.review blockquote { margin: .7rem 0 1rem; color: var(--ink); font-size: 1.05rem; }
.review cite { font-style: normal; font-weight: 600; font-family: var(--font-head); color: var(--forest); }
.review cite span { display: block; font-weight: 400; font-family: var(--font-body); color: var(--muted); font-size: .9rem; }

/* ----- Gallery ----- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--sand-200); }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ----- CTA band ----- */
.cta-band { background: linear-gradient(120deg, var(--forest), var(--green-600)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.2rem); text-align: center; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6d4; max-width: 40rem; margin: .6rem auto 1.4rem; }
.cta-band .btn--primary { background: #fff; color: var(--forest); }
.cta-band .btn--primary:hover { background: var(--sand-200); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ----- FAQ ----- */
.faq { display: grid; gap: .8rem; max-width: 50rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.2rem; box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-head); font-weight: 600; color: var(--forest); padding: .9rem 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1rem; }

/* ----- Article / prose ----- */
.prose { max-width: 46rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2rem; font-size: 1.08rem; }
.prose h2 { margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose ul li, .prose ol li { margin-bottom: .4rem; }
.article-meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.tag { display: inline-block; background: var(--sand-200); color: var(--forest); font-size: .78rem; font-weight: 600; font-family: var(--font-head); padding: .25rem .7rem; border-radius: var(--radius-pill); }

/* ----- Forms ----- */
.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--font-head); font-weight: 600; color: var(--forest); font-size: .95rem; }
.field .req { color: #b23a2e; }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(76,140,74,.18); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.field-error { color: #b23a2e; font-size: .85rem; min-height: 1em; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b23a2e; }
.form__note { font-size: .8rem; color: var(--muted); }
.form-status { border-radius: 11px; padding: .9rem 1rem; font-weight: 600; }
.form-status[data-state="success"] { background: #e6f2e3; color: var(--forest); border: 1px solid var(--green); }
.form-status[data-state="error"] { background: #fbeae8; color: #8a2a20; border: 1px solid #d68b82; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ----- Footer ----- */
.site-footer { background: var(--forest-700); color: #c8d4c0; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.site-footer a { color: #dbe5d3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name small { color: var(--sand); }
.footer-brand p { color: #b4c2ab; max-width: 22rem; }
.nap { font-style: normal; display: grid; gap: .45rem; margin-top: .3rem; }
.nap a { display: inline-flex; align-items: center; gap: .5rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .15s; }
.socials a:hover { background: var(--green); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #9fae96; }
.footer-bottom a { color: #9fae96; }

/* ----- Click-to-call sticky (mobile) ----- */
.sticky-call { display: none; }
@media (max-width: 1080px) {
  .sticky-call {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--green); color: #fff; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem; font-family: var(--font-head); font-weight: 700; box-shadow: 0 -4px 18px rgba(0,0,0,.18);
  }
  .sticky-call:hover { text-decoration: none; color: #fff; }
  body { padding-bottom: 56px; }
}

/* ----- Misc ----- */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .55rem 1.05rem; font-size: .95rem; font-family: var(--font-head); color: var(--forest); font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s; }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); flex: none; transition: background .18s; }
a.pill:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); text-decoration: none; }
a.pill:hover::before { background: #fff; }
.muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--section-y); }

/* ----- Scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
