/* Squared Structural Engineers — site stylesheet
   Design language: engineering-drawing vernacular — dimension lines,
   section marks, drafting-paper tone. Restrained, technical, precise. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Public+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #F1F0EA;
  --paper-raised: #FAF9F5;
  --ink: #17181A;
  --charcoal: #53565A;
  --blueprint: #1F3A5F;
  --blueprint-soft: #4C6885;
  --line: #D7D4C8;
  --line-strong: #B9B6A8;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faint drafting grid across the whole page */
body {
  background-image:
    linear-gradient(90deg, rgba(31,58,95,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31,58,95,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: var(--blueprint); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint);
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

h2 { font-size: 28px; }
h3 { font-size: 19px; font-weight: 700; }

p { margin: 0 0 1em 0; }

/* ---------- Header ---------- */
/* Simple, visible top nav — overlaid on the hero image on the
   homepage (with a gradient for legibility), plain on inner pages. */

header.site {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
}

header.site.light-bg { position: relative; border-bottom: 1px solid var(--line); }

.site-nav {
  max-width: none;
  margin: 0;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav img.logo { height: 63px; width: auto; display: block; }

.site-nav nav { display: flex; gap: 30px; }

.site-nav nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav nav a:hover { text-decoration: underline; }
.site-nav nav a.current { border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }

header.site.on-image .site-nav nav a,
header.site.on-image .site-nav nav a.current { color: #fff; }

/* Homepage: logo scaled to match the hero headline, with a shadow so it
   holds up over the photo */
header.site.on-image .site-nav img.logo {
  height: 82px;
  filter: drop-shadow(0 1px 10px rgba(0,0,0,0.45));
}

/* ---------- Hero (homepage — full-bleed image) ---------- */

.hero-image {
  position: relative;
  height: 62vh;
  min-height: 380px;
  max-height: 600px;
  width: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 22%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.55) 100%);
}

/* Hero headline overlay (homepage) */
.hero-overlay {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 58px;
  z-index: 2;
  max-width: 24ch;
}
.hero-overlay .hero-eyebrow { color: #EDEBE3; margin-bottom: 14px; }
.hero-overlay .hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04;
  margin: 0;
  text-shadow: 0 1px 18px rgba(0,0,0,0.35);
}
@media (max-width: 760px) {
  .hero-overlay { left: 20px; right: 20px; bottom: 40px; }
}

/* ---------- Hero (inner pages — plain paper) ---------- */

.hero {
  padding: 150px 0 0 0;
}

.hero .eyebrow { margin-bottom: 14px; }

.hero h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  max-width: 15ch;
}

.hero .lede {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 19px;
  color: var(--charcoal);
}

.hero .cta-row {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.btn.primary { background: var(--blueprint); color: #fff; border-color: var(--blueprint); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Dimension line — signature element ---------- */
/* Modelled on a drawing's dimension string: a ruled line with tick
   marks and mono labels, used here to set out the sectors served. */

.dimension {
  margin: 46px 0 64px 0;
  padding-top: 26px;
}

.dimension-line {
  display: flex;
  align-items: stretch;
  border-top: 1.5px solid var(--blueprint-soft);
}

.dimension-seg {
  flex: 1;
  position: relative;
  padding: 14px 4px 0 4px;
  text-align: center;
}

.dimension-seg::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 1.5px;
  height: 12px;
  background: var(--blueprint-soft);
}

.dimension-seg:last-child::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 0;
  width: 1.5px;
  height: 12px;
  background: var(--blueprint-soft);
}

.dimension-seg .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blueprint);
  display: block;
  margin-bottom: 3px;
}

.dimension-seg .desc {
  font-size: 14px;
  color: var(--charcoal);
}

/* ---------- Section marks ---------- */
/* § is the structural engineer's own notation — clause and section
   references in reports. Used here as the section rhythm of the page. */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section .mark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--blueprint-soft);
  margin-bottom: 10px;
}

.section h2 { margin-bottom: 20px; }

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  padding: 22px 20px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--charcoal); font-size: 15px; margin-bottom: 0; }

.credentials {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.fact-list .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blueprint);
  flex-shrink: 0;
  padding-top: 1px;
}

.fact-list .v { color: var(--ink); text-align: right; }

/* ---------- Contact ---------- */

.contact-block {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  padding: 34px 32px;
  margin-top: 8px;
}

.contact-block a.mail {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  display: inline-block;
  margin: 6px 0 18px 0;
}

.contact-block a.mail:hover { color: var(--blueprint); text-decoration: none; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line-strong);
  margin-top: 40px;
  padding: 28px 0 40px 0;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site p {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--charcoal);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .dimension-line { flex-direction: column; border-top: none; }
  .dimension-seg { border-left: 1.5px solid var(--blueprint-soft); padding: 8px 0 8px 14px; text-align: left; }
  .dimension-seg::before, .dimension-seg::after { display: none; }
  .fact-list li { flex-direction: column; gap: 4px; }
  .fact-list .v { text-align: left; }
  .site-nav { padding: 20px; flex-wrap: wrap; row-gap: 12px; }
  .site-nav img.logo { height: 44px; }
  header.site.on-image .site-nav img.logo { height: 52px; }
  .site-nav nav { gap: 18px; }
  .hero { padding-top: 120px; }
}

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