/* AGD Installation — shared styles */
:root {
  --ink: #0A0A0A;
  --ink-2: #1a1a1a;
  --paper: #ffffff;
  --cream: #f6f3ee;
  --line: #e6e3dd;
  --line-2: #d9d5cc;
  --muted: #6b6b6b;
  --accent: #1E4D7B;       /* steel blue */
  --accent-2: #2a6aa8;
  --accent-ink: #0f2d4a;
  --safety: #E8B23A;       /* hard-hat yellow, used sparingly */
  --ok: #2f7a3f;
  --radius: 4px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: 18px; letter-spacing: 0; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ink);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:visited { color: #fff !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--accent); }

/* Labels / eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--muted);
}

/* Section */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.section-dark {
  background: var(--ink);
  color: #e6e6e6;
  border-top: none;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .mono, .section-dark .eyebrow { color: #9a9a9a; }
.section-dark .eyebrow::before { background: #9a9a9a; }
.section-cream { background: var(--cream); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 32px; }
}

/* Responsive two-col layout used in index.html process section */
.process-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .process-wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--ink); }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #bfbfbf;
  padding: 80px 0 32px;
}
footer.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
footer.site-footer a { color: #bfbfbf; display: block; padding: 4px 0; font-size: 14px; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2a2a2a;
}
footer.site-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: #7a7a7a;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  footer.site-footer .foot-top { grid-template-columns: 1fr 1fr; }
}

/* Placeholder photo blocks */
.photo {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #d0d0d0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 12px);
}
.photo .photo-label {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a8a8;
  text-align: center;
  padding: 8px 14px;
  border: 1px solid #3a3a3a;
  background: rgba(0,0,0,0.4);
}
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.square { aspect-ratio: 1 / 1; }

/* Mobile nav — hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { padding: 14px 20px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.btn {
    margin-top: 12px;
    padding: 14px 22px;
    justify-content: center;
    border-radius: 4px;
  }
  h1 { font-size: 44px; }
  .heroB h1 { font-size: clamp(40px, 10vw, 64px); }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .stat-row > div { padding: 24px 20px; }
  .stat-row .num { font-size: 32px; }
}

@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  footer.site-footer .foot-top { grid-template-columns: 1fr; gap: 32px; }
  footer.site-footer .foot-bottom { flex-direction: column; gap: 8px; }
  h1 { font-size: 38px; letter-spacing: -0.02em; }
  .logo span:not(.logo-mark) { font-size: 16px; }
}

/* Utilities */
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.stack-xl > * + * { margin-top: 40px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0ede6;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line-2);
}
.badge-dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  display: inline-block;
}

/* Number strip */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-row > div {
  padding: 32px;
  border-right: 1px solid var(--line);
}
.stat-row > div:last-child { border-right: none; }
.stat-row .num {
  font-family: 'Sora', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-row .lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row > div:nth-child(2) { border-right: none; }
}
