/* ===================================================================
   Donohoe Excavations Ltd — style.css
   Palette pulled from the working world: concrete, spoil, wet stone,
   and site-safety amber. Type mixes an engineered display face with
   a plain-spoken body face, plus a mono face for the "survey stake"
   marking lines that run through the page.
   =================================================================== */

:root {
  /* Colour */
  --stone-950: #17171590;
  --charcoal:  #1b1a17;
  --charcoal-soft: #2a2823;
  --slate:     #55524a;
  --slate-light: #8b867a;
  --concrete:  #d8d4c8;
  --concrete-light: #eeece4;
  --paper:     #f6f5f0;
  --amber:     #d98f1f;
  --amber-bright: #f0a934;
  --line: rgba(27, 26, 23, 0.12);
  --line-on-dark: rgba(246, 245, 240, 0.18);

  /* Type */
  --f-display: "Space Grotesk", "Archivo", sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Utility: tick-mark rule (survey-stake motif) ---------- */
.ticks {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.ticks::before {
  content: "";
  width: 34px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0px, var(--amber) 2px,
    transparent 2px, transparent 6px
  );
  flex-shrink: 0;
}
.ticks.on-dark { color: var(--concrete); }

/* ---------- Nav ---------- */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 26px 0;
}
.site-nav .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-toggle { display: none; }
.brand {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand small {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--amber-bright);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14.5px;
}
.nav-links a {
  text-decoration: none;
  color: var(--concrete-light);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav-links a:hover,
.nav-links a.current {
  color: var(--amber-bright);
  border-color: var(--amber-bright);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 22px;
  cursor: pointer;
  z-index: 30;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,.35) 35%, rgba(17,16,14,.88) 100%),
    url("https://donohoeexcavations.com/images/machine04.jpg");
  background-size: cover;
  background-position: center 45%;
}
.hero-inner {
  width: 100%;
  padding-bottom: 72px;
  padding-top: 220px;
}
.hero .ticks { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero p.lede {
  font-size: 18px;
  max-width: 46ch;
  color: var(--concrete-light);
  margin: 0 0 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 24px;
  text-decoration: none;
  border-radius: 2px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
  border: 1px solid var(--amber);
}
.btn-primary:hover { background: var(--amber-bright); transform: translateY(-1px); }
.btn-ghost {
  color: var(--paper);
  border: 1px solid var(--line-on-dark);
}
.btn-ghost:hover { border-color: var(--amber-bright); color: var(--amber-bright); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding: 108px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .ticks { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.section-head p {
  color: var(--slate);
  font-size: 16.5px;
  margin: 0;
}

/* ---------- About ---------- */
.about {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--slate); font-size: 16.5px; margin: 0 0 18px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 34px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--f-mono);
  font-size: 26px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.stat span {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 4px;
}
.about-photo {
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
}
.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-photo::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -1px;
  height: 4px;
  background: repeating-linear-gradient(
    90deg, var(--amber) 0 14px, var(--charcoal) 14px 28px
  );
}

/* ---------- Services ---------- */
.services {
  background:
    linear-gradient(180deg, var(--concrete-light) 0%, var(--concrete-light) 100%),
    url("https://donohoeexcavations.com/images/machine06.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: luminosity;
  position: relative;
}
.services::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(238, 236, 228, 0.94);
}
.services .wrap { position: relative; z-index: 1; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 34px 30px;
}
.service-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}
.service-card p {
  color: var(--slate);
  font-size: 15px;
  margin: 0;
}

/* ---------- Work / gallery ---------- */
.work { background: var(--charcoal); color: var(--paper); }
.work .section-head p { color: var(--slate-light); }
.work .section-head h2 { color: var(--paper); }

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 10px;
}
.gallery a {
  position: relative;
  overflow: hidden;
  display: block;
}
.gallery a:first-child { grid-row: span 2; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(45%) contrast(1.02);
  transform: scale(1.01);
  transition: filter .5s ease, transform .6s ease;
}
.gallery a:hover img { filter: grayscale(0%); transform: scale(1.06); }
.gallery a::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--concrete-light);
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
}
.gallery-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--slate-light);
  font-style: italic;
}

/* ---------- Contact block (shared between home + contact page) ---------- */
.contact {
  color: var(--paper);
  background-image:
    linear-gradient(160deg, rgba(23,21,18,.93) 10%, rgba(23,21,18,.82) 100%),
    url("https://donohoeexcavations.com/images/machine12.jpg");
  background-size: cover;
  background-position: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact.plain {
  background-image: none;
  background-color: var(--charcoal);
}
.contact h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 14ch;
}
.contact > .wrap > .ticks { margin-bottom: 18px; }
.contact-lede {
  color: var(--concrete-light);
  font-size: 16.5px;
  max-width: 42ch;
  margin: 0 0 30px;
}
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  font-size: 15px;
}
.detail-list li:last-child { border-bottom: 1px solid var(--line-on-dark); }
.detail-list .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-bright);
  padding-top: 2px;
}
.detail-list a { text-decoration: none; }
.detail-list a:hover { color: var(--amber-bright); }
.detail-list .addr { line-height: 1.6; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: var(--slate-light);
  border-top: 1px solid var(--line-on-dark);
  padding: 26px 0;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}
footer.site-footer a { text-decoration: none; color: var(--slate-light); }
footer.site-footer a:hover { color: var(--amber-bright); }

/* ---------- Contact-only page hero (shorter, no full viewport) ---------- */
.page-hero {
  position: relative;
  padding: 200px 0 64px;
  color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(20,18,15,.62) 0%, rgba(17,16,14,.9) 100%),
    url("https://donohoeexcavations.com/images/machine12.jpg");
  background-size: cover;
  background-position: center 40%;
}
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  margin: 18px 0 0;
  letter-spacing: -0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo img { height: 300px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery a:first-child { grid-row: span 1; grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 620px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 20px);
    left: -28px;
    right: -28px;
    flex-direction: column;
    gap: 0;
    background: var(--charcoal);
    border-top: 1px solid var(--line-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line-on-dark);
  }
  .service-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 160px; }
  .detail-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
