/* Cornerstone Construction Management Group — site styles
   Brand: Cornerstone Brand Standard v1.0 (navy #002366, silver #A6A6A6, Barlow / Barlow Condensed) */
/* Self-hosted fonts (SIL Open Font License, see /assets/fonts/OFL.txt) */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Barlow-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
:root {
  --cs-navy: #002366;
  --cs-silver: #A6A6A6;
  --cs-white: #FFFFFF;
  --cs-navy-deep: #001A4D;
  --cs-navy-mid: #1A3A7A;
  --cs-tint: #CCD5E6;
  --cs-tint-light: #E6EAF2;
  --cs-tint-faint: #F4F6FA;
  --cs-ink: #1F2933;
  --cs-slate: #4A5768;
  --cs-rule: #D5DAE2;
  --cs-display: "Barlow Condensed", Arial, sans-serif;
  --cs-body: "Barlow", Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--cs-body); font-size: 17px; line-height: 1.6; color: var(--cs-ink); background: var(--cs-white); }
img, video { max-width: 100%; display: block; }
a { color: var(--cs-navy); }
a:hover { color: var(--cs-navy-deep); }
:focus-visible { outline: 3px solid var(--cs-navy); outline-offset: 2px; }
.on-navy :focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { font-family: var(--cs-display); font-weight: 700; text-transform: uppercase; line-height: 1; margin: 0; color: var(--cs-navy); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Utility bar + header */
.utility { background: var(--cs-navy-deep); font-size: 14px; }
.utility .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.utility a { color: var(--cs-tint); text-decoration: none; }
.utility a:hover { color: #fff; }
.site-header { border-bottom: 1px solid var(--cs-rule); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo img { width: 230px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--cs-ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cs-navy); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--cs-navy); color: var(--cs-navy); min-height: 44px; padding: 0 14px; font: 600 15px var(--cs-body); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--cs-rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--cs-rule); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .logo img { width: 190px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; font-family: var(--cs-display); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1.5px solid var(--cs-navy); cursor: pointer; }
.btn-primary { background: var(--cs-navy); color: #fff; }
.btn-primary:hover { background: var(--cs-navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--cs-navy); }
.btn-outline:hover { background: var(--cs-tint-faint); }
.btn-white { background: #fff; color: var(--cs-navy); border-color: #fff; }
.btn-white:hover { background: var(--cs-tint-light); color: var(--cs-navy); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: var(--cs-navy-mid); color: #fff; }
.nav .btn { min-height: 44px; font-size: 16px; padding: 0 18px; color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-navy { background: var(--cs-navy); color: #E6EAF2; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-faint { background: var(--cs-tint-faint); }
.bg-light { background: var(--cs-tint-light); }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--cs-slate); }
.bg-navy .eyebrow { color: var(--cs-tint); }
.section-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--cs-navy); padding-bottom: 14px; }
.section-head .num { font-family: var(--cs-display); font-weight: 700; font-size: 32px; color: var(--cs-silver); }
.section-head h2 { font-size: 44px; letter-spacing: .03em; }
.lead { font-size: 20px; line-height: 1.6; max-width: 800px; }
.section-head + .lead, .section-head + p { margin-top: 22px; }
.muted { color: var(--cs-slate); }
.small { font-size: 14px; line-height: 1.55; }

/* Grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.mt-32 { margin-top: 32px; } .mt-24 { margin-top: 24px; } .mt-16 { margin-top: 16px; } .mt-48 { margin-top: 48px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 82px); line-height: .93; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 30px; }
.hero-media { position: relative; }
.hero-media video, .hero-media img { width: 100%; height: 520px; object-fit: cover; background: var(--cs-tint-light); }
.caption-tag { position: absolute; left: 0; bottom: 0; background: var(--cs-navy); color: #fff; padding: 11px 16px; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 700px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; } .hero-media video, .hero-media img { height: 320px; } }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px; }
.stat-num { font-family: var(--cs-display); font-weight: 700; font-size: 58px; line-height: 1; color: #fff; }
.stat-label { margin-top: 6px; font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cs-tint); }
.stats.on-light .stat-num { color: var(--cs-navy); }
.stats.on-light .stat-label { color: var(--cs-slate); }

/* Cards */
.card { border: 1.5px solid var(--cs-rule); border-top: 4px solid var(--cs-navy); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card h3 { font-size: 27px; line-height: 1.05; }
.card .num { font-family: var(--cs-display); font-weight: 700; font-size: 22px; color: var(--cs-silver); }
.card .more { margin-top: auto; font-weight: 600; font-size: 15px; }
.card-dark { background: var(--cs-navy); border-color: var(--cs-navy); color: #E6EAF2; }
.card-dark h3 { color: #fff; }
.card-dark .why { border-top-color: var(--cs-navy-mid); color: #fff; }
.card .why { margin-top: auto; border-top: 1px solid var(--cs-rule); padding-top: 12px; font-size: 15px; color: var(--cs-navy); }
.card-dark .why { color: #fff; }
.tile { background: var(--cs-tint-faint); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 24px; }
.bg-faint .tile { background: #fff; }
.outline-box { border: 1px solid var(--cs-navy-mid); padding: 22px; }
.outline-box h3 { font-size: 20px; }
.outline-box p { margin-top: 8px; font-size: 15px; color: var(--cs-tint); }

/* Flagship service */
.flagship { background: var(--cs-navy); padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center; grid-column: 1 / -1; color: #E6EAF2; }
.flagship h3 { font-size: 44px; color: #fff; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-stats div { border: 1px solid var(--cs-navy-mid); padding: 18px; }
.mini-stats b { display: block; font-family: var(--cs-display); font-size: 34px; line-height: 1; color: #fff; }
.mini-stats span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--cs-tint); }

/* Before/after */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tag { position: absolute; top: 14px; left: 14px; font-weight: 700; font-size: 12px; letter-spacing: .18em; padding: 7px 11px; }
.tag-before { background: #fff; color: var(--cs-navy); }
.tag-after { background: var(--cs-navy); color: #fff; }
.ba-caption { margin-top: 8px; font-size: 14px; color: var(--cs-slate); }
.ba-list { display: grid; gap: 28px; }
@media (max-width: 560px) { .ba { grid-template-columns: 1fr; } }

/* Projects */
.proj-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; }
.proj-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proj-card .body { padding: 18px 0; display: flex; flex-direction: column; gap: 6px; }
.proj-card h3 { font-size: 26px; }
.proj-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.proj-card .meta { font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cs-slate); }
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); background: var(--cs-tint-faint); }
.featured img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.featured .body { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured h3 { font-size: 40px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 12px; border-top: 1px solid var(--cs-rule); padding-top: 16px; }
.facts b { display: block; font-family: var(--cs-display); font-size: 32px; color: var(--cs-navy); line-height: 1.05; }
.facts span { font-size: 13px; color: var(--cs-slate); }
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--cs-tint); background: #fff; color: var(--cs-navy); font: 600 15px var(--cs-body); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--cs-navy); border-color: var(--cs-navy); color: #fff; }

/* Project detail */
.p-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; background: var(--cs-navy); }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(to top, rgba(0,26,77,.85), rgba(0,26,77,0)); }
.p-hero .wrap { position: relative; z-index: 1; padding-bottom: 44px; width: 100%; }
.p-hero h1 { font-size: clamp(44px, 6vw, 76px); color: #fff; }
.p-hero .eyebrow { color: var(--cs-tint); }
.p-hero p { color: #fff; font-size: 19px; margin-top: 10px; }
.factbar { background: var(--cs-navy); color: #fff; }
.factbar .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.factbar b { display: block; font-family: var(--cs-display); font-size: 28px; line-height: 1.05; }
.factbar span { display: block; margin-top: 4px; font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cs-tint); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.role { border: 1.5px solid var(--cs-rule); padding: 22px; color: var(--cs-slate); }
.role h3 { font-size: 21px; color: var(--cs-slate); }
.role.on { border-color: var(--cs-navy); background: var(--cs-navy); color: #E6EAF2; }
.role.on h3 { color: #fff; }
.role .chk { font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.role p { margin-top: 8px; font-size: 15px; line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scope-list { columns: 2 280px; column-gap: 40px; padding-left: 20px; margin: 20px 0 0; }
.scope-list li { margin-bottom: 8px; break-inside: avoid; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
thead tr { background: var(--cs-navy); color: #fff; }
th { text-align: left; padding: 14px 16px; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
td { padding: 14px 16px; border-bottom: 1px solid var(--cs-rule); vertical-align: top; }
td.name { font-weight: 600; color: var(--cs-navy); }
.num-r { text-align: right; font-weight: 700; white-space: nowrap; }

/* Forms */
.form { background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 20px; color: var(--cs-ink); }
.form h2 { font-size: 32px; line-height: 1.05; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, legend { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { min-height: 46px; border: 1.5px solid var(--cs-tint); padding: 0 12px; font: 16px var(--cs-body); color: var(--cs-ink); background: #fff; width: 100%; border-radius: 0; }
.field textarea { padding: 10px 12px; min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cs-navy); outline: none; box-shadow: 0 0 0 2px var(--cs-tint); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--cs-tint); color: var(--cs-navy); font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; }
.choice input:checked + span { background: var(--cs-navy); border-color: var(--cs-navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--cs-navy); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 2px 16px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--cs-navy); margin: 0; flex-shrink: 0; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.result { border: 2px solid var(--cs-navy); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.result h3 { font-size: 26px; line-height: 1.05; }
.note { background: var(--cs-tint-faint); padding: 16px 18px; font-size: 15px; color: var(--cs-slate); }
.hp { display: none; }
.fine { font-size: 13px; line-height: 1.5; color: var(--cs-slate); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: start; }
@media (max-width: 420px) { .wrap { padding: 0 18px; } .form, .flagship, .featured .body { padding: 22px; } .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.checklist svg { flex-shrink: 0; margin-top: 3px; }
.bg-navy .checklist li { color: #fff; }

/* Quote + CTA band */
.verse { text-align: center; max-width: 900px; margin: 0 auto; }
.verse p { font-size: 24px; line-height: 1.55; font-style: italic; color: var(--cs-navy); }
.verse cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--cs-slate); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: 46px; }
.cta-band p { margin-top: 10px; font-size: 18px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px; }
.person img, .person .initials { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cs-tint-light); }
.person .initials { display: flex; align-items: center; justify-content: center; font-family: var(--cs-display); font-weight: 700; font-size: 72px; color: var(--cs-navy); }
.person h3 { font-size: 24px; margin-top: 14px; }
.person .role-t { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-slate); margin-top: 4px; }
.person p { margin-top: 10px; font-size: 15px; line-height: 1.55; }

/* Footer */
.site-footer { border-top: 1px solid var(--cs-rule); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; font-size: 15px; line-height: 1.9; }
.site-footer h4 { font-family: var(--cs-body); font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--cs-slate); }
.site-footer a { color: var(--cs-ink); text-decoration: none; }
.site-footer a:hover { color: var(--cs-navy); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--cs-slate); line-height: 1.6; margin-top: 16px; }
.site-footer .base { border-top: 1px solid var(--cs-rule); padding-top: 20px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cs-slate); }
.site-footer .logo img { width: 200px; }

/* Bid board */
.bid { border: 1px solid var(--cs-rule); padding: 22px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; align-items: center; }
.bid h3 { font-size: 24px; line-height: 1.05; }
.bid .lbl { font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cs-slate); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Small-screen type and overflow guards */
.grid > *, .split > *, .featured > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
.section-head { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 32px; }
  .cta-band h2 { font-size: 34px; }
  .on-navy h2[style], .bg-navy h2[style] { font-size: 40px !important; }
  .on-navy h3[style] { font-size: 26px !important; }
  .stat-num { font-size: 44px; }
  .flagship h3, .featured h3 { font-size: 34px; }
  .verse p { font-size: 20px; }
}
.on-navy .eyebrow, .flagship .eyebrow, .card-dark .eyebrow { color: var(--cs-tint); }
[hidden] { display: none !important; }
.form .eyebrow { color: var(--cs-slate); }
.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
