/* ==========================================================
   Allied Estimating — shared design system
   Used by the redesigned pages. No Bootstrap / jQuery needed.
   ========================================================== */

:root {
  /* Brand */
  --ink-900: #14211b;      /* deep green-charcoal */
  --ink-800: #1b2c24;
  --ink-700: #26402f;
  --brand: #e2580e;        /* Allied orange (logo) */
  --brand-dark: #c2470a;
  --brand-50:  #fff1e8;
  --green: #2f9e4f;        /* Allied green (logo) */
  --green-50: #eaf6ee;

  /* Neutrals */
  --ink:      #1b2430;
  --ink-soft: #4a5565;
  --muted:    #6b7686;
  --line:     #e3e7ee;
  --bg:       #ffffff;
  --bg-soft:  #f5f7fa;

  /* Type */
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --section-y: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink-900); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid rgba(226, 88, 14, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(226, 88, 14, .28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink-900); }
.btn-light:hover { background: var(--bg-soft); color: var(--ink-900); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink-900); color: rgba(255,255,255,.78); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .fa { color: var(--brand); margin-right: 7px; }
.topbar-right { display: flex; gap: 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.nav a:hover { color: var(--brand); background: var(--brand-50); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--brand); border-radius: 2px; margin-top: 4px;
}
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { white-space: nowrap; font-family: var(--font-head); font-weight: 700; color: var(--ink-900); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.header-phone .fa {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
}
.header-phone small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); line-height: 1.1; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-900); font-size: 20px; cursor: pointer;
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; color: #fff;
  background: var(--ink-800) url(../images/pp.jpg) center/cover no-repeat;
  padding: 88px 0 96px;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,33,27,.94) 0%, rgba(20,33,27,.82) 45%, rgba(20,33,27,.55) 100%);
}
.breadcrumb { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.4); }
.page-hero h1 { color: #fff; max-width: 720px; }
.page-hero .lead { font-size: 1.1875rem; color: rgba(255,255,255,.82); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); max-width: 720px; }
.hero-facts div { font-size: 14px; color: rgba(255,255,255,.72); }
.hero-facts strong { display: block; font-family: var(--font-head); font-size: 1.625rem; color: #fff; line-height: 1.2; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.0625rem; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }

/* ---------- Division grid ---------- */
.division-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.division-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.division-card:hover { border-color: rgba(226,88,14,.35); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.division-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 20px;
}
.division-card .num { position: absolute; top: 20px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.division-card h3 { font-size: 1.0625rem; margin: 0; line-height: 1.35; }
.division-card .div-label { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* ---------- Tabs + trade chips ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 36px; }
.tabs-wrap { text-align: center; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink-soft); cursor: pointer;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink-900); }
.tab[aria-selected="true"] { background: var(--ink-900); color: #fff; }

.trade-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.trade-panel[hidden] { display: none; }
.trade-panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.trade-panel h3 .fa { color: var(--brand); }
.chip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; list-style: none; margin: 0; padding: 0; }
.chip-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius); background: var(--bg-soft);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.chip-list li .fa { color: var(--brand); font-size: 13px; }

/* No-JS fallback: show both panels stacked */
.no-js .tabs { display: none; }
.no-js .trade-panel[hidden] { display: block; margin-top: 24px; }

/* ---------- Process strip ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 14px;
  color: var(--brand); background: var(--brand-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.steps h4 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 var(--section-y); }
.cta-band .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px 56px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(226,88,14,.35), transparent 45%), var(--ink-900);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band .inner > div:first-child { flex: 1 1 480px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; font-size: 1.0625rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.72); font-size: 15px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 48px; padding: 72px 24px 56px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer p { line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.site-footer .fa { color: var(--brand); width: 18px; margin-right: 8px; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; }
.footer-logo img { height: 30px; }
.hours dt { color: #fff; font-weight: 600; margin-top: 10px; }
.hours dt:first-child { margin-top: 0; }
.hours dd { margin: 2px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 68px; font-size: 14px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.social a:hover { background: var(--brand); }
.social .fa { color: inherit; margin: 0; width: auto; }

/* ---------- Mobile call bar ---------- */
.mobile-callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1260px) {
  .header-phone { display: none; }
}

@media (max-width: 1080px) {
  .division-grid { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 10px 10px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --section-y: 64px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none; padding: 12px 24px 20px;
  }
  .site-nav.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a { padding: 14px 12px; font-size: 16px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--brand-50); }
  .header-cta .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .cta-band .inner { padding: 36px 28px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .topbar .address { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-right { gap: 18px; font-size: 13px; }
  .site-header .container { min-height: 64px; }
  .brand img { height: 30px; }
  .page-hero { padding: 56px 0 64px; }
  .page-hero .lead { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 36px; }
  .hero-actions .btn-outline-light { display: none; }
  .division-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .division-card { padding: 16px; gap: 10px; }
  .division-card .icon { width: 40px; height: 40px; font-size: 17px; }
  .division-card .num { display: none; }
  .division-card h3 { font-size: .975rem; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
  .trade-panel { padding: 22px 18px; }
  .trade-panel h3 { font-size: 1.125rem; }
  .chip-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip-list li { font-size: 14px; padding: 10px 12px; }
  .cta-band .actions, .cta-band .actions .btn { width: 100%; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px 40px; }
  .footer-bottom .container { justify-content: center; text-align: center; padding: 16px 24px; }
  .mobile-callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,24,40,.08);
  }
  .mobile-callbar .btn { min-height: 46px; padding: 0 12px; }
  .mobile-callbar .btn-call { background: var(--ink-900); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   v2.1 — components for Home / About / Projects / Contact
   ========================================================== */

.text-center { text-align: center; }
.muted { color: var(--ink-soft); }

/* Footer credit bar */
.footer-credit { margin: 0; }
.footer-credit a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.35); }
.footer-credit a:hover { border-bottom-color: var(--brand); }
.footer-bottom p { margin: 0; }

/* ---------- Home hero ---------- */
.home-hero { padding: 96px 0 104px; }
.home-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.home-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.home-hero h1 span { color: #ff8a3d; }
.home-hero .hero-art img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.25)); }
.home-hero .hero-facts { max-width: none; }

/* ---------- Feature row (under hero) ---------- */
.feature-row { margin-top: -56px; position: relative; z-index: 2; }
.feature-row .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.feature .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--ink-900); color: #fff; font-size: 20px;
}
.feature h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media .badge-float {
  position: absolute; left: -20px; bottom: -24px;
  background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 18px 22px;
  box-shadow: 0 14px 30px rgba(226,88,14,.35); font-size: 14px; line-height: 1.3;
}
.split-media .badge-float strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1.1; }
.split-body p { color: var(--ink-soft); }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li .fa { color: var(--brand); margin-top: 5px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

/* ---------- Software logos ---------- */
.logo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.logo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 150px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .2s, transform .2s;
}
.logo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.logo-card img { max-height: 56px; width: auto; }
.logo-card span { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.1875rem; }
.service-card p { color: var(--ink-soft); font-size: 15px; }
.service-card details { margin-top: auto; }
.service-card summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--brand); padding: 6px 0;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card summary::after { content: "\f107"; font-family: FontAwesome; transition: transform .2s; }
.service-card details[open] summary::after { transform: rotate(180deg); }
.service-card details[open] summary .more { display: none; }
.service-card summary .less { display: none; }
.service-card details[open] summary .less { display: inline; }
.service-card details p { margin-top: 10px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink-900); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.stats-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,88,14,.35), transparent 65%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.stat { text-align: center; padding: 8px 12px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat .fa { color: var(--brand); font-size: 26px; margin-bottom: 12px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }
.stat span { color: rgba(255,255,255,.72); font-size: 15px; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  display: flex; flex-direction: column; gap: 20px; padding: 32px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); position: relative;
}
.quote-card .fa-quote-left { color: var(--brand); font-size: 26px; opacity: .9; }
.quote-card blockquote { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink); flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ink-900); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 17px;
}
.quote-card .who strong { display: block; font-family: var(--font-head); color: var(--ink-900); }
.quote-card .who span { font-size: 14px; color: var(--muted); }
.stars { color: #f5a524; font-size: 14px; letter-spacing: 2px; }

/* ---------- Process steps (dark variant) ---------- */
.steps.on-soft li { background: #fff; }

/* ---------- Projects gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter-btn {
  min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink-900); color: var(--ink-900); }
.filter-btn[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.gallery li[hidden] { display: none; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-800); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #fff;
  background: linear-gradient(to top, rgba(20,33,27,.92), rgba(20,33,27,0));
}
.gallery figcaption strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; }
.gallery figcaption span { font-size: 13px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sample estimate cards ---------- */
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sample-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.sample-card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 22px; margin-bottom: 18px; }
.sample-card ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; }
.sample-card li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sample-card li .fa { color: var(--brand); margin-right: 8px; }
.sample-card .btn { margin-top: auto; align-self: flex-start; }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--ink-900); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1px solid #cfd6e0; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-700); box-shadow: 0 0 0 4px rgba(38,64,47,.12); }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 18px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--ink-900); }
.info-list a, .info-list span { color: var(--ink-soft); }
.contact-aside .card + .card { margin-top: 24px; }
.contact-aside .dark { background: var(--ink-900); color: rgba(255,255,255,.8); border: 0; }
.contact-aside .dark h3 { color: #fff; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 32px; background: var(--bg-soft); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Result / 404 ---------- */
.result { max-width: 640px; margin: 0 auto; text-align: center; }
.result .icon-xl { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; font-size: 36px; }
.result .ok { background: #e7f6ec; color: #1f9254; }
.result .err { background: var(--brand-50); color: var(--brand); }
.result .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Responsive (v2.1) ---------- */
@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 900px) {
  .home-hero .container, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .home-hero .hero-art img { margin: 0 auto; max-width: 440px; }
  .feature-row .grid, .service-grid, .quote-grid, .sample-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .split-media .badge-float { left: 16px; bottom: -20px; }
}
@media (max-width: 640px) {
  .home-hero { padding: 56px 0 88px; }
  .home-hero .hero-art { display: none; }
  .logo-strip { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .map-wrap iframe { height: 300px; }
}
.stats-band + .cta-band { padding-top: var(--section-y); }
.quote-card { margin: 0; }

/* Allied: green accents */
.chip-list li .fa, .check-list li .fa, .sample-card li .fa { color: var(--green); }
.eyebrow::before { background: var(--green); }
.division-card .icon, .info-list .icon { background: var(--green-50); color: var(--green); }
.brand img, .footer-logo img { width: auto; }
.brand img { height: 60px; }
@media (max-width: 640px) { .brand img { height: 46px; } }
.footer-logo img { height: 64px; }

/* ---------- Allied identity overrides ---------- */
h1, h2, h3, h4 { letter-spacing: -0.015em; }
h1 { font-weight: 700; }
h2 { font-weight: 700; }
.btn { border-radius: 8px; font-weight: 600; letter-spacing: .01em; }
.tabs, .tab, .filter-btn { border-radius: 8px; }
.eyebrow { font-weight: 600; letter-spacing: .16em; }
.eyebrow::before { width: 28px; height: 3px; border-radius: 2px; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 18px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0 50%, var(--green) 50% 100%); }
.split-body h2::after, .text-left h2::after { margin-left: 0; }
.page-hero::before { background: linear-gradient(100deg, rgba(20,33,27,.95) 0%, rgba(20,33,27,.85) 50%, rgba(20,33,27,.55) 100%); }
.page-hero { border-bottom: 5px solid var(--brand); background-image: url(../images/pp.jpg); }
.topbar { background: var(--ink-900); }
.site-header { border-bottom: 1px solid var(--line); }
.division-card, .feature, .service-card, .quote-card, .sample-card, .logo-card, .card, .trade-panel, .steps li { border-radius: var(--radius-lg); }
.service-card .media { aspect-ratio: 16 / 9; }
.home-hero h1 span { color: #ff8a3d; }
.cta-band .inner { border-radius: 12px; background: radial-gradient(circle at 85% 20%, rgba(226,88,14,.45), transparent 45%), radial-gradient(circle at 10% 110%, rgba(47,158,79,.35), transparent 40%), var(--ink-900); }

/* Process (6 steps) */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li { position: relative; padding: 26px 26px 24px 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.process li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; background: var(--brand);
}
.process li:nth-child(even)::before { background: var(--green); }
.process h3 { font-size: 1.125rem; margin-bottom: 6px; }
.process p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Takeoff chips (services) */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.tag-list li { padding: 8px 14px; border-radius: 6px; background: var(--brand-50); color: var(--brand-dark); font-weight: 600; font-size: 14.5px; }

/* Service detail rows */
.service-row + .service-row { margin-top: 88px; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .service-row + .service-row { margin-top: 56px; }
}
