/* =========================================================
   J.R. Martinez Landscaping — Stylesheet
   Palette: brand blue + deep green accent + warm off-white
   Mobile-first
   ========================================================= */

:root {
  /* Color */
  --blue-900: #0e2c5c;
  --blue-700: #1a4fa3;
  --blue-500: #2f6fd1;
  --blue-100: #e8f0fb;
  --green-700: #2f7a3d;
  --green-500: #3fa257;
  --green-100: #e6f4ea;
  --ink: #11161f;
  --ink-soft: #4b5360;
  --line: #e3e7ee;
  --bg: #fbfaf6;          /* warm off-white */
  --bg-alt: #ffffff;
  --shadow-sm: 0 1px 2px rgba(14, 44, 92, 0.06), 0 1px 1px rgba(14, 44, 92, 0.04);
  --shadow-md: 0 10px 30px rgba(14, 44, 92, 0.10), 0 4px 8px rgba(14, 44, 92, 0.06);

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--blue-900);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 .8em;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-700);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-900); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--blue-900);
}
.btn-ghost:hover { background: var(--blue-900); color: #fff; }
.btn-large { font-size: 1.05rem; padding: 1rem 1.6rem; }
.btn-block { display: flex; width: 100%; }

/* ==============  HEADER  ============== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--blue-900);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-900);
}
.brand-name span { font-size: .82rem; color: var(--ink-soft); }

.site-nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue-700); text-decoration: none; }
.nav-phone { font-weight: 700; color: var(--blue-900) !important; }
.nav-cta { color: #fff !important; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue-900);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 20px 1.4rem;
    gap: .9rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav .btn { align-self: flex-start; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
}

/* ==============  HERO  ============== */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 90% -10%, rgba(63, 162, 87, .12), transparent 55%),
    radial-gradient(circle at -5% 30%, rgba(47, 111, 209, .14), transparent 55%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero-copy h1 { color: var(--blue-900); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.4rem 0 1.6rem;
}
.phone-icon { font-size: 1.1em; }
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.hero-trust li::before {
  content: "✓";
  color: var(--green-700);
  font-weight: 700;
  margin-right: .4rem;
}
.hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--blue-100);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* ==============  SECTION HEAD  ============== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

/* ==============  SERVICES  ============== */
.services { padding: 72px 0; background: var(--bg-alt); }
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.service-icon {
  font-size: 1.8rem;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-card h3 { color: var(--blue-900); margin-bottom: .35em; }
.service-card p { color: var(--ink-soft); margin: 0; }
.services-cta { text-align: center; margin-top: 2rem; }

@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==============  WHY  ============== */
.why { padding: 72px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--blue-100) 100%); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.why-list { padding: 0; margin: 0 0 1.4rem; list-style: none; }
.why-list li {
  position: relative;
  padding: .65rem 0 .65rem 2rem;
  border-bottom: 1px dashed var(--line);
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: .55rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue-700);
  line-height: 1;
}
.stat-label { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .92rem; }

@media (min-width: 900px) {
  .why-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

/* ==============  AREA  ============== */
.area { padding: 72px 0; background: var(--bg-alt); }
.area-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 760px;
}
.area-grid li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  font-weight: 600;
  color: var(--blue-900);
}
.area-note { text-align: center; color: var(--ink-soft); }

@media (min-width: 720px) { .area-grid { grid-template-columns: repeat(5, 1fr); } }

/* ==============  TESTIMONIALS  ============== */
.testimonials { padding: 72px 0; background: var(--bg); }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -10px; left: 18px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--green-500);
}
.testimonial blockquote {
  margin: 0 0 .8rem;
  font-size: 1.02rem;
  color: var(--ink);
}
.testimonial figcaption { color: var(--ink-soft); font-size: .9rem; }
.testimonial-note { text-align: center; color: var(--ink-soft); margin-top: 1.4rem; font-size: .9rem; }

@media (min-width: 760px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==============  QUOTE FORM  ============== */
.quote {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--blue-100) 0%, var(--bg) 100%);
}
.quote-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.quote-bullets { list-style: none; padding: 0; margin: 1rem 0 0; }
.quote-bullets li {
  padding: .4rem 0 .4rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.quote-bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: .35rem;
  color: var(--green-700);
  font-weight: 700;
}

.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 16px; }
.field label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blue-900);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(47, 111, 209, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field-radio fieldset { border: none; padding: 0; margin: 0; }
.field-radio { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; }
.field-radio label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-right: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.hp-field { position: absolute; left: -9999px; }
.form-fineprint { font-size: .82rem; color: var(--ink-soft); margin-top: .8rem; text-align: center; }

@media (min-width: 980px) {
  .quote-inner { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

/* Success banner (when ?submitted=true is in the URL) */
.form-success {
  background: var(--green-100);
  border: 1px solid var(--green-500);
  color: var(--green-700);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ==============  FOOTER  ============== */
.site-footer {
  background: var(--blue-900);
  color: #d8e2f3;
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer h2, .site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand { display: flex; gap: 14px; }
.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}
.footer-brand p { margin: .25rem 0 0; color: #b5c2dc; }
.footer-contact p { margin: .25rem 0; }
.footer-cta { display: flex; align-items: flex-start; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #b5c2dc;
  font-size: .88rem;
}

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr auto; }
  .footer-cta { justify-content: flex-end; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
