/* Encore Pipe & Construction — real-brand build
   Brand (from their logo + site CSS): black + safety orange #F47E3A.
   Supporting: steel blue, caliche sand, bone. */

:root {
  --ink: #14181c;
  --ink-2: #1e2830;
  --steel: #2f4a63;
  --steel-light: #5a7c9c;
  --orange: #f47e3a;
  --orange-dark: #db6a26;
  --sand: #d8cbb4;
  --bone: #f4f1ea;
  --bone-2: #ece7dc;
  --line: #cfc6b4;
  --text: #1a1f24;
  --muted: #58636f;
  --on-dark: #e9ebee;
  --on-dark-muted: #a7b1bc;

  --wrap: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

h1, h2, h3 {
  font-family: "Oswald", "Barlow", sans-serif;
  font-weight: 600; line-height: 1.08; letter-spacing: 0.01em;
  margin: 0 0 0.4em; color: var(--ink);
}
a { color: var(--steel); }
img { max-width: 100%; display: block; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 0.75rem 1rem; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--steel);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: "Oswald", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; color: #fff; background: var(--btn-bg);
  padding: 0.7rem 1.2rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-call { --btn-bg: var(--orange); color: #1a1200; }
.btn-call:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.section-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(22,32,43,0.06); }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 241, 234, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.site-nav { margin-left: auto; display: flex; gap: 1.25rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--orange); }
.login-link {
  font-family: "Barlow Semi Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.login-link:hover { color: var(--orange-dark); }
@media (max-width: 620px) { .login-link { display: none; } }
.header-call { flex-direction: column; line-height: 1.05; padding: 0.5rem 1rem; }
.btn-call-label { font-size: 0.65rem; opacity: 0.85; }
.btn-call-num { font-size: 1rem; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-call { flex-direction: row; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: var(--on-dark); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, rgba(15,19,23,0.94) 0%, rgba(20,24,28,0.86) 45%, rgba(20,24,28,0.62) 100%),
    url("img/hero-pipeline.jpg") center/cover no-repeat, var(--ink);
}
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 34px, transparent 34px 68px);
}
.hero-inner { position: relative; z-index: 1; padding: 5.5rem 0 5rem; max-width: 820px; }
.eyebrow {
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.82rem;
  color: var(--orange); margin: 0 0 1rem;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--on-dark); max-width: 42ch; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2.6rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 2.4rem; list-style: none; margin: 0; padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: "Oswald", sans-serif; font-size: 2rem; color: var(--orange); line-height: 1; }
.hero-proof span { font-size: 0.85rem; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.28;
  background: url("img/hero-pipeline.jpg") center/cover no-repeat;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 30px, transparent 30px 60px);
}
.page-hero-inner { position: relative; z-index: 1; padding: 3.4rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.page-hero p { color: var(--on-dark-muted); max-width: 55ch; margin: 0; font-size: 1.1rem; }
.crumbs { font-family: "Barlow Semi Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--orange); margin: 0 0 0.6rem; }
.crumbs a { color: var(--orange); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.6rem 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-sand { background: var(--bone-2); }
.section-label {
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem;
  color: var(--orange); margin: 0 0 0.7rem;
}
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 24ch; }
.section-lead { font-size: 1.12rem; max-width: 62ch; color: var(--muted); margin-bottom: 2rem; }
.section-dark .section-lead { color: var(--on-dark-muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 4px 14px rgba(22,32,43,0.05);
}
.card h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.8rem; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: 0.35rem; }
.card-link { display: inline-block; margin-top: 0.9rem; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; color: var(--orange-dark); text-decoration: none; font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* ---------- Photo slots (spec placeholders) ---------- */
.photo-strip { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.photo-slot {
  margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(45deg, rgba(47,74,99,0.06) 0 12px, transparent 12px 24px), var(--bone-2);
  border: 2px dashed var(--steel-light); border-radius: var(--radius); color: var(--steel);
}
.photo-slot span { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; }
.photo-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; font-style: italic; }

/* ---------- Safety ---------- */
.creds { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.creds li {
  font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem;
  padding: 0.55rem 1.1rem; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); background: rgba(255,255,255,0.04);
}
.section:not(.section-dark) .creds li { border-color: var(--line); background: #fff; color: var(--ink); }
.fineprint { font-size: 0.85rem; color: var(--on-dark-muted); font-style: italic; }
.section:not(.section-dark) .fineprint { color: var(--muted); }
.badge-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.badge { background: #fff; border-radius: var(--radius); padding: 0.5rem; height: 72px; width: auto; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.cred-grid { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0 0 1.4rem; }
.cred-btn {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(22,32,43,0.06);
  height: 96px; min-width: 140px; padding: 0.9rem 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cred-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,32,43,0.12); }
.cred-btn img { max-height: 60px; max-width: 160px; width: auto; height: auto; object-fit: contain; display: block; }
.cred-btn.text {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; color: var(--ink); text-align: center; font-size: 1rem;
}

/* ---------- Service area ---------- */
.area-grid, .about-grid, .contact-grid, .careers-inner { display: grid; gap: 2.2rem; grid-template-columns: 1.5fr 1fr; align-items: start; }
.area-list { columns: 2; gap: 1.2rem; padding-left: 1.1rem; margin: 0 0 1.4rem; }
.area-list li { margin-bottom: 0.4rem; }
.area-map { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1rem; }
.area-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 1.6rem; border-left: 4px solid var(--orange); margin-top: 1.2rem; }
.area-card-label { font-family: "Barlow Semi Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--sand); margin: 0 0 0.6rem; }
.area-address { font-family: "Oswald", sans-serif; font-size: 1.3rem; line-height: 1.3; margin: 0 0 1.2rem; color: #fff; }

/* ---------- About ---------- */
.about-grid p { font-size: 1.05rem; }
.leadership { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.leadership ul { list-style: none; margin: 0; padding: 0; }
.leadership li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.leadership li:last-child { border-bottom: 0; }
.leadership strong { font-family: "Oswald", sans-serif; font-size: 1.1rem; color: var(--ink); }
.leadership span { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Benefits (careers) ---------- */
.benefits { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; padding: 0; margin: 1.5rem 0 0; }
.benefits li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-weight: 600; }

/* ---------- Careers ---------- */
.careers-inner { align-items: center; }
@media (min-width: 901px) { .careers-cta { justify-self: end; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #1a1200; text-align: center; padding: 3rem 0; }
.cta-band h2 { color: #1a1200; }
.cta-band .btn { --btn-bg: var(--ink); color: #fff; }
.cta-band .btn:hover { background: #000; }

/* ---------- Contact ---------- */
.contact-address { margin-top: 1.4rem; font-style: normal; color: var(--on-dark-muted); line-height: 1.5; }
.contact-form { background: var(--bone); color: var(--text); border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--orange); }
.form-intro { margin: 0 0 1rem; font-weight: 600; }
.contact-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(47,74,99,0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1115; color: var(--on-dark-muted); padding: 2.6rem 0 5.5rem; }
.footer-inner { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-logo { height: 40px; width: auto; margin-bottom: 0.3rem; filter: brightness(0) invert(1) sepia(1) saturate(0); }
.footer-nap { margin: 0.4rem 0 0; font-size: 0.95rem; }
.footer-nap a { color: var(--sand); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.6rem 0; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-note { margin: 0; font-size: 0.85rem; opacity: 0.7; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--orange); color: #1a1200; text-decoration: none;
  padding: 0.85rem; box-shadow: 0 -6px 20px rgba(0,0,0,0.25); font-family: "Oswald", sans-serif;
}
.sticky-call span { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; opacity: 0.85; }
.sticky-call strong { font-size: 1.2rem; letter-spacing: 0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .area-grid, .about-grid, .contact-grid, .careers-inner { grid-template-columns: 1fr; }
  .area-list { columns: 1; }
  .sticky-call { display: flex; }
  .hero-inner { padding: 4rem 0 3.5rem; }
}
@media (max-width: 460px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-proof { gap: 1.6rem; }
}
