/* =========================================================
   ABS Global — Resources page (resources.html)
   Page-specific styles. Builds on assets/css/style.css
   (hero + breadcrumbs follow the services/about treatment;
   resource tiles extend the global .s-card component)
   ========================================================= */

/* ---------- Page hero (resources artwork, crumbs + title + intro) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  overflow: hidden;
  padding: 96px 0 84px;
  background: #0c2540;
  color: #fff;
  text-align: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../img/resources/resources-hero.jpg') center / cover no-repeat;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 10, 20, .9) 0%, rgba(2, 10, 20, .74) 100%);
  opacity: .5;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 940px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero h1 {
  max-width: 860px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.9vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: .002em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(2, 12, 24, .35);
}
.page-hero__sub {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .75);
  text-wrap: pretty;
}

/* ---------- Breadcrumbs (matches about/services hero) ---------- */
.crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 13px; height: 13px; }
.crumbs__sep { color: rgba(255, 255, 255, .32); display: inline-flex; }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Resources grid ---------- */
.res-section { overflow: hidden; }
.res-section .section-head { margin-bottom: clamp(28px, 3.6vw, 44px); }

.res-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* resource tiles extend .s-card (style.css) */
.res-card h3 {
  font-size: 1.02rem;
  line-height: 1.45;
}
.res-card p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.res-card__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  border: 1px solid var(--brand-100);
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .3s, color .3s, border-color .3s;
}
.s-card:hover .res-card__num {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.res-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
}
.res-card__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--brand-100);
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease);
}
.res-card__arrow svg { width: 15px; height: 15px; }
.s-card:hover .res-card__arrow {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translate(2px, -2px);
}

.res-more {
  margin: clamp(26px, 3vw, 36px) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-hero { padding: 74px 0 66px; }
  .res-hero { padding: 82px 0 72px; }
  .page-hero__inner { width: calc(100% - 36px); }
  .res-card { padding: 20px 18px 18px; }
}
