/* ============================================================
   Vsac Design LLC — blueprint / drafting design system
   Building Design & Engineering · Fair Oaks, CA
   navy #16324f · drafting blue #2f6690 · paper #f6f4ef · amber #c2762e
   ============================================================ */

:root {
  --navy: #16324f;
  --navy-deep: #0e2236;
  --blue: #2f6690;
  --blue-soft: #d7e3ec;
  --paper: #f6f4ef;
  --paper-2: #efece3;
  --ink: #1d2b38;
  --muted: #5a6b7b;
  --amber: #c2762e;
  --line: rgba(22, 50, 79, .14);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 74rem;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* blueprint grid wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .5;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -.015em;
}

h1 em, h2 em { font-style: normal; color: var(--amber); }

p { max-width: 64ch; }

a { color: var(--blue); }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--amber);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  color: var(--paper);
  background: var(--navy);
  padding: .8rem 1.7rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.btn:hover { background: var(--navy-deep); transform: translateY(-2px); }

.btn.btn-ghost { background: transparent; color: var(--navy); }
.btn.btn-ghost:hover { background: var(--navy); color: var(--paper); }

.btn.btn-small { padding: .55rem 1.2rem; font-size: .9rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .7rem 0;
}

.brand img { height: 50px; width: auto; }

.site-nav { display: flex; align-items: center; gap: .4rem; }

.site-nav > a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .96rem;
  text-decoration: none;
  color: var(--navy);
  padding: .45rem .9rem;
  border-radius: 8px;
  transition: background .15s ease;
}

.site-nav > a:not(.btn):hover { background: var(--paper-2); }

.site-nav .btn { margin-left: .6rem; }

/* mobile nav (checkbox hack) */
.nav-toggle { display: none; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: transparent;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 19px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  translate: -50% 0;
  transition: rotate .2s ease, top .2s ease, background .2s ease;
}

.nav-burger span { top: 20px; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

@media (max-width: 860px) {
  .nav-burger { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--amber);
    flex-direction: column;
    align-items: stretch;
    padding: .8rem 1.5rem 1.4rem;
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; rotate: 45deg; }
  .nav-toggle:checked ~ .nav-burger span::after { top: 0; rotate: -45deg; }
  .site-nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  margin: 1.3rem 0 1.2rem;
}

.hero .lede { font-size: 1.18rem; color: var(--muted); margin-bottom: 2rem; max-width: 52ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
}

.hero-meta .m-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--navy);
  line-height: 1;
}

.hero-meta .m-lab {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem;
}

/* hero photo frame */
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(14, 34, 54, .65);
}
.hero-figure::before {
  content: "";
  position: absolute;
  top: -.9rem;
  right: -.9rem;
  width: 5rem;
  height: 5rem;
  border-top: 3px solid var(--amber);
  border-right: 3px solid var(--amber);
  border-radius: 0 var(--radius) 0 0;
  pointer-events: none;
}
.hero-figure .badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--paper);
  background: var(--navy);
  padding: .5rem 1.1rem;
  border-radius: 999px;
}

/* split feature image */
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(14, 34, 54, .6);
}

/* showcase gallery */
.showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.showcase figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.showcase img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: scale .5s ease;
}
.showcase figure:hover img { scale: 1.05; }
.showcase figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.3rem 1.1rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  background: linear-gradient(to top, rgba(14, 34, 54, .88), transparent);
}
@media (max-width: 640px) { .showcase { grid-template-columns: 1fr; } }

/* ============================================================
   STAT / CREDENTIAL STRIP
   ============================================================ */
.strip {
  background: var(--navy);
  color: var(--paper);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.4rem 0;
}

.strip .s-item { text-align: center; }
.strip .s-item .s-top { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--paper); }
.strip .s-item .s-sub { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-soft); margin-top: .3rem; }

@media (max-width: 760px) { .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5.5rem 0; }
.section.tint { background: var(--paper-2); }

.sec-head { max-width: 50rem; margin-bottom: 3rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-top: 1rem; }
.sec-head .sub { margin-top: .9rem; font-size: 1.1rem; color: var(--muted); }
.sec-head.center .sub { margin-inline: auto; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 1rem 0 1.1rem; }
.split p + p { margin-top: 1rem; }

.fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: 0 18px 40px -28px rgba(14, 34, 54, .55);
}

.fact-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }

.fact-list { list-style: none; display: grid; gap: 0; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  font-size: .96rem;
}
.fact-list li:first-child { border-top: none; }
.fact-list .k { color: var(--muted); }
.fact-list .v { font-family: var(--font-display); font-weight: 600; color: var(--navy); text-align: right; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.svc:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(14, 34, 54, .5); border-color: var(--blue); }

.svc .svc-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.svc .svc-ico svg { width: 24px; height: 24px; }

.svc h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.svc p { font-size: .96rem; color: var(--muted); }

@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.2rem;
  align-items: start;
}

.contact-info { display: grid; gap: 1.2rem; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.contact-card .role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}

.contact-card h3 { font-size: 1.2rem; margin: .35rem 0 .5rem; }
.contact-card address { font-style: normal; color: var(--muted); line-height: 1.7; }
.contact-card address a { color: var(--blue); text-decoration: none; }
.contact-card address a:hover { text-decoration: underline; }

/* ---------- contact form ---------- */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.1rem;
  box-shadow: 0 24px 50px -32px rgba(14, 34, 54, .55);
}

.contact-form h3 { font-size: 1.4rem; }

.req { color: var(--amber); font-weight: 700; }

.req-legend {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .8rem;
  color: var(--muted);
  margin: .3rem 0 1.4rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--navy);
  margin-bottom: .35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fffefb;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .7rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 102, 144, .15);
}

.field textarea { min-height: 8rem; resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.contact-form .btn { margin-top: .4rem; }

.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.form-note a { color: var(--blue); }

@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  padding: 5rem 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.cta-band h2 { position: relative; color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; }
.cta-band p { position: relative; color: var(--blue-soft); font-size: 1.12rem; margin: 0 auto 2.2rem; }
.cta-band .btn { position: relative; background: var(--amber); border-color: var(--amber); color: var(--navy-deep); }
.cta-band .btn:hover { background: #b06a26; border-color: #b06a26; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: var(--blue-soft); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 3.6rem 0 2.6rem;
}

.footer-grid .f-brand img { height: 54px; width: auto; }
.footer-grid p { font-size: .94rem; margin-top: 1.1rem; max-width: 38ch; color: var(--blue-soft); }

.footer-grid h4 {
  color: var(--paper);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; display: grid; gap: .5rem; }
.footer-grid ul a { color: var(--blue-soft); text-decoration: none; font-size: .95rem; }
.footer-grid ul a:hover { color: var(--paper); }

.footer-grid address { font-style: normal; font-size: .94rem; line-height: 1.8; }
.footer-grid address a { color: var(--blue-soft); }

.footer-bottom {
  border-top: 1px solid rgba(246, 244, 239, .14);
  padding: 1.3rem 0;
  font-size: .83rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
}
.footer-bottom a { color: var(--blue-soft); }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* responsive hero */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; translate: 0 1.4rem; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}
