/* sub-pages.css — shared styles for Services, Case Studies, News, Testimonials, Privacy pages */

/* Subpage hero — same shape as About hero but shorter */
.subpage-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(380px, 50vh, 520px);
  display: flex;
  align-items: flex-end;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,51,0.55) 0%, rgba(10,31,51,0.42) 45%, rgba(10,31,51,0.92) 100%);
  z-index: 1;
}
.subpage-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.subpage-hero .hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(64px, 9vh, 110px);
  color: #fff;
}
.subpage-hero h1 { color: #fff; }

/* Stat row in hero — variant of homepage stat row, lighter */
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  max-width: 800px;
}
.hero-stat-row .item {
  padding: 14px 18px;
  border-left: 2px solid var(--ims-amber-500);
  background: rgba(255,255,255,0.04);
  border-radius: 0 4px 4px 0;
}
.hero-stat-row .num {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.1;
}
.hero-stat-row .lab {
  font-family: var(--ims-font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
@media (max-width: 700px) {
  .hero-stat-row { grid-template-columns: 1fr; max-width: none; gap: 8px; }
  .hero-stat-row .item { padding: 12px 14px; }
}

/* ===== Capability cards (Services page) ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .cap-grid { grid-template-columns: 1fr; } }

.cap-card {
  background: #fff;
  border: 1px solid var(--ims-border);
  border-radius: 6px;
  padding: 28px 26px;
  box-shadow: var(--ims-shadow-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 240ms cubic-bezier(.22,.61,.36,1), box-shadow 240ms cubic-bezier(.22,.61,.36,1);
}
.cap-card:hover { transform: translateY(-2px); box-shadow: var(--ims-shadow-2); }
.cap-card .ico {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--ims-navy-700);
  color: var(--ims-amber-500);
  display: grid; place-items: center;
}
.cap-card .ico svg { width: 22px; height: 22px; stroke-width: 1.75; }
.cap-card h3 {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ims-fg-1);
  text-wrap: balance;
}
.cap-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ims-fg-2);
  margin: 0;
}
.cap-card ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--ims-border);
  padding-top: 16px;
}
.cap-card ul li {
  font-family: var(--ims-font-body);
  font-size: 14px;
  color: var(--ims-fg-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.cap-card ul li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--ims-cyan-500);
  border-radius: 999px;
  margin-top: 8px;
  flex: 0 0 auto;
}

/* Spotlight variant — 2-col cards for "Specialized Solutions" */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) { .spotlight-grid { grid-template-columns: 1fr; } }
.spotlight-card {
  background: var(--ims-bg-card);
  border: 1px solid var(--ims-border);
  border-radius: 6px;
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.spotlight-card .num {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ims-cyan-700);
  flex: 0 0 36px;
  padding-top: 3px;
}
.spotlight-card h3 {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ims-fg-1);
}
.spotlight-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ims-fg-2);
  margin: 0;
}

/* ===== Resource / case-study cards (Case Studies page) ===== */
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .res-grid { grid-template-columns: 1fr; } }

.res-card {
  background: #fff;
  border: 1px solid var(--ims-border);
  border-radius: 6px;
  box-shadow: var(--ims-shadow-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms cubic-bezier(.22,.61,.36,1), box-shadow 240ms cubic-bezier(.22,.61,.36,1);
}
.res-card:hover { transform: translateY(-2px); box-shadow: var(--ims-shadow-2); }
.res-card .preview {
  background: var(--ims-concrete-100);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.res-card .preview img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  background: #fff;
}
.res-card.no-preview .preview {
  background: var(--ims-navy-800);
  aspect-ratio: 16 / 7;
}
.res-card.no-preview .preview .fmt {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ims-cyan-400);
}
.res-card .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}
.res-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ims-font-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ims-cyan-700);
}
.res-card h3 {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ims-fg-1);
  text-wrap: balance;
}
.res-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ims-fg-2);
  margin: 0;
}
.res-card .res-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Testimonial cards ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: #fff;
  border: 1px solid var(--ims-border);
  border-radius: 6px;
  padding: 32px 32px 26px;
  box-shadow: var(--ims-shadow-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 14px;
  left: 24px;
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 84px;
  line-height: 1;
  color: var(--ims-amber-500);
  opacity: 0.18;
  pointer-events: none;
}
.testimonial-card .quote {
  font-family: var(--ims-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ims-fg-2);
  margin: 8px 0 0;
  position: relative;
}
.testimonial-card .src {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ims-border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card .src .avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--ims-navy-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.testimonial-card .src .name {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ims-fg-1);
  line-height: 1.2;
}
.testimonial-card .src .role {
  font-family: var(--ims-font-body);
  font-size: 13px;
  color: var(--ims-fg-3);
  margin-top: 2px;
}
.testimonial-card .photo {
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid var(--ims-border);
}
.testimonial-card .photo img {
  width: 100%;
  display: block;
}

/* ===== News page "coming soon" ===== */
.coming-soon-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 900px) { .coming-soon-wrap { grid-template-columns: 1fr; } }

.coming-soon-msg {
  background: var(--ims-navy-800);
  color: #fff;
  border-radius: 6px;
  padding: 36px 36px 40px;
  box-shadow: var(--ims-shadow-2);
}
.coming-soon-msg h3 {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 12px 0 14px;
  color: #fff;
  line-height: 1.15;
}
.coming-soon-msg p {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.coming-soon-msg .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(232,163,23,0.18);
  color: var(--ims-amber-500);
  border-radius: 999px;
  font-family: var(--ims-font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.coming-soon-msg .badge .pulse {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--ims-amber-500);
  animation: news-pulse 1.8s ease-in-out infinite;
}
@keyframes news-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
.news-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 500px) { .news-topics { grid-template-columns: 1fr; } }
.news-topics .topic {
  background: #fff;
  border: 1px solid var(--ims-border);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--ims-shadow-1);
}
.news-topics .topic .ico {
  width: 32px; height: 32px;
  background: var(--ims-navy-50);
  color: var(--ims-navy-700);
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.news-topics .topic .ico svg { width: 18px; height: 18px; stroke-width: 1.75; }
.news-topics .topic h4 {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ims-fg-1);
  line-height: 1.2;
}
.news-topics .topic p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ims-fg-2);
  margin: 0;
}

/* ===== Privacy / long-form page ===== */
.policy-shell {
  max-width: 780px;
  margin: 0 auto;
}
.policy-shell .updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--ims-navy-50);
  color: var(--ims-navy-700);
  border-radius: 4px;
  font-family: var(--ims-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.policy-shell .lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ims-fg-2);
  margin: 22px 0 36px;
}
.policy-shell h3 {
  font-family: var(--ims-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ims-fg-1);
  margin: 36px 0 12px;
  scroll-margin-top: 100px;
  position: relative;
  padding-left: 22px;
}
.policy-shell h3::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--ims-amber-500);
}
.policy-shell p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ims-fg-2);
  margin: 0 0 14px;
}
.policy-shell p:last-child { margin-bottom: 0; }
.policy-shell strong { color: var(--ims-fg-1); font-weight: 600; }
.policy-shell a {
  color: var(--ims-navy-700);
  border-bottom: 1px solid var(--ims-navy-200);
  transition: color 160ms, border-color 160ms;
}
.policy-shell a:hover { color: var(--ims-cyan-700); border-color: var(--ims-cyan-700); }
.policy-shell .toc {
  background: var(--ims-bg-muted);
  border: 1px solid var(--ims-border);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 32px 0 8px;
}
.policy-shell .toc h4 {
  font-family: var(--ims-font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ims-fg-3);
  margin: 0 0 12px;
}
.policy-shell .toc ol {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  counter-reset: section;
}
@media (max-width: 600px) { .policy-shell .toc ol { grid-template-columns: 1fr; } }
.policy-shell .toc ol li {
  counter-increment: section;
  font-family: var(--ims-font-body);
  font-size: 14px;
}
.policy-shell .toc ol li::before {
  content: counter(section, decimal-leading-zero) " · ";
  font-family: var(--ims-font-mono);
  font-size: 12px;
  color: var(--ims-fg-3);
  margin-right: 4px;
}
.policy-shell .toc a { border-bottom: 0; color: var(--ims-navy-700); }
.policy-shell .toc a:hover { color: var(--ims-cyan-700); text-decoration: underline; }

/* CTA banner — used at the bottom of subpages */
.cta-banner {
  background: var(--ims-navy-900);
  color: #fff;
  padding-block: clamp(56px, 8vw, 96px);
}
