/*
Theme Name:   Bold Purpose Media (Astra Child)
Theme URI:    https://www.boldpurposemedia.co.uk/
Description:  Child theme for Bold Purpose Media. Holds the custom Home, About, Our Work and Why Video page templates so Astra updates can never delete them again.
Author:       Bold Purpose Media
Template:     astra
Version:      1.1.0
Text Domain:  bpm-child
*/

/* ---------- Brand tokens ---------- */
.bpm {
  --navy: #0a1d3d;
  --gold: #d4a017;
  --gold-dark: #b8890f;
  --gold-soft: #efc462;
  --mist: #f7f8fa;
  --line: #e8edf4;
  --line-2: #dde3ec;
  --max: 1120px;
  --body-font: 'League Spartan', system-ui, sans-serif;
  --head-font: 'Poppins', system-ui, sans-serif;
}

.bpm, .bpm * { box-sizing: border-box; }
body.bpm {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
:where(.bpm) :where(h1, h2, h3, h4, p, ul, figure, blockquote) { margin: 0; padding: 0; }
:where(.bpm) img { max-width: 100%; height: auto; display: block; }
.bpm a { color: inherit; }

.bp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.bp-narrow { max-width: 760px; }

/* ---------- Header ---------- */
.bp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.bp-header .bp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.bp-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--head-font); font-size: 18px; font-weight: 600; color: var(--navy); letter-spacing: -0.2px; white-space: nowrap; }
.bp-logo img { width: 34px; height: 34px; }
.bp-logo em { font-style: normal; color: var(--gold); }
.bp-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.bp-menu a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--navy); opacity: 0.8; }
.bp-menu a:hover, .bp-menu a[aria-current="page"] { opacity: 1; color: var(--gold-dark); }
.bp-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--navy); }
.bp-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .bp-toggle { display: block; }
  .bp-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .bp-nav.is-open { display: block; }
  .bp-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.5rem 1.25rem; }
  .bp-menu li { border-top: 1px solid var(--line); }
  .bp-menu a { display: block; padding: 0.9rem 0; }
  .bp-menu .bp-btn { margin-top: 1rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.bp-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy) !important;
  opacity: 1 !important;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.bp-btn:hover { background: var(--gold-dark); }
.bp-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7); }
.bp-btn--ghost:hover { background: rgba(255,255,255,0.12); }
.bp-btn--navy-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.bp-btn--navy-ghost:hover { background: var(--mist); }
.bp-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Type ---------- */
.bp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.bp-h1 { font-family: var(--head-font); font-size: clamp(32px, 5vw, 52px); font-weight: 600; line-height: 1.12; letter-spacing: -0.8px; margin-bottom: 1.25rem; }
.bp-h2 { font-family: var(--head-font); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.4px; margin-bottom: 1rem; }
.bp-h3 { font-family: var(--head-font); font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; }
.bp-lead { font-size: 19px; line-height: 1.7; opacity: 0.78; max-width: 620px; margin-bottom: 2rem; }
.bp-body { font-size: 17px; line-height: 1.8; opacity: 0.8; }
.bp-body + .bp-body { margin-top: 1rem; }
.bp-rule { width: 44px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.5rem; }

/* ---------- Sections ---------- */
.bp-section { padding: 6rem 0; }
.bp-section--mist { background: var(--mist); }
.bp-section--navy { background: var(--navy); color: #fff; }
.bp-section--navy .bp-body, .bp-section--navy .bp-lead { opacity: 0.8; }
.bp-section-head { max-width: 680px; margin-bottom: 3rem; }
@media (max-width: 700px) { .bp-section { padding: 4rem 0; } }

/* ---------- Hero ---------- */
.bp-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: min(88vh, 760px); display: flex; align-items: center; }
.bp-hero-media { position: absolute; inset: 0; }
.bp-hero-media video, .bp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.bp-hero-media iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%) scale(1.35); border: 0; pointer-events: none; } /* scaled up so YouTube's title bar and logo sit outside the visible area */
.bp-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,29,61,0.92) 0%, rgba(10,29,61,0.72) 50%, rgba(10,29,61,0.35) 100%); }
.bp-hero .bp-wrap { position: relative; z-index: 2; width: 100%; padding-top: 5rem; padding-bottom: 5rem; }
.bp-hero .bp-h1 { max-width: 760px; }
.bp-hero .bp-lead { opacity: 0.85; }

.bp-page-hero { padding: 6rem 0 4rem; border-bottom: 1px solid var(--line); }
.bp-page-hero .bp-h1 { max-width: 780px; }

/* ---------- Logo strip ---------- */
.bp-logos { padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.bp-logos .bp-wrap { display: flex; align-items: center; justify-content: center; gap: 3.5rem; flex-wrap: wrap; }
.bp-logos-label { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; opacity: 0.55; }
.bp-logos img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: all 0.2s; }
.bp-logos img:hover { filter: none; opacity: 1; }
.bp-logos img.bp-logo-wide { height: 52px; }

/* ---------- Steps ---------- */
.bp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.bp-step { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 2rem 1.75rem; position: relative; }
.bp-step-num { font-family: var(--head-font); font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 1rem; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(212,160,23,0.12); }
.bp-step p { font-size: 16px; line-height: 1.7; opacity: 0.75; }
@media (max-width: 820px) { .bp-steps { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.bp-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.bp-service { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: 12px; padding: 1.75rem 1.75rem 1.6rem; background: #fff; }
.bp-service p { font-size: 16px; line-height: 1.7; opacity: 0.75; }
@media (max-width: 760px) { .bp-services { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.bp-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bp-stat { border: 1px solid var(--line-2); border-radius: 12px; padding: 1.75rem 1.5rem 1.5rem; position: relative; overflow: hidden; background: #fff; }
.bp-stat::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--navy); }
.bp-stat-num { font-family: var(--head-font); font-size: 46px; font-weight: 600; line-height: 1; margin-bottom: 0.75rem; }
.bp-stat-num em { font-style: normal; color: var(--gold); }
.bp-stat-label { font-size: 16px; line-height: 1.55; opacity: 0.72; margin-bottom: 1rem; }
.bp-stat-source { font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px; color: var(--gold-dark); text-decoration: none; }
.bp-stat-source:hover { text-decoration: underline; }
@media (max-width: 820px) { .bp-stats-grid { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.bp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bp-split--reverse .bp-split-media { order: 2; }
.bp-split-media img { width: 100%; border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
.bp-split-media--wide img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .bp-split { grid-template-columns: 1fr; gap: 2.5rem; } .bp-split--reverse .bp-split-media { order: 0; } }

/* ---------- Points ---------- */
.bp-points { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; }
.bp-points li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 17px; line-height: 1.65; }
.bp-points li span:last-child { opacity: 0.82; }
.bp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 10px; }

/* ---------- Quote ---------- */
.bp-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.bp-quote blockquote { font-family: var(--head-font); font-size: clamp(22px, 2.8vw, 30px); font-weight: 500; line-height: 1.45; letter-spacing: -0.2px; }
.bp-quote blockquote::before { content: '\201C'; display: block; font-size: 72px; line-height: 0.6; color: var(--gold); margin-bottom: 1rem; }
.bp-quote cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }

/* ---------- Callout ---------- */
.bp-callout { background: var(--navy); color: #fff; border-radius: 14px; padding: 3rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.bp-callout-q { font-family: var(--head-font); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.3; max-width: 560px; }
.bp-callout-body { font-size: 16.5px; line-height: 1.75; opacity: 0.78; margin-top: 0.6rem; max-width: 560px; }

/* ---------- Projects ---------- */
.bp-project { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.bp-project:last-of-type { border-bottom: 0; }
.bp-project-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; }
.bp-project-head img { height: 44px; width: auto; }
.bp-project-tag { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.bp-project-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 3.5rem; align-items: start; }
.bp-videos { display: grid; gap: 1.25rem; }
@media (max-width: 900px) { .bp-project-grid { grid-template-columns: 1fr; gap: 2rem; } }

.bp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy); }
.bp-video iframe, .bp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bp-video--empty { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 15px; background: linear-gradient(135deg, var(--navy), #13305f); }
.bp-video--empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22%; opacity: 0.18; }

/* ---------- Footer ---------- */
.bp-footer { background: var(--navy); color: #fff; padding: 4rem 0 2rem; }
.bp-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.bp-footer .bp-logo { color: #fff; margin-bottom: 1rem; }
.bp-footer p, .bp-footer li { font-size: 15.5px; line-height: 1.8; opacity: 0.75; }
.bp-footer ul { list-style: none; }
.bp-footer a { text-decoration: none; }
.bp-footer a:hover { color: var(--gold-soft); }
.bp-footer h4 { margin: 0 0 0.85rem; font-family: var(--head-font); font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.bp-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; font-size: 14px; opacity: 0.6; }
@media (max-width: 760px) { .bp-footer-top { grid-template-columns: 1fr; gap: 2rem; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
