/* ============================================================
   IronPine Excavation & Utilities LLC
   Design system: forest green / ivory / charcoal / gold
   Reference framework: Black Mountain Excavation (structure only)
   ============================================================ */

:root {
  --forest: #1F3A2E;
  --forest-dark: #142720;
  --forest-light: #2C5240;
  --ivory: #F2EDE0;
  --ivory-dark: #E7E0CC;
  --charcoal: #1A1A1A;
  --charcoal-light: #262622;
  --gold: #C89B3C;
  --gold-light: #E0BE6E;
  --white: #FFFFFF;
  --gray: #6B6B63;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --section-pad: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}
p { margin: 0 0 1em; max-width: 70ch; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--charcoal); color: var(--ivory); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--ivory-dark); }
.section--ivory { background: var(--ivory); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--charcoal); }
.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--charcoal); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-header .logo { display: flex; align-items: center; gap: 10px; overflow: visible; }
.site-header .logo img { height: 98px; width: auto; position: relative; top: 4px; z-index: 5; }
.site-header .logo-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--ivory);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--forest-dark);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
}

/* ---------- Hero (video + still variants) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,39,32,0.55) 0%, rgba(20,39,32,0.75) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--white); }
.hero-content p { font-size: 1.15rem; color: var(--ivory); max-width: 55ch; }
.hero--flat {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  min-height: 46vh;
}
.hero--flat .hero-overlay { display: none; }

/* Torn-paper divider (SVG bezier curve — organic, not a hard polygon zigzag) */
.tear-svg {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 56px;
  z-index: 3;
  display: block;
}
.tear-svg--to-white { color: var(--ivory); }
.tear-svg--to-ivory { color: var(--ivory); }
.tear-svg--to-charcoal { color: var(--charcoal); }
.tear-svg--top {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

/* ---------- Call box ---------- */
.call-box {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  padding: 24px 28px;
  text-align: center;
}
.call-box .label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; margin-bottom: 6px; }
.call-box .phone { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }

/* ---------- Stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold);
  border: 1px solid var(--gold);
  margin-top: 48px;
}
.stat-cell {
  background: var(--white);
  padding: 28px 16px;
  text-align: center;
}
.stat-cell .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--forest); display: block; }
.stat-cell .label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; color: var(--gray); }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Two-column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.split.reverse { grid-template-columns: 1fr 1.2fr; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 40px 32px;
  border-top: 4px solid var(--gold);
}
.service-card h3 { color: var(--gold); font-size: 1.3rem; }
.service-card .tags { font-size: 0.85rem; color: var(--ivory-dark); font-weight: 600; margin-top: 18px; }

.service-card-photo { background: var(--white); }
.service-card-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-card-photo .body { padding: 24px; }
.service-card-photo h3 { color: var(--forest); font-size: 1.1rem; }
.service-card-photo p { color: var(--charcoal); }

/* ---------- Crew / team grid ---------- */
.crew-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.crew-photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px dashed var(--gold);
  padding: 6px;
}
.crew-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer bleed image + footer ---------- */
.footer-bleed {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bleed .badge {
  position: relative; z-index: 2;
  text-align: center;
}
.footer-bleed .badge img { height: 96px; margin: 0 auto 12px; }
.footer-bleed .badge .name { font-family: var(--font-display); color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.1rem; }
.footer-bleed::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,39,32,0.55);
  z-index: 1;
}
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* ---------- Contact form ---------- */
.form-box { border: 1px solid var(--ivory-dark); padding: 32px; }
.form-box .field { margin-bottom: 18px; }
.form-box input, .form-box textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--ivory-dark);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-box textarea { min-height: 120px; resize: vertical; }

/* ---------- Sub-image CTA overlay ---------- */
.photo-cta { position: relative; }
.photo-cta img { border-radius: 2px; }
.photo-cta-badge {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(20,39,32,0.8);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  line-height: 1.3;
  padding: 10px 22px;
  border-radius: 2px;
  text-align: center;
  max-width: 88%;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .photo-cta-badge { white-space: normal; font-size: 0.8rem; padding: 8px 14px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.max-w { max-width: 640px; margin-left: auto; margin-right: auto; }
