/* ── DETAIL PAGES — consistent with adhara.pt design system ── */
:root {
  --detail-text: #3e3e3e;
  --detail-title-dark: #0e6676;
  --detail-title-light: #6fd2e4;
  --detail-border: #8adbf0;
}

body.detail-page {
  background: #f3f4f4;
}

.detail-page main {
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   HERO — full-width background image layout
═══════════════════════════════════════════ */
.detail-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Default hero: light teal gradient background */
.detail-hero {
  background: linear-gradient(100deg, #c8e8ee 0%, #d7f0f4 55%, #b8dde5 100%);
}

/* Dark hero variant (Eventos pages) */
.detail-hero--dark {
  background: linear-gradient(100deg, #0d1d5e 0%, #0f1e5c 30%, #134773 65%, #1ac8dc 100%);
}

/* The background image fills the right portion of the hero */
.detail-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Gradient overlay so text remains readable */
.detail-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(200, 232, 238, 0.97) 0%,
    rgba(200, 232, 238, 0.90) 30%,
    rgba(200, 232, 238, 0.55) 55%,
    rgba(200, 232, 238, 0.0) 100%
  );
}

.detail-hero--dark .detail-hero__bg::after {
  background: linear-gradient(
    90deg,
    rgba(12, 25, 80, 0.97) 0%,
    rgba(12, 25, 80, 0.88) 30%,
    rgba(12, 40, 90, 0.55) 58%,
    rgba(12, 40, 90, 0.0) 100%
  );
}

/* Wave decoration at bottom of hero */
.detail-hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 56px;
  background: #f3f4f4;
  clip-path: ellipse(55% 100% at 30% 100%);
  z-index: 3;
}

/* Inner layout: content left, z-index above bg */
.detail-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 52px var(--px) 72px;
  display: flex;
  align-items: center;
}

.detail-hero__content {
  max-width: 580px;
  padding: 12px 0;
}

/* Hide the old media column — image is now bg */
.detail-hero__media {
  display: none;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  opacity: .75;
  transition: opacity .2s, transform .2s;
}
.back-link:hover { opacity: 1; transform: translateX(-3px); }
.detail-hero--dark .back-link { color: rgba(255,255,255,.85); }

/* ── Title ── */
.detail-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #0E5B68 0%, #19A4BB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-hero__title .accent {
  background: linear-gradient(90deg, #0E5B68 0%, #19A4BB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-hero--dark .detail-hero__title {
  background: linear-gradient(90deg, #ffffff 0%, #CAF8FF 50%, #19A4BB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-hero--dark .detail-hero__title .accent {
  background: linear-gradient(90deg, #ffffff 0%, #CAF8FF 50%, #19A4BB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Category tag ── */
.detail-hero__eyebrow {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #373737;
  margin-bottom: 6px;
}
.detail-hero--dark .detail-hero__eyebrow { color: rgba(255,255,255,.9); }

/* ── Time/meta row ── */
.detail-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 28px;
  color: #454545;
  font-size: .98rem;
  font-weight: 500;
}
.detail-hero__meta svg { color: var(--navy); flex-shrink: 0; }
.detail-hero--dark .detail-hero__meta { color: rgba(255,255,255,.85); }
.detail-hero--dark .detail-hero__meta svg { color: rgba(255,255,255,.85); }

/* When no meta row, add spacing before CTA */
.detail-hero__eyebrow + .detail-hero__cta {
  margin-top: 28px;
}

/* ── CTA Button ── */
.detail-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 12px;
  background: linear-gradient(90deg, #0C515C 0%, #1AA3BB 60%, #8FD7E3 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26,149,163,0.22);
  transition: transform .2s, box-shadow .2s;
  margin-top: 4px;
}
.detail-hero__cta:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 30px rgba(26,149,163,0.30);
}

/* ═══════════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════════ */
.detail-content {
  padding: 72px var(--px) 86px;
}

.detail-content__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.detail-section-title {
  text-align: center;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: #3f3f3f;
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}

.detail-copy {
  max-width: 960px;
  margin: 0 auto 64px;
  text-align: center;
}

.detail-copy p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--detail-text);
  margin: 0 0 22px;
}
.detail-copy p:last-child { margin-bottom: 0; }

.detail-copy strong { font-weight: 700; }

/* ═══════════════════════════════════════════
   OBJECTIVES
═══════════════════════════════════════════ */
.objectives {
  margin-top: 16px;
}

.objectives__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.objective-card {
  border-radius: 20px;
  border: 2px solid var(--detail-border);
  background: rgba(255,255,255,.5);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  transition: box-shadow .25s, transform .25s;
}
.objective-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(43,184,200,.14);
}

.objective-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.objective-card__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.objective-card__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #16a4bf;
  margin: 0 0 8px;
}

.objective-card__body p {
  color: #363636;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.objective-card__body p + p { margin-top: 4px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .detail-hero {
    min-height: 300px;
  }
  .detail-hero__inner {
    padding: 40px var(--px) 60px;
  }
  .detail-hero__content {
    max-width: 100%;
  }
  .detail-hero__bg::after {
    background: linear-gradient(
      90deg,
      rgba(200,232,238,0.97) 0%,
      rgba(200,232,238,0.92) 40%,
      rgba(200,232,238,0.70) 70%,
      rgba(200,232,238,0.30) 100%
    );
  }
  .detail-hero--dark .detail-hero__bg::after {
    background: linear-gradient(
      90deg,
      rgba(12,25,80,0.97) 0%,
      rgba(12,25,80,0.92) 40%,
      rgba(12,40,90,0.70) 70%,
      rgba(12,40,90,0.30) 100%
    );
  }
  .detail-content {
    padding: 52px var(--px) 64px;
  }
  .objective-card {
    grid-template-columns: 80px 1fr;
    padding: 18px 20px;
  }
}

@media (max-width: 640px) {
  .detail-hero {
    min-height: auto;
  }
  .detail-hero__inner {
    padding: 32px var(--px) 52px;
  }
  .detail-hero__title {
    font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  }
  .detail-hero__cta {
    width: 100%;
    justify-content: center;
    font-size: .98rem;
    padding: 14px 18px;
  }
  .detail-hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(200,232,238,0.98) 0%,
      rgba(200,232,238,0.90) 60%,
      rgba(200,232,238,0.60) 100%
    );
  }
  .detail-hero--dark .detail-hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(12,25,80,0.98) 0%,
      rgba(12,25,80,0.90) 60%,
      rgba(12,40,90,0.60) 100%
    );
  }
  .detail-section-title {
    font-size: 1.7rem;
  }
  .detail-copy p { font-size: .98rem; }
  .objective-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
  }
}
