/* Blue Layer Hub | site styles. One stylesheet for every page. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --navy-3: #071528;
  --blue: #1d6fe0;
  --sky: #e8f1fd;
  --sky-text: #9cc4ff;
  --orange: #ff8a1f;
  --orange-2: #ff9b3d;
  --ink: #1a2433;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --error: #c62828;
  --radius: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Menu links: every section's heading lands 24px below the fixed 76px header.
   Sections already have 104px top padding, so they need almost no extra offset; the photo grid has none. */
section[id] { scroll-margin-top: -4px; }
section.gallery[id] { scroll-margin-top: 100px; }
body { display: flex; flex-direction: column; min-height: 100vh; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* things the script hasn't switched on (like Copy address) stay hidden */
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 14px 0 16px; color: var(--navy); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--orange); color: #1b1206; box-shadow: 0 10px 24px -10px rgba(255,138,31,.7); }
.btn-primary:hover { transform: translateY(-2px); background: var(--orange-2); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
section { padding: 104px 0; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header.scrolled, .site-header.solid, .site-header.menu-open { background: rgba(11,31,58,.96); box-shadow: 0 8px 30px -12px rgba(0,0,0,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.logo svg { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { padding: 11px 20px; color: #1b1206; }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; padding: 140px 0 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("/assets/img/hero-crew.jpg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,22,44,.94) 0%, rgba(11,31,58,.82) 45%, rgba(11,31,58,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; max-width: 820px; margin: 18px 0 22px; }
.hero h1 span { color: var(--orange); display: inline-block; }
.hero p { font-size: 19px; max-width: 580px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.hero .eyebrow, .dark .eyebrow { color: var(--sky-text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 56px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--orange); }

/* Value strip */
.strip { background: var(--navy); color: #fff; padding: 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.strip-grid li { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.08); display: flex; gap: 14px; align-items: flex-start; }
.strip-grid li:first-child { border-left: 0; }
.strip-grid svg { flex: none; color: var(--orange); margin-top: 2px; }
.strip-grid b { display: block; font-size: 16px; }
.strip-grid span { color: rgba(255,255,255,.7); font-size: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.about-photo .tag { position: absolute; right: -24px; bottom: 40px; background: #fff; border-radius: 12px; padding: 18px 22px; box-shadow: 0 24px 50px -20px rgba(11,31,58,.45); display: flex; gap: 14px; align-items: center; max-width: 280px; }
.tag-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.tag b { display: block; color: var(--navy); font-size: 15px; }
.tag small { color: var(--muted); font-size: 13px; }
.checks { list-style: none; margin: 28px 0 34px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks svg { flex: none; margin-top: 3px; color: var(--blue); }

/* Services */
.services { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; flex-wrap: wrap; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(11,31,58,.35); border-color: transparent; }
.card .icon { width: 54px; height: 54px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 22px; transition: background .2s ease, color .2s ease; }
.card:hover .icon { background: var(--orange); color: #1b1206; }
.card h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Equipment band */
.band { color: #fff; padding: 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }
.band-photo { background: url("/assets/img/mini-excavator.jpg") center/cover; }
.band-copy { background: var(--navy); padding: 88px 72px; display: flex; flex-direction: column; justify-content: center; }
.band-copy h2 { color: #fff; }
.band-copy p { color: rgba(255,255,255,.78); margin-bottom: 28px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pill-list li { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: rgba(255,255,255,.9); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 52px; list-style: none; }
.step { position: relative; padding-top: 28px; border-top: 3px solid var(--line); }
.step::before { content: ""; position: absolute; top: -3px; left: 0; width: 56px; height: 3px; background: var(--orange); }
.step b { display: block; font-size: 14px; color: var(--blue); font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.step h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Gallery */
.gallery { padding-top: 0; }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 260px 260px; gap: 16px; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-grid figure:first-child { grid-row: span 2; }
.gallery-grid figure:last-child { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.gallery-grid figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(11,31,58,.85); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.78); }
.next-steps { list-style: none; margin-top: 36px; display: grid; gap: 18px; counter-reset: n; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,.88); }
.next-steps li::before { counter-increment: n; content: counter(n); flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--orange); font-weight: 800; display: grid; place-items: center; font-size: 14px; }

.form-card { background: #fff; border-radius: var(--radius); padding: 36px; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
/* Email panel in the quote section */
.email-title { font-size: 24px; color: var(--navy); margin: 12px 0 6px; }
.email-address { font-size: 20px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; user-select: all; margin-bottom: 18px; }
.email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; cursor: pointer; }
.btn-outline:hover { background: var(--bg-soft); }
.copy-status { min-height: 1.4em; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.email-include-title { margin-top: 18px; font-weight: 700; color: var(--navy); }
.email-include { margin: 8px 0 18px; padding-left: 20px; color: var(--ink); display: grid; gap: 6px; font-size: 15px; }
.small { font-size: 13px; color: var(--muted); }
.small a { color: var(--blue); text-decoration: underline; }
.form-card .eyebrow { color: var(--blue); }

/* Simple pages (thanks, error, privacy, terms, 404) */
main { flex: 1 0 auto; }
main:has(> .page-hero:only-child) { display: flex; flex-direction: column; }
main > .page-hero:only-child { flex: 1; } /* short pages: no white gap above the footer */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 168px 0 80px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 14px 0 16px; max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,.8); }
.page-hero .lead a { color: #fff; text-decoration: underline; }
.page-hero .hero-actions { margin-top: 30px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,.65); padding: 64px 0 32px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-top p { margin-top: 16px; max-width: 320px; }
.foot-top h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot-top ul { list-style: none; display: grid; gap: 8px; }
.foot-top a:hover { color: #fff; }
.site-footer .logo { font-size: 17px; }
.site-footer .logo svg { width: 30px; height: 30px; }
.foot-bottom { padding-top: 24px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  section { padding: 80px 0; }
  section[id] { scroll-margin-top: 20px; } /* 80px padding here */
  section.gallery[id] { scroll-margin-top: 100px; }
  /* With JavaScript: links fold into the menu button. */
  .js .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); flex-direction: column; gap: 0; padding: 8px 24px 24px; }
  .js .nav-links.open { display: flex; }
  .js .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .js .nav-links .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .js .menu-btn { display: block; }
  /* Without JavaScript: no menu button; the links show in the header instead. */
  html:not(.js) .site-header { position: absolute; background: rgba(11,31,58,.96); }
  html:not(.js) .nav { height: auto; flex-wrap: wrap; gap: 10px 20px; padding-block: 14px; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 8px 18px; }
  html:not(.js) .nav-links .btn { padding: 8px 14px; }
  html:not(.js) .hero { padding-top: 200px; }
  html:not(.js) .page-hero { padding-top: 210px; }
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-grid li:nth-child(3) { border-left: 0; }
  .strip-grid li { border-top: 1px solid rgba(255,255,255,.08); }
  .about-grid, .contact-grid, .band-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .band-grid { gap: 0; }
  .about-photo .tag { right: 16px; }
  .band-photo { min-height: 320px; }
  .band-copy { padding: 64px 24px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 22px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .gallery-grid figure { aspect-ratio: 4/3; }
  .gallery-grid figure:first-child, .gallery-grid figure:last-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16/9; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .service-grid, .steps, .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .strip-grid li { border-left: 0; padding: 22px 0; }
  .hero { padding: 120px 0 80px; }
  .hero p { font-size: 17px; }
  .form-card { padding: 24px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid figure, .gallery-grid figure:first-child, .gallery-grid figure:last-child { grid-column: auto; aspect-ratio: 4/3; }
  .page-hero { padding: 132px 0 64px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}
