/* ============================================================
   archive-project-type.css — v2.0
   HTS Engineering — Corporate Premium 2026
   Forest Green #1B4332 + Gold #C8922A
   ============================================================ */

/* ── BASE RESET (scoped) ─────────────────────────────────── */
.apt-hero *, .apt-trust *, .apt-grid-section *,
.apt-explain *, .apt-systems *, .apt-cta-band *, .apt-faq-section * {
  box-sizing: border-box;
}

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { margin-bottom: var(--sp-3xl) }
.section-header--center { text-align: center }
.section-header--center .section-desc { max-width: 640px; margin-inline: auto }
.section-eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: .625rem;
}
.section-header--center .section-eyebrow { justify-content: center }
.section-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--clr-accent);
  flex-shrink: 0;
}
.section-header--center .section-eyebrow::before { display: none }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-md);
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===================================================================
   SECTION 1 — HERO
   =================================================================== */
.apt-hero {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding-block: var(--sp-2xl) var(--sp-4xl);
  position: relative;
  overflow: hidden;
}
.apt-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,146,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,146,42,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Breadcrumb (inside hero) */
.apt-hero .breadcrumb { margin-bottom: var(--sp-2xl) }
.apt-hero .breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0 }
.apt-hero .breadcrumb a { font-size: .8125rem; color: rgba(255,255,255,.45); transition: color var(--t-fast) }
.apt-hero .breadcrumb a:hover { color: var(--clr-accent-light) }
.apt-hero .breadcrumb__sep { color: rgba(255,255,255,.2); font-size: .75rem; margin-inline: .2rem }
.apt-hero .breadcrumb li:last-child span[aria-current] { font-size: .8125rem; color: rgba(255,255,255,.65) }

/* Inner layout */
.apt-hero__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-3xl) var(--sp-4xl);
  align-items: center;
}
.apt-hero__kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-lg);
}
.apt-hero__kicker-line {
  width: 2rem;
  height: 1px;
  background: var(--clr-accent);
  flex-shrink: 0;
}
.apt-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--clr-white);
  margin-bottom: var(--sp-lg);
}
.apt-hero__title-sub {
  display: block;
  color: var(--clr-accent-light);
  font-style: italic;
}
.apt-hero__intro {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.68);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: var(--sp-xl);
}
.apt-hero__actions { display: flex; gap: var(--sp-md); flex-wrap: wrap }
.btn--outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: var(--clr-white);
}

/* Stats panel */
.apt-hero__panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.apt-hero__panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.08);
}
.apt-stat {
  background: rgba(27,67,50,.6);
  padding: var(--sp-xl) var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  text-align: center;
}
.apt-stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent-light);
  line-height: 1;
}
.apt-stat__label {
  font-size: .6875rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
}
.apt-hero__panel-note {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0;
}

/* ===================================================================
   SECTION 2 — TRUST STRIP
   =================================================================== */
.apt-trust {
  background: #F5F5F0;
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--sp-lg);
}
.apt-trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .625rem var(--sp-2xl);
  list-style: none;
  padding: 0;
  margin: 0;
}
.apt-trust__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  white-space: nowrap;
}
.apt-trust__icon { font-size: 1rem; flex-shrink: 0 }

/* ===================================================================
   SECTION 3 — CARD GRID
   =================================================================== */
.apt-grid-section {
  padding-block: var(--sp-4xl);
  background: var(--clr-white);
}

/* ── Grid container ── */
.apt-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Card base ── */
.project-card {
  background: var(--clr-surface-2, #F9F9F7);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  position: relative;
}
.project-card:hover {
  box-shadow: 0 12px 40px rgba(27,67,50,.12), 0 2px 8px rgba(27,67,50,.06);
  transform: translateY(-4px);
  border-color: rgba(27,67,50,.25);
}

/* ── Featured variant ── */
.project-card--featured {
  background: var(--clr-primary);
  border: 2px solid var(--clr-accent);
}
.project-card--featured:hover {
  box-shadow: 0 16px 48px rgba(27,67,50,.3), 0 4px 12px rgba(200,146,42,.2);
  border-color: var(--clr-accent-light);
}

/* ── Last-odd card → full width ── */
.project-card--full {
  grid-column: 1 / -1;
}
.project-card--full .project-card__link {
  flex-direction: row;
}
.project-card--full .project-card__img-wrap {
  flex: 0 0 52%;
  aspect-ratio: 16 / 9;
}
.project-card--full .project-card__body {
  padding: var(--sp-2xl) var(--sp-3xl);
  flex: 1;
  justify-content: center;
}

/* ── Link wrapper ── */
.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.project-card__link:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}

/* ── Image ── */
.project-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clr-border);
}
.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.project-card:hover .project-card__img-wrap img {
  transform: scale(1.05);
}
.project-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27,67,50,.35) 100%);
  pointer-events: none;
  transition: opacity .3s ease;
  opacity: 0;
}
.project-card:hover .project-card__img-overlay { opacity: 1 }

/* Featured badge */
.project-card__badge-feat {
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-md);
  background: var(--clr-accent);
  color: var(--clr-white);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 3px;
  z-index: 1;
}

/* ── Body ── */
.project-card__body {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  flex: 1;
}
.project-card__body-top { display: flex; flex-direction: column; gap: var(--sp-sm) }
.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}
.project-card--featured .project-card__title { color: var(--clr-white) }
.project-card__tagline {
  font-size: .9375rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin: 0;
}
.project-card--featured .project-card__tagline { color: rgba(255,255,255,.6) }

/* Badge list (overrides) */
.project-card .badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-card .badge {
  font-size: .6875rem;
  font-weight: 600;
  padding: .275rem .7rem;
  border-radius: 3px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  color: var(--clr-primary-mid, #2d6a4f);
  white-space: nowrap;
}
.project-card--featured .badge {
  background: rgba(200,146,42,.12);
  border-color: rgba(200,146,42,.28);
  color: var(--clr-accent-light, #E8B24A);
}

/* Footer row */
.project-card__body-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-md);
  margin-top: auto;
}
.project-card--featured .project-card__body-foot { border-top-color: rgba(200,146,42,.2) }
.project-card__proof {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin: 0;
}
.project-card__proof svg { color: var(--clr-accent); flex-shrink: 0 }
.project-card--featured .project-card__proof { color: rgba(255,255,255,.55) }
.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-accent);
  white-space: nowrap;
  transition: gap .2s ease;
}
.project-card:hover .project-card__cta { gap: .625rem }
.project-card__cta-arr { transition: transform .2s ease }
.project-card:hover .project-card__cta-arr { transform: translateX(3px) }
.project-card--featured .project-card__cta { color: var(--clr-accent-light) }

/* ===================================================================
   SECTION 4 — EXPLANATION
   =================================================================== */
.apt-explain {
  background: var(--clr-surface, #F8F8F5);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--sp-4xl);
}
.apt-explain__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-3xl) var(--sp-4xl);
  align-items: center;
}
.apt-explain__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: var(--sp-lg);
}
.apt-explain__text { display: flex; flex-direction: column; gap: var(--sp-md) }
.apt-explain__text p {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin: 0;
}
.apt-explain__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: var(--sp-lg);
  font-size: .875rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  letter-spacing: .02em;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s ease, gap .2s ease;
}
.apt-explain__link:hover { color: var(--clr-accent); gap: .75rem }

/* Proof card */
.apt-explain__proof-card {
  background: var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}
.apt-explain__proof-quote {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin: 0;
}
.apt-explain__proof-author {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
}
.apt-explain__proof-author strong {
  display: block;
  font-size: .875rem;
  color: var(--clr-white);
}
.apt-explain__proof-author span {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}
.apt-explain__proof-stat {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-lg);
}
.apt-explain__proof-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-accent-light);
  line-height: 1;
}
.apt-explain__proof-stat span:last-child {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}

/* ===================================================================
   SECTION 5 — SYSTEMS
   =================================================================== */
.apt-systems {
  padding-block: var(--sp-4xl);
  background: var(--clr-white);
}
.apt-systems__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.apt-system-item {
  background: var(--clr-white);
  padding: var(--sp-xl) var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  transition: background .2s ease;
}
.apt-system-item:hover { background: var(--clr-surface, #F8F8F5) }
.apt-system-item__icon { font-size: 1.75rem }
.apt-system-item__name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.01em;
}
.apt-system-item__desc {
  font-size: .75rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===================================================================
   SECTION 6 — CTA BAND
   =================================================================== */
.apt-cta-band {
  background: var(--clr-primary);
  padding-block: var(--sp-3xl);
  position: relative;
  overflow: hidden;
}
.apt-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,146,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,146,42,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.apt-cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2xl);
  flex-wrap: wrap;
}
.apt-cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -.03em;
  margin-bottom: .375rem;
}
.apt-cta-band__desc {
  font-size: .9375rem;
  color: rgba(255,255,255,.62);
  max-width: 460px;
}
.apt-cta-band__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}
.apt-cta-band .btn--primary {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
}
.apt-cta-band .btn--primary:hover {
  background: var(--clr-accent-light);
  border-color: var(--clr-accent-light);
}
.apt-cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s ease;
}
.apt-cta-band__phone:hover { color: var(--clr-accent-light) }

/* ===================================================================
   SECTION 7 — FAQ
   =================================================================== */
.apt-faq-section {
  padding-block: var(--sp-4xl);
  background: var(--clr-surface, #F8F8F5);
  border-top: 1px solid var(--clr-border);
}
.apt-faq__list {
  max-width: 820px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.apt-faq__item {
  border-bottom: 1px solid var(--clr-border);
}
.apt-faq__item:first-child {
  border-top: 1px solid var(--clr-border);
}
.apt-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  padding: var(--sp-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-primary);
  line-height: 1.5;
  transition: color .2s ease;
}
.apt-faq__q:hover { color: var(--clr-accent) }
.apt-faq__chevron {
  flex-shrink: 0;
  color: var(--clr-accent);
  transition: transform .3s ease;
}
.apt-faq__item.is-open .apt-faq__chevron { transform: rotate(180deg) }
.apt-faq__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, padding .3s ease;
}
.apt-faq__answer[hidden] { display: block }
.apt-faq__item.is-open .apt-faq__answer {
  max-height: 600px;
  opacity: 1;
  padding-bottom: var(--sp-lg);
}
.apt-faq__answer-inner {
  font-size: .9375rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1100px) {
  .apt-hero__inner { grid-template-columns: 1fr 240px }
  .apt-explain__inner { grid-template-columns: 1fr 320px }
  .apt-systems__grid { grid-template-columns: repeat(3, 1fr) }
}

@media (max-width: 900px) {
  .apt-hero__inner {
    grid-template-columns: 1fr;
  }
  .apt-hero__panel {
    width: 100%;
  }
  .apt-hero__panel-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .apt-explain__inner {
    grid-template-columns: 1fr;
  }
  .apt-systems__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-card--full .project-card__link { flex-direction: column }
  .project-card--full .project-card__img-wrap { flex: none; aspect-ratio: 16 / 9; width: 100% }
  .project-card--full .project-card__body { padding: var(--sp-xl) }
}

@media (max-width: 680px) {
  .apt-card-grid {
    grid-template-columns: 1fr;
  }
  .project-card--full { grid-column: auto }
  .apt-systems__grid { grid-template-columns: 1fr 1fr }
  .apt-cta-band__inner { flex-direction: column; text-align: center }
  .apt-cta-band__copy { text-align: center }
  .apt-cta-band__desc { margin: 0 auto }
  .apt-cta-band__actions { justify-content: center }
  .apt-hero__panel-inner { grid-template-columns: 1fr 1fr }
  .apt-trust__list { gap: .5rem var(--sp-lg) }
}

@media (max-width: 480px) {
  .apt-systems__grid { grid-template-columns: 1fr }
  .apt-hero__title { font-size: 2rem }
}
