/* Project Aqua Pure — Executive Proposal Dashboard (Claude build) — Clinical Corporate theme */

:root {
  --navy-950: #0a1a30;
  --navy-900: #0d2140;
  --navy-800: #12294f;
  --navy-700: #1a3a66;
  --steel-600: #2e6f9e;
  --steel-500: #3d84b8;
  --steel-100: #e8f1f7;
  --paper: #ffffff;
  --paper-2: #f6f8fa;
  --paper-3: #eef1f5;
  --line: #e1e6ec;
  --line-strong: #cdd5df;
  --ink: #10192b;
  --ink-dim: #4c5870;
  --ink-faint: #7c8698;
  --red-text: #b3261e;
  --red-bg: #fbeaea;
  --red-border: #f0c9c6;
  --amber-text: #9a5b0a;
  --amber-bg: #fdf2e2;
  --amber-border: #f1dcb2;
  --green-text: #146c43;
  --green-bg: #e8f5ee;
  --green-border: #bfe3cd;
  --radius: 12px;
  --radius-sm: 7px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; margin: 0; color: var(--navy-900); letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--steel-500); display: inline-block; }
.hero .eyebrow { color: #9fc4de; }
.hero .eyebrow::before { background: #9fc4de; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.topnav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(10px) saturate(140%);
}
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 17px; color: var(--navy-900); font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel-500); }
.brand small { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 4px; }

.navlinks { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a {
  font-size: 13px; font-weight: 500; color: var(--ink-dim); text-decoration: none; padding: 8px 12px;
  border-radius: 999px; white-space: nowrap; transition: color .15s, background .15s;
}
.navlinks a:hover, .navlinks a.active { color: var(--navy-900); background: var(--steel-100); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--navy-900); width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: 8px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn-gold { background: var(--steel-500); color: #fff; box-shadow: 0 6px 18px -6px rgba(61,132,184,0.55); }
.btn-gold:hover { background: var(--steel-600); box-shadow: 0 8px 22px -6px rgba(61,132,184,0.6); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; background: rgba(255,255,255,0.06); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Hero (navy band, split layout) ---------- */
.hero { position: relative; padding: 56px 0 0; background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 62%, var(--navy-700) 100%); overflow: hidden; }
.hero-bg { display: none; }
.hero-inner { position: relative; z-index: 1; padding-bottom: 76px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; margin: 18px 0 18px; color: #fff; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #bcdcf0; }
.hero p.lead { font-size: 16.5px; color: #c3cfe0; max-width: 520px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; color: #9aa9c4; margin-bottom: 4px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-meta strong { color: #dde5f0; font-weight: 500; }
.hero-figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.1; }
.hero-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(6,12,24,0.85), transparent); color: #dbe4f0; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 14px 16px; }

.stat-strip-wrap { position: relative; z-index: 2; margin-top: -46px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius); box-shadow: 0 20px 44px -18px rgba(10,26,48,0.28); border: 1px solid var(--line); overflow: hidden; }
.stat-strip .stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .num { font-family: var(--sans); font-size: 27px; color: var(--navy-900); font-weight: 800; letter-spacing: -0.02em; }
.stat-strip .num small { font-size: 13px; color: var(--steel-600); font-family: var(--sans); font-weight: 600; margin-left: 3px; }
.stat-strip .lbl { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }

/* ---------- Section framing ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--paper-2); }
.section.tight { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 33px); }
.section-head p { color: var(--ink-dim); max-width: 540px; margin: 10px 0 0; font-size: 14.5px; }
.section-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-600); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid .card:first-child { grid-column: span 2; grid-row: span 2; }
.g-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,25,43,0.04); transition: box-shadow .2s, transform .2s; }
.g-card:hover { box-shadow: 0 16px 32px -14px rgba(16,25,43,0.22); transform: translateY(-2px); }
.g-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.gallery-grid .card:first-child img { aspect-ratio: 16/11.4; }
.g-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,14,26,0.86) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.g-tag { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,0.14); color: #cfe3f2; padding: 4px 9px; border-radius: 999px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.25); }
.g-overlay h3 { font-size: 15px; color: #fff; margin-bottom: 3px; }
.g-overlay p { font-size: 12.5px; color: #c3cfe0; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-grid .card:first-child .g-overlay h3 { font-size: 19px; }

/* Lightbox (kept dark for image contrast) */
.lightbox { position: fixed; inset: 0; background: rgba(6,10,18,0.94); z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 74vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.lightbox .lb-caption { max-width: 780px; text-align: center; margin-top: 20px; }
.lightbox .lb-caption h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.lightbox .lb-caption p { color: #aab6c8; font-size: 14px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }

/* ---------- Panels / cards ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(16,25,43,0.04); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink-dim); }
.feature-list .ic { color: var(--steel-600); flex-shrink: 0; margin-top: 1px; }
.feature-list strong { color: var(--navy-900); }

.zone-item { margin-bottom: 16px; }
.zone-item:last-child { margin-bottom: 0; }
.zone-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; }
.zone-row strong { color: var(--navy-900); }
.zone-bg { height: 8px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.zone-fill { height: 100%; border-radius: 4px; }
.zone-fill.a { background: var(--navy-800); }
.zone-fill.b { background: var(--steel-500); }
.zone-fill.c { background: #7ba9c9; }
.zone-fill.d { background: #b6c3d4; }

/* ---------- Comparison ---------- */
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 500; background: var(--paper-2); }
.compare-table td:first-child { color: var(--ink-dim); }
.compare-table td.d3 { color: var(--navy-900); font-weight: 700; }
.compare-table td.d4 { color: var(--steel-600); font-weight: 700; }
.compare-table tbody tr:hover { background: var(--paper-2); }

.option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.opt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper); }
.opt-card.featured { border-color: var(--steel-500); background: linear-gradient(160deg, var(--steel-100), var(--paper) 55%); }
.opt-card .opt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.opt-card h4 { font-size: 17px; }
.pill { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-dim); white-space: nowrap; background: var(--paper-2); }
.pill.gold { border-color: var(--steel-500); color: var(--steel-600); background: var(--steel-100); }
.opt-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.opt-card li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; color: var(--ink-dim); }
.opt-card li strong { color: var(--navy-900); font-weight: 500; }
.opt-card li span.v { color: var(--navy-900); font-weight: 700; }

.mp-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.mp-images figure { margin: 0; cursor: zoom-in; }
.mp-images img { border-radius: var(--radius); border: 1px solid var(--line); }
.mp-images figcaption { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; font-family: var(--mono); }

/* ---------- Process / personnel flow ---------- */
.pal-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.pal-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; position: relative; }
.pal-step .step-n { font-family: var(--mono); font-size: 11px; color: var(--steel-600); margin-bottom: 8px; display: block; }
.pal-step h4 { font-size: 14.5px; margin-bottom: 6px; color: var(--navy-900); }
.pal-step p { font-size: 12.5px; color: var(--ink-dim); margin: 0; }

.mandate-box { border: 1px solid var(--steel-500); background: var(--steel-100); border-radius: var(--radius); padding: 22px 26px; margin-top: 28px; }
.mandate-box h4 { color: var(--navy-900); font-size: 15px; margin-bottom: 12px; }

.gmp-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.gmp-imgs figure { margin: 0; }
.gmp-imgs img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; }
.gmp-imgs figcaption { font-size: 13px; color: var(--ink-dim); margin-top: 10px; }
.gmp-imgs figcaption strong { color: var(--navy-900); display: block; margin-bottom: 2px; }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pkg-card:hover { border-color: var(--steel-500); box-shadow: 0 14px 28px -16px rgba(16,25,43,0.24); transform: translateY(-2px); }
.pkg-card .pkg-tag { font-family: var(--mono); font-size: 10.5px; color: var(--steel-600); letter-spacing: .06em; }
.pkg-card h4 { font-size: 15.5px; margin: 10px 0 8px; line-height: 1.3; }
.pkg-card p { font-size: 12.5px; color: var(--ink-dim); margin: 0; line-height: 1.5; }
.pkg-card.has-thumb { padding: 0; overflow: hidden; }
.pkg-thumb { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--line); background: #0e141d; }
.pkg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pkg-card.has-thumb .pkg-tag, .pkg-card.has-thumb h4, .pkg-card.has-thumb p { padding-left: 22px; padding-right: 22px; }
.pkg-card.has-thumb .pkg-tag { display: block; margin-top: 18px; }
.pkg-card.has-thumb p { padding-bottom: 22px; }

/* Section banner images */
.section-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; border: 1px solid var(--line); }
.section-banner img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; display: block; }

/* ---------- 3D Viewport ---------- */
.viewport-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.variant-switch { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.variant-btn { border: none; background: none; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; color: var(--ink-dim); cursor: pointer; transition: background .15s, color .15s; }
.variant-btn.active { background: var(--navy-900); color: #fff; }
.viewport-hint { font-size: 12px; color: var(--ink-faint); font-family: var(--mono); }

.viewport-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.preset-group, .layer-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.group-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-right: 4px; }
.preset-btn { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-dim); font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.preset-btn:hover { border-color: var(--steel-500); color: var(--navy-900); }
.preset-btn.active { background: var(--steel-500); border-color: var(--steel-500); color: #fff; }
.layer-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-dim); cursor: pointer; user-select: none; }
.layer-chk input { accent-color: var(--steel-500); }

.viewport-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #101826; }
#viewport3d-canvas { width: 100%; height: 560px; display: block; touch-action: none; }
.viewport-help { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; background: #131e30; padding: 8px 14px; border-radius: 999px; font-size: 11px; color: #cfe0f0; border: 1px solid rgba(255,255,255,0.12); }
.viewport-hud { position: absolute; top: 16px; right: 16px; width: 260px; background: #0d1526; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); padding: 16px; color: #dfe7f2; }
.viewport-hud .hud-tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: #8fc3e8; border: 1px solid rgba(143,195,232,0.4); background: rgba(143,195,232,0.1); border-radius: 999px; padding: 3px 9px; margin-bottom: 8px; }
.viewport-hud h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.viewport-hud p { font-size: 11.5px; color: #aebdd4; margin: 0 0 7px; line-height: 1.5; }
.viewport-hud p strong { color: #e7edf5; font-weight: 600; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; font-family: var(--mono); margin-bottom: 1px; }
.viewport-hud .hud-status { color: #7fd8a0; font-weight: 600; }
.viewport-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8fa3c2; font-size: 13px; font-family: var(--mono); background: #101826; transition: opacity .3s; }
.viewport-loading.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  #viewport3d-canvas { height: 400px; }
  .viewport-hud { position: static; width: auto; margin-top: 14px; }
  .viewport-help { position: static; margin-top: 10px; width: fit-content; }
}

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,17,32,0.55); backdrop-filter: blur(3px); z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 720px; width: 100%; max-height: 84vh; overflow-y: auto; box-shadow: 0 30px 70px -20px rgba(10,17,32,0.35); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.modal-header h3 { font-size: 19px; }
.modal-close { background: none; border: 1px solid var(--line-strong); color: var(--navy-900); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.modal-body { padding: 24px 26px 30px; font-size: 14.5px; color: var(--ink-dim); }
.modal-body h4 { color: var(--steel-600); font-size: 13px; margin: 20px 0 10px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body ul, .modal-body ol { padding-left: 20px; margin: 0 0 12px; }
.modal-body li { margin-bottom: 8px; }
.modal-body p { margin: 0 0 12px; }
.modal-body strong { color: var(--navy-900); }

/* ---------- Tables (equipment / utilities) ---------- */
.table-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.search-input { background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; width: 280px; }
.search-input:focus { outline: none; border-color: var(--steel-500); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; background: var(--paper); }
table.data thead th { background: var(--paper-2); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); text-align: left; padding: 12px 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--paper-2); }
table.data td strong { color: var(--navy-900); }
.badge { display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-dim); white-space: nowrap; background: var(--paper-2); }
.badge.gold { border-color: var(--steel-500); color: var(--steel-600); background: var(--steel-100); }
.badge.risk-critical { border-color: var(--red-border); color: var(--red-text); background: var(--red-bg); }
.badge.risk-major { border-color: var(--amber-border); color: var(--amber-text); background: var(--amber-bg); }
.badge.risk-moderate { border-color: var(--green-border); color: var(--green-text); background: var(--green-bg); }

/* ---------- Utility cards ---------- */
.u-cards { display: flex; flex-direction: column; gap: 12px; }
.u-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); background: var(--paper-2); border: 1px solid var(--line); }
.u-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; background: var(--steel-100); }
.u-card h4 { font-size: 14px; margin-bottom: 3px; }
.u-card p { font-size: 12.5px; color: var(--ink-dim); margin: 0; }

.criteria-list { display: flex; flex-direction: column; }
.c-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.c-row:last-child { border-bottom: none; }
.c-row span:first-child { color: var(--ink-dim); }
.c-row span:last-child { color: var(--navy-900); font-weight: 700; font-family: var(--mono); font-size: 13px; }

/* ---------- Design basis section ---------- */
.basis-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.basis-block { margin-bottom: 30px; }
.basis-block:last-child { margin-bottom: 0; }
.basis-block h4 { color: var(--steel-600); font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.basis-block ul { margin: 0; padding-left: 18px; color: var(--ink-dim); font-size: 14.5px; display: flex; flex-direction: column; gap: 8px; }
.basis-block p { color: var(--ink-dim); font-size: 14.5px; margin: 0 0 8px; }

.lifecycle-list { display: flex; flex-direction: column; }
.lc-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.lc-row:last-child { border-bottom: none; }
.lc-row .stage { font-family: var(--mono); font-size: 12px; color: var(--steel-600); padding-top: 2px; }
.lc-row .del { font-size: 13.5px; color: var(--ink-dim); }

.status-strip { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.status-strip .sitem { flex: 1; min-width: 160px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--paper); }
.status-strip .sitem .k { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.status-strip .sitem .v { font-size: 13px; color: var(--navy-900); margin-top: 4px; }

/* ---------- Deliverables / gap register ---------- */
.gap-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.gap-tab { background: none; border: none; color: var(--ink-dim); font-family: var(--sans); font-size: 13.5px; font-weight: 600; padding: 10px 4px; cursor: pointer; border-bottom: 2px solid transparent; margin-right: 22px; }
.gap-tab.active { color: var(--navy-900); border-color: var(--steel-500); }
.gap-panel { display: none; }
.gap-panel.active { display: block; }

.disc-group { margin-bottom: 22px; }
.disc-group:last-child { margin-bottom: 0; }
.disc-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.disc-items { display: flex; flex-direction: column; gap: 2px; }
.disc-item { display: flex; gap: 14px; padding: 9px 0; font-size: 14px; color: var(--ink-dim); align-items: baseline; }
.disc-item .did { font-family: var(--mono); font-size: 12px; color: var(--steel-600); width: 52px; flex-shrink: 0; }

/* ---------- Drawings catalog ---------- */
.draw-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.draw-item { display: flex; justify-content: space-between; align-items: center; background: var(--paper); padding: 15px 20px; gap: 16px; }
.draw-item .di-name { font-size: 13.5px; color: var(--ink-dim); word-break: break-word; }
.draw-item .di-meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.ext-tag { font-family: var(--mono); font-size: 10.5px; padding: 4px 9px; border-radius: 5px; flex-shrink: 0; }
.ext-tag.pdf { background: var(--red-bg); color: var(--red-text); }
.ext-tag.dwg { background: var(--steel-100); color: var(--steel-600); }

/* ---------- Footer (navy band) ---------- */
footer { padding: 56px 0 40px; background: linear-gradient(155deg, var(--navy-950), var(--navy-800)); color: #cfd8e8; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 340px; }
.foot-brand .brand { margin-bottom: 12px; color: #fff; }
.foot-brand p { font-size: 13px; color: #a9b6cc; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7f8db0; margin-bottom: 12px; }
.foot-col p, .foot-col a { display: block; font-size: 13.5px; color: #cfd8e8; text-decoration: none; margin-bottom: 8px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; font-size: 12px; color: #8b98b6; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility classes ---------- */
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .basis-grid, .option-cards, .mp-images, .gmp-imgs { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .card:first-child { grid-column: span 2; grid-row: span 1; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: none; }
  .pal-flow { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .navlinks { display: none; }
  .nav-toggle { display: flex; }
  .topnav.menu-open .navlinks { display: flex; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--paper); flex-direction: column; padding: 20px; overflow-y: auto; z-index: 99; }
  .topnav.menu-open .navlinks a { padding: 14px 10px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding-top: 80px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip-wrap { margin-top: 28px; }
  .section { padding: 56px 0; }
  .pkg-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .card:first-child { grid-column: span 1; }
  .pal-flow { grid-template-columns: 1fr; }
  .option-cards { grid-template-columns: 1fr; }
  .lc-row { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { flex-direction: column; gap: 28px; }
  .disc-item { flex-direction: column; gap: 2px; }
}
