/* =====================================================
   K&M Landscaping LLC — Stylesheet
   Design system: forest green / moss / cream / clay
   Type: Fraunces (display) + IBM Plex Sans (body/UI)
   ===================================================== */

:root {
  /* Color */
  --forest: #1E3A2B;      /* primary dark - nav, footer, headline text */
  --forest-80: #2A4A38;
  --moss: #4F7942;        /* accent - buttons, links */
  --moss-dark: #3E6134;
  --paper: #FCFBF8;       /* main background */
  --cream: #F3EFE3;       /* alt section background */
  --clay: #B08968;        /* warm earth accent, sparing use */
  --stone: #E1DAC8;       /* borders / dividers */
  --charcoal: #232620;    /* body text */
  --charcoal-60: rgba(35, 38, 32, 0.62);
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 3px;
  --border: 1px solid var(--stone);

  --shadow-soft: 0 10px 30px rgba(30, 58, 43, 0.10);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--forest); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
}

/* -------------------- Type scale -------------------- */
h1, .h1 { font-size: clamp(2.4rem, 4.4vw + 1rem, 4.2rem); letter-spacing: -0.01em; }
h2, .h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); letter-spacing: -0.01em; }
h3, .h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }
.lede { font-size: clamp(1.05rem, 0.6vw + 1rem, 1.25rem); color: var(--charcoal-60); max-width: 60ch; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

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

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--forest); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: var(--white); color: var(--forest); }

.btn-block { width: 100%; justify-content: center; }

.text-link {
  font-weight: 600;
  color: var(--moss-dark);
  background-image: linear-gradient(var(--moss-dark), var(--moss-dark));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.2s ease;
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 1.5px; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--forest);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--forest-80);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest);
  border-color: var(--moss);
}
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--stone);
  border-radius: var(--radius);
  color: var(--forest);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: var(--border);
  background: var(--paper);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px var(--gutter);
  border-bottom: var(--border);
  font-weight: 500;
  color: var(--forest-80);
}
.mobile-menu .mobile-cta {
  margin: 16px var(--gutter);
  border-bottom: none;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* -------------------- Hero -------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; min-height: 640px; }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 64px var(--gutter);
  background: var(--forest);
  color: var(--white);
}
.hero-copy h1 { color: var(--white); }
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem);
  color: #CFE0C9;
}
.hero-copy p.lede { color: rgba(255,255,255,0.78); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-media { position: relative; min-height: 280px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------- Sections -------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--cream); }
.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* -------------------- Intro -------------------- */
.intro-block { display: grid; gap: 32px; }
@media (min-width: 800px) {
  .intro-block { grid-template-columns: 1fr 1fr; align-items: start; gap: 60px; }
}

/* -------------------- Why K&M / value grid -------------------- */
.value-grid {
  display: grid;
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
@media (min-width: 700px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .value-grid { grid-template-columns: repeat(4, 1fr); }
}
.value-item {
  background: var(--paper);
  padding: 32px 28px;
}
.value-item h3 { margin-bottom: 10px; font-size: 1.15rem; }
.value-item p { color: var(--charcoal-60); margin-bottom: 0; font-size: 0.96rem; }

/* -------------------- Services grid -------------------- */
.services-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1120px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); gap: 22px; }
}
.service-card {
  border-top: 2px solid var(--forest);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.service-card p { color: var(--charcoal-60); font-size: 0.95rem; flex-grow: 1; }

/* -------------------- Detailed service blocks (services page) -------------------- */
.service-detail {
  display: grid;
  gap: 20px;
  padding: 40px 0;
  border-bottom: var(--border);
}
.service-detail:first-of-type { border-top: var(--border); }
@media (min-width: 780px) {
  .service-detail { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
}
.service-detail h3 { margin-bottom: 12px; }
.service-detail ul { display: flex; flex-direction: column; gap: 8px; }
.service-detail li {
  position: relative;
  padding-left: 20px;
  color: var(--charcoal-60);
}
.service-detail li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 2px;
  background: var(--moss);
}

.pricing-note {
  background: var(--cream);
  border-left: 3px solid var(--clay);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 8px 0 40px;
}
.pricing-note h4 { margin: 0 0 8px; font-family: var(--font-body); font-weight: 600; color: var(--forest); font-size: 1.02rem; }
.pricing-note p { margin: 0; color: var(--charcoal-60); }

/* -------------------- Work gallery (before / after cards) -------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--stone);
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest-80);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, color .15s ease;
}
.filter-btn:hover { border-color: var(--moss); }
.filter-btn.active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.project-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
.project-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.project-card[hidden] { display: none; }
.project-card.is-wide { grid-column: 1 / -1; }
.project-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 3 / 2;
  gap: 2px;
  background: var(--stone);
}
.project-media.is-single { grid-template-columns: 1fr; }
@media (min-width: 820px) { .project-card.is-wide .project-media { aspect-ratio: 16 / 9; } }
.project-badge {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 4px 10px;
  background: rgba(252, 251, 248, 0.94);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
}
.project-panel {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: var(--stone);
}
.project-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-label {
  position: absolute;
  left: 10px; top: 10px;
  padding: 4px 10px;
  background: rgba(30, 58, 43, 0.92);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.project-info { display: block; padding: 14px 18px 16px; }
.project-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--forest); }
.project-detail { display: block; font-size: 0.92rem; color: var(--charcoal-60); margin-top: 2px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 12px;
  background: rgba(20, 30, 24, 0.94);
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 8px; right: 12px;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-inner {
  width: min(1240px, 100%);
  max-height: 100%;
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius);
}
.lightbox-media { background: var(--stone); }
.lightbox-pair + .lightbox-pair { margin-top: 10px; }
.lightbox-pair-title {
  margin: 0;
  padding: 10px 16px 8px;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-60);
}
.lightbox-pair-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--stone); }
@media (min-width: 820px) {
  .lightbox-pair-grid { grid-template-columns: repeat(var(--n, 2), 1fr); }
}
.lightbox-media.multi .lightbox-figure img { max-height: 58vh; }
.lightbox-figure { position: relative; margin: 0; background: #151a16; }
.lightbox-figure img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 20px;
}
.lightbox-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--forest); }
.lightbox-detail { margin: 2px 0 0; color: var(--charcoal-60); }

.service-icon {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #CFE0C9;
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.service-detail .service-icon { margin-bottom: 0; }

/* -------------------- Service area -------------------- */
.area-block {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 800px) { .area-block { grid-template-columns: 1fr 1fr; } }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 18px;
}
.area-list span {
  font-weight: 600;
  color: var(--forest-80);
  font-size: 0.98rem;
}

/* -------------------- CTA banner -------------------- */
.cta-banner {
  position: relative;
  background: var(--forest);
  color: var(--white);
  text-align: center;
  padding: clamp(56px, 8vw, 92px) var(--gutter);
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.cta-banner .cta-inner { position: relative; }
.cta-banner h2 { color: var(--white); }
.cta-banner .lede { color: rgba(255,255,255,0.8); margin-left: auto; margin-right: auto; }

/* -------------------- About page -------------------- */
.about-hero {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) { .about-hero { grid-template-columns: 1fr 0.9fr; } }
.about-hero img { border-radius: var(--radius); }
.why-box {
  background: var(--cream);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  margin-top: 48px;
}

/* -------------------- Contact page -------------------- */
.contact-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  border: var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  background: var(--paper);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .icon { color: var(--moss); flex-shrink: 0; margin-top: 2px; }
.contact-detail a.value { font-weight: 600; color: var(--forest); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-pill {
  border: 1.5px solid var(--stone);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--charcoal-60);
}

/* -------------------- Forms -------------------- */
.form-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--forest-80);
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--charcoal-60); font-size: 0.85rem; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--moss);
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--charcoal-60);
}
.checkbox-field input { margin-top: 4px; }
.form-note {
  font-size: 0.85rem;
  color: var(--charcoal-60);
  margin-top: 14px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 10px; }
#quote-form.hide { display: none; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand svg { width: 28px; height: 28px; }
.footer-tagline { font-style: italic; color: #CFE0C9; margin-bottom: 4px; }
.footer-sub { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0;
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* -------------------- 404 page -------------------- */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
}
.not-found img { max-width: 340px; margin-bottom: 32px; border-radius: var(--radius); }

/* -------------------- Utility -------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--moss-dark);
  margin-bottom: 8px;
  display: inline-block;
}
