/* ==========================================================================
   Block: Feature Panel
   File:   css/blocks/feature-panel.css
   Markup: includes/blocks/feature-panel.php

   Replaces the plain centred band. The copy is split - a short label and the
   heading held left against a gold divider, the body running in the wider
   right column - inside a frame drawn only at two corners, so the section
   reads as a single pulled-out offering rather than a paragraph on a stripe.
   ========================================================================== */

.feature-panel {
  --fp-heading-size: 38px;
  --fp-bracket: 46px;

  position: relative;
  width: 100%;
  margin: var(--vir-section-gap) 0 0;
  padding: 50px var(--vir-gutter);
  background-color: var(--vir-navy-deep);
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Background ---------------------------------------------------------- */

.feature-panel__media {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.feature-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Gold cast over the photograph, then a scrim heavy enough to keep the body
   copy above 4.5:1 against the worst case. */
.feature-panel__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--vir-gold);
  mix-blend-mode: multiply;
  opacity: 0.72;
}

.feature-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 30, 66, 0.74);
  pointer-events: none;
}

/* --- Frame --------------------------------------------------------------- */

.feature-panel__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--vir-measure);
  margin: 0 auto;
}

.feature-panel__frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 56px;
  padding: 44px 48px;
}

/* Brackets at two opposite corners rather than a closed box. */
.feature-panel__frame::before,
.feature-panel__frame::after {
  content: "";
  position: absolute;
  width: var(--fp-bracket);
  height: var(--fp-bracket);
  border: 2px solid var(--vir-gold);
}

.feature-panel__frame::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.feature-panel__frame::after {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}

/* --- Lead ---------------------------------------------------------------- */

.feature-panel__lead {
  position: relative;
  padding-right: 56px;
  border-right: 1px solid rgba(201, 162, 39, 0.45);
}

.feature-panel .feature-panel__label {
  display: block;
  margin: 0 0 16px;
  color: var(--vir-gold);
  font-family: var(--vir-font-body);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-panel .feature-panel__heading {
  margin: 0;
  color: var(--vir-white);
  font-family: var(--vir-font-display);
  font-size: var(--fp-heading-size);
  line-height: 1.1em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* --- Body ---------------------------------------------------------------- */

.feature-panel .feature-panel__text p {
  margin: 0 0 1.3em;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--vir-font-body);
  font-size: 16px;
  line-height: 1.85em;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.feature-panel .feature-panel__text p:last-child {
  margin-bottom: 0;
}

.feature-panel .feature-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 28px 0 0;
  padding: 12px 30px;
  text-align: center;
  border: 1px solid var(--vir-gold);
  border-radius: 50px;
  background-color: transparent;
  color: var(--vir-gold);
  font-family: var(--vir-font-body);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.4s, color 0.4s;
  box-sizing: border-box;
}

.feature-panel .feature-panel__button:hover {
  background-color: var(--vir-gold);
  color: var(--vir-navy);
  text-decoration: none;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1249px) {
  .feature-panel {
    --fp-heading-size: 34px;
  }

  .feature-panel__frame {
    gap: 40px;
    padding: 40px 40px;
  }

  .feature-panel__lead {
    padding-right: 40px;
  }
}

@media (max-width: 991px) {
  .feature-panel {
    --fp-heading-size: 30px;
    --fp-bracket: 34px;
  }

  .feature-panel__frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 36px 32px;
  }

  .feature-panel__lead {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
  }
}

@media (max-width: 575px) {
  .feature-panel {
    --fp-heading-size: 24px;
    --fp-bracket: 26px;
  }

  .feature-panel__frame {
    padding: 30px 24px;
  }

  .feature-panel .feature-panel__button {
    width: 100%;
  }
}

/* --- Page hero ------------------------------------------------------------
   The same panel opening a page instead of sitting inside one. It absorbs
   what used to be a separate title banner above it: one photograph, one
   gold edge closing the band, and the page title carried in the label so
   the heading does not have to say it twice.
   ========================================================================== */

.feature-panel--hero {
  --fp-heading-size: 50px;
  --fp-bracket: 58px;

  display: flex;
  align-items: center;
  min-height: 600px;
  margin-top: 0;
  padding: 88px var(--vir-gutter);
  border-bottom: 5px solid var(--vir-gold);
}

.feature-panel--hero .feature-panel__inner {
  width: 100%;
}

/* The photograph carries a page hero, so the gold cast is lighter than it
   is when the panel is one section among several. */
.feature-panel--hero .feature-panel__media::after {
  opacity: 0.62;
}

/* The scrim is graded rather than flat. The label and heading sit on the
   left, where a small gold eyebrow needs 4.5:1 against the brightest pixel
   the picture can put behind it; the right only carries white body copy, so
   it can stay light enough to leave the photograph legible. */
.feature-panel--hero::after {
  background-color: transparent;
  background-image: linear-gradient(
    100deg,
    rgba(7, 30, 66, 0.93) 0%,
    rgba(7, 30, 66, 0.89) 30%,
    rgba(7, 30, 66, 0.7) 62%,
    rgba(7, 30, 66, 0.6) 100%
  );
}

.feature-panel--hero .feature-panel__frame {
  gap: 64px;
  padding: 52px 56px;
}

.feature-panel--hero .feature-panel__label {
  margin-bottom: 20px;
  font-size: 14px;
}

.feature-panel--hero .feature-panel__text p {
  font-size: 17px;
}

@media (max-width: 1249px) {
  .feature-panel--hero {
    --fp-heading-size: 42px;

    min-height: 520px;
    padding: 72px var(--vir-gutter);
  }

  .feature-panel--hero .feature-panel__frame {
    gap: 44px;
    padding: 44px 44px;
  }
}

@media (max-width: 991px) {
  .feature-panel--hero {
    --fp-heading-size: 34px;
    --fp-bracket: 38px;

    min-height: 0;
    padding: 56px var(--vir-gutter);
  }

  .feature-panel--hero .feature-panel__frame {
    gap: 28px;
    padding: 36px 32px;
  }
}

@media (max-width: 575px) {
  .feature-panel--hero {
    --fp-heading-size: 27px;
    --fp-bracket: 28px;

    padding: 40px var(--vir-gutter);
  }

  .feature-panel--hero .feature-panel__frame {
    padding: 30px 24px;
  }

  .feature-panel--hero .feature-panel__text p {
    font-size: 16px;
  }
}
