/* ============================================================
   Nordic Trust Services — Interior Pages (About, Resources, Service detail)
   ============================================================ */

/* ── PAGE HERO ── */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 50%; height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(78,203,141,0.06) 0%,
    rgba(155,114,207,0.04) 50%,
    transparent 75%
  );
  pointer-events: none;
  animation: auroraFloat 10s ease-in-out infinite alternate;
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}
.page-hero__sub {
  font-size: 0.975rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
  max-width: 540px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.28s forwards;
}
.page-hero .hero__eyebrow {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.05s forwards;
}
.page-hero .btn {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

/* ── INTERIOR SECTIONS ── */
.interior-section {
  padding: 6rem 0;
  background: var(--white);
}
.interior-section--alt {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.interior-header {
  margin-bottom: 3rem;
}
.interior-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.interior-text .section-sub { margin-top: 1rem; }
.interior-aside {
  padding-top: 0.5rem;
}

/* ── STAT CARD ── */
.interior-stat-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.interior-stat-card__number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.interior-stat-card__label {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.65;
}

/* ── TAGS ── */
.interior-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.5rem;
}
.interior-tag {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: border-color var(--transition);
}
.interior-tag:hover { border-color: var(--aurora-purple); }

/* ── VALUES GRID ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sunrise-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card:hover::before { opacity: 1; }
.value-card__icon {
  width: 42px; height: 42px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.value-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.6rem;
}
.value-card p {
  font-size: 0.845rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.25rem;
}
.team-card__role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.team-card__bio {
  font-size: 0.845rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ── RESOURCES FILTER ── */
.resources-filter {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}
.resources-filter__inner {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--black); color: var(--black); }
.filter-btn--active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ── RESOURCES GRID ── */
.resources-list { padding: 5rem 0; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--aurora-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-card:hover::before { opacity: 1; }
.resource-card--hidden { display: none; }
.resource-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.resource-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  flex: 1;
}
.resource-card__desc {
  font-size: 0.845rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}
.resource-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.resource-card__date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.resource-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  transition: color var(--transition);
}
.resource-card__link:hover { color: var(--aurora-purple); }


/* ── MATRIX TEXTURES — INTERIOR PAGES ── */
.page-hero__matrix {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.interior-section__matrix {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Per-page matrix images */
.matrix--snowy-forest { background-image: url('/assets/snowy-forest-matrix.png'); }
.matrix--tower        { background-image: url('/assets/tower-matrix.png'); }
.matrix--lake-sunset  { background-image: url('/assets/lake-sunset-matrix.png'); }
.matrix--footprints   { background-image: url('/assets/footprints-matrix.png'); }
.matrix--snowy-tree   { background-image: url('/assets/snowy-tree-matrix.png'); }
.matrix--aurora       { background-image: url('/assets/aurora-matrix.png'); }
.matrix--boat         { background-image: url('/assets/boat-matrix.png'); }

/* Sections that have matrix need position:relative */
.interior-section--has-matrix {
  position: relative;
  overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .interior-two-col { grid-template-columns: 1fr; gap: 3rem; }
  .page-hero { padding: calc(var(--nav-height) + 3rem) 0 3rem; }
}
