/* ============================================
   FREE ENROLLMENT BANNER
   Two-column banner. Editorial copy stack on the left
   (eyebrow / two-line heading / body / chip callouts /
   primary CTA pinned to the bottom). Square 1:1 image
   on the right. Sized to read as a banner — present, not
   overpowering — and to share the type ramp with the
   rest of the Oliabo section family.
   Swiss-Grid Editorial × Mediterranean warmth.
   ============================================ */

.freb {
  position: relative;
  overflow: hidden;
}

/* ─── Grid ─────────────────────────────────────────────── */
.freb__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: stretch;
}

@media (min-width: 640px) {
  .freb__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .freb__grid {
    gap: var(--space-3xl);
  }
}

/* Image-left orientation flip */
@media (min-width: 640px) {
  .freb.freb--image-left .freb__content { order: 2; }
  .freb.freb--image-left .freb__image-frame { order: 1; }
}

/* ─── Left column — content + CTA pinned to bottom ────── */
.freb__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

@media (min-width: 1024px) {
  .freb__content {
    gap: var(--space-lg);
  }
}

.freb__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-primary);
  line-height: 1.4;
}

.freb__heading {
  margin: 0;
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  color: var(--clr-primary);
  display: flex;
  flex-direction: column;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.freb__heading-line1 {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
}

.freb__heading-line2 {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.85em;
  line-height: 1.05;
  margin-top: var(--space-xs);
}

.freb__body {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.65;
  color: var(--clr-text-secondary);
  text-wrap: pretty;
  max-width: 56ch;
}

@media (min-width: 1024px) {
  .freb__body { font-size: var(--font-size-lg); }
}

/* ─── Chip callouts ────────────────────────────────────── */
.freb__callouts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.freb__callout {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-primary);
  line-height: 1;
  padding-right: 18px;
}

/* Hairline separator dots between chips */
.freb__callout:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: rgba(60, 66, 46, 0.35);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ─── CTA — pinned to bottom of left column ────────────── */
.freb__cta-wrap {
  margin-top: auto;
  padding-top: var(--space-md);
}

.freb__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px var(--space-2xl);
  background: var(--clr-primary);
  color: var(--clr-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 767px) {
  .freb__cta {
    width: 100%;
  }
}

.freb__cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.freb__cta:focus-visible {
  outline: 2px solid var(--clr-brand-accent);
  outline-offset: 4px;
}

/* ─── Right column — 4:3 image ─────────────────────────── */
.freb__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(60, 66, 46, 0.06);
}

.freb__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.freb__image-frame--placeholder {
  background:
    linear-gradient(135deg, rgba(60, 66, 46, 0.08) 0%, rgba(60, 66, 46, 0.04) 100%);
}

/* ============================================
   DARK BACKGROUND VARIANT — bg-accent-dark
   ============================================ */
.freb.bg-accent-dark .freb__eyebrow {
  color: var(--clr-brand-accent);
}

.freb.bg-accent-dark .freb__heading-line1 {
  color: var(--clr-text-inverse);
}

.freb.bg-accent-dark .freb__heading-line2 {
  color: var(--clr-brand-accent);
}

.freb.bg-accent-dark .freb__body {
  color: var(--clr-text-inverse);
  opacity: 0.82;
}

.freb.bg-accent-dark .freb__callout {
  color: var(--clr-text-inverse);
}

.freb.bg-accent-dark .freb__callout:not(:last-child)::after {
  background: rgba(253, 252, 250, 0.4);
}

.freb.bg-accent-dark .freb__cta {
  background: var(--clr-text-inverse);
  color: var(--clr-primary);
}

.freb.bg-accent-dark .freb__image-frame {
  background: rgba(253, 252, 250, 0.05);
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .freb__cta {
    transition: none;
  }
  .freb__cta:hover {
    transform: none;
  }
}
