/* =========================================================
   Underground Services, LLC — Site Styles
   Design system extracted from approved mockups
   ========================================================= */

:root {
  /* Brand palette */
  --navy-900: #0a1424;
  --navy-800: #0d1b2e;
  --navy-700: #122440;
  --navy-600: #18304f;
  --navy-500: #1e3a5f;

  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;

  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --offwhite: #f8fafc;
  --white: #ffffff;

  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, .10);
  --shadow-lg: 0 25px 50px rgba(10, 20, 36, .25);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--light { background: var(--offwhite); }
.section--navy { background: var(--navy-800); color: var(--slate-200); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue-400);
  margin-bottom: 14px;
}
.eyebrow--center { display: block; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--ink); }
.section-title--light { color: var(--white); }
.lead { font-size: 1.06rem; color: var(--slate-500); max-width: 640px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn--primary:hover { background: var(--blue-400); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 36, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 48px; width: auto; display: block; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { color: #fff; font-weight: 800; font-size: 1.18rem; letter-spacing: .02em; }
.brand__sub {
  color: var(--blue-300);
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--slate-300);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: var(--blue-300); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-400);
  border-radius: 2px;
}
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,20,36,.55) 0%, rgba(10,20,36,.82) 100%),
    radial-gradient(1100px 500px at 80% 0%, #2b4a78 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* faux machinery / terrain texture so the temp hero reads like a photo slot */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 420px at 88% 22%, rgba(96,165,250,.18), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 96px 0 72px; max-width: 640px; }
.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero__title .accent { color: var(--blue-400); display: block; }
.hero__text { color: var(--slate-300); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero--sm .hero__inner { padding: 72px 0 60px; }
.hero--sm .hero__title { font-size: clamp(2rem, 4.6vw, 3rem); }

/* Hero feature strip (home) */
.hero-strip {
  position: relative;
  z-index: 2;
  background: var(--navy-700);
  border-top: 1px solid rgba(255,255,255,.06);
}
.hero-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-strip__item {
  padding: 26px 28px;
  border-left: 1px solid rgba(255,255,255,.07);
}
.hero-strip__item:first-child { border-left: 0; }
.hero-strip__item h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.hero-strip__item p { color: var(--slate-400); font-size: .8rem; margin: 0; }
.hero-strip__icon { color: var(--blue-400); margin-bottom: 12px; }

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

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.card__media { aspect-ratio: 16 / 10; background: var(--navy-700); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px; }
.card__icon { color: var(--blue-500); margin-bottom: 12px; }
.card__title { font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.card__text { font-size: .9rem; color: var(--slate-500); margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 28px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--slate-700); }
.feature-list svg { color: var(--blue-500); flex: none; margin-top: 3px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--blue-400); }
.stat__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 36px; }
.filter {
  background: var(--navy-700);
  color: var(--slate-300);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filter:hover { color: #fff; }
.filter.is-active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-700);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.06); }
.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(10,20,36,.92));
  color: #fff;
}
.tile__caption .t { font-weight: 700; font-size: .92rem; }
.tile__caption .s { font-size: .76rem; color: var(--slate-300); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(90deg, rgba(10,20,36,.92), rgba(10,20,36,.6)),
    radial-gradient(800px 300px at 90% 50%, #2b4a78, var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; }
.cta-band p { color: var(--slate-300); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-list .ico {
  width: 44px; height: 44px; flex: none;
  background: var(--navy-700);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--blue-400);
}
.info-list .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); }
.info-list .v { font-weight: 700; color: var(--white); }
.section--navy .info-list .v a { color: #fff; }

.form { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--offwhite);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Safety / about misc ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.pillar__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(37,99,235,.1); color: var(--blue-500); display: grid; place-items: center; margin-bottom: 16px; }
.pillar h3 { font-size: 1.12rem; }
.pillar p { font-size: .92rem; color: var(--slate-500); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-400); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--slate-400); font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-about p { font-size: .9rem; max-width: 300px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
}

/* ---------- Placeholder ribbon ---------- */
.placeholder-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(37,99,235,.92);
  color: #fff; font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; z-index: 2;
}

/* =========================================================
   HOME — soft, modern: no hard lines, gradients + curves
   ========================================================= */
/* Home: transparent nav overlaying the hero photo (like the splash mockup) */
body.home .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}
body.home .hero {
  /* auger photo behind the headline, fading into navy on the left */
  background:
    linear-gradient(90deg,
      #0a1424 0%,
      rgba(10,20,36,.94) 24%,
      rgba(10,20,36,.62) 44%,
      rgba(10,20,36,.22) 62%,
      rgba(10,20,36,0) 80%),
    url("../../images/backgrounds/front_auger_2.png") center right / cover no-repeat,
    linear-gradient(160deg, #0b1a30 0%, #0d1b2e 45%, #0a1424 100%);
  border-bottom: 0;
}
body.home .hero::after {
  /* soft vertical depth so the floating cards stay readable over the photo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,36,.48) 0%, rgba(10,20,36,.08) 16%, rgba(10,20,36,0) 32%, rgba(10,20,36,.55) 100%),
    radial-gradient(360px 360px at 20% 85%, rgba(37,99,235,.14), transparent 70%);
  pointer-events: none;
}
body.home .hero__inner { padding-bottom: 40px; }

/* Feature strip → floating soft cards, no dividing lines */
body.home .hero-strip {
  background: transparent;
  border-top: 0;
  position: relative;
  z-index: 3;
  margin-top: -8px;
  padding-bottom: 70px;
}
body.home .hero-strip__grid { gap: 18px; }
body.home .hero-strip__item {
  border: 0;
  padding: 26px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30,58,95,.65), rgba(13,27,46,.65));
  border: 1px solid rgba(96,165,250,.16);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(5,12,24,.45);
  transition: transform .25s ease, border-color .25s ease;
}
body.home .hero-strip__item:hover { transform: translateY(-6px); border-color: rgba(96,165,250,.4); }

/* Soft scoop: white content curves up over the dark hero */
body.home .home-scoop {
  position: relative;
  z-index: 4;
  margin-top: -46px;
  padding-top: 90px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border-radius: 70px 70px 0 0;
}
@media (max-width: 560px) { body.home .home-scoop { border-radius: 40px 40px 0 0; } }
body.home .home-scoop > .section--first { padding-top: 8px; }

/* Curved gradient section transitions (replace hard edges) */
body.home .section--light {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(219,234,254,.7), transparent 60%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  border-radius: 60px;
  margin: 0 16px;
}
body.home .section--navy {
  background:
    radial-gradient(700px 400px at 10% 120%, rgba(37,99,235,.25), transparent 60%),
    linear-gradient(160deg, #102845 0%, #0b1a30 100%);
  border-radius: 48px;
  margin: 0 16px;
}
@media (max-width: 560px) {
  body.home .section--light,
  body.home .section--navy { border-radius: 34px; margin: 0 8px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .hero-strip__item:nth-child(2) { border-left: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 0;
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 24px; }
  .nav__links .nav__cta { margin: 12px 24px; text-align: center; justify-content: center; display: flex; }
  .nav__toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-strip__grid { grid-template-columns: 1fr; }
  .hero-strip__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .hero-strip__item:first-child { border-top: 0; }
  .footer-grid, .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; }
  .section { padding: 60px 0; }
}
