/* ==========================================================================
   S & S Associates — Subpage Layouts, Editorial Prose & Components
   ========================================================================== */

/* Active Header State */
.nav-trigger.is-current {
  color: var(--brand-green-vivid);
}

.nav-trigger.is-current::after {
  transform: scaleX(1);
}

/* Subpage Architectural Hero */
.subhero {
  position: relative;
  background-color: var(--bg-black);
  color: var(--ink-on-dark);
  padding-block: clamp(56px, 7.5vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subhero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.36;
}

.subhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: subheroMediaSettle 950ms var(--ease-editorial) both;
}

.subhero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

@keyframes subheroMediaSettle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes subheroRiseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subhero .breadcrumb {
  animation: subheroRiseIn 480ms var(--ease-editorial) 40ms both;
}

.subhero .eyebrow {
  animation: subheroRiseIn 500ms var(--ease-editorial) 90ms both;
}

.subhero__title {
  animation: subheroRiseIn 560ms var(--ease-editorial) 140ms both;
}

.subhero__lead {
  animation: subheroRiseIn 560ms var(--ease-editorial) 200ms both;
}

.subhero__meta {
  animation: subheroRiseIn 540ms var(--ease-editorial) 250ms both;
}

.subhero__actions {
  animation: subheroRiseIn 540ms var(--ease-editorial) 300ms both;
}

.subhero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 24, 26, 0.92) 0%, rgba(18, 24, 26, 0.78) 52%, rgba(18, 24, 26, 0.52) 100%),
    linear-gradient(180deg, rgba(18, 24, 26, 0.30) 0%, rgba(18, 24, 26, 0.84) 100%);
}

.subhero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 88% 22%, rgba(29, 122, 118, 0.16) 0%, transparent 72%),
    radial-gradient(ellipse 36% 44% at 12% 84%, rgba(226, 139, 68, 0.11) 0%, transparent 72%);
}

.subhero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted-dark);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--ink-muted-dark);
  transition: color var(--duration-fast) ease;
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

.breadcrumb__sep {
  color: rgba(236, 239, 234, 0.30);
}

.breadcrumb__current {
  color: var(--brand-green-vivid);
}

.subhero__title {
  font-size: clamp(2.125rem, 4.4vw, 3.625rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--bg-white);
}

.subhero__lead {
  margin-top: 18px;
  font-size: clamp(1.03125rem, 1.4vw, 1.25rem);
  line-height: 1.62;
  color: #D5DFDD;
  max-width: 760px;
}

.subhero__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.subhero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Main Editorial Two-Column Layout */
.editorial-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.prose-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.prose-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prose-section h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.prose-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-top: 6px;
}

.prose-section p {
  font-size: 1.03125rem;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* Callout Quote */
.callout-quote {
  padding: 26px 28px;
  background-color: var(--bg-mist);
  border-left: 4px solid var(--brand-orange-deep);
}

.callout-quote--green {
  border-left-color: var(--brand-green);
}

.callout-quote__text {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-primary);
}

.callout-quote__cite {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green-deep);
}

/* Feature / Capability Grid inside Prose */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition:
    transform var(--duration-base) var(--ease-editorial),
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-base) ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-green) 100%);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:hover .link-arrow svg {
  transform: translateX(5px);
}

.feature-card__code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange-accessible);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-top: 4px;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Checklist & Process Steps */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-green) 100%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.process-step {
  padding: 22px;
  background-color: var(--bg-mist);
  border: 1px solid var(--border-light);
  transition:
    transform var(--duration-fast) var(--ease-editorial),
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.process-step:hover {
  transform: translateY(-2px);
  background-color: var(--bg-white);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-card);
}

.process-step__num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-green-deep);
}

.process-step h4 {
  margin-top: 6px;
  font-size: 1.03125rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.process-step p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* Compliance / Specification Table */
.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
}

.spec-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.spec-table th {
  background-color: var(--bg-obsidian);
  color: var(--bg-white);
  font-weight: 700;
  padding: 14px 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  color: var(--ink-secondary);
  vertical-align: top;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.spec-table tr:nth-child(even) td {
  background-color: var(--bg-mist);
}

.spec-table tbody tr:hover td {
  background-color: var(--brand-green-tint);
  color: var(--ink-primary);
}

/* Sticky Executive Sidebar */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-card {
  border: 1px solid var(--border-light);
  background-color: var(--bg-mist);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card--dark {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  border-color: var(--border-dark);
  border-top: 4px solid var(--brand-orange);
}

.sidebar-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
}

.sidebar-card--dark p {
  color: var(--ink-muted-dark);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-primary);
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.sidebar-links a:hover {
  border-color: var(--brand-green);
  color: var(--brand-green-deep);
}

.sidebar-links a.is-active {
  border-left: 4px solid var(--brand-orange-deep);
  color: var(--brand-green-deep);
}

/* Heritage Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--brand-green);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--brand-orange);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--brand-green);
}

.timeline-item__year {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange-accessible);
}

.timeline-item h3 {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.timeline-item p {
  margin-top: 8px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Partner Profile Card Header */
.partner-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background-color: var(--bg-mist);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--brand-green);
}

.partner-monogram--xl {
  width: 84px;
  height: 84px;
  font-size: 1.625rem;
}

/* Dark Standalone FAQ List Override for Light Section Support */
.faq-list--light {
  border-top: 1px solid var(--border-light-strong);
}

.faq-list--light .faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-list--light .faq-trigger {
  color: var(--ink-primary);
}

.faq-list--light .faq-trigger:hover {
  color: var(--brand-green-deep);
}

.faq-list--light .faq-panel {
  color: var(--ink-secondary);
}

/* Subpage Bottom Related Band */
.related-band {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--border-dark);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.related-card {
  position: relative;
  padding: 24px;
  background-color: var(--bg-charcoal);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition:
    transform var(--duration-base) var(--ease-editorial),
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    box-shadow var(--duration-base) ease;
}

.related-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-green-vivid) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-editorial);
}

.related-card:hover {
  transform: translateY(-4px);
  background-color: var(--bg-elevated-dark);
  border-color: var(--brand-orange);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.related-card:hover::before {
  transform: scaleX(1);
}

.related-card:hover .link-arrow svg {
  transform: translateX(5px);
}

.related-card__kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green-vivid);
}

.related-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-top: 6px;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--ink-muted-dark);
  margin-top: 6px;
  line-height: 1.55;
}

.industries-grid--subpage {
  grid-template-columns: repeat(2, 1fr);
}

.industries-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-card--span {
  grid-column: 1 / -1;
}

.partner-profile__name {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.partner-profile__role {
  font-weight: 700;
  color: var(--brand-green-deep);
  margin-top: 2px;
}

.partner-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vision-mission--tight {
  margin-top: 4px;
}

/* Official ACCA Approved Employer Visual Showcase */
.acca-credential-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  background-color: var(--bg-mist);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-orange-deep);
}

.acca-credential-banner__emblem {
  flex-shrink: 0;
  background-color: #FAF8F4;
  padding: 14px 20px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.acca-credential-banner__emblem img {
  height: 80px;
  width: auto;
  display: block;
}

.acca-credential-banner__copy {
  flex: 1 1 280px;
}

.acca-credential-banner__copy h3 {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.acca-credential-banner__copy p {
  margin-top: 6px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Subpage Engagement Proof & Current Regulatory Commentary */
.case-study-box {
  position: relative;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-green);
  background-color: var(--bg-mist);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-study-box__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange-accessible);
}

.case-study-box h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-primary);
}

.case-study-box__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.case-study-box__item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 14px 16px;
}

.case-study-box__item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-green-deep);
  margin-bottom: 6px;
}

.case-study-box__item p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.reg-update-box {
  background-color: var(--brand-green-tint);
  border: 1px solid rgba(29, 122, 118, 0.25);
  border-left: 4px solid var(--brand-green);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reg-update-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.reg-update-box__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-green-forest);
  margin: 0;
}

.reg-update-box p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-primary);
}

@media (max-width: 760px) {
  .case-study-box__grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Subpages */
@media (max-width: 1024px) {
  .editorial-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-stack {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .feature-grid,
  .process-steps,
  .industries-grid--subpage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .subhero {
    padding-block: 42px;
  }
  .subhero__title {
    font-size: clamp(1.85rem, 7.2vw, 2.5rem);
  }
  .subhero__lead {
    font-size: 0.98rem;
  }
  .callout-quote,
  .feature-card,
  .process-step,
  .sidebar-card,
  .timeline-item,
  .partner-profile-head,
  .related-card {
    padding: 20px;
  }
  .timeline {
    padding-left: 22px;
  }
  .timeline-item::before {
    left: -31px;
  }
  .sidebar-links a {
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .subhero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .subhero__actions .btn {
    width: 100%;
  }
}
