/* Facilities page. Loaded only on this page.
*/

  /* ================= Facilities page ================= */
  .fa-intro { padding-block: clamp(56px, 6.4vw, 118px) clamp(48px, 5vw, 90px); }
  .fa-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; }
  .fa-top p { margin: 0; font-size: clamp(14.5px, 1.05vw, 17.5px); line-height: 1.95; color: #1f2622; max-width: 44em; }
  .fa-intro .stats { margin-top: clamp(32px, 3.6vw, 60px); }

  /* Alternating facility rows */
  .frows { padding-block: 0 clamp(64px, 7vw, 130px); }
  .frows .sec-wrap { display: grid; gap: clamp(28px, 3.4vw, 60px); }
  .frow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 76px); align-items: center; }
  .frow.rev .fimg { order: 2; }
  .fimg { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0d1511; isolation: isolate; box-shadow: 0 24px 40px -28px rgba(8,40,22,.6); }
  .fimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
  .frow:hover .fimg img { transform: scale(1.06); }
  .fimg .bdg { position: absolute; z-index: 2; left: 16px; top: 16px; background: #fff; color: var(--ink); border-radius: 6px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; }
  .fimg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(5,12,9,.4) 0%, rgba(5,12,9,0) 40%); }
  .ftxt .no { font-size: clamp(44px, 4.4vw, 80px); font-weight: 700; line-height: 1; color: #d8ddda; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .35s ease; }
  .frow:hover .ftxt .no { color: var(--green); }
  .ftxt h3 { margin: 6px 0 0; font-size: clamp(24px, 2.2vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
  .ftxt p { margin: 18px 0 0; max-width: 36em; font-size: clamp(14.5px, 1.02vw, 17px); line-height: 1.9; color: #1f2622; }
  .ftxt ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
  .ftxt li { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(14px, .98vw, 16px); font-weight: 500; line-height: 1.5; }
  .ftxt li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 12px no-repeat; }

  /* Process flow */
  .flow { padding-block: 0 clamp(64px, 7vw, 130px); }
  .flow-box { position: relative; overflow: hidden; isolation: isolate; border-radius: 10px; background: var(--navy); color: #fff; padding: clamp(28px, 4.4vw, 80px); }
  .flow-box::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(900px 400px at 100% 0%, rgba(14,122,60,.4), transparent 70%), radial-gradient(700px 360px at 0% 100%, rgba(240,52,58,.18), transparent 70%); }
  .flow .eyebrow { color: rgba(255,255,255,.88); }
  .flow .h-big { color: #fff; font-size: clamp(30px, 3vw, 54px); line-height: 1.15; }
  .steps { list-style: none; margin: clamp(30px, 3.6vw, 64px) 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); counter-reset: s; }
  .steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px); }
  .step { position: relative; text-align: center; padding: 0 6px; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .step .dot { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--navy); border: 2px solid rgba(255,255,255,.7); display: grid; place-items: center; font-size: 17px; font-weight: 700; transition: background .3s ease, border-color .3s ease, transform .45s cubic-bezier(.2,.9,.3,1.3); }
  .step h3 { margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 21px); font-weight: 600; line-height: 1.25; }
  .step p { margin: 10px auto 0; max-width: 17em; font-size: clamp(13px, .9vw, 14.5px); line-height: 1.7; color: rgba(255,255,255,.8); }
  .step:hover { transform: translateY(-6px); }
  .step:hover .dot { background: var(--green); border-color: var(--green); transform: scale(1.12); }

  @media (max-width: 1020px) {
    .phero-in { padding-top: 150px; }
    .fa-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .frow, .frow.rev { grid-template-columns: minmax(0, 1fr); }
    .frow.rev .fimg { order: 0; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 520px; }
    .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px); }
    .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0; }
    .step .dot { grid-row: span 2; margin: 0; }
    .step h3 { margin-top: 4px; } .step p { margin: 6px 0 0; max-width: none; }
  }
  @media (max-width: 640px) {
    .phero { min-height: 400px; }
    .phero .panel h1 { font-size: clamp(30px, 9vw, 44px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .phero-bg img, .phero .panel, .phero .panel .rule, .phero .panel .edge { animation: none !important; }
    .phero .panel .rule { transform: translateY(-100%); } .phero .panel .edge { transform: none; }
    .fimg img, .step, .step .dot { transition: none; }
  }
