/* ==========================================================================
   Page hero (pillar page) — Figma 77:1962 + 124:164 + 124:154, 1920 × 720
   Full-width photo with a navy overlay, top/bottom shades and a logo
   watermark. Content sits at the bottom: number | divider | title, then the
   breadcrumb. The overlay header (.site-header--overlay) sits on top of it on
   desktop.
   .page-hero__media     photo + navy overlay
   .page-hero__heading   number (theme accent), divider, <h1>
   .page-hero--simple    section pages (e.g. Δράσεις, Figma 103:3745): 500px,
                         breadcrumb above a 64px title, darker overlay, a blue
                         glow instead of the logo watermark, no number
   ========================================================================== */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--color-bg-dark);
}

/* ---- Background layers ----------------------------------------------------- */
.page-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navy overlay: rgba(7, 22, 57, .4) */
.page-hero__media::after {
  position: absolute;
  inset: 0;
  background: rgb(7 22 57 / 40%);
  content: "";
}

/* Blurred shades (Figma "Ellipse 8" top, "Ellipse 9" bottom); offsets are from
   the centre so they stay in place on wide screens. */
.page-hero::before,
.page-hero::after {
  position: absolute;
  z-index: 1;
  background: center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.page-hero::before {
  top: -639.95px;
  left: calc(50% - 2642.87px);
  width: 5365.59px;
  height: 954.66px;
  background-image: url("../../assets/images/pillar-hero-shade-top.svg");
}

.page-hero::after {
  bottom: -685.9px;
  left: calc(50% - 3701.4px);
  width: 7482.64px;
  height: 1012.61px;
  background-image: url("../../assets/images/pillar-hero-shade-bottom.svg");
}

/* Logo watermark, 10% white (Figma "Group 4"), above the shades */
.page-hero__inner::before {
  position: absolute;
  z-index: 2;
  top: 114.7px;
  left: calc(50% + 123.3px);
  width: 1246.78px;
  height: 1593.06px;
  opacity: 0.1;
  background: url("../../assets/images/pillar-hero-watermark.svg") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

/* ---- Content ---------------------------------------------------------------- */
.page-hero__inner {
  display: flex;
  min-height: 720px;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 35px;
}

.page-hero__heading,
.page-hero .breadcrumb {
  position: relative;
  z-index: 3;
}

/* Figma: number x=197, divider x=322, title x=363 */
.page-hero__heading {
  display: flex;
  align-items: flex-start;
  margin-bottom: 68px;
  margin-left: -3px;
}

.page-hero__number {
  margin-top: 10.5px;
  color: var(--accent, var(--color-primary));
  font-size: 72px;
  letter-spacing: var(--letter-spacing-tight);
  line-height: 64px;
}

/* Thin divider between number and title */
.page-hero__heading::after {
  order: 1;
  width: 1px;
  height: 121px;
  flex: none;
  margin: 21px 41px 0 36px;
  background: rgb(255 255 255 / 25%);
  content: "";
}

.page-hero__title {
  order: 2;
  font-size: 58px;
  letter-spacing: -0.02em;
  line-height: 76px;
}

/* ---- Breadcrumb ------------------------------------------------------------- */
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--color-breadcrumb);
  font-size: var(--font-size-base);
  letter-spacing: -0.02em;
  line-height: 14px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  width: 4.28px;
  height: 7px;
  flex: none;
  background: url("../../assets/icons/breadcrumb-chevron.svg") center / contain no-repeat;
  content: "";
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
  font-weight: var(--font-weight-medium);
}

/* ---- Simple variant (section pages) ---------------------------------------- */
.page-hero--simple .page-hero__inner {
  min-height: 500px;
  padding-bottom: 62.6px; /* Figma: title bottom 437.4 of 500 */
}

/* Figma: rgba(4, 36, 74, .62) over the photo */
.page-hero--simple .page-hero__media::after {
  background: rgb(4 36 74 / 62%);
}

.page-hero--simple::after {
  bottom: -715.93px; /* same shade as the pillar hero, 500px tall hero */
}

/* Blue glow (Figma "Ellipse 2", 0A56B0 → 04244A, rotated 64.29°) in place of
   the logo watermark */
.page-hero--simple .page-hero__inner::before {
  top: -1827.99px;
  left: -288.55px;
  width: 1885.99px;
  height: 3376.49px;
  opacity: 1;
  background-image: url("../../assets/images/hero-glow-blue.svg");
  transform: rotate(64.29deg);
}

.page-hero--simple .breadcrumb {
  margin-bottom: 16.4px; /* Figma: breadcrumb y 323, title y 353.4 */
}

.page-hero--simple .page-hero__title {
  position: relative;
  z-index: 3;
  font-size: 64px;
  letter-spacing: -0.02em;
  line-height: 84px;
}

/* ---- Tablet: header is no longer laid over the hero ------------------------ */
@media (max-width: 1280px) {
  .page-hero__inner {
    min-height: 480px;
  }

  .page-hero::before {
    top: -800px; /* less top shade: no header to keep readable */
  }
}

@media (max-width: 1280px) {
  .page-hero--simple .page-hero__inner {
    min-height: 340px;
    padding-bottom: 48px;
  }
}

@media (max-width: 1100px) {
  .page-hero__heading {
    margin-bottom: 48px;
  }

  .page-hero__number {
    margin-top: 6px;
    font-size: 56px;
    line-height: 52px;
  }

  .page-hero__heading::after {
    height: 96px;
    margin: 14px 28px 0 24px;
  }

  .page-hero__title {
    font-size: 44px;
    line-height: 58px;
  }
}

/* ---- Phone ------------------------------------------------------------------- */
@media (max-width: 700px) {
  .page-hero__inner {
    min-height: 420px;
    padding-bottom: 28px;
  }

  .page-hero__heading {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    margin-left: 0;
  }

  .page-hero__heading::after {
    display: none;
  }

  .page-hero__number {
    margin-top: 0;
    font-size: 44px;
    line-height: 44px;
  }

  .page-hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .page-hero--simple .page-hero__inner {
    min-height: 260px;
    padding-bottom: 36px;
  }

  .page-hero--simple .page-hero__title {
    font-size: 40px;
    line-height: 52px;
  }

  .breadcrumb__list {
    gap: 6px 10px;
    font-size: var(--font-size-sm);
    line-height: 18px;
  }
}
