/* Del's Inspection Service Company — site styles
   Plain CSS, no build step. Brand colors live in :root below. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --green: #0f6b1f;
  --green-dark: #0a4d16;
  --green-tint: #e7f1e8;
  --ink: #1b1f1c;
  --ink-soft: #4a524c;
  --steel: #252b27;
  --sand: #f6f3ec;
  --line: #ddd8cc;
  --white: #ffffff;
  --safety: #f2b705;

  --radius: 6px;
  --max: 1160px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }

.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  color: var(--green);
  margin-bottom: .5rem;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--head); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .8em 1.4em; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-safety { background: var(--safety); color: var(--ink); }
.btn-safety:hover { background: #ffcb2b; color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 74px; color: var(--green); }
.brand-text { font-family: var(--head); line-height: 1; text-transform: uppercase; }
.brand-text strong { display: block; font-size: 1.3rem; letter-spacing: .03em; }
.brand-text span { font-size: .85rem; letter-spacing: .16em; color: var(--ink-soft); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px;
  font-family: var(--head); font-weight: 600; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { background: var(--green-tint); color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.header-call { padding: .6em 1em; font-size: 1.05rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 42px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--steel) url("../images/hero.jpg") center 40% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,18,15,.88) 0%, rgba(14,18,15,.7) 45%, rgba(14,18,15,.25) 100%);
}
.hero .wrap { position: relative; padding-top: 110px; padding-bottom: 120px; }
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: var(--safety); }
.hero p.lead { font-size: 1.25rem; color: #e6e9e6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero { background: var(--steel); color: var(--white); position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .28; }
.page-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 64px; }
.page-hero .eyebrow { color: var(--safety); }
.page-hero p { max-width: 40em; font-size: 1.2rem; color: #e1e5e1; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }

.props-band { background: var(--white); border-bottom: 1px solid var(--line); }
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.prop { padding: 32px 28px 32px 0; border-right: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.prop + .prop { padding-left: 28px; }
.prop:last-child { border-right: 0; }
.prop svg { width: 36px; height: 36px; flex: none; color: var(--green); }
.prop h3 { font-size: 1.25rem; margin-bottom: .25em; }
.prop p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); color: var(--ink); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; }
.card-body p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.card-more { margin-top: 14px; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }

/* Services detail rows */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .service-img { order: 2; }
.service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service ul { padding: 0; margin: 0; list-style: none; }
.service li { padding: 6px 0 6px 30px; position: relative; }
.service li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}

/* Split / about */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure-caption { font-size: .95rem; color: var(--ink-soft); margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.stat { border-top: 3px solid var(--green); padding-top: 12px; }
.stat strong { display: block; font-family: var(--head); font-size: 1.6rem; text-transform: uppercase; line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .98rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--steel); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery a:hover img { transform: scale(1.05); opacity: .9; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,12,10,.9); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox-bar { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.lightbox button {
  background: var(--white); color: var(--ink); border: 0; border-radius: var(--radius);
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: 1rem; padding: .55em 1.1em; cursor: pointer;
}

/* CTA band */
.cta-band { background: var(--green); color: var(--white); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #d8eadb; font-size: 1.15rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.contact-phone {
  display: block; font-family: var(--head); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--green);
  text-decoration: none; margin: 6px 0 18px;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.checklist { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.checklist li { counter-increment: n; position: relative; padding: 0 0 18px 48px; }
.checklist li::before {
  content: counter(n); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-dark);
  font-family: var(--head); font-weight: 700; display: grid; place-items: center;
}
.checklist strong { display: block; }
.checklist span { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel); color: #c9cfca; font-size: 1rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark { color: #7fc48a; }
.site-footer .brand-text span { color: #9aa39c; }
.site-footer h3 { color: var(--white); font-size: 1.15rem; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e3e8e4; text-decoration: none; }
.site-footer a:hover { color: var(--safety); }
.footer-phone { font-family: var(--head); font-weight: 700; font-size: 1.8rem; color: var(--white) !important; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--green); color: var(--white); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 22px; font-size: .9rem; color: #8f9891; }

/* Mobile sticky call bar */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .header-call { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none; margin: 0;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); padding-left: 16px; }
  .props { grid-template-columns: 1fr; }
  .prop, .prop + .prop { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .prop:last-child { border-bottom: 0; }
  .service, .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .service:nth-child(even) .service-img { order: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { padding-bottom: 64px; }
  .brand-mark { width: 58px; }
  .brand-text strong { font-size: 1.1rem; }
  .brand-text span { font-size: .75rem; }
  .hero .wrap { padding-top: 72px; padding-bottom: 80px; }
  .hero::before { background: rgba(14,18,15,.72); }
  .section { padding: 60px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--green); color: var(--white); text-decoration: none;
    justify-content: center; align-items: center; gap: 10px; height: 60px;
    font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 -4px 14px rgba(0,0,0,.15);
  }
  .call-bar svg { width: 22px; height: 22px; }
  .call-bar:hover { color: var(--white); background: var(--green-dark); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
