/* M&M Landscaping and Design — Kalispell, MT
   System fonts only, no build step, mobile-first. */

:root {
  --green-deep: #152A1F;
  --green-dark: #1E3A2B;
  --green-mid: #274E3A;
  --cream: #F1E8D6;
  --cream-light: #FAF6EF;
  --rust: #A8532B;
  --rust-dark: #7A3A1D;
  --ink: #20281D;
  --border: #DCD3BE;
  --white: #FFFFFF;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--rust-dark); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--green-dark); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--green-dark);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green-dark);
  min-width: 0;
}
.brand img { flex: none; }
.brand-text {
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--green-dark);
}
.brand-text span { display: block; font-size: 0.8em; font-weight: normal; color: var(--rust-dark); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--rust-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.92rem;
  padding: 0.55em 0.8em;
  border-radius: 999px;
  white-space: nowrap;
}
.tel-btn svg { flex: none; }

.nav-toggle { position: relative; }
.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.92rem;
  color: var(--green-dark);
  padding: 0.55em 0.7em;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream-light);
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary::before { content: "\2261  "; }
.nav-toggle nav {
  display: none;
}
.nav-toggle[open] nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(21, 42, 31, 0.18);
  min-width: 220px;
  padding: 0.4rem;
  z-index: 60;
}
.nav-toggle nav a {
  display: block;
  padding: 0.7em 0.8em;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}
.nav-toggle nav a:hover, .nav-toggle nav a:focus-visible { background: var(--cream-light); }

@media (min-width: 780px) {
  .nav-toggle summary { display: none; }
  .nav-toggle nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    gap: 0.25rem;
  }
  .nav-toggle nav a { padding: 0.5em 0.7em; font-weight: 600; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: bold;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: 8px;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--rust-dark);
  color: var(--white);
}
.btn-primary:hover { background: #612e15; }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover { background: rgba(241, 232, 214, 0.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  color: var(--cream);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--cream);
  margin: 0 0 0.75rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 5.5vw + 0.5rem, 2.9rem);
  max-width: 16ch;
  margin-bottom: 0.6em;
}
.hero-tagline {
  font-size: 1.05rem;
  max-width: 56ch;
  color: var(--cream);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.section-lede { max-width: 62ch; color: var(--ink); font-size: 1.05rem; }
.grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.card-icon { margin-bottom: 0.75rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.card p { margin: 0; font-size: 0.98rem; }

/* ---------- Why us ---------- */
.why-us { background: var(--green-dark); color: var(--cream); }
.why-us h2 { color: var(--white); }
.why-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 700px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-grid li { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-grid li svg { flex: none; margin-top: 0.15em; }
.why-grid strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 0.2em; }
.why-grid p { margin: 0; color: var(--cream); }

/* ---------- Projects ---------- */
.projects { background: var(--cream-light); }
.gallery-card { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gallery-card img { width: 100%; }
.gallery-card figcaption { padding: 0.75rem 1rem; font-weight: bold; color: var(--green-dark); }

/* ---------- Service area ---------- */
.service-area { background: var(--white); }
.maps-link {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  font-weight: bold;
  color: var(--rust-dark);
}
.hours { color: var(--ink); }

/* ---------- Quote ---------- */
.quote { background: var(--green-dark); color: var(--cream); }
.quote h2 { color: var(--white); }
.quote .section-lede { color: var(--cream); }
.quote-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: bold; color: var(--cream); font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit;
  padding: 0.7em 0.8em;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
}
.quote-form button { justify-self: start; margin-top: 0.25rem; }
.form-alt { margin-top: 1.25rem; color: var(--cream); }
.form-alt a { color: var(--white); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: var(--cream); }
.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand { font-family: var(--font-head); font-weight: bold; color: var(--white); font-size: 1.1rem; }
.site-footer p:not(.footer-brand) { margin: 0 0 0.5em; color: var(--cream); }
.site-footer a { color: var(--cream); }
.site-footer .demo { font-size: 12.5px; opacity: .7; margin-top: 10px; }
