/* Breaking Free marketing styles — education-first brand layer */
:root {
  --bf-navy: #0b1224;
  --bf-navy-2: #14192d;
  --bf-black: #05070d;
  --bf-orange: #f07a1a;
  --bf-gold: #e8b84a;
  --bf-white: #ffffff;
  --bf-muted: rgba(255, 255, 255, 0.78);
  --bf-card: rgba(255, 255, 255, 0.04);
  --bf-border: rgba(255, 255, 255, 0.1);
  --bf-cyan: #18fef5;
  --bf-radius: 18px;
  --bf-max: 1140px;
}

.bf-page {
  background: var(--bf-navy-2);
  color: var(--bf-muted);
  font-family: "Exo", system-ui, sans-serif;
}

.bf-page h1,
.bf-page h2,
.bf-page h3,
.bf-page h4 {
  color: var(--bf-white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bf-wrap {
  width: min(100% - 2rem, var(--bf-max));
  margin-inline: auto;
}

.bf-eyebrow {
  display: inline-block;
  color: var(--bf-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.bf-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 46rem;
}

.bf-strap {
  color: var(--bf-orange);
  font-weight: 700;
  margin-top: 1rem;
}

.bf-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.bf-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
  color: #fff;
}

.bf-btn-primary {
  background: linear-gradient(90deg, var(--bf-orange), #d4550a);
  color: #fff !important;
}

.bf-btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.bf-btn-ghost {
  background: rgba(24, 254, 245, 0.08);
  border-color: rgba(24, 254, 245, 0.35);
  color: #fff !important;
}

.bf-section {
  padding: 4.5rem 0;
}

.bf-section-alt {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent);
}

.bf-hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background:
    linear-gradient(105deg, rgba(5, 7, 13, 0.92) 0%, rgba(11, 18, 36, 0.72) 48%, rgba(11, 18, 36, 0.45) 100%),
    url("/assets/img/bg/home-bg.png") center/cover no-repeat;
  overflow: hidden;
}

.bf-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 0.35rem;
}

.bf-hero .bf-subhead {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: var(--bf-gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.bf-grid {
  display: grid;
  gap: 1.25rem;
}

.bf-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bf-card {
  background: var(--bf-card);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius);
  padding: 1.4rem 1.35rem;
  height: 100%;
}

.bf-card h3,
.bf-card h4 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.bf-card p {
  margin: 0;
  line-height: 1.65;
}

.bf-step {
  counter-increment: bfstep;
  position: relative;
  padding-left: 3.2rem;
}

.bf-step::before {
  content: counter(bfstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bf-orange), var(--bf-gold));
  color: #111;
  font-weight: 800;
}

.bf-steps {
  counter-reset: bfstep;
  display: grid;
  gap: 1.25rem;
}

.bf-pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-quote {
  border-left: 3px solid var(--bf-orange);
  padding: 0.25rem 0 0.25rem 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.bf-disclaimer {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(232, 184, 74, 0.45);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: rgba(232, 184, 74, 0.06);
}

.bf-media {
  border-radius: var(--bf-radius);
  overflow: hidden;
  border: 1px solid var(--bf-border);
  background: #000;
}

.bf-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bf-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.bf-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bf-flipbook-frame {
  position: relative;
  min-height: 420px;
  aspect-ratio: 3 / 4;
  background: #000;
}

.bf-flipbook-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 991px) {
  .bf-flipbook-frame {
    min-height: 360px;
    aspect-ratio: 4 / 5;
  }
}

.bf-phone-shot {
  background: #000;
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
}

.bf-phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.bf-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bf-shot-card {
  margin: 0;
}

.bf-shot-card .bf-phone-shot {
  /* Half the default phone mock size used elsewhere (320px → 160px) */
  max-width: 160px;
  width: 100%;
}

.bf-shot-card figcaption {
  margin-top: 0.65rem;
  text-align: center;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 991px) {
  .bf-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .bf-shot-grid {
    grid-template-columns: 1fr;
  }
}

.bf-pathway {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.bf-pathway span {
  background: rgba(240, 122, 26, 0.12);
  border: 1px solid rgba(240, 122, 26, 0.35);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.bf-pathway i {
  color: var(--bf-gold);
  font-style: normal;
}

.bf-cta-band {
  background: linear-gradient(120deg, #1a0f08, #0b1224 55%, #122038);
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
  padding: 3.5rem 0;
  text-align: center;
}

.bf-cta-band h2 {
  margin-bottom: 0.75rem;
}

.bf-cta-band .bf-btn-row {
  justify-content: center;
}

.bf-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.bf-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

.bf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--bf-orange);
}

.bf-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.bf-author-card .bf-media {
  margin-bottom: 1rem;
  aspect-ratio: 4 / 5;
}

.bf-author-card .bf-media img {
  height: 100%;
  object-fit: cover;
}

.bf-placeholder {
  font-size: 0.85rem;
  color: var(--bf-gold);
  margin-top: 0.5rem;
}

/* Header / footer brand tweaks */
#navigation.site-navigation.bf-nav {
  background: rgba(11, 18, 36, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bf-border);
}

#navigation.bf-nav #main-menu ul li a:hover,
#navigation.bf-nav #main-menu ul li a:focus {
  color: var(--bf-orange) !important;
}

.bf-footer {
  background: var(--bf-black);
  color: var(--bf-muted);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--bf-border);
}

.bf-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.bf-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bf-footer li {
  margin-bottom: 0.45rem;
}

.bf-footer a {
  color: var(--bf-muted);
  text-decoration: none;
}

.bf-footer a:hover {
  color: var(--bf-gold);
}

.bf-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 1.5rem;
}

.bf-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bf-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .bf-grid-2,
  .bf-grid-3,
  .bf-grid-5,
  .bf-pillars,
  .bf-two-col,
  .bf-footer-grid {
    grid-template-columns: 1fr;
  }

  .bf-hero {
    min-height: auto;
    padding-top: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-btn {
    transition: none;
  }
}

.bf-btn:focus-visible,
.bf-footer a:focus-visible,
#navigation a:focus-visible,
.bf-edition-trigger:focus-visible,
.bf-flipbook-close:focus-visible {
  outline: 2px solid var(--bf-gold);
  outline-offset: 3px;
}

.bf-edition-trigger {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.bf-edition-trigger:hover {
  border-color: rgba(232, 184, 74, 0.45);
}

.bf-flipbook-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(4px);
}

.bf-flipbook-dialog {
  width: min(100%, 920px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--bf-navy);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.bf-flipbook-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--bf-border);
  background: rgba(255, 255, 255, 0.03);
}

.bf-flipbook-dialog-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.bf-flipbook-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--bf-border);
  border-radius: 999px;
  background: transparent;
  color: var(--bf-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.bf-flipbook-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bf-flipbook-dialog-body {
  position: relative;
  flex: 1;
  min-height: min(72vh, 720px);
  background: #000;
}

.bf-flipbook-dialog-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

@media (max-width: 767px) {
  .bf-flipbook-dialog {
    width: 100%;
    max-height: 94vh;
  }

  .bf-flipbook-dialog-body {
    min-height: min(70vh, 560px);
  }
}
