/* ==========================================================================
   PAGE-SPECIFIC — Nirman Engineers Associates
   ========================================================================== */

/* ---------- Contact ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 940px) { .contact-split { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: var(--sp-4); }
.contact-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.contact-card:hover { border-color: var(--azure-24); transform: translateY(-4px); }
.contact-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-tech);
  background: var(--azure-14);
  border: 1px solid var(--azure-24);
  color: var(--azure);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-card__value { font-family: var(--font-display); font-weight: 600; color: var(--text-hi); font-size: var(--fs-sm); }
a.contact-card__value:hover { color: var(--azure-bright); }

.map-frame {
  margin-top: var(--sp-6);
  border-radius: var(--r-panel);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- About ---------- */
.leader {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: linear-gradient(150deg, var(--slate), var(--graphite));
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
}
@media (max-width: 820px) { .leader { grid-template-columns: 1fr; } }
.leader__media { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.leader__quote {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-hi);
  margin-bottom: var(--sp-5);
}
.leader__quote::before { content: '“'; color: var(--azure); font-size: 2.2em; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }

.values { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.value {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--graphite);
  align-items: start;
  transition: background-color var(--dur-mid) var(--ease-out);
}
.value:hover { background: var(--slate); }
.value__id {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  color: var(--azure);
}
@media (max-width: 620px) { .value { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* ---------- Service detail ---------- */
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 1000px) { .svc-layout { grid-template-columns: 1fr; } }

.svc-body h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.svc-body h2:first-child { margin-top: 0; }
.svc-body h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.svc-body p { margin-bottom: var(--sp-4); }
.svc-body > img,
.svc-body > figure { margin-block: var(--sp-6); border-radius: var(--r-card); overflow: hidden; }

.svc-aside { position: sticky; top: 120px; display: grid; gap: var(--sp-4); }
@media (max-width: 1000px) { .svc-aside { position: static; } }

.aside-card {
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--slate), var(--graphite));
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.aside-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-4); }
.aside-nav { display: grid; gap: 2px; }
.aside-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-tech);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.aside-nav a:hover { background: var(--azure-08); color: var(--azure-bright); }
.aside-nav a.is-active { background: var(--azure-14); color: var(--azure-bright); font-weight: 600; }
.aside-nav svg { width: 13px; height: 13px; opacity: 0.6; }

/* ---------- Project detail ---------- */
.spec-table { border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.spec-table tr { border-bottom: 1px solid var(--hairline); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th,
.spec-table td { padding: var(--sp-4) var(--sp-5); text-align: left; font-size: var(--fs-sm); }
.spec-table th {
  width: 40%;
  background: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spec-table td { color: var(--text-hi); font-weight: 500; }
@media (max-width: 560px) {
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { padding-bottom: var(--sp-2); }
  .spec-table td { padding-top: 0; }
}

/* ---------- Thank you / 404 ---------- */
.centered-page {
  min-height: 78svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-9);
}
.centered-page__inner { max-width: 620px; }
.centered-page p { margin-inline: auto; }
.big-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(140deg, var(--azure-bright), var(--azure) 40%, var(--azure-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.success-mark {
  display: grid; place-items: center;
  width: 96px; height: 96px;
  margin: 0 auto var(--sp-6);
  border-radius: 50%;
  background: var(--azure-14);
  border: 1px solid var(--azure-24);
  color: var(--azure);
  box-shadow: var(--shadow-azure);
}
.success-mark svg { width: 44px; height: 44px; }

/* ---------- Shared page CTA row ---------- */
.actions-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; margin-top: var(--sp-6); }
.actions-row--start { justify-content: flex-start; }

/* ---------- Prose (blog / long copy) ---------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose ul { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.prose ul li { display: flex; gap: var(--sp-3); font-size: var(--fs-sm); }
.prose ul li::before {
  content: '';
  width: 6px; height: 6px;
  margin-top: 9px;
  rotate: 45deg;
  background: var(--azure);
  flex-shrink: 0;
}
