/* ==========================================================================
   DeMillo's Excavation, design tokens
   Palette and type pulled directly from the DeMillo's logo mark.
   ========================================================================== */

:root {
  /* color, sampled from the logo */
  --ink:        #17231C;   /* near-black warm charcoal, primary text */
  --ink-soft:   #40493F;   /* secondary text */
  --paper:      #F7EEE2;   /* cream background, matches logo badge */
  --paper-dim:  #F0E5D4;   /* slightly deeper panel background */
  --pine:       #0D3320;   /* deep pine green, primary brand color */
  --pine-deep:  #082418;   /* darker pine for hover/emphasis */
  --gold:       #B8842F;   /* brass/gold accent, matches logo rule lines */
  --gold-deep:  #9C6F26;   /* gold hover */
  --slate:      #5C6B60;   /* muted secondary text/links */
  --line:       #E1D4BC;   /* hairline / border */
  --line-strong:#CBB98F;

  /* type, matched to the logo's serif wordmark */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Droid Serif", Georgia, "Times New Roman", serif;

  --radius: 6px;
  --container: 1180px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pine); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* ---------------------------------------------------------------- type -- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.002em;
  color: var(--pine);
  margin: 0 0 0.4em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.32rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  display: inline-block;
  transform: rotate(45deg);
  flex: none;
}

.spec {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--slate);
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 238, 226, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: 0.005em;
  color: var(--pine);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--pine); }
.main-nav a.active { color: var(--pine); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--pine) !important;
  padding: 4px 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-cta svg { flex: none; display: block; }
.nav-cta:hover { color: var(--gold-deep) !important; text-decoration: underline; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--pine);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
  border-bottom: 1px solid var(--line);
  background: var(--pine);
  color: #fff;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(9,20,14,0.92) 0%, rgba(9,20,14,0.78) 46%, rgba(9,20,14,0.34) 100%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero h1 { max-width: 15ch; color: #fff; }
.hero .eyebrow { color: #E4C87E; }
.hero .eyebrow::before { background: var(--gold); }
.hero-sub { font-size: 1.16rem; max-width: 52ch; color: #E3E9DF; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 1px 3px rgba(184,132,47,0.35); }
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); box-shadow: 0 3px 10px rgba(184,132,47,0.4); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--pine); }
.btn-outline:hover { border-color: var(--pine); background: rgba(13,51,32,0.05); }
.btn-on-dark { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-green { background: var(--pine); color: #fff; border-color: var(--pine); }
.btn-green:hover { background: var(--pine-deep); border-color: var(--pine-deep); }

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  position: relative;
  box-shadow: 0 2px 6px rgba(23,35,28,0.1);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-photo .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(13,51,32,0.92), rgba(13,51,32,0));
  color: #fff;
  padding: 40px 20px 16px;
  font-size: 0.9rem;
  font-style: italic;
}

/* --------------------------------------------------------- trust strip -- */

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper-dim);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 20px 28px;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.trust-item svg { flex: none; color: var(--pine); }

/* ------------------------------------------------------------ sections -- */

section { padding: 88px 0; }
.section-tight { padding: 62px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head p { margin: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* -------------------------------------------------------- service grid -- */

.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: 32px 28px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.service-card:hover { background: var(--paper-dim); }
.service-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.22rem; }
.service-card p { font-size: 0.96rem; margin-bottom: 0; }
.service-card .goto {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  font-style: italic;
  color: var(--pine);
}

/* full service list (flyer-style) */
.full-list {
  columns: 2;
  column-gap: 48px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.full-list li {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
}
.full-list li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  margin-bottom: 2px;
}

/* --------------------------------------------------------- payment chips */

.payment-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.payment-group {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 3px rgba(23,35,28,0.06);
}
.payment-group-icon {
  width: 42px; height: 42px;
  background: var(--pine);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.payment-group h3 { font-size: 1.05rem; margin-bottom: 14px; }
.payment-chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.payment-chip-list li {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}

/* -------------------------------------------------------------- steps -- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
}
.step .spec { display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; }

/* --------------------------------------------------------------- band -- */

/* ---------------------------------------------------------- service area */

.county-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 16px;
}
.county-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.county-list li:last-child { border-bottom: none; padding-bottom: 0; }
.county-list b { font-family: var(--font-display); color: var(--pine); font-size: 1.02rem; }
.county-list span { color: var(--ink-soft); font-size: 0.9rem; }

.county-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.county-list-grid li {
  border-bottom: none;
  padding-bottom: 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}

.band {
  background: var(--pine);
  color: #F3EEE2;
}
.band h2, .band .eyebrow { color: #fff; }
.band .eyebrow { color: #E4C87E; }
.band .eyebrow::before { background: var(--gold); }
.band p { color: #CFDACF; }

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ----------------------------------------------------------- gallery -- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.job-card {
  overflow: hidden;
}
.job-thumb {
  aspect-ratio: 4/5;
  display: block;
  overflow: hidden;
  background: var(--pine);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(23,35,28,0.12);
}
.job-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.job-card:hover .job-thumb img { transform: scale(1.04); }
.job-meta .spec { display: block; margin-bottom: 8px; }
.job-meta h3 { font-size: 1.12rem; margin-bottom: 6px; }
.job-meta p { font-size: 0.95rem; margin: 0 0 10px; }
.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--slate);
}

/* ------------------------------------------------------------- quotes -- */

.testimonial {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}
.testimonial p { font-size: 1.14rem; color: #fff; font-family: var(--font-display); font-weight: 600; font-style: italic; }
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.86rem;
  color: #E4C87E;
}
.stat-row {
  display: flex;
  gap: 30px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.stat-row .stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-row b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-row span {
  font-size: 0.82rem;
  color: #C9D3C8;
  max-width: 14ch;
  line-height: 1.3;
}

/* --------------------------------------------------------------- form -- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.info-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list svg { flex: none; margin-top: 3px; color: var(--pine); }
.info-list b { display: block; font-size: 1.02rem; font-family: var(--font-display); }
.info-list span { color: var(--ink-soft); font-size: 0.94rem; }
.info-list a { color: var(--pine); font-weight: 700; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.contact-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 1px 4px rgba(23,35,28,0.08);
}
.contact-card h3 { margin-bottom: 8px; }
.contact-actions { display: grid; gap: 14px; margin-top: 22px; }
.contact-actions .btn { width: 100%; }

/* -------------------------------------------------------------- footer -- */

footer {
  background: var(--pine);
  color: #CFDACF;
  padding: 58px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
footer .brand-name { color: #fff; }
footer p { color: #AEBCAC; font-size: 0.92rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer a { color: #CFDACF; text-decoration: none; font-size: 0.94rem; }
footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: #93A491;
}

/* ------------------------------------------------------------ page hero (subpages) */

.page-hero {
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); max-width: 22ch; }
.page-hero p { font-size: 1.06rem; max-width: 60ch; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .num { font-family: var(--font-display); color: var(--gold-deep); font-weight: 700; font-size: 0.95rem; }
.service-detail ul { padding-left: 20px; color: var(--ink-soft); }
.service-detail li { margin-bottom: 8px; }

/* ------------------------------------------------------------ utility -- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ------------------------------------------------------------- mobile -- */

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .full-list { columns: 1; }
  .county-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { position: sticky; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px 28px;
    gap: 18px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(23,35,28,0.16);
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav a { font-size: 1.1rem; padding: 4px 0; }
  .menu-toggle { display: flex; }
  .nav-cta { width: auto; margin-top: 4px; font-size: 1.1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 48px; }
  section { padding: 48px 0; }
  .section-tight { padding: 40px 0; }
  .hero-actions .btn { width: 100%; }
  .contact-card { padding: 26px 22px; }
  .wrap { padding: 0 20px; }
  .band-grid { gap: 32px; }
  h1 { line-height: 1.16; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 1.14rem; }
  .brand-mark { width: 38px; height: 38px; }
  .site-header .wrap { height: 72px; }
}
