/* =========================================================
   WILDPACK ABOUT BLOCKS - FRONTEND STYLES
   All blocks are scoped under .wpa-scope to prevent
   GeneratePress theme styles from bleeding in.
   ========================================================= */

/* ---------- RESET / SCOPE ---------- */
.wpa-scope,
.wpa-scope * {
  box-sizing: border-box;
}

.wpa-scope {
  --wpa-forest: #1e3b28;
  --wpa-forest-deep: #152a1c;
  --wpa-forest-soft: #2a4b37;
  --wpa-orange: #c76b2b;
  --wpa-orange-soft: #d98348;
  --wpa-charcoal: #1a1a1a;
  --wpa-slate: #6b6b6b;
  --wpa-stone: #e8e4db;
  --wpa-off-white: #faf7f0;
  --wpa-cream: #f5efe3;

  font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--wpa-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Break out of any constrained parent container (e.g. GeneratePress .site-content).
     Uses the margin-left: calc(50% - 50vw) trick which centres a 100vw element
     relative to its parent, regardless of the parent's width or padding. */
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  left: 0;
  right: 0;
  overflow-x: clip;
}

/* Fallback for browsers without `overflow: clip` support (older Safari) */
@supports not (overflow: clip) {
  .wpa-scope {
    overflow-x: hidden;
  }
}

/* GP resets — reset margin/padding on our elements only */
.wpa-scope h1,
.wpa-scope h2,
.wpa-scope h3,
.wpa-scope h4,
.wpa-scope p,
.wpa-scope ul,
.wpa-scope ol,
.wpa-scope li,
.wpa-scope figure,
.wpa-scope blockquote {
  margin: 0;
  padding: 0;
}

.wpa-scope h1,
.wpa-scope h2,
.wpa-scope h3,
.wpa-scope h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--wpa-forest);
  letter-spacing: -0.02em;
}

.wpa-scope p {
  font-family: 'Albert Sans', sans-serif;
  color: inherit;
}

.wpa-scope a {
  color: var(--wpa-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wpa-scope img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wpa-scope ul {
  list-style: none;
}

/* Orange accent word (inline element, not italic) */
.wpa-scope .wpa-accent {
  color: var(--wpa-orange);
  font-style: normal;
}

/* =========================================================
   HERO BLOCK
   ========================================================= */
.wpa-hero {
  background: var(--wpa-forest);
  color: #ffffff;
  padding: 5rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.wpa-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(199, 107, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wpa-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.wpa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--wpa-orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-family: 'Albert Sans', sans-serif;
}

.wpa-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--wpa-orange);
}

.wpa-hero h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}

.wpa-hero__lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.wpa-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.wpa-stat__num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.wpa-stat__num .wpa-accent {
  color: var(--wpa-orange);
}

.wpa-stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Hero collage */
.wpa-collage {
  position: relative;
  height: 560px;
}

.wpa-collage__item {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  background-size: cover;
  background-position: center;
  background-color: var(--wpa-forest-soft);
}

.wpa-collage__item--1 {
  top: 0;
  left: 0;
  width: 55%;
  height: 55%;
  z-index: 2;
}

.wpa-collage__item--2 {
  top: 8%;
  right: 0;
  width: 42%;
  height: 42%;
  z-index: 3;
}

.wpa-collage__item--3 {
  bottom: 0;
  left: 12%;
  width: 48%;
  height: 45%;
  z-index: 3;
}

.wpa-collage__item--4 {
  bottom: 4%;
  right: 4%;
  width: 45%;
  height: 48%;
  z-index: 2;
}

/* =========================================================
   STORY BLOCK
   ========================================================= */
.wpa-story {
  background: var(--wpa-off-white);
  padding: 7rem 2rem;
}

.wpa-story__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.wpa-story h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 0;
}

.wpa-story__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--wpa-charcoal);
}

.wpa-story__body p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.wpa-story__body p:last-child {
  margin-bottom: 0;
}

.wpa-story__body strong {
  color: var(--wpa-forest);
  font-weight: 700;
}

/* =========================================================
   PRINCIPLES BLOCK
   ========================================================= */
.wpa-principles {
  background: var(--wpa-forest);
  color: #ffffff;
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}

.wpa-principles::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(199, 107, 43, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.wpa-principles__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.wpa-principles__head {
  max-width: 680px;
  margin-bottom: 4rem;
}

.wpa-principles h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
}

.wpa-principles__sub {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1.5;
}

.wpa-principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.wpa-principle {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.25s ease;
}

.wpa-principle:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(199, 107, 43, 0.3);
  transform: translateY(-2px);
}

.wpa-principle__num {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wpa-orange);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.wpa-principle h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.wpa-principle p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   QUOTE BLOCK
   ========================================================= */
.wpa-quote {
  background: var(--wpa-cream);
  padding: 7rem 2rem;
  position: relative;
}

.wpa-quote__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.wpa-quote__photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(30, 59, 40, 0.2);
  position: relative;
  background-color: var(--wpa-forest-soft);
}

.wpa-quote__photo::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: var(--wpa-orange);
  border-radius: 8px;
  z-index: -1;
}

.wpa-quote__content {
  position: relative;
}

.wpa-quote__mark {
  font-family: 'Sora', sans-serif;
  font-size: 5rem;
  color: var(--wpa-orange);
  line-height: 0.5;
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 700;
}

.wpa-quote__text {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.4;
  color: var(--wpa-forest);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.wpa-quote__text .wpa-accent {
  color: var(--wpa-orange);
}

.wpa-quote__attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wpa-quote__line {
  width: 40px;
  height: 2px;
  background: var(--wpa-orange);
  flex-shrink: 0;
}

.wpa-quote__attr {
  font-size: 0.95rem;
  color: var(--wpa-slate);
}

.wpa-quote__attr strong {
  color: var(--wpa-forest);
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

/* =========================================================
   CTA BLOCK
   ========================================================= */
.wpa-cta {
  background: var(--wpa-off-white);
  padding: 6rem 2rem;
}

.wpa-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--wpa-forest);
  border-radius: 16px;
  padding: 4rem 3.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.wpa-cta__inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(199, 107, 43, 0.15) 0%, transparent 70%);
}

.wpa-cta__content {
  position: relative;
  z-index: 1;
}

.wpa-cta h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.wpa-cta h2 .wpa-accent {
  color: var(--wpa-orange);
}

.wpa-cta__lede {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.55;
}

.wpa-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.wpa-btn {
  padding: 1.1rem 1.75rem;
  border-radius: 999px;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  text-align: center;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
}

.wpa-btn--primary {
  background: var(--wpa-orange);
  color: #ffffff !important;
}

.wpa-btn--primary:hover {
  background: var(--wpa-orange-soft);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.wpa-btn--secondary {
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.wpa-btn--secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #ffffff !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .wpa-hero {
    padding: 4rem 1.5rem;
  }
  .wpa-hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .wpa-collage {
    height: 420px;
  }
  .wpa-hero__stats {
    gap: 1.5rem;
  }
  .wpa-stat__num {
    font-size: 1.75rem;
  }

  .wpa-story {
    padding: 5rem 1.5rem;
  }
  .wpa-story__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wpa-principles {
    padding: 5rem 1.5rem;
  }
  .wpa-principles__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wpa-quote {
    padding: 5rem 1.5rem;
  }
  .wpa-quote__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .wpa-quote__photo {
    max-width: 360px;
  }

  .wpa-cta {
    padding: 4rem 1.5rem;
  }
  .wpa-cta__inner {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .wpa-hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .wpa-hero__stats .wpa-stat:nth-child(3) {
    grid-column: span 2;
  }
  .wpa-collage {
    height: 380px;
  }
}

/* =========================================================
   GENERATEPRESS OVERRIDES
   Force full-width breakout AND lock text colours.
   GP applies color to .entry-content p, h1-h6, etc. with
   higher specificity than our base styles. We use the
   .wpa-scope ancestor + element selector to beat it.
   ========================================================= */

/* Zero out GP's default block spacing so our sections sit flush.
   GP adds margin-bottom to direct children of .entry-content which
   creates visible white gaps between our forest-green sections. */
.entry-content > .wp-block-wildpack-about-hero,
.entry-content > .wp-block-wildpack-about-story,
.entry-content > .wp-block-wildpack-about-principles,
.entry-content > .wp-block-wildpack-about-quote,
.entry-content > .wp-block-wildpack-about-cta,
.entry-content .wpa-scope,
.entry-content > [class*="wp-block-wildpack-about"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Also kill margin on the block wrapper div that Gutenberg adds */
.wp-block-wildpack-about-hero,
.wp-block-wildpack-about-story,
.wp-block-wildpack-about-principles,
.wp-block-wildpack-about-quote,
.wp-block-wildpack-about-cta {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.site-content .wpa-scope,
.content-area .wpa-scope,
.inside-article .wpa-scope,
.entry-content .wpa-scope,
article.page .wpa-scope,
.wp-site-blocks .wpa-scope {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  position: relative !important;
}

/* ---- HERO colour locks ---- */
.wpa-scope .wpa-hero h1,
.wpa-scope .wpa-hero .wpa-stat__num {
  color: #ffffff !important;
}
.wpa-scope .wpa-hero .wpa-accent,
.wpa-scope .wpa-hero h1 .wpa-accent,
.wpa-scope .wpa-hero .wpa-stat__num .wpa-accent,
.wpa-scope .wpa-eyebrow {
  color: var(--wpa-orange) !important;
}
.wpa-scope .wpa-hero__lede {
  color: rgba(255,255,255,0.82) !important;
}
.wpa-scope .wpa-hero .wpa-stat__label {
  color: rgba(255,255,255,0.6) !important;
}

/* ---- PRINCIPLES colour locks ---- */
.wpa-scope .wpa-principles h2,
.wpa-scope .wpa-principles .wpa-principle h3 {
  color: #ffffff !important;
}
.wpa-scope .wpa-principles h2 .wpa-accent,
.wpa-scope .wpa-principles .wpa-principle__num {
  color: var(--wpa-orange) !important;
}
.wpa-scope .wpa-principles__sub,
.wpa-scope .wpa-principles .wpa-principle p {
  color: rgba(255,255,255,0.7) !important;
}

/* ---- QUOTE colour locks ---- */
.wpa-scope .wpa-quote__text {
  color: var(--wpa-forest) !important;
}
.wpa-scope .wpa-quote__text .wpa-accent,
.wpa-scope .wpa-quote__mark {
  color: var(--wpa-orange) !important;
}
.wpa-scope .wpa-quote__attr {
  color: var(--wpa-slate) !important;
}
.wpa-scope .wpa-quote__attr strong {
  color: var(--wpa-forest) !important;
}

/* ---- CTA colour locks ---- */
.wpa-scope .wpa-cta h2 {
  color: #ffffff !important;
}
.wpa-scope .wpa-cta h2 .wpa-accent {
  color: var(--wpa-orange) !important;
}
.wpa-scope .wpa-cta__lede {
  color: rgba(255,255,255,0.75) !important;
}
.wpa-scope .wpa-cta .wpa-btn--primary {
  background: var(--wpa-orange) !important;
  color: #ffffff !important;
}
.wpa-scope .wpa-cta .wpa-btn--secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
}

/* ---- STORY colour locks ---- */
.wpa-scope .wpa-story h2 {
  color: var(--wpa-forest) !important;
}
.wpa-scope .wpa-story h2 .wpa-accent {
  color: var(--wpa-orange) !important;
}
.wpa-scope .wpa-story__body,
.wpa-scope .wpa-story__body p {
  color: var(--wpa-charcoal) !important;
}
.wpa-scope .wpa-story__body strong {
  color: var(--wpa-forest) !important;
}

/* Kill horizontal page scroll that can be triggered by the breakout */
body:has(.wpa-scope) {
  overflow-x: hidden;
}
