/* Northgate Infrastructure — classic, restrained, editorial. */

:root {
  --paper: #F6F5F0;
  --paper-deep: #EFEDE6;
  --ink: #0F2E24;        /* deep green, nearly black */
  --ink-soft: #2A4A3E;
  --green: #1F5C45;      /* accent, used sparingly */
  --green-dark: #0B241C; /* dark sections */
  --muted: #6B6F6A;
  --rule: #D9D7D0;
  --rule-dark: rgba(246, 245, 240, 0.16);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1400px, 100% - 2 * var(--gutter)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand-mark { width: 30px; height: 36px; flex: none; }
.brand-accent { color: var(--green); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--green); margin-top: 6px; font-weight: 400; }
.brand--small .brand-mark { width: 26px; height: 31px; }
.brand--small .brand-name { font-size: 19px; }

.site-nav { display: flex; gap: 36px; align-items: center; font-size: 13.5px; font-weight: 400; letter-spacing: .04em; }
.site-nav a { position: relative; padding: 6px 0; color: var(--ink-soft); transition: color .3s; }
.site-nav a:hover { color: var(--ink); }
.site-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 .35s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.nav-cta { color: var(--ink) !important; }
.nav-cta::after { transform: scaleX(1) !important; background: var(--green) !important; }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--green); font-weight: 400; }
.section-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: clamp(40px, 6vw, 72px); }
.section-index { font-family: var(--serif); font-size: 20px; color: var(--green); }
.section-label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.section--dark .section-head { border-bottom-color: var(--rule-dark); }
.section--dark .section-label { color: rgba(246,245,240,.6); }
.section--dark .section-index { color: rgba(246,245,240,.8); }

h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }
.statement { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.06; }
.prose { max-width: 56ch; color: var(--ink-soft); }
.prose p + p { margin-top: 1.2em; }
.section--dark .prose { color: rgba(246,245,240,.78); }

.text-link { display: inline-flex; align-items: baseline; gap: 10px; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--ink); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.text-link:hover { color: var(--green); border-color: var(--green); }

/* ---------- Layout ---------- */
.section { padding-block: var(--section-y); }
.section-rule { border-top: 1px solid var(--rule); }
.section--dark { background: var(--green-dark); color: var(--paper); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col--tight { grid-template-columns: 1.1fr .9fr; margin-bottom: clamp(48px, 6vw, 88px); }
.two-col--tight .prose { padding-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 120px); }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; max-width: 18ch; margin-top: 22px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.lede { max-width: 54ch; font-size: 18px; color: var(--ink-soft); }
.hero-figure { margin: clamp(56px, 7vw, 96px) 0 0; position: relative; }
.hero-figure img { width: 100%; height: clamp(360px, 62vh, 760px); object-fit: cover; filter: saturate(.82) contrast(1.02); }
.hero-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,36,28,.06), rgba(11,36,28,.34)); pointer-events: none; }
.hero-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; gap: 24px;
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: 18px 0; color: rgba(246,245,240,.86);
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400;
  border-top: 1px solid rgba(246,245,240,.28);
}

/* ---------- About ---------- */
.facts { margin-top: 40px; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.facts li span:first-child { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; padding-top: 3px; font-weight: 400; }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--rule); counter-reset: none; }
.service { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: clamp(20px, 4vw, 64px); align-items: baseline; padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--rule); }
.service-no { font-family: var(--serif); font-size: 22px; color: var(--green); }
.service h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.service p { color: var(--ink-soft); max-width: 60ch; }

/* ---------- Standards ---------- */
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule-dark); }
.standards-grid li { padding: 36px 32px 40px; border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); display: flex; flex-direction: column; gap: 14px; }
.standards-grid strong { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1; letter-spacing: .01em; }
.standards-grid span { font-size: 14.5px; color: rgba(246,245,240,.7); line-height: 1.55; }

/* ---------- Facilities ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 8px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--paper-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.02); transition: transform 1.4s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 14px 18px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400;
  color: rgba(246,245,240,.9); background: linear-gradient(180deg, transparent, rgba(11,36,28,.55));
}
.g1 { grid-column: span 7; grid-row: span 2; }
.g2 { grid-column: span 5; }
.g3 { grid-column: span 5; }
.g4 { grid-column: span 4; }
.g5 { grid-column: span 5; }
.g6 { grid-column: span 3; }

/* ---------- Key figures ---------- */
.section--figures { padding-block: 0; }
.figures { border-top: 1px solid var(--ink); padding: 48px 0 var(--section-y); display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.figures-title { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding-top: 6px; }
.figures-table { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.figures-table div { padding: 4px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.figures-table div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.figures-table dt { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-weight: 400; margin-bottom: 14px; }
.figures-table dd { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2vw, 28px); line-height: 1.1; color: var(--ink); white-space: nowrap; }
.figures-table p { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.steps li { padding: 32px 28px 8px 0; border-right: 1px solid var(--rule); margin-right: 28px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.step-no { font-family: var(--serif); font-size: 20px; color: var(--green); display: block; margin-bottom: 36px; }
.steps h3 { font-size: 28px; margin-bottom: 12px; }
.steps p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-list { margin: 40px 0 0; border-top: 1px solid var(--rule-dark); }
.contact-list div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule-dark); font-size: 15px; }
.contact-list dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,245,240,.55); padding-top: 3px; font-weight: 400; }
.contact-list dd { margin: 0; color: var(--paper); }
.contact-list a { border-bottom: 1px solid rgba(246,245,240,.3); transition: border-color .3s; }
.contact-list a:hover { border-color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--paper); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--rule-dark); }
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-accent { color: #8FBFA9; }
.footer-brand .brand-sub { color: #8FBFA9; }
.footer-brand p { margin-top: 22px; max-width: 30ch; font-size: 14.5px; color: rgba(246,245,240,.62); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col h4 { margin: 0 0 8px; font-family: var(--sans); font-weight: 400; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(246,245,240,.5); }
.footer-col a, .footer-col span { color: rgba(246,245,240,.82); }
.footer-col a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer-col a:hover { color: var(--paper); border-bottom-color: rgba(246,245,240,.5); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; font-size: 12.5px; color: rgba(246,245,240,.45); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .figures { grid-template-columns: 1fr; gap: 28px; }
  .figures-table { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .figures-table div:nth-child(2n) { border-right: 0; margin-right: 0; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .steps li:nth-child(2n) { border-right: 0; margin-right: 0; }
  .standards-grid { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 64px 1fr; }
  .service p { grid-column: 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .header-inner { height: 72px; }
  .two-col, .two-col--tight { grid-template-columns: 1fr; }
  .two-col--tight .prose { padding-top: 0; }
  .hero-figure figcaption { flex-direction: column; gap: 6px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; }
  .g1 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .figures-table { grid-template-columns: 1fr; }
  .figures-table div { border-right: 0; margin-right: 0; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; padding-right: 0; }
  .standards-grid { grid-template-columns: 1fr; }
  .standards-grid li { padding: 28px 20px; }
  .facts li, .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
