/* =========================================================
   Sierra Landscaping — site styles
   Brand colors live here; change them once and the whole site follows.
   ========================================================= */
:root {
  --forest: #1d3a2a;
  --forest-2: #27503a;
  --moss: #5f7f4f;
  --sage: #dfe7d6;
  --sand: #f7f3ea;
  --cream: #fffdf8;
  --clay: #c47a3a;
  --clay-dark: #a8622a;
  --ink: #1b221d;
  --muted: #5d6a60;
  --line: #e4ded0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 58, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(29, 58, 42, 0.18);
  --max: 1180px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: #eef3ea; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--forest .section-head p { color: #c9d6c4; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 8px 20px rgba(196, 122, 58, .35); }
.btn--primary:hover { background: var(--clay-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--forest); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--forest-2); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 18px 0;
}
.header.is-solid, .header--solid { background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* Logo: the tree's trunk stands in for the "I" in SIERRA, as in the official logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; line-height: 1; transition: color .25s ease; }
.logo-word { font-family: "Libre Baskerville", Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.55rem; letter-spacing: .07em; padding-top: 1.35em; white-space: nowrap; }
.logo-i { position: relative; display: inline-block; width: .3em; height: .7em; }
.logo-i::before {
  content: ""; position: absolute; left: 50%; bottom: -.02em; width: 2.05em; height: 2.3em; transform: translateX(-50%);
  background: currentColor;
  -webkit-mask: url("images/logo-tree.png") center bottom / contain no-repeat;
  mask: url("images/logo-tree.png") center bottom / contain no-repeat;
}
.logo-sub { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .5em; margin: 7px -.5em 0 0; text-transform: uppercase; opacity: .85; }
.logo-tagline { font-family: "Libre Baskerville", Georgia, serif; font-size: .8rem; margin-top: 10px; opacity: .75; letter-spacing: .02em; }
.header.is-solid .logo, .header--solid .logo { color: var(--forest); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: #fff; font-weight: 500; font-size: .96rem; opacity: .92; }
.nav a:hover { opacity: 1; }
.header.is-solid .nav a, .header--solid .nav a { color: var(--ink); }
.nav .btn { padding: 11px 20px; color: #fff !important; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.header.is-solid .menu-toggle, .header--solid .menu-toggle { color: var(--forest); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--forest) url("images/stacked-stone-wall.jpg") center 55%/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16, 34, 24, .88) 0%, rgba(16, 34, 24, .62) 50%, rgba(16, 34, 24, .25) 100%);
}
.hero .container { position: relative; padding-top: 120px; padding-bottom: 80px; }
.hero-content { max-width: 680px; }
.hero h1 em { font-style: italic; color: #f2c38f; }
.hero p.lead { font-size: 1.2rem; color: #e3ebde; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; font-size: .95rem; color: #d7e2d1; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: #f2c38f; }

/* Stats bar */
.stats { background: var(--forest); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: #f2c38f; line-height: 1.1; }
.stat span { font-size: .92rem; color: #c9d6c4; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 16/10; background: var(--sage) center/cover no-repeat; }
.service-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.service-link { color: var(--clay-dark); font-weight: 600; text-decoration: none; font-size: .95rem; }
.service-link:hover { text-decoration: underline; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--moss); }
.tile .feature-icon { margin-bottom: 14px; }
.tile h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Why us */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--sage); }
.badge-card {
  position: absolute; right: -22px; bottom: 34px; background: #fff; border-radius: 16px; padding: 18px 22px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.badge-card strong { font-family: var(--serif); font-size: 2rem; color: var(--forest); line-height: 1; }
.badge-card span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.features { display: grid; gap: 22px; margin-top: 30px; }
.feature { display: flex; gap: 16px; }
.feature-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--sage); color: var(--forest);
  display: grid; place-items: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 26px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 2.4rem; color: #f2c38f; margin-bottom: 12px; line-height: 1;
}
.step h3 { color: #fff; }
.step p { color: #c9d6c4; font-size: .96rem; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sage); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.stars { color: #e0a43c; letter-spacing: 2px; margin-bottom: 14px; font-size: 1.05rem; }
.quote blockquote { margin: 0 0 22px; font-size: 1.03rem; flex: 1; }
.quote blockquote p:last-child { margin-bottom: 0; }
.testimonials--2 { grid-template-columns: 1.3fr 1fr; align-items: start; }
.testimonials--2 > .quote blockquote { font-size: 1.1rem; }
.quote-stack { display: grid; gap: 24px; }
.quote-stack .quote { padding: 24px 26px; }
.quote-mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--clay); height: 30px; margin-bottom: 8px; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band {
  position: relative; border-radius: 24px; overflow: hidden; padding: 72px 56px; color: #fff;
  background: var(--forest-2) url("images/commercial-landscape.jpg") center/cover;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 42, 29, .93), rgba(20, 42, 29, .7)); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #d7e2d1; margin: 0; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Service area */
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.areas span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .93rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--clay); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.footer { background: #142a1e; color: #b9c8b3; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }

/* ---------- Request page ---------- */
.page-hero {
  background: var(--forest) url("images/rock-bed-stone-edging.jpg") center 40%/cover;
  position: relative; color: #fff; padding: 160px 0 90px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,34,24,.92), rgba(16,34,24,.7)); }
.page-hero .container { position: relative; }
.page-hero p { color: #d7e2d1; font-size: 1.15rem; max-width: 600px; }

.request-layout > * { min-width: 0; }
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: -50px; position: relative; }
.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 44px; }
.form-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.form-progress span { flex: 1; height: 5px; border-radius: 9px; background: var(--line); transition: background .3s; }
.form-progress span.active { background: var(--clay); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-step h2 { font-size: 1.7rem; margin-bottom: 6px; }
.form-step > p { color: var(--muted); margin-bottom: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label, .field-label { font-weight: 600; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s; color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); background: #fff; box-shadow: 0 0 0 4px rgba(95,127,79,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field .error { color: #c0392b; font-size: .85rem; display: none; }
.field.invalid .error { display: block; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.choice-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; align-items: center; gap: 10px; padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; font-size: .94rem; font-weight: 500; background: var(--cream); transition: all .18s ease; height: 100%;
}
.choice label svg { width: 22px; height: 22px; color: var(--moss); flex: none; }
.choice label:hover { border-color: var(--moss); }
.choice input:checked + label { border-color: var(--forest); background: var(--sage); box-shadow: inset 0 0 0 1px var(--forest); }
.choice input:focus-visible + label { box-shadow: 0 0 0 4px rgba(95,127,79,.25); }
.choice-error { color: #c0392b; font-size: .85rem; display: none; margin-bottom: 14px; }
.choice-error.show { display: block; }

.dropzone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; color: var(--muted);
  cursor: pointer; transition: border-color .2s, background .2s; background: var(--cream);
}
.dropzone:hover, .dropzone.drag { border-color: var(--moss); background: var(--sage); }
.dropzone svg { width: 34px; height: 34px; color: var(--moss); margin: 0 auto 8px; }
.dropzone strong { color: var(--forest); }
.file-list { font-size: .9rem; color: var(--muted); margin-top: 10px; }

.photo-tip { display: flex; gap: 14px; align-items: flex-start; background: var(--sage); border-radius: 12px; padding: 16px 18px; font-size: .93rem; color: var(--ink); }
.photo-tip svg { width: 26px; height: 26px; color: var(--forest); flex: none; margin-top: 2px; }
.photo-tip a { color: var(--forest); font-weight: 600; }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-nav .btn--back { background: none; color: var(--muted); padding-left: 0; }
.form-nav .btn--back:hover { color: var(--forest); transform: none; }
.step-count { font-size: .88rem; color: var(--muted); }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--forest); }

.success { display: none; text-align: center; padding: 30px 10px; }
.success.show { display: block; animation: fadeIn .4s ease; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; margin: 0 auto 22px; }
.success-icon svg { width: 38px; height: 38px; }
.success p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }

.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-bottom: 20px; }
.aside-card h3 { font-size: 1.2rem; }
.aside-card ol { padding-left: 20px; margin: 0; color: var(--muted); display: grid; gap: 10px; font-size: .95rem; }
.aside-card ol strong { color: var(--ink); }
.aside-card--dark { background: var(--forest); color: #fff; border: 0; }
.aside-card--dark p { color: #c9d6c4; font-size: .95rem; }
.aside-phone { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.5rem; color: #f2c38f; text-decoration: none; }
.aside-phone svg { width: 22px; height: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services, .testimonials, .tiles { grid-template-columns: repeat(2, 1fr); }
  .testimonials--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-media { max-width: 520px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .request-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 80px 24px 28px; box-shadow: var(--shadow-lg);
    transform: translateY(-110%); transition: transform .3s ease; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { color: var(--ink) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .header.menu-open .logo, .header.menu-open .menu-toggle { color: var(--forest); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { padding: 0 16px; }
  .services, .testimonials, .steps, .tiles { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery figure.tall { grid-row: span 1; }
  .gallery figure.wide { grid-column: span 1; }
  .cta-band { padding: 48px 26px; }
  .badge-card { right: 12px; bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 0; }
  .choice-grid, .choice-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice label { padding: 12px; font-size: .9rem; }
  .hero-actions .btn { width: 100%; }
}
