:root {
  /* Brand: charcoal gray + orange from the Phantom logo */
  --navy: #3a3b3e;
  --navy-deep: #26272a;
  --steel: #58595b;
  --amber: #f4a764;
  --amber-dark: #e58e43;
  --amber-text: #b45f17;
  --ink: #26272a;
  --muted: #5f6164;
  --line: #e4e4e6;
  --tint: #f4f4f4;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(38, 39, 42, 0.10);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-text);
  margin-bottom: 0.6em;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--head);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 6px;
  border: 2px solid var(--amber);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hero .btn:focus-visible, .section--dark .btn:focus-visible { outline-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-small { padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(38,39,42,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); color: var(--steel); }
.brand-crane { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.45rem; letter-spacing: 0.02em; }
.brand-t { color: var(--amber); }
.brand-sub { font-weight: 500; font-size: 0.7rem; margin-top: 4px; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 0.9rem; }
.site-nav a:not(.btn):hover { color: var(--amber-text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(88,89,91,.6), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(30,31,33,.90) 0%, rgba(30,31,33,.6) 60%, rgba(30,31,33,.4) 100%); }
.hero-content { position: relative; padding-top: 80px; padding-bottom: 80px; max-width: 1140px; }
.hero-content h1 { max-width: 20ch; }
.hero .eyebrow { color: var(--amber); }
.lead { font-size: 1.15rem; max-width: 52ch; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Sections */
.section { padding: 88px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark .eyebrow { color: var(--amber); }
.section--dark p { color: rgba(255,255,255,.85); }
.section--tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 44px; }

/* Services */
.primary-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}
.service-card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--navy); display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sub-head { margin-top: 56px; margin-bottom: 18px; color: var(--steel); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.secondary-services {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.secondary-services li {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.secondary-services strong { font-family: var(--head); }
.secondary-services span { color: var(--muted); font-size: 0.92rem; }

/* Drain explainer */
.drain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { padding-left: 1.2em; margin: 1.5em 0 0; }
.steps li { margin-bottom: 0.7em; color: rgba(255,255,255,.85); }
.steps li::marker { color: var(--amber); font-weight: 700; }
.steps strong { color: var(--white); }
.drain-diagram { margin: 0; background: var(--navy-deep); border-radius: var(--radius); padding: 18px; border: 1px solid rgba(255,255,255,.08); }
.drain-diagram svg { overflow: visible; width: 100%; height: auto; }
.d-soil { fill: #5b4632; }
.d-grass { fill: #4c8a3f; }
.d-house { fill: #c8d1da; }
.d-foundation { fill: #8f9aa5; }
.d-fabric { fill: none; stroke: #e9e2c9; stroke-width: 3; stroke-dasharray: 6 4; }
.d-gravel { fill: #a39a8c; }
.d-stones circle { fill: #c9c1b3; }
.d-pipe { fill: #2b2b2b; stroke: #111; stroke-width: 2; }
.d-holes circle { fill: #a39a8c; }
.d-water path { fill: none; stroke: #6cc3ff; stroke-width: 3; stroke-dasharray: 7 5; animation: flow 1.2s linear infinite; }
.d-arrowheads polygon { fill: #6cc3ff; }
.d-label text { fill: #ffffff; font-family: var(--body); font-size: 12px; font-weight: 500; }
@keyframes flow { to { stroke-dashoffset: -12; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--tint); aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.gallery-item--video { background: #000; aspect-ratio: 9 / 16; }
.gallery-item--video video { object-fit: contain; }
.gallery-item--video:not(.gallery-item--tall) { aspect-ratio: 16 / 9; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; color: var(--white); font-weight: 600; font-size: 0.92rem;
  background: linear-gradient(transparent, rgba(30,31,33,.85));
  pointer-events: none;
}
.gallery-item--video figcaption { top: 0; bottom: auto; padding: 12px 14px 26px; background: linear-gradient(rgba(30,31,33,.85), transparent); }
.gallery-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #e9eef3 0 14px, #f3f6f9 14px 28px);
  color: var(--muted); font-size: 0.85rem;
}
.gallery-placeholder svg { width: 40px; height: 40px; margin: 0 auto 8px; fill: none; stroke: var(--steel); stroke-width: 1.5; }
.gallery-placeholder code { background: var(--white); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-grid p { color: var(--muted); }
.why-list { list-style: none; padding: 28px; margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.why-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 0; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--amber); flex-shrink: 0; position: relative; }
.check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--navy-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Service area */
.section-sub { color: var(--muted); margin-top: 0.5em; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-card { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 24px 28px; }
.area-card h3 { color: var(--navy); }
.area-card ul { list-style: none; padding: 0; margin: 0; }
.area-card li { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.area-card li:last-child { border-bottom: 0; }
.area-card li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.area-more { margin-top: 24px; color: var(--muted); font-style: italic; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-email { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; margin-top: 1.5em; word-break: break-all; }
.contact-email svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 2; flex-shrink: 0; }
.contact-email a { color: var(--white); }
.contact-email--second { margin-top: 0.6em; }
.nav-phone { font-weight: 700 !important; color: var(--amber-text); white-space: nowrap; }
.contact-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.field { margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 0.7em 0.8em;
  border: 1px solid #c9d2db; border-radius: 6px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.form-note { font-size: 0.82rem; color: var(--muted) !important; text-align: center; margin: 10px 0 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 40px 0; font-size: 0.9rem; }
.footer-text { text-align: right; }
.footer-text p + p { margin-top: 4px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { width: 150px; height: auto; }
.about-logo { width: 260px; max-width: 70%; height: auto; margin-bottom: 28px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--amber); text-decoration: none; }

/* Responsive */
@media (max-width: 960px) {
  .primary-services { grid-template-columns: 1fr; }
  .secondary-services { grid-template-columns: repeat(2, 1fr); }
  .drain-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .area-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 20px 20px;
    display: none; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(38,39,42,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-text { text-align: left; }
  .brand-crane { height: 32px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: 0.6rem; }
  .gallery { grid-template-columns: 1fr; }
  .secondary-services { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .contact-form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-water path { animation: none; }
}
