/* ============================================
   Crisman Lawn Care
   Stylesheet — warm, clean, deliberately quiet
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette: warm parchment, deep evergreen ink, honey accent */
  --bg:          #ECE9DD;
  --bg-deep:    #E2DFCF;
  --surface:     #F5F3EA;
  --surface-2:   #FAF8F0;

  --ink:         #1B231C;
  --ink-soft:    #4F5648;
  --ink-faint:   #868A7C;

  --moss:        #4A5A33;
  --moss-soft:   #6E7C56;

  --honey:       #B5853F;
  --honey-deep:  #8E6628;

  --rule:        #D2CDB9;
  --rule-soft:   #DFDBC9;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --pad-x: clamp(24px, 5vw, 48px);
  --section-y: clamp(72px, 12vw, 140px);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 640px) { body { font-size: 16px; } }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 20px;
}

.section-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 400, "SOFT" 50;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
  font-weight: 400;
}
.section-title em {
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 400, "SOFT" 80;
  color: var(--moss);
}

.section-lede {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

.section-head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 720px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.inline-link:hover { text-decoration-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--surface-2);
}
.btn--primary:hover { background: var(--moss); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--surface-2); }
.btn--ghost:hover .btn__dot { background: var(--honey); }

.btn--lg { padding: 16px 30px; font-size: 16px; }

.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--honey);
  display: inline-block;
  transition: background 0.18s;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 233, 221, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(236, 233, 221, 0.95);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav__brand-mark {
  color: var(--moss);
  display: inline-flex;
}
.nav__brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.nav__brand-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "wght" 500, "SOFT" 40;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav__brand-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s;
}
.nav__links a:hover { color: var(--ink); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav__phone span:first-child { color: var(--honey); font-size: 18px; line-height: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  padding: 8px var(--pad-x) 16px;
  background: var(--surface);
}
.nav__mobile:not([hidden]) { display: flex; }
[hidden] { display: none !important; }

.nav__mobile a {
  padding: 14px 0;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile-phone { color: var(--moss) !important; font-weight: 500; }

@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (min-width: 861px) {
  .nav__mobile { display: none !important; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(80px, 12vw, 160px);
  overflow: hidden;
}

.hero__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 50;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 18ch;
  font-weight: 400;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 80;
  color: var(--moss);
}

.hero__sub {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 40px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  color: var(--moss-soft);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

/* ---------- SERVICES ---------- */
.services {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--bg-deep);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s ease;
}
.service:hover { background: rgba(245, 243, 234, 0.4); }

.service__num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400, "SOFT" 30;
  font-size: 18px;
  color: var(--honey);
  letter-spacing: 0.04em;
  padding-top: 6px;
}

.service__body { display: flex; flex-direction: column; gap: 8px; }

.service__name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "wght" 420, "SOFT" 40;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

.service__desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 640px) {
  .service { grid-template-columns: 48px 1fr; gap: 16px; padding: 26px 0; }
  .service__num { font-size: 14px; padding-top: 4px; }
}

/* ---------- GALLERY ---------- */
.gallery {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 860px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery__grid { grid-template-columns: 1fr; } }

.gallery__item {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.gallery__item-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 70%, rgba(74, 90, 51, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(181, 133, 63, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
  position: relative;
}
.gallery__item-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 49%, var(--rule-soft) 49%, var(--rule-soft) 51%, transparent 51%);
  background-size: 24px 24px;
  opacity: 0.25;
}

.gallery__note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
  font-style: italic;
  margin: 0;
}

/* ---------- ABOUT ---------- */
.about {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--bg-deep);
  border-top: 1px solid var(--rule-soft);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
@media (max-width: 760px) {
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
}

.about__left .section-title { margin-bottom: 0; }

.about__right p {
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about__right p:last-child { margin-bottom: 0; }

.about__sign {
  font-family: var(--serif);
  font-variation-settings: "opsz" 30, "wght" 400, "SOFT" 70;
  font-style: italic;
  color: var(--ink) !important;
  margin-top: 16px !important;
  font-size: 19px !important;
}

/* ---------- QUOTE FORM ---------- */
.quote {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-top: 1px solid var(--rule-soft);
}

.quote__inner { max-width: 760px; margin: 0 auto; }

.form { margin-top: 16px; }
.form__honeypot { position: absolute; left: -9999px; visibility: hidden; }

.form__row { margin-bottom: 24px; }
.form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) { .form__row--two { grid-template-columns: 1fr; gap: 24px; } }

.field { display: flex; flex-direction: column; }

.field__label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--honey); font-weight: 600; }

.field__input {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: var(--ink-faint); }
.field__input:hover { border-color: var(--moss-soft); }
.field__input:focus {
  outline: none;
  border-color: var(--moss);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(74, 90, 51, 0.12);
}
.field__input--textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--sans);
  line-height: 1.5;
}

.field__hint {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 8px 0 0;
}
.field__error {
  font-size: 13px;
  color: #B14a3a;
  margin: 8px 0 0;
}

/* --- Custom multiselect dropdown --- */
.multiselect { position: relative; }

.multiselect__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 13px 14px;
  text-align: left;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.multiselect__trigger:hover { border-color: var(--moss-soft); }
.multiselect__trigger[aria-expanded="true"] {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(74, 90, 51, 0.12);
}

.multiselect__placeholder { color: var(--ink-faint); }
.multiselect__placeholder.is-selected { color: var(--ink); }

.multiselect__caret { color: var(--ink-soft); transition: transform 0.2s; }
.multiselect__trigger[aria-expanded="true"] .multiselect__caret { transform: rotate(180deg); }

.multiselect__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(27, 35, 28, 0.08);
  padding: 6px;
  z-index: 10;
  max-height: 320px;
  overflow-y: auto;
}

.multiselect__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.15s;
}
.multiselect__option:hover { background: var(--bg-deep); }
.multiselect__option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--moss);
  cursor: pointer;
}

.form__actions { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form__note { font-size: 13px; color: var(--ink-faint); margin: 0; }

.form__success {
  background: var(--surface-2);
  border: 1px solid var(--moss-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
}
.form__success h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 420, "SOFT" 50;
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--moss);
  font-weight: 400;
}
.form__success p { margin: 0; color: var(--ink-soft); }
.form__success a { color: var(--ink); }

.form__error-banner {
  background: #FAE8E2;
  border: 1px solid #E1A99A;
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: 16px;
  color: #7A3422;
  font-size: 14px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; text-align: left; }
}

.footer__name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 30, "wght" 460, "SOFT" 40;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--surface);
}
.footer__tag {
  font-size: 14px;
  color: var(--rule);
  margin: 0;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__contact a {
  color: var(--bg);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.18s;
}
.footer__contact a:hover { color: var(--honey); }

.footer__meta {
  font-size: 13px;
  color: var(--ink-faint);
}
.footer__meta p { margin: 0; }
@media (max-width: 760px) {
  .footer__meta { padding-top: 20px; border-top: 1px solid #2C342C; }
}
