/* Staley Construction — splash styles
   Editorial-trade aesthetic. Premium, plainspoken, not corporate. */

:root {
  /* Palette — warm paper + deep ink + copper accent + sister-brand navy */
  --paper:        #f3ece0;   /* warm off-white */
  --paper-2:      #ece3d2;   /* slightly deeper */
  --cream:        #faf6ee;   /* lighter card surface */
  --ink:          #0e1419;   /* near-black with a hint of warm */
  --ink-2:        #2a323a;
  --ink-soft:     #525c66;
  --muted:        #7a8590;
  --line:         #d8cfbb;   /* warm divider */
  --line-soft:    #e6dfce;
  --accent:       #a44a1f;   /* deep copper — credible, restrained */
  --accent-2:     #c2611f;   /* hover */
  --accent-soft:  #f3dec9;
  --mbd:          #0e2a40;   /* sister-brand navy */
  --mbd-2:        #143655;
  --brass:        #b88830;   /* small ornamental highlight */
  --shadow-sm:    0 1px 1px rgba(14,20,25,0.04);
  --shadow:       0 1px 2px rgba(14,20,25,0.04), 0 12px 32px rgba(14,20,25,0.06);
  --shadow-lg:    0 2px 4px rgba(14,20,25,0.05), 0 30px 60px rgba(14,20,25,0.10);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max: 1180px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle film-grain — gives the warm paper depth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* ───────────────── Top utility bar ───────────────── */
.topbar {
  background: var(--ink);
  color: #cdd2d8;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  padding: 10px 0;
  position: relative;
  z-index: 3;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  justify-content: space-between; align-items: center;
}
.topbar a { color: #f1e2cf; }
.topbar a:hover { color: #fff; }
.topbar .sister { color: #8a96a3; }
.topbar .sister a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
}
.topbar .sister a:hover { border-bottom-color: #fff; }

/* ───────────────── Header ───────────────── */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 46px; width: auto; }
.nav { display: none; gap: 32px; font-size: 14.5px; font-weight: 500; }
.nav a {
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, transform 0.18s ease;
}
.header-cta:hover { background: var(--accent); color: #fff; }
.header-cta svg { width: 14px; height: 14px; }

@media (min-width: 880px) {
  .nav { display: flex; }
}

/* ───────────────── Hero ───────────────── */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 75% -10%, rgba(164,74,31,0.10), transparent 60%),
    radial-gradient(800px 400px at 5% 100%, rgba(14,42,64,0.06), transparent 65%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.35fr 1fr; gap: 64px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mbd);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--mbd); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(14,42,64,0.12);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  margin: 22px 0 22px;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}
.hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink); color: var(--paper);
}

/* Hero proof strip */
.hero-proof {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
@media (min-width: 560px) {
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
}
.hero-proof .pi {
  display: flex; align-items: flex-start; gap: 12px;
}
.hero-proof .pi svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  color: var(--accent);
}
.hero-proof .pi-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.hero-proof .pi-val {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.15;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
}

/* Hero visual — architectural plaque */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  pointer-events: none;
}
.hero-visual .plaque-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600;
  position: relative; z-index: 2;
}
.hero-visual .plaque-top .est {
  text-align: right;
}
.hero-visual .door-mark {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  margin: 16px 0;
}
.hero-visual .door-mark svg {
  width: 78%; max-width: 280px; height: auto;
  display: block;
}
.hero-visual .plaque-bottom {
  position: relative; z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero-visual .plaque-bottom .sm {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ───────────────── Sister-company band ───────────────── */
.sister-band {
  background: var(--mbd);
  color: #e8eef5;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.sister-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 90% 50%, rgba(184,136,48,0.10), transparent 65%);
  pointer-events: none;
}
.sister-band .container {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative; z-index: 2;
}
.sister-band .sb-kicker {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.sister-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.01em;
}
.sister-band h2 em { font-style: italic; color: #f0d9a8; }
.sister-band p {
  margin: 0;
  color: #c2cfdc;
  font-size: 15.5px;
  max-width: 62ch;
}
.sister-band .mbd-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600;
  font-size: 14.5px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  transition: background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.sister-band .mbd-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}
.sister-band .mbd-link svg { width: 14px; height: 14px; }
@media (min-width: 880px) {
  .sister-band .container { grid-template-columns: 1fr auto; gap: 32px; }
}

/* ───────────────── Section base ───────────────── */
section.block { padding: 96px 0; position: relative; }
section.block + section.block { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
section.block .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
section.block .kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
section.block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.018em;
}
section.block h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}
section.block p.intro {
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

/* ───────────────── Services grid ───────────────── */
.services {
  display: grid; gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}
.service {
  background: var(--cream);
  padding: 32px 28px;
  position: relative;
  transition: background 0.22s ease;
}
.service:hover { background: #fff; }
.service .icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid #ecceb6;
}
.service .icon-wrap svg { width: 22px; height: 22px; }
.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .services { grid-template-columns: repeat(3, 1fr); } }

.note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Sectors strip */
.sectors {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
}
.sectors-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sector-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.sector-chips li {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (min-width: 820px) {
  .sectors { grid-template-columns: auto 1fr; gap: 28px; }
}

/* ───────────────── Credibility / stats ───────────────── */
.creds {
  background: var(--ink);
  color: #e6ecef;
  position: relative;
  overflow: hidden;
}
.creds::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(164,74,31,0.14), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(184,136,48,0.08), transparent 65%);
  pointer-events: none;
}
.creds .kicker { color: var(--brass); }
.creds .kicker::before { background: var(--brass); }
.creds h2 { color: #fff; }
.creds h2 em { color: #f0d9a8; }
.creds p.intro { color: #b6c0c9; }
.stats {
  display: grid; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  grid-template-columns: 1fr 1fr;
  position: relative; z-index: 2;
}
.stat {
  padding: 32px 4px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat:nth-child(2n) { border-right: 0; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.stat .num small {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--brass);
  font-style: italic;
  margin-left: 4px;
}
.stat .label {
  color: #aab4be;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 36px 8px; border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat:last-child { border-right: 0; }
}

/* ───────────────── Contact ───────────────── */
.contact-wrap {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
}
.contact-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
.contact-grid .field h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.contact-grid .field p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.contact-grid .field p a {
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.contact-grid .field p a:hover { color: var(--accent); }
.contact-grid .field p span.sub {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .contact-grid .field {
    padding: 0 32px;
    border-right: 1px solid var(--line);
  }
  .contact-grid .field:first-child { padding-left: 0; }
  .contact-grid .field:last-child { padding-right: 0; border-right: 0; }
}

/* ───────────────── Footer ───────────────── */
.site-footer {
  background: var(--ink);
  color: #aab4be;
  padding: 48px 0 36px;
  font-size: 13.5px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}
.site-footer .container {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
.site-footer .ft-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.site-footer .ft-sm { color: #7a8590; font-size: 12.5px; line-height: 1.6; }
.site-footer a { color: #f1e2cf; }
.site-footer a:hover { color: #fff; }
.site-footer .license {
  color: #7a8590;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.site-footer .ft-row-2 {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  font-size: 12px;
  color: #7a8590;
}

/* Government credentials block */
.ft-gov {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-start;
}
.ft-gov-badge {
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 30;
  font-size: 22px; line-height: 1; font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, rgba(184,136,48,0.18), rgba(184,136,48,0.06));
  border: 1px solid rgba(184,136,48,0.55);
  border-radius: 6px;
  padding: 12px 18px 10px;
  position: relative;
}
.ft-gov-badge::before, .ft-gov-badge::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 24px; height: 1px; background: rgba(184,136,48,0.45);
}
.ft-gov-badge::before { top: 6px; }
.ft-gov-badge::after { bottom: 6px; }
.ft-gov-badge span {
  font-family: var(--font-sans);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #d8b35a;
  margin-top: 4px;
}
.ft-gov-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px;
  color: #cdd2d8;
  line-height: 1.5;
}
.ft-gov-meta span {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #7a8590;
  margin-right: 6px;
  min-width: 70px;
}

@media (min-width: 820px) {
  .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr 0.9fr; gap: 40px; }
}

/* ───────────────── Accessibility ───────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
