/* Jacobs Maintenance Services
   Palette: forest green base, lime accent on dark sections, mid green actions on light.
   Type: Barlow (body) + Barlow Semi Condensed (headlines). */

:root {
  --navy: #17392f;
  --navy-2: #204a3e;
  --blue: #2e7d4f;
  --blue-hover: #246640;
  --teal: #2e7d4f;
  --ink: #1f3029;
  --muted: #5d6c64;
  --line: #d8ded3;
  --mist: #f0f4ec;
  --white: #ffffff;
  --lime: #d9ed66;
  --lime-hover: #e6f58a;
  --radius: 6px;
  --container: 1180px;
  --gutter: 24px;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8cae37; outline-offset: 3px; }
section[id] { scroll-margin-top: 80px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}
h1 { font-size: clamp(40px, 5.2vw, 64px); }
h2 { font-size: clamp(32px, 3.6vw, 44px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius);
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.logo-text span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta { color: #fff; margin-left: 8px; }
.nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.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); }

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero-kicker { font-weight: 600; font-size: 15px; letter-spacing: .01em; color: #cfe27a; margin-bottom: 18px; }
.hero .lead { font-size: 19px; color: #d3dfd3; max-width: 46ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-primary, .section-dark .btn-primary { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.hero .btn-primary:hover, .section-dark .btn-primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: var(--navy); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-contact { margin-top: 24px; font-size: 15px; color: #a9bfae; }
.hero-contact a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.hero-media { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 26px 20px 26px 0;
  border-right: 1px solid var(--line);
}
.trust-item + .trust-item { padding-left: 20px; }
.trust-item:last-child { border-right: 0; padding-right: 0; }
.trust-item svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.trust-item strong { display: block; font-size: 16px; color: var(--navy); font-weight: 600; }
.trust-item span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--mist); }
.section-dark { background: var(--navy-2); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #d3dfd3; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.section-note { margin-top: 32px; font-size: 16px; color: var(--muted); max-width: 70ch; }

/* Services: shared-border grid, not floating cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.service { background: var(--white); padding: 30px 28px 32px; }
.service svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; }

/* Facilities */
.facilities-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.facilities-grid p { margin-top: 16px; font-size: 18px; max-width: 50ch; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 16px 0 16px 38px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 17px;
  color: #eef2e9;
}
.check-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.check-list li::before {
  content: "";
  position: absolute; left: 4px; top: 22px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime);
  transform: rotate(-45deg);
}

/* Process */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  counter-reset: step;
}
.steps li { padding-top: 18px; border-top: 3px solid var(--blue); }
.step-num {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--blue);
  margin-bottom: 10px;
}
.step-num::before { content: "Step "; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.about-photo {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 18px;
}
.about-card strong { font-size: 19px; color: var(--navy); }
.about-card span { color: var(--muted); font-size: 15px; }
.about-card a { margin-top: 12px; font-size: 15px; word-break: break-all; }
.about-grid p { margin-top: 16px; color: var(--ink); max-width: 60ch; }
.about-grid p + p { color: var(--muted); }

/* Area */
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.area-grid p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.area-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
}
.area-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy);
}

/* Quote */
.section-quote { background: var(--mist); border-top: 1px solid var(--line); }
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.quote-intro p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 40ch; }
.quote-direct {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.quote-direct strong { color: var(--navy); font-weight: 600; }
.quote-direct a { word-break: break-all; }

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #c5cfdb;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  min-height: 46px;
  font-size: 16px;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2317392f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,125,79,.18);
}
.field.invalid input, .field.invalid select { border-color: #c0392b; }

.form-error {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fdecea; color: #8a1f14;
  font-size: 15px;
}
.form-error[hidden] { display: none; }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-help { font-size: 14px; color: var(--muted); max-width: 36ch; line-height: 1.45; }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 8px 0; }
.form-success[hidden] { display: none; }
.form-success h3 { color: var(--blue); margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: 16px; }
.quote-form { position: relative; }

.form-fallback { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-fallback[hidden] { display: none; }
.form-fallback p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.form-fallback textarea {
  width: 100%; border: 1px solid #c5cfdb; border-radius: var(--radius);
  padding: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 12px;
}
.copy-status { margin-left: 12px; font-size: 14px; color: var(--teal); }

/* Footer */
.footer { background: var(--navy); color: #c3d3c6; padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer .logo { color: #fff; }
.footer .logo-text span { color: #a9bfae; }
.footer-brand p { margin-top: 16px; max-width: 32ch; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: #c3d3c6; text-decoration: none; font-size: 15px; word-break: break-all; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: 14px;
}
.footer-bottom a { color: #c3d3c6; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 22px 20px; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { padding-left: 0; }
  .trust-item:nth-child(even) { border-right: 0; padding-right: 0; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .facilities-grid, .area-grid, .quote-grid { gap: 40px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(15,36,64,.12);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); font-size: 17px; }
  .nav .nav-cta { margin: 10px var(--gutter) 0; }

  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .hero h1 { max-width: none; }
  .hero-media img { aspect-ratio: 16 / 10; }

  .section { padding: 64px 0; }
  .facilities-grid, .about-grid, .area-grid, .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo-text strong { font-size: 18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(even) { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 24px 20px 26px; }
  .quote-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { gap: 4px; }
  .footer-col a, .footer-bottom a { padding: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
