/* =========================================================================
   M&T Dirt Works site styles
   Palette pulled from the red/blue logo, warmed with land-services earth tones.
   ========================================================================= */

:root {
  --red:    #D8231C;
  --red-dk: #b01a14;
  --navy:   #163A66;
  --navy-dk:#0f2747;
  --earth:  #8A5A36;
  --tan:    #C9A77C;
  --olive:  #5C6B43;
  --cream:  #F6F2EA;
  --cream-2:#efe8da;
  --ink:    #22201D;
  --muted:  #6B655C;
  --line:   #e2d9c8;
  --white:  #ffffff;

  --maxw: 1160px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20,16,10,.10);
  --shadow-sm: 0 4px 14px rgba(20,16,10,.08);

  --h-font: 'Oswald', 'Arial Narrow', sans-serif;
  --b-font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--b-font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--h-font);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: .5px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* eyebrow / kicker */
.kicker {
  font-family: var(--h-font); text-transform: uppercase; letter-spacing: 3px;
  font-size: .82rem; color: var(--red); font-weight: 600; margin: 0 0 .6rem;
  display: inline-block;
}
.kicker--light { color: var(--tan); }

.lead { font-size: 1.18rem; color: #3b372f; max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font-family: var(--h-font); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-dk); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dk); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,242,234,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--h-font); text-decoration: none; }
.brand img { width: 50px; height: 50px; }
.brand-name { line-height: 1; }
.brand-name b { display: block; font-size: 1.35rem; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; }
.brand-name span { display: block; font-size: .62rem; letter-spacing: 3px; color: var(--earth); text-transform: uppercase; font-family: var(--b-font); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--h-font); text-transform: uppercase; letter-spacing: 1px;
  font-size: .95rem; color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.nav a:hover { background: var(--cream-2); text-decoration: none; }
.nav a.active { color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-family: var(--h-font); font-size: 1.05rem; color: var(--navy); white-space: nowrap; letter-spacing: .5px; }
.header-phone:hover { color: var(--red); text-decoration: none; }

.nav-toggle {
  display: none; background: var(--navy); border: 0; color: #fff; width: 46px; height: 42px;
  border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-dk);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,30,.86) 0%, rgba(15,23,30,.66) 45%, rgba(15,23,30,.30) 100%);
}
.hero__inner { position: relative; padding: clamp(70px, 11vw, 130px) 0; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { color: var(--tan); font-style: normal; }
.hero p { font-size: 1.2rem; color: #ece6dc; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #d8d2c6; font-size: .92rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--tan); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--cream2 { background: var(--cream-2); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--earth { background: var(--earth); color: #fff; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream); color: var(--red); margin-bottom: 16px;
  font-family: var(--h-font); font-size: 1.55rem; font-weight: 700;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.card ul li { margin-bottom: 4px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { font-family: var(--h-font); font-size: 2.6rem; color: var(--red); display: block; line-height: 1; }
.section--navy .stat b { color: var(--tan); }
.stat span { font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.section--navy .stat span { color: #c9c3b7; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff;
  font-family: var(--h-font); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem;
  background: linear-gradient(transparent, rgba(15,23,30,.8));
}

/* ---------- testimonial / handshake band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--h-font); font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.25;
  max-width: 20ch; margin: 0 auto; text-transform: uppercase; letter-spacing: .5px;
}
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-size: .95rem; letter-spacing: 2px; text-transform: uppercase; color: var(--tan); }

/* ---------- service area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.section--navy .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red); color: #fff; text-align: center; border-radius: 16px;
  padding: clamp(40px, 6vw, 64px); box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe6e3; max-width: 50ch; margin-inline: auto; }
.cta-band .btn--ghost-light:hover { color: var(--red); }

/* ---------- forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--h-font); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; color: var(--navy); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--b-font); font-size: 1rem; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--cream); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,58,102,.12); background: #fff;
}
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .96rem; }
.check input { width: auto; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f3ea; color: #1d6b3a; border: 1px solid #bfe0c9; }
.form-status.err { background: #fbe9e7; color: #a4221b; border: 1px solid #f1c4bf; }

/* contact cards */
.contact-methods { display: grid; gap: 16px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ic { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact-row .ic svg { width: 22px; height: 22px; }
.contact-row b { font-family: var(--h-font); text-transform: uppercase; letter-spacing: 1px; display: block; }
.contact-row a { color: var(--ink); }

/* ---------- page hero (inner) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(54px, 8vw, 88px) 0 clamp(48px, 7vw, 72px); position: relative; }
.page-hero::after { content: ''; position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--red); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d8d2c6; max-width: 60ch; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--tan); margin-bottom: 14px; }
.breadcrumb a { color: var(--tan); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc8bb; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #cfc8bb; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand b { font-family: var(--h-font); color: #fff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: #9a9388; }
.footer-bottom a { color: #9a9388; }
.parent-badge { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 300; background: rgba(15,16,12,.9);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb__close {
  position: absolute; top: 18px; right: 22px; background: transparent; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.hide { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 18px 18px;
    gap: 2px; transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 12px; border-radius: 8px; }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4, .form-grid, .gallery, .footer-grid, .checks { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .brand-name b { font-size: 1.15rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
