/**
 * PFOS reference bridge (page_1.html → live site)
 *
 * Use page_1 markup “as-is” ONLY inside a scope so it never fights Tailwind / output.css:
 *   - Add class `pfos-ref` on a wrapper OR on the section root (e.g. <section id="pfos-packages" class="pfos-ref">).
 *   - Optional: `pfos-ref--strict` for exact Downloads palette (#002E5D / #FFC72C).
 *   - Default: merged palette aligned with the live site (#002347 / #FBB610).
 *
 * Do not paste page_1’s global `*` / `body` / `html` rules into the site: they live here, scoped.
 */

/* -------------------------------------------------------------------------
   Canonical tokens (global, safe: no short names like --navy at :root)
------------------------------------------------------------------------- */
:root {
  --pfos-site-navy: #002347;
  --pfos-site-navy-dk: #011b36;
  --pfos-site-gold: #fbb610;
  --pfos-site-gold-dk: #e6a800;
  --pfos-ref-navy: #002e5d;
  --pfos-ref-navy-lt: #003a75;
  --pfos-ref-gold: #ffc72c;
  --pfos-ref-gold-dk: #e6a800;
  --pfos-ref-blue: #007bff;
  --pfos-ref-offwhite: #f4f7fb;
  --pfos-ref-text: #2c3e5a;
  --pfos-ref-muted: #6b7fa3;
  --pfos-ref-slate: #1e2d4a;
  --pfos-ref-green: #16a34a;
  --pfos-ref-red: #dc2626;
  --pfos-ref-r: 12px;
  --pfos-ref-r-lg: 18px;
  --pfos-ref-shadow: 0 4px 24px rgba(0, 35, 71, 0.1);
  --pfos-ref-shadow-lg: 0 12px 48px rgba(0, 35, 71, 0.14);
}

/* -------------------------------------------------------------------------
   Scoped “page_1” variables: short names match Downloads so markup copies 1:1
------------------------------------------------------------------------- */
.pfos-ref,
[data-pfos-ref] {
  /* Merged (default): strong continuity with existing index.html */
  --navy: var(--pfos-site-navy);
  --navy-dk: var(--pfos-site-navy-dk);
  --navy-md: var(--pfos-site-navy);
  --navy-lt: var(--pfos-ref-navy-lt);
  --yellow: var(--pfos-site-gold);
  --yellow-dk: var(--pfos-site-gold-dk);
  --blue: var(--pfos-ref-blue);
  --blue-dk: #0062cc;
  --white: #ffffff;
  --offwhite: var(--pfos-ref-offwhite);
  --slate: var(--pfos-ref-slate);
  --text: var(--pfos-ref-text);
  --muted: var(--pfos-ref-muted);
  --green: var(--pfos-ref-green);
  --red: var(--pfos-ref-red);
  --font: "Urbanist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --r: var(--pfos-ref-r);
  --r-lg: var(--pfos-ref-r-lg);
  --shadow: var(--pfos-ref-shadow);
  --shadow-lg: var(--pfos-ref-shadow-lg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.pfos-ref img,
[data-pfos-ref] img {
  max-width: 100%;
  display: block;
}

.pfos-ref a:not([class*="btn"]):not(.svc-link):not(.pkg-more a),
[data-pfos-ref] a:not([class*="btn"]):not(.svc-link):not(.pkg-more a) {
  color: inherit;
  text-decoration: none;
}

/* Exact Downloads palette when you need a pixel-match mockup block */
.pfos-ref.pfos-ref--strict,
[data-pfos-ref].pfos-ref--strict {
  --navy: var(--pfos-ref-navy);
  --navy-md: var(--pfos-site-navy);
  --yellow: var(--pfos-ref-gold);
  --yellow-dk: var(--pfos-ref-gold-dk);
}

/* -------------------------------------------------------------------------
   Layout primitives (scoped)
------------------------------------------------------------------------- */
.pfos-ref .wrap,
[data-pfos-ref] .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pfos-ref .wrap-sm,
[data-pfos-ref] .wrap-sm {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reveal: only affects nodes inside .pfos-ref */
.pfos-ref .reveal,
[data-pfos-ref] .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.pfos-ref .reveal.d1,
[data-pfos-ref] .reveal.d1 {
  transition-delay: 0.08s;
}
.pfos-ref .reveal.d2,
[data-pfos-ref] .reveal.d2 {
  transition-delay: 0.15s;
}
.pfos-ref .reveal.d3,
[data-pfos-ref] .reveal.d3 {
  transition-delay: 0.22s;
}
.pfos-ref .reveal.on,
[data-pfos-ref] .reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.pfos-ref .btn,
[data-pfos-ref] .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
  box-sizing: border-box;
}
.pfos-ref .btn:hover,
[data-pfos-ref] .btn:hover {
  transform: translateY(-2px);
}
.pfos-ref .btn-yellow,
[data-pfos-ref] .btn-yellow {
  background: var(--yellow);
  color: var(--navy-dk);
  box-shadow: 0 4px 18px rgba(251, 182, 16, 0.35);
}
.pfos-ref .btn-yellow:hover,
[data-pfos-ref] .btn-yellow:hover {
  background: var(--yellow-dk);
  box-shadow: 0 8px 28px rgba(251, 182, 16, 0.45);
}
.pfos-ref .btn-navy,
[data-pfos-ref] .btn-navy {
  background: var(--navy);
  color: var(--white);
}
.pfos-ref .btn-navy:hover,
[data-pfos-ref] .btn-navy:hover {
  background: var(--navy-lt);
}
.pfos-ref .btn-outline,
[data-pfos-ref] .btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.pfos-ref .btn-outline:hover,
[data-pfos-ref] .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.pfos-ref .btn-outline-white,
[data-pfos-ref] .btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.pfos-ref .btn-outline-white:hover,
[data-pfos-ref] .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Badges */
.pfos-ref .badge,
[data-pfos-ref] .badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pfos-ref .badge-yellow,
[data-pfos-ref] .badge-yellow {
  background: rgba(251, 182, 16, 0.15);
  color: #8a5a00;
  border: 1px solid rgba(251, 182, 16, 0.4);
}
.pfos-ref .badge-navy,
[data-pfos-ref] .badge-navy {
  background: rgba(0, 35, 71, 0.08);
  color: var(--navy);
  border: 1px solid rgba(0, 35, 71, 0.18);
}
.pfos-ref .badge-blue,
[data-pfos-ref] .badge-blue {
  background: rgba(0, 123, 255, 0.1);
  color: var(--blue);
  border: 1px solid rgba(0, 123, 255, 0.25);
}
.pfos-ref .badge-white,
[data-pfos-ref] .badge-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Section headers */
.pfos-ref .sec-head,
[data-pfos-ref] .sec-head {
  text-align: center;
  margin-bottom: 52px;
}
.pfos-ref .sec-head h2,
[data-pfos-ref] .sec-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pfos-ref .sec-head p,
[data-pfos-ref] .sec-head p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
}
.pfos-ref .sec-head.light h2,
[data-pfos-ref] .sec-head.light h2 {
  color: var(--white);
}
.pfos-ref .sec-head.light p,
[data-pfos-ref] .sec-head.light p {
  color: rgba(255, 255, 255, 0.65);
}

/* -------------------------------------------------------------------------
   Standalone hero: left column (pixel-match: page_1.html #pfos-hero copy)
------------------------------------------------------------------------- */
/* Base: .pfos-ref sets color: var(--text) (dark); hero sits on navy/photo: force light copy */
.pfos-ref.pfos-hero-left {
  color: #ffffff;
  font-family: var(--font);
}

/* Same element: .pfos-ref and .pfos-hero-left (not nested): compound selector */
.pfos-ref.pfos-hero-left .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .pfos-ref.pfos-hero-left .hero-eyebrow {
    justify-content: center;
  }
}

.pfos-ref.pfos-hero-left .hero-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pfos-hero-pulse 2s infinite;
}

@keyframes pfos-hero-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.pfos-ref.pfos-hero-left .hero-eyebrow-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pfos-ref.pfos-hero-left .hero-eyebrow-stat {
  color: var(--yellow);
  font-weight: 800;
  margin: 0 0.2em;
}

.pfos-ref.pfos-hero-left .hero-h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.pfos-ref.pfos-hero-left .hero-h1 .hl {
  color: var(--yellow);
}

@media (max-width: 800px) {
  .pfos-ref.pfos-hero-left .hero-h1 {
    text-align: center;
  }
}

.pfos-ref.pfos-hero-left .hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

@media (max-width: 800px) {
  .pfos-ref.pfos-hero-left .hero-tagline {
    text-align: center;
  }
}

.pfos-ref.pfos-hero-left .hero-p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.78;
  margin-bottom: 32px;
  max-width: 500px;
}

.pfos-ref.pfos-hero-left .hero-p strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 800px) {
  .pfos-ref.pfos-hero-left .hero-p {
    margin: 0 auto 28px;
    text-align: center;
  }
}

.pfos-ref.pfos-hero-left .hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .pfos-ref.pfos-hero-left .hero-btns {
    justify-content: center;
  }
}

.pfos-ref.pfos-hero-left .hero-note {
  margin-top: 18px;
  font-size: clamp(0.875rem, 1.35vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 800px) {
  .pfos-ref.pfos-hero-left .hero-note {
    text-align: center;
  }
}

/* -------------------------------------------------------------------------
   Solar calculator CTA: #pfos-calc (standalone card + bridge buttons)
------------------------------------------------------------------------- */
.pfos-ref.pfos-calc-cta {
  color: rgba(255, 255, 255, 0.88);
}

.pfos-ref .pfos-calc-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.35rem, 3.5vw, 2.35rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.22);
}

@media (min-width: 900px) {
  .pfos-ref .pfos-calc-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.75rem, 3vw, 2.5rem);
  }
}

.pfos-ref .pfos-calc-cta__copy {
  min-width: 0;
  flex: 1;
}

.pfos-ref .pfos-calc-cta__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.pfos-ref .pfos-calc-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.45rem;
  line-height: 1;
  background: rgba(251, 182, 16, 0.14);
  border: 1px solid rgba(251, 182, 16, 0.28);
}

.pfos-ref .pfos-calc-cta__icon i {
  font-size: 1.28rem;
  color: var(--yellow);
}

.pfos-ref .pfos-calc-cta__eyebrow .badge {
  margin-bottom: 0;
}

/* Eyebrow sits on glass/navy: default badge-yellow brown (#8a5a00) reads dull here */
.pfos-ref .pfos-calc-cta__eyebrow .badge.badge-yellow {
  color: #fff4d6;
  background: rgba(251, 182, 16, 0.22);
  border: 1px solid rgba(251, 182, 16, 0.55);
}

.pfos-ref .pfos-calc-cta__title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pfos-ref .pfos-calc-cta__p {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(0.9rem, 1.35vw, 1.02rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.74);
}

.pfos-ref .pfos-calc-cta__actions {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 900px) {
  .pfos-ref .pfos-calc-cta__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 899px) {
  .pfos-ref .pfos-calc-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------
   Core offerings: index #what-we-offer (standalone sec-head + image cards)
------------------------------------------------------------------------- */
.pfos-ref.pfos-offerings-intro .sec-head.light {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.pfos-ref.pfos-offerings-intro .sec-head.light .badge {
  margin-bottom: 14px;
}

.pfos-ref.pfos-offerings-intro .sec-head.light .badge.badge-yellow {
  color: #fff3a0;
  background: rgba(255, 220, 80, 0.22);
  border: 1px solid rgba(255, 236, 140, 0.75);
  box-shadow: 0 0 24px rgba(251, 182, 16, 0.28);
}

/* Mobile: 1 col · Tablet: 2 col · Large: 4 col: never 3 */
.pfos-ref .pfos-offerings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.5vw, 26px);
  width: 100%;
}

@media (min-width: 768px) {
  .pfos-ref .pfos-offerings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .pfos-ref .pfos-offerings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pfos-ref .pfos-offer-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Card images: same assets as the legacy services listing (Our Services 01–04).
   url() relative to this file (assets/css/) → ../images/… */
.pfos-ref .pfos-offer-card--installations {
  --offer-bg: url(../images/projects3.png);
}

.pfos-ref .pfos-offer-card--shop {
  --offer-bg: url(../images/projects4.png);
}

.pfos-ref .pfos-offer-card--academy {
  --offer-bg: url(../images/our_service3.png);
}

.pfos-ref .pfos-offer-card--consultancy {
  --offer-bg: url(../images/our_service4.png);
}

.pfos-ref .pfos-offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  border-color: rgba(251, 182, 16, 0.35);
}

/* Image from --offer-bg on .pfos-offer-card (inherited); no <img> / no 01/emoji row */
.pfos-ref .pfos-offer-card__media {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  min-height: 168px;
  background-color: var(--navy-dk);
  background-image: linear-gradient(
      165deg,
      rgba(0, 35, 71, 0.28) 0%,
      rgba(0, 35, 71, 0.65) 100%
    ),
    var(--offer-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pfos-ref .pfos-offer-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.pfos-ref .pfos-offer-card__body h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pfos-ref .pfos-offer-card__cat {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.pfos-ref .pfos-offer-card__desc {
  margin: 16px 0 clamp(28px, 5vw, 44px) 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
}

.pfos-ref .pfos-offer-card__body > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.pfos-ref .pfos-offer-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pfos-ref .pfos-offer-card__actions .btn {
  width: auto;
}

/* -------------------------------------------------------------------------
   Packages block: opt-in: section#pfos-packages.pfos-ref
   (Avoids fighting the API-driven swiper cards when .pfos-ref is omitted.)
------------------------------------------------------------------------- */
#pfos-packages.pfos-ref,
.pfos-ref#pfos-packages {
  background: var(--offwhite);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

#pfos-packages.pfos-ref .pkg-note,
.pfos-ref#pfos-packages .pkg-note {
  text-align: center;
  margin-bottom: 44px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(0, 123, 255, 0.07);
  border: 1px solid rgba(0, 123, 255, 0.18);
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* 1 col phone → 2 col tablet → 4 col desktop */
#pfos-packages.pfos-ref .pkg-grid,
.pfos-ref#pfos-packages .pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}

@media (min-width: 768px) {
  #pfos-packages.pfos-ref .pkg-grid,
  .pfos-ref#pfos-packages .pkg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  /* 4 columns on wide screens: never repeat(3, …) */
  #pfos-packages.pfos-ref .pkg-grid,
  .pfos-ref#pfos-packages .pkg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* When count is 3,7,11,… a plain 4-col grid would leave a row of 3 cards: avoid that */
  #pfos-packages.pfos-ref .pkg-grid.pkg-grid--force-two,
  .pfos-ref#pfos-packages .pkg-grid.pkg-grid--force-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#pfos-packages.pfos-ref .pkg-card,
.pfos-ref#pfos-packages .pkg-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 35, 71, 0.1);
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
#pfos-packages.pfos-ref .pkg-card:hover,
.pfos-ref#pfos-packages .pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
#pfos-packages.pfos-ref .pkg-card.popular,
.pfos-ref#pfos-packages .pkg-card.popular {
  border: 2px solid var(--yellow);
  box-shadow: 0 8px 40px rgba(251, 182, 16, 0.2);
}
/* Ribbon tab: pixel-match page_1.html (sibling before .pkg-head, not inside it) */
#pfos-packages.pfos-ref .pkg-popular-tag,
.pfos-ref#pfos-packages .pkg-popular-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--yellow);
  color: var(--navy);
  padding: 4px 20px;
  font-size: 11px;
  font-weight: 900;
  border-radius: 0 0 10px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-sizing: border-box;
}
#pfos-packages.pfos-ref .pkg-head,
.pfos-ref#pfos-packages .pkg-head {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#pfos-packages.pfos-ref .pkg-card.popular .pkg-head,
.pfos-ref#pfos-packages .pkg-card.popular .pkg-head {
  padding-top: 44px;
}
#pfos-packages.pfos-ref .pkg-alias,
.pfos-ref#pfos-packages .pkg-alias {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 8px;
  opacity: 0.95;
}
#pfos-packages.pfos-ref .pkg-name,
.pfos-ref#pfos-packages .pkg-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 0 4px;
}
#pfos-packages.pfos-ref .pkg-power,
.pfos-ref#pfos-packages .pkg-power {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}
#pfos-packages.pfos-ref .pkg-power-lbl,
.pfos-ref#pfos-packages .pkg-power-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}
#pfos-packages.pfos-ref .pkg-appliances,
.pfos-ref#pfos-packages .pkg-appliances {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
#pfos-packages.pfos-ref .pkg-body,
.pfos-ref#pfos-packages .pkg-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#pfos-packages.pfos-ref .pkg-features,
.pfos-ref#pfos-packages .pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 0;
  padding: 0;
  flex: 1 1 auto;
}
#pfos-packages.pfos-ref .pkg-features li,
.pfos-ref#pfos-packages .pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--text);
}
#pfos-packages.pfos-ref .pkg-check,
.pfos-ref#pfos-packages .pkg-check {
  color: var(--green);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
#pfos-packages.pfos-ref .pkg-price,
.pfos-ref#pfos-packages .pkg-price {
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  background: var(--offwhite);
  border: 1px solid rgba(0, 35, 71, 0.08);
  margin-top: auto;
  margin-bottom: 18px;
}
#pfos-packages.pfos-ref .pkg-price-val,
.pfos-ref#pfos-packages .pkg-price-val {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}
#pfos-packages.pfos-ref .pkg-price-note,
.pfos-ref#pfos-packages .pkg-price-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
#pfos-packages.pfos-ref .pkg-cta,
.pfos-ref#pfos-packages .pkg-cta {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
#pfos-packages.pfos-ref .pkg-cta-primary,
.pfos-ref#pfos-packages .pkg-cta-primary {
  background: var(--yellow);
  color: var(--navy-dk);
  box-shadow: 0 4px 16px rgba(251, 182, 16, 0.35);
}
#pfos-packages.pfos-ref .pkg-cta-primary:hover,
.pfos-ref#pfos-packages .pkg-cta-primary:hover {
  background: var(--yellow-dk);
}
#pfos-packages.pfos-ref .pkg-cta-secondary,
.pfos-ref#pfos-packages .pkg-cta-secondary {
  background: var(--navy);
  color: var(--white);
}
#pfos-packages.pfos-ref .pkg-cta-secondary:hover,
.pfos-ref#pfos-packages .pkg-cta-secondary:hover {
  background: var(--navy-lt);
}
#pfos-packages.pfos-ref .pkg-more,
.pfos-ref#pfos-packages .pkg-more {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  background: rgba(0, 35, 71, 0.05);
  border: 1px dashed rgba(0, 35, 71, 0.2);
  font-size: 0.93rem;
  color: var(--muted);
}
#pfos-packages.pfos-ref .pkg-more a,
.pfos-ref#pfos-packages .pkg-more a {
  color: var(--blue);
  font-weight: 700;
}

#pfos-packages.pfos-ref .pkg-grid > p.pfos-packages-empty-msg,
.pfos-ref#pfos-packages .pkg-grid > p.pfos-packages-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

#pfos-packages.pfos-ref #pfos-packages-load-more,
.pfos-ref#pfos-packages #pfos-packages-load-more {
  cursor: pointer;
  font-family: inherit;
}
#pfos-packages.pfos-ref #pfos-packages-load-more:hover,
.pfos-ref#pfos-packages #pfos-packages-load-more:hover {
  border-color: var(--yellow) !important;
}

/* -------------------------------------------------------------------------
   Testimonials: glass cards on navy when #pfos-testimonials.pfos-ref
------------------------------------------------------------------------- */
#pfos-testimonials.pfos-ref,
.pfos-ref#pfos-testimonials {
  padding: clamp(72px, 10vw, 100px) 24px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#pfos-testimonials.pfos-ref::before,
.pfos-ref#pfos-testimonials::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(251, 182, 16, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}
#pfos-testimonials.pfos-ref .testi-grid,
.pfos-ref#pfos-testimonials .testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
#pfos-testimonials.pfos-ref .testi-card,
.pfos-ref#pfos-testimonials .testi-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.2s, background 0.2s;
}
#pfos-testimonials.pfos-ref .testi-card:hover,
.pfos-ref#pfos-testimonials .testi-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}
#pfos-testimonials.pfos-ref .testi-stars,
.pfos-ref#pfos-testimonials .testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
#pfos-testimonials.pfos-ref .testi-quote,
.pfos-ref#pfos-testimonials .testi-quote {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
#pfos-testimonials.pfos-ref .testi-quote::before,
.pfos-ref#pfos-testimonials .testi-quote::before {
  content: "\201C";
  font-size: 1.4rem;
  color: var(--yellow);
  vertical-align: -0.2em;
}
#pfos-testimonials.pfos-ref .testi-quote::after,
.pfos-ref#pfos-testimonials .testi-quote::after {
  content: "\201D";
  font-size: 1.4rem;
  color: var(--yellow);
  vertical-align: -0.2em;
}
#pfos-testimonials.pfos-ref .testi-author,
.pfos-ref#pfos-testimonials .testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
#pfos-testimonials.pfos-ref .testi-avatar,
.pfos-ref#pfos-testimonials .testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--navy-dk);
  flex-shrink: 0;
}
#pfos-testimonials.pfos-ref .testi-name,
.pfos-ref#pfos-testimonials .testi-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
}
#pfos-testimonials.pfos-ref .testi-role,
.pfos-ref#pfos-testimonials .testi-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
#pfos-testimonials.pfos-ref .testi-cta-row,
.pfos-ref#pfos-testimonials .testi-cta-row {
  text-align: center;
  margin-top: 44px;
}
#pfos-testimonials.pfos-ref .testi-note,
.pfos-ref#pfos-testimonials .testi-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* -------------------------------------------------------------------------
   Academy CTA (page_1 shell): #pfos-academy or #pfos-academy-cta + .pfos-ref
------------------------------------------------------------------------- */
/* Same outer band as #pfos-packages (off-white); vertical rhythm matches page_1.html #pfos-academy */
#pfos-academy.pfos-ref,
#pfos-academy-cta.pfos-ref,
.pfos-ref#pfos-academy,
.pfos-ref#pfos-academy-cta {
  background: var(--offwhite);
  /* Space before projects is handled by #pfos-projects padding so bands don’t visually merge */
  margin-bottom: 0;
  padding-top: clamp(72px, 10vw, 100px);
  padding-bottom: clamp(112px, 16vw, 160px);
  border-bottom: 1px solid rgba(0, 46, 93, 0.1);
}
#pfos-academy.pfos-ref .academy-inner,
#pfos-academy-cta.pfos-ref .academy-inner,
.pfos-ref#pfos-academy .academy-inner,
.pfos-ref#pfos-academy-cta .academy-inner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 700px) {
  #pfos-academy.pfos-ref .academy-inner,
  #pfos-academy-cta.pfos-ref .academy-inner,
  .pfos-ref#pfos-academy .academy-inner,
  .pfos-ref#pfos-academy-cta .academy-inner {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    text-align: center;
    align-items: stretch;
    justify-items: stretch;
  }
  /* page_1.html order: intro + CTAs first, feature list second */
  #pfos-academy.pfos-ref .academy-content,
  #pfos-academy-cta.pfos-ref .academy-content,
  .pfos-ref#pfos-academy .academy-content,
  .pfos-ref#pfos-academy-cta .academy-content {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #pfos-academy.pfos-ref .academy-features,
  #pfos-academy-cta.pfos-ref .academy-features,
  .pfos-ref#pfos-academy .academy-features,
  .pfos-ref#pfos-academy-cta .academy-features {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
#pfos-academy.pfos-ref .academy-inner::before,
#pfos-academy-cta.pfos-ref .academy-inner::before,
.pfos-ref#pfos-academy .academy-inner::before,
.pfos-ref#pfos-academy-cta .academy-inner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(251, 182, 16, 0.14) 0%,
    transparent 65%
  );
}
#pfos-academy.pfos-ref .academy-content,
#pfos-academy-cta.pfos-ref .academy-content,
.pfos-ref#pfos-academy .academy-content,
.pfos-ref#pfos-academy-cta .academy-content {
  position: relative;
  z-index: 1;
}
#pfos-academy.pfos-ref .academy-h2,
#pfos-academy-cta.pfos-ref .academy-h2,
.pfos-ref#pfos-academy .academy-h2,
.pfos-ref#pfos-academy-cta .academy-h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
#pfos-academy.pfos-ref .academy-h2 span,
#pfos-academy-cta.pfos-ref .academy-h2 span,
.pfos-ref#pfos-academy .academy-h2 span,
.pfos-ref#pfos-academy-cta .academy-h2 span {
  color: var(--yellow);
}
#pfos-academy.pfos-ref .academy-p,
#pfos-academy-cta.pfos-ref .academy-p,
.pfos-ref#pfos-academy .academy-p,
.pfos-ref#pfos-academy-cta .academy-p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 24px;
}
#pfos-academy.pfos-ref .academy-content .hero-btns,
#pfos-academy-cta.pfos-ref .academy-content .hero-btns,
.pfos-ref#pfos-academy .academy-content .hero-btns,
.pfos-ref#pfos-academy-cta .academy-content .hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 700px) {
  #pfos-academy.pfos-ref .academy-content .hero-btns,
  #pfos-academy-cta.pfos-ref .academy-content .hero-btns,
  .pfos-ref#pfos-academy .academy-content .hero-btns,
  .pfos-ref#pfos-academy-cta .academy-content .hero-btns {
    justify-content: center;
  }
  #pfos-academy.pfos-ref .af-item,
  #pfos-academy-cta.pfos-ref .af-item,
  .pfos-ref#pfos-academy .af-item,
  .pfos-ref#pfos-academy-cta .af-item {
    text-align: left;
  }
}
#pfos-academy.pfos-ref .academy-features,
#pfos-academy-cta.pfos-ref .academy-features,
.pfos-ref#pfos-academy .academy-features,
.pfos-ref#pfos-academy-cta .academy-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
#pfos-academy.pfos-ref .af-item,
#pfos-academy-cta.pfos-ref .af-item,
.pfos-ref#pfos-academy .af-item,
.pfos-ref#pfos-academy-cta .af-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
#pfos-academy.pfos-ref .af-icon,
#pfos-academy-cta.pfos-ref .af-icon,
.pfos-ref#pfos-academy .af-icon,
.pfos-ref#pfos-academy-cta .af-icon {
  font-size: 22px;
  flex-shrink: 0;
}
#pfos-academy.pfos-ref .af-title,
#pfos-academy-cta.pfos-ref .af-title,
.pfos-ref#pfos-academy .af-title,
.pfos-ref#pfos-academy-cta .af-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 2px;
}
#pfos-academy.pfos-ref .af-desc,
#pfos-academy-cta.pfos-ref .af-desc,
.pfos-ref#pfos-academy .af-desc,
.pfos-ref#pfos-academy-cta .af-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   About (page_1): copy + value cards; visual uses photo on homepage
------------------------------------------------------------------------- */
.pfos-ref .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .pfos-ref .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.pfos-ref .about-visual {
  position: relative;
}

.pfos-ref .about-img-box {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pfos-ref .about-img-inner {
  text-align: center;
  padding: 32px;
}

.pfos-ref .about-img-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.pfos-ref .about-img-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0.7;
}

.pfos-ref .about-badge-float {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 4px solid var(--yellow);
}

@media (max-width: 900px) {
  .pfos-ref .about-badge-float {
    display: none;
  }
}

.pfos-ref .abf-val {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.pfos-ref .abf-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.pfos-ref .about-h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.pfos-ref .about-h2 span {
  color: var(--blue);
}

.pfos-ref .about-p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.pfos-ref .about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 520px) {
  .pfos-ref .about-values {
    grid-template-columns: 1fr;
  }
}

.pfos-ref .av-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(0, 35, 71, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pfos-ref .av-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pfos-ref .av-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.pfos-ref .av-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.pfos-ref .av-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Index: team photo as left panel: match right column height, cover + centred caption */
.pfos-about-standalone .about-grid {
  align-items: stretch;
}

.pfos-about-standalone .about-visual {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

.pfos-about-standalone .about-content {
  align-self: stretch;
}

.pfos-about-standalone .wrap {
  max-width: 1400px;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}

/* Index: team photo as left panel (not purple-only gradient) */
.pfos-about-standalone .about-img-box {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background-image: linear-gradient(
      rgba(0, 35, 71, 0.28),
      rgba(0, 35, 71, 0.38)
    ),
    url(../images/about.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
}

.pfos-about-standalone .about-img-icon {
  display: none;
}

.pfos-about-standalone .about-img-inner {
  padding: 1.25rem;
  width: 100%;
  max-width: 24rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pfos-about-standalone .about-img-text {
  opacity: 1;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* Match site chrome (html bg #002347): not the standalone mockup off-white card */
.pfos-about-standalone.pfos-ref {
  padding: clamp(48px, 7vw, 80px) clamp(16px, 4vw, 32px);
  border-radius: 0;
  background: #002347;
  border: none;
  box-shadow: none;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
}

.pfos-about-standalone.pfos-ref .about-h2 {
  color: #fff;
}

.pfos-about-standalone.pfos-ref .about-h2 span {
  color: #fbb610;
}

.pfos-about-standalone.pfos-ref .about-p {
  color: #c7d8eb;
}

.pfos-about-standalone.pfos-ref .about-youth-shout {
  margin: 0.35rem 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 900;
  color: #fbb610;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.pfos-about-standalone.pfos-ref .about-youth-shout-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(251, 182, 16, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.pfos-about-standalone.pfos-ref .about-youth-shout-link:hover {
  color: #ffd45c;
  border-bottom-color: rgba(251, 182, 16, 0.85);
}

.pfos-about-standalone.pfos-ref .badge.badge-navy {
  background: rgba(255, 255, 255, 0.08);
  color: #fbb610;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.pfos-about-standalone.pfos-ref .av-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.pfos-about-standalone.pfos-ref .av-item:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.pfos-about-standalone.pfos-ref .av-title {
  color: #fbb610;
}

.pfos-about-standalone.pfos-ref .av-desc {
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 901px) {
  .pfos-about-standalone .about-img-box {
    min-height: 100%;
  }
}

@media (max-width: 900px) {
  .pfos-about-standalone .about-visual {
    min-height: 22rem;
  }

  .pfos-about-standalone .about-img-box {
    min-height: 22rem;
  }
}
