/* Steiner Construction — modernized static site
   Design system: navy primary, warm brass accent, generous whitespace, tight type. */

:root {
  --navy: #0a1f3a;
  --navy-2: #0f2b4d;
  --navy-9: rgba(10, 31, 58, 0.9);
  --brass: #b88a3e;
  --brass-dark: #8f6a2b;
  --ink: #101418;
  --slate: #4b5563;
  --slate-2: #6b7280;
  --line: #e5e7eb;
  --paper: #f7f4ee;
  --paper-2: #efebe1;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(10, 31, 58, 0.08);
  --shadow-hover: 0 16px 48px rgba(10, 31, 58, 0.16);
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brass); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--brass); }

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.25rem); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.25rem); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  transition: all .25s ease;
}
.nav.scrolled, .nav.solid {
  background: var(--white);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 38px; transition: filter .25s ease; }
.nav.scrolled .nav-logo img, .nav.solid .nav-logo img { filter: brightness(0.15) contrast(1.5); }
.nav-logo-text { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--white); transition: color .25s; }
.nav.scrolled .nav-logo-text, .nav.solid .nav-logo-text { color: var(--navy); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--white); transition: color .2s;
}
.nav.scrolled .nav-links a, .nav.solid .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--brass); }
.nav-cta {
  padding: 0.55rem 1.15rem;
  background: var(--brass);
  color: var(--white) !important;
  border-radius: 2px;
  font-weight: 600 !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--brass-dark); color: var(--white) !important; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px; flex-direction: column; justify-content: space-around; padding: 6px 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); transition: all .2s; }
.nav.scrolled .nav-toggle span, .nav.solid .nav-toggle span { background: var(--ink); }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink) !important; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh; min-height: 90svh;
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 8rem 0 5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(10, 31, 58, 0.85) 0%, rgba(10, 31, 58, 0.55) 100%);
}
.hero-content { max-width: 780px; }
.hero h1 {
  color: var(--white);
  font-family: var(--serif);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta {
  position: absolute; bottom: 2rem; right: clamp(1.25rem, 3vw, 2.25rem);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 0; cursor: pointer;
  border-radius: 2px;
  transition: all .2s ease;
}
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-dark); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Section utility ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark .eyebrow { color: var(--brass); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--white); }
.section.paper { background: var(--paper); }
.section.paper-dark { background: var(--paper-2); }

.section-head { max-width: 780px; margin-bottom: 3rem; }
.section-head p { color: var(--slate); font-size: 1.08rem; line-height: 1.7; margin-top: 0.75rem; }
.section.dark .section-head p { color: rgba(255,255,255,0.75); }

/* ---------- Stats bar ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 500; color: var(--navy); line-height: 1; }
.stat-num em { font-style: normal; color: var(--brass); }
.stat-label { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); font-weight: 600; margin-top: 0.5rem; }

/* ---------- Services / capability grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.svc-card {
  background: var(--white);
  padding: 2.25rem 2rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  transition: all .25s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-top-color: var(--navy); }
.svc-card h3 { margin-bottom: 1rem; color: var(--navy); }
.svc-card ul { list-style: none; }
.svc-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--slate);
  display: flex; align-items: flex-start; gap: 0.65rem;
}
.svc-card li:last-child { border-bottom: 0; }
.svc-card li::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--brass); flex-shrink: 0;
  margin-top: 0.5rem;
}

/* ---------- Project grid ---------- */
.proj-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 2.5rem;
}
.proj-filter button {
  background: transparent; border: 1px solid var(--line);
  padding: 0.5rem 1.15rem;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  border-radius: 999px;
  transition: all .2s;
}
.proj-filter button:hover { color: var(--navy); border-color: var(--navy); }
.proj-filter button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.proj-card {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
  transition: transform .3s ease;
}
.proj-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj-card:hover img { transform: scale(1.06); }
.proj-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,58,0.9) 0%, rgba(10,31,58,0.2) 60%, transparent 100%);
}
.proj-card-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.5rem 1.5rem 1.25rem;
  color: var(--white);
}
.proj-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 0.35rem;
}
.proj-name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  line-height: 1.25; color: var(--white);
}

/* ---------- Leadership ---------- */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.leader-card { text-align: left; }
.leader-photo {
  aspect-ratio: 1;
  background: var(--paper);
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leader-name { font-family: var(--serif); font-size: 1.55rem; color: var(--navy); margin-bottom: 0.3rem; }
.leader-role { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 1rem; }
.leader-bio { font-size: 0.95rem; color: var(--slate); line-height: 1.7; }

/* ---------- Testimonials ---------- */
.quote-block {
  padding: 3rem 3.5rem;
  background: var(--white);
  border-left: 3px solid var(--brass);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.quote-block p {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 400;
  color: var(--ink); line-height: 1.55; font-style: italic;
}
.quote-block p::before { content: '"'; color: var(--brass); font-size: 3rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.15em; }
.quote-block cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.5rem; }

/* ---------- Timeline (history) ---------- */
.timeline { border-left: 2px solid var(--brass); padding-left: 2.5rem; margin-left: 1rem; margin-top: 2rem; }
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.85rem; top: 0.4rem;
  width: 14px; height: 14px; background: var(--brass); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--white);
}
.timeline-year { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); margin-bottom: 0.5rem; font-weight: 500; }
.timeline-item p { color: var(--slate); line-height: 1.75; font-size: 1.02rem; }

/* ---------- Notes / articles ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; margin-top: 2rem; }
.note-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.25rem;
  transition: all .25s ease;
  display: flex; flex-direction: column;
}
.note-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brass); }
.note-cat { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 0.85rem; }
.note-title { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; line-height: 1.25; }
.note-excerpt { color: var(--slate); line-height: 1.65; margin-bottom: 1.5rem; flex-grow: 1; }
.note-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--slate-2); letter-spacing: 0.05em; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Article ---------- */
.article-hero { padding: 8rem 0 4rem; background: var(--navy); color: var(--white); }
.article-hero .eyebrow { color: var(--brass); }
.article-hero h1 { color: var(--white); max-width: 900px; margin-bottom: 1.25rem; }
.article-meta { display: flex; gap: 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.article-body {
  max-width: 720px; margin: 4rem auto; padding: 0 clamp(1.25rem, 3vw, 2.25rem);
  font-size: 1.08rem; line-height: 1.8; color: var(--ink);
}
.article-body h2 { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin: 3rem 0 1rem; }
.article-body h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 2.25rem 0 0.8rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--brass-dark); border-bottom: 1px solid var(--brass); }
.article-body a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.article-body sup { font-size: 0.72rem; }
.article-body sup a { border-bottom: 0; color: var(--brass-dark); }
.article-body blockquote {
  border-left: 3px solid var(--brass); padding-left: 1.5rem; margin: 2rem 0;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--navy);
}
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.article-sources {
  background: var(--paper); padding: 2rem 2.25rem; margin-top: 3rem; border-left: 3px solid var(--navy);
  font-size: 0.92rem;
}
.article-sources h3 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; font-weight: 700; }
.article-sources ol { list-style: decimal; padding-left: 1.5rem; }
.article-sources li { margin-bottom: 0.6rem; line-height: 1.5; color: var(--slate); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info h3 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 0.6rem; }
.contact-info p { margin-bottom: 2rem; font-size: 1.1rem; color: var(--ink); }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.4rem; margin-top: 1.25rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 2px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 0; border-color: var(--navy);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { margin-top: 1.75rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { margin-top: 1rem; max-width: 320px; font-size: 0.92rem; line-height: 1.65; color: rgba(255,255,255,0.6); }
.foot-brand img { height: 38px; margin-bottom: 0.5rem; }
footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 1.25rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.6rem; }
footer a:hover { color: var(--brass); }
.foot-bar {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.75rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
}

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 4rem; align-items: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-brass { color: var(--brass); }
.text-slate { color: var(--slate); }
.text-center { text-align: center; }

.rule { width: 60px; height: 2px; background: var(--brass); margin: 1rem 0 1.5rem; border: 0; }
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Prose block ---------- */
.prose p { font-size: 1.08rem; line-height: 1.8; color: var(--slate); margin-bottom: 1.25rem; }
.prose p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.2rem;
  float: left; line-height: 1; padding: 0.3rem 0.85rem 0 0; color: var(--brass);
  font-weight: 500;
}

/* ---------- Reveal / animation on scroll (progressive) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
