/* ============================================================
   CA Landscaping — redesigned demo theme
   Mobile-first. Fraunces (display) + Inter (body).
   ============================================================ */
:root {
  --green: #2f6b40;
  --green-d: #1f4d2c;
  --green-dd: #16371f;      /* dark feature sections */
  --gold: #c08a2d;
  --cream: #faf8f1;
  --surface: #ffffff;
  --tint: #edf3ea;          /* soft green wash */
  --ink: #232b25;
  --head: #17251c;
  --muted: #5d6b60;
  --line: #e5e9df;
  --line-d: rgba(255, 255, 255, .16);
  --shadow: 0 18px 40px -24px rgba(20, 40, 25, .45);
  --shadow-sm: 0 6px 20px -12px rgba(20, 40, 25, .35);
  --r: 18px;
  --r-sm: 12px;
  --f-head: "Fraunces", Georgia, serif;
  --f-body: "Inter", system-ui, "Segoe UI", sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--head);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: 0; }
p { margin: 0 0 1rem; }
.i { font-style: italic; }

/* JS-gated reveal — content stays visible if JS is off */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- layout primitives ---------- */
.wrap { width: min(1180px, 91%); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tint { background: var(--tint); }
.section--surface { background: var(--surface); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .9rem;
}
.sec-head { max-width: 60ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 58ch; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-body); font-weight: 600; font-size: .98rem;
  padding: .9rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-d); }
.btn-outline { background: transparent; color: var(--head); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; color: #fff; }
.brand img { height: 34px; width: auto; }
.hdr.scrolled .brand { color: var(--head); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255, 255, 255, .92); font-weight: 500; font-size: .95rem; position: relative; }
.hdr.scrolled .nav-links a { color: var(--ink); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: currentColor; transition: right .25s ease; opacity: .8; }
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-cta .btn { color: #fff; }
.nav-toggle { display: none; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; padding: .5rem; cursor: pointer; color: #fff; }
.hdr.scrolled .nav-toggle { color: var(--head); background: transparent; border-color: var(--line); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    flex-direction: column; align-items: flex-start; gap: .2rem;
    background: var(--surface); padding: 5.5rem 1.6rem 2rem;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .2); overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { width: 100%; margin-top: 1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; color: #fff; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 30, 18, .55) 0%, rgba(14, 30, 18, .2) 40%, rgba(14, 30, 18, .82) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 5vw, 4rem); padding-top: 7rem; }
.hero .eyebrow { color: #d8e6cf; display: inline-flex; align-items: center; gap: .5rem; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 1.1rem; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero h1 .i { color: #e7c98a; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, .9); max-width: 50ch; margin-bottom: 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 1.6rem; }
.hero-stats .stat strong { font-family: var(--f-head); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; display: block; line-height: 1; }
.hero-stats .stat span { font-size: .82rem; letter-spacing: .04em; color: rgba(255, 255, 255, .8); text-transform: uppercase; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; height: clamp(300px, 32vw, 440px); object-fit: cover; display: block; }
.about-media .badge {
  position: absolute; left: -18px; bottom: -18px; background: var(--surface);
  border-radius: var(--r-sm); padding: 1rem 1.3rem; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about-media .badge strong { font-family: var(--f-head); font-size: 1.6rem; color: var(--green); display: block; line-height: 1; }
.about-media .badge span { font-size: .8rem; color: var(--muted); }
.checklist { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.5rem; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.7rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--green); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-card h3 { margin-bottom: .4rem; }
.svc-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.5rem; }
.ba-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.ba-imgs figure { margin: 0; position: relative; }
.ba-imgs img { width: 100%; height: clamp(160px, 18vw, 220px); object-fit: cover; display: block; }
.ba-imgs figure:first-child { border-right: 2px solid var(--surface); }
.ba-tag { position: absolute; top: 10px; left: 10px; background: rgba(23, 37, 28, .82); color: #fff; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; font-weight: 600; }
.ba-tag.after { background: var(--green); }
.ba-card .cap { padding: 1rem 1.3rem; font-weight: 500; }

/* ---------- testimonials (dark) ---------- */
.testi { background: var(--green-dd); color: #eef3ea; }
.testi h2 { color: #fff; }
.testi .eyebrow { color: #9fc79f; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.testi-card { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-d); border-radius: var(--r); padding: 1.7rem; }
.stars { display: flex; gap: 3px; color: #e7c98a; margin-bottom: .9rem; }
.stars svg { width: 18px; height: 18px; }
.testi-card blockquote { margin: 0 0 1.1rem; font-size: 1.02rem; line-height: 1.6; color: #f2f6ee; }
.testi-card .who { font-weight: 600; color: #fff; }
.testi-card .who span { display: block; font-weight: 400; font-size: .85rem; color: #a9c1a9; }

/* ---------- areas ---------- */
.areas-flex { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 2rem; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 500; }
.pill svg { width: 15px; height: 15px; color: var(--green); }
.areas-cta { background: var(--tint); border-radius: var(--r); padding: 1.8rem; }
.areas-cta h3 { margin-bottom: .5rem; }
.areas-cta p { color: var(--muted); margin-bottom: 1.1rem; font-size: .96rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2rem; }
.contact-line { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; color: var(--ink); }
.contact-line svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); position: relative; }
.demo-badge { display: inline-block; background: var(--tint); color: var(--green-d); font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--head); }
.req { color: var(--gold); }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 107, 64, .15); }
textarea { min-height: 120px; resize: vertical; }
.error-msg { display: none; color: #c0392b; font-size: .8rem; margin-top: .3rem; }
.field.invalid .error-msg { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.form-note { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success.show { display: block; }
.form-success .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .ok svg { width: 28px; height: 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-dd); color: #c9d6c8; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #c9d6c8; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #a9c1a9; font-size: .93rem; max-width: 34ch; }
.footer-brand .contact-line { color: #c9d6c8; }
.footer-brand .contact-line svg { color: #9fc79f; }
.footer-brand .contact-line a { color: #c9d6c8; }
.hours { font-size: .9rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; }
.hours li.today { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line-d); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #9fc79f; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 22px; height: 22px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--green); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .about-grid, .contact-grid, .areas-flex { grid-template-columns: 1fr; }
  .about-media .badge { left: 12px; bottom: 12px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media { order: -1; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero-stats { gap: 1.4rem 2.2rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
