body.about-delivered-page {
  background-color: #FFFBF8;
}

body.about-delivered-page main {
  margin-top: 0;
  padding-top: 0;
}

.hero-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #FFF8F4 55%, #FAEADF 100%);
}

/* Override hero gradient to solid — unifies status bar → header → hero into one colour */
body.about-delivered-page .hero-gradient {
  background: #FFFBF8;
}

@media (max-width: 767px) {
  .hero-gradient {
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff 50%,
      #FEFCFA 68%,
      #FFF8F4 82%,
      #FAEADF 100%
    );
  }

  body.about-delivered-page #header-container .header-mobile-toggle {
    background: #FFFBF8;
  }

  /* Hide decorative blur blobs inside hero — solid #FFFBF8 throughout */
  body.about-delivered-page .hero-gradient > div:first-child,
  body.about-delivered-page .hero-gradient > div:nth-child(2) {
    display: none !important;
  }

  body.about-delivered-page main h1 {
    font-size: 1.625rem;
    line-height: 1.15;
  }
  body.about-delivered-page main .about-hero-copy h1 span {
    display: inline !important;
  }
}

.custom-shape-divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: clamp(100px, 16vw, 200px);
}

.custom-shape-divider-bottom .shape-fill {
  fill: #ffffff;
}

.greek-optimized {
  letter-spacing: -0.01em;
  word-spacing: 0.05em;
}

/* About page normalization: πιο συνεπής κλίμακα τίτλων/κειμένου και section rhythm */
body.about-delivered-page main h1 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  line-height: 1.12;
}

body.about-delivered-page main h2 {
  font-size: clamp(1.65rem, 3.25vw, 2.35rem);
  line-height: 1.14;
}

body.about-delivered-page main p {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.72;
}

#why-humera,
#nousgym-connection {
  padding-top: var(--section-y-large);
}

#why-humera {
  padding-bottom: var(--section-y-large);
}

/* Tighter end spacing before «Αυστηρά κριτήρια» — extra reduction vs prior clamp */
#nousgym-connection {
  padding-bottom: clamp(1rem, 2vw, 1.65rem);
}

/* NousGym → criteria: much less top padding on the following section for a cleaner join */
body.about-delivered-page #nousgym-connection + .hmr-criteria-section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: calc(var(--section-y-tight) + 0.125rem);
}

#why-humera {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 56%, #F9ECE3 100%);
}

#nousgym-connection {
  background: linear-gradient(180deg, #F9ECE3 0%, #fff6f0 32%, #ffffff 62%, rgba(250, 250, 248, 0.7) 100%);
}

#why-humera::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 78%, rgba(208, 89, 39, 0.06), transparent 42%),
    radial-gradient(circle at 84% 88%, rgba(208, 89, 39, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

#why-humera::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(14, 26, 60, 0.012) 0px,
    rgba(14, 26, 60, 0.012) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hmr-criteria-section {
  --color-orange: #D05927;
  --color-orange-soft: #FFF0E8;
  --color-orange-extra-soft: #FFF7F3;
  --color-navy: #0E1A3C;
  --color-bg-main: #FFFFFF;
  --color-bg-soft: #FAFAF8;
  --color-bg-warm: #FFF7F3;
  --color-bg-section: #F7F8FA;
  --color-text-main: #0E1A3C;
  --color-text-secondary: #4B5568;
  --color-text-muted: #7A8496;
  --color-border: #E7E9EF;
  --color-card-warm: #FFFDFC;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 58%, #F9ECE3 100%);
  font-family: 'Outfit', sans-serif;
  position: relative;
  padding: calc(var(--section-y-tight) + 1.25rem) 0 calc(var(--section-y-tight) + 0.125rem);
  overflow: hidden;
}

.hmr-bg-blob {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 700px;
  height: 700px;
  opacity: 0.08;
  color: var(--color-orange);
  pointer-events: none;
  z-index: 1;
  transform: rotate(15deg);
  transform-origin: center;
  will-change: transform;
  animation: hmrBlobFloat 18s ease-in-out infinite alternate;
}

.hmr-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.hmr-header {
  max-width: 720px;
  margin: 0 auto 46px auto;
  text-align: center;
  display: flex;
  justify-content: center;
}

.hmr-footer {
  max-width: 720px;
  margin: 36px auto 0 auto;
  text-align: center;
}

.hmr-end-divider {
  width: min(100%, 560px);
  height: 1px;
  background-color: var(--color-border);
  margin: 24px auto 0 auto;
}

.hmr-title {
  color: var(--color-text-main);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 auto 20px auto;
  white-space: normal;
}

.hmr-title span {
  font-weight: 400;
  color: var(--color-orange);
}

.hmr-description {
  color: var(--color-text-secondary);
  font-weight: 400;
  font-size: clamp(1rem, 1.35vw, 1.05rem);
  line-height: 1.75;
  margin: 0;
}

.hmr-description strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.hmr-list-card {
  background-color: var(--color-card-warm);
  border: 1px solid color-mix(in srgb, var(--color-border) 90%, var(--color-orange-soft) 10%);
  border-radius: 28px;
  box-shadow:
    0 12px 36px -10px rgba(14, 26, 60, 0.08),
    0 4px 12px -4px rgba(14, 26, 60, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hmr-list-item {
  display: flex;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 88%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--color-border) 88%, transparent);
  transition: background-color 0.22s ease;
  cursor: default;
}

.hmr-list-item:nth-child(2n) { border-right: none; }
.hmr-list-item:nth-last-child(-n+2) { border-bottom: none; }
.hmr-list-item:hover {
  background-color: color-mix(in srgb, var(--color-orange-soft) 18%, var(--color-card-warm) 82%);
}

.hmr-item-number {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 400;
  color: var(--color-text-muted);
  width: 42px;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.hmr-list-item:hover .hmr-item-number { color: var(--color-orange); }

.hmr-item-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--color-bg-soft) 50%, var(--color-card-warm) 50%);
  border: 1px solid color-mix(in srgb, var(--color-border) 88%, var(--color-orange-soft) 12%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  color: var(--color-navy);
}

.hmr-list-item:hover .hmr-item-icon-wrapper {
  background-color: var(--color-orange-soft);
  border-color: var(--color-orange-soft);
  color: var(--color-orange);
}

.hmr-item-icon-wrapper svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.35px;
}

.hmr-item-title {
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  font-weight: 500;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
  transition: color 0.25s ease;
}

#philosophy-final {
  position: relative;
}

#philosophy-final::before {
  content: "";
  position: absolute;
  top: -48px;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(249, 236, 227, 0) 0%,
    rgba(249, 236, 227, 0.72) 62%,
    rgba(249, 236, 227, 0.96) 100%
  );
  z-index: 0;
}

/* Editorial vertical accent — main philosophy copy only */
body.about-delivered-page #philosophy-final .about-philosophy-body {
  position: relative;
  padding-left: clamp(1.1rem, 2.8vw, 1.75rem);
}

body.about-delivered-page #philosophy-final .about-philosophy-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  border-radius: 999px;
  background: rgba(208, 89, 39, 0.26);
  pointer-events: none;
}

/* About — mobile / στενό tablet: hero ευθυγράμμιση με header, κείμενο πλήρους πλάτους */
@media (max-width: 1023px) {
  body.about-delivered-page section.hero-gradient {
    padding-top: 0.75rem;
  }

  body.about-delivered-page .about-hero-copy p.greek-optimized {
    max-width: none;
  }
}

/* Γραμμή κάτω από τον τίτλο «Η φιλοσοφία μας» — μόνο mobile */
@media (max-width: 767px) {
  body.about-delivered-page #philosophy-final .about-philosophy-grid > div:first-child::after {
    content: "";
    display: block;
    width: min(200px, 55%);
    height: 2px;
    border-radius: 999px;
    background: rgba(208, 89, 39, 0.26);
    margin-top: 1rem;
  }
}

/* About — mobile μόνο: hero οριζόντια σύνθεση, scroll cue, φιλοσοφία (desktop απείραχτο από τα media) */
@media (max-width: 767px) {
  body.about-delivered-page section.hero-gradient {
    padding-bottom: 5.5rem;
  }

  /* Remove white fade overlay so the wave shape stays visible on mobile */
  body.about-delivered-page section.hero-gradient::after {
    display: none;
  }

  /* Wave above all hero overlays so it renders visibly */
  .custom-shape-divider-bottom {
    z-index: 10;
  }

  body.about-delivered-page #why-humera {
    scroll-margin-top: 1rem;
  }

  body.about-delivered-page #philosophy-final .about-philosophy-grid {
    margin-top: -0.125rem;
  }

  body.about-delivered-page #philosophy-final .about-philosophy-body {
    padding-top: 0.125rem;
  }
}

@media (max-width: 768px) {
  .hmr-criteria-section { padding: 48px 0; }
  .hmr-header { margin-bottom: 40px; }
  .hmr-list-card { border-radius: 20px; grid-template-columns: 1fr; }
  .hmr-list-item { padding: 20px; border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 88%, transparent); }
  .hmr-list-item:nth-last-child(-n+2) { border-bottom: 1px solid color-mix(in srgb, var(--color-border) 88%, transparent); }
  .hmr-list-item:last-child { border-bottom: none; }
  .hmr-item-number { width: 32px; font-size: 1.125rem; }
  .hmr-item-icon-wrapper { width: 48px; height: 48px; margin-right: 16px; }
  .hmr-item-icon-wrapper svg { width: 20px; height: 20px; }
  .hmr-bg-blob { width: 400px; height: 400px; right: -30%; top: 0; animation-duration: 14s; }

  #why-humera,
  #nousgym-connection {
    padding-top: 4rem;
  }

  #why-humera {
    padding-bottom: 4rem;
  }

  #nousgym-connection {
    padding-bottom: 1.25rem;
  }

  body.about-delivered-page #nousgym-connection + .hmr-criteria-section {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
}

/* Phase 7E.3 — final CTA before footer: no extra block margin */
body.about-delivered-page main > .humera-cta-premium:last-of-type {
  margin-bottom: 0;
}

/* ── Mobile: visible gradient blends at section joins ── */
@media (max-width: 768px) {
  /* Why-humera mobile gradient: start warm transition earlier for a softer bottom */
  body.about-delivered-page #why-humera {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 38%, #F4E6DB 74%, #F9ECE3 100%);
  }

  /* Nousgym-connection: warm start, fade to white at bottom */
  #nousgym-connection {
    background: linear-gradient(180deg, #F9ECE3 0%, #fff4ee 26%, #ffffff 56%, #ffffff 100%);
  }

  /* Why-humera → Nousgym: visible warm gradient entrance (overlays the warm top of #nousgym-connection) */
  body.about-delivered-page #nousgym-connection::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(249, 236, 227, 0.9) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
  }

  /* Nousgym → Criteria: visible warm tint at top of criteria section */
  body.about-delivered-page #nousgym-connection + .hmr-criteria-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(249, 236, 227, 0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
  }

  /* Fix B: all reveal-on-scroll elements show immediately on mobile —
     was previously only applied to #why-humera; extended to all sections */
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Sub-phase 2A: Mobile Decorative Cleanup (<1024px)
   Hero blur orbs (125–126) already hidden in block above (~35–38)
   ============================================================ */
@media (max-width: 1023px) {
  body.about-delivered-page #why-humera > .absolute.pointer-events-none,
  body.about-delivered-page #nousgym-connection > .absolute.pointer-events-none,
  body.about-delivered-page #philosophy-final > .absolute.pointer-events-none,
  body.about-delivered-page .custom-shape-divider-bottom,
  body.about-delivered-page .hmr-bg-blob,
  body.about-delivered-page #nousgym-connection .relative.group > .absolute.inset-0 {
    display: none !important;
  }

  body.about-delivered-page .hmr-bg-blob {
    animation: none !important;
    will-change: auto !important;
  }
}
