/* "Experience Africa with Us" — theme-coloured, responsive mosaic. */
.ea-section {
  --ea-forest: var(--brand-primary, #2c4028);
  --ea-gold: var(--brand-secondary, #c79b3d);
  --ea-cream: #f8f7ee;

  background: linear-gradient(180deg, #fbf8f3 0%, var(--ea-cream) 100%);
  padding: clamp(48px, 7vw, 84px) 0;
}

.ea-container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.ea-head {
  margin: 0 0 clamp(24px, 4vw, 40px);
  text-align: center;
}

.ea-eyebrow {
  color: var(--ea-gold);
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.ea-head h2 {
  color: var(--ea-forest);
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.ea-head h2::after {
  background: var(--ea-gold);
  border-radius: 2px;
  content: "";
  display: block;
  height: 4px;
  margin: 14px auto 0;
  width: 72px;
}

.ea-lead {
  color: #6b625a;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 620px;
}

.ea-grid {
  display: grid;
  gap: 14px;
  grid-auto-rows: 260px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ea-tile {
  border-radius: 10px;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.ea-tile--wide {
  grid-column: span 2;
}

.ea-tile--big {
  grid-auto-rows: 320px;
  grid-column: 1 / -1;
}

.ea-tile__image {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.ea-tile:hover .ea-tile__image,
.ea-tile:focus-visible .ea-tile__image {
  transform: scale(1.06);
}

.ea-tile__shade {
  background: linear-gradient(180deg, rgb(20 30 16 / 8%) 0%, rgb(20 30 16 / 30%) 42%, rgb(20 30 16 / 88%) 100%);
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background 300ms ease;
}

.ea-tile:hover .ea-tile__shade {
  background: linear-gradient(180deg, rgb(20 30 16 / 12%) 0%, rgb(20 30 16 / 38%) 42%, rgb(20 30 16 / 92%) 100%);
}

.ea-tile__body {
  bottom: 0;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  left: 0;
  padding: clamp(18px, 2.5vw, 30px);
  position: absolute;
  right: 0;
  z-index: 2;
}

.ea-tile__title {
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgb(0 0 0 / 35%);
  text-transform: uppercase;
}

.ea-tile__subtitle {
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
}

.ea-tile__cta {
  align-items: center;
  align-self: flex-start;
  background: var(--ea-gold);
  border-radius: 999px;
  color: #26351d;
  display: inline-flex;
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.09em;
  padding: 10px 20px;
  text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}

.ea-tile__arrow {
  font-size: 15px;
  line-height: 1;
}

.ea-tile:hover .ea-tile__cta,
.ea-tile:focus-visible .ea-tile__cta {
  background: #fff;
  transform: translateY(-2px);
}

.ea-tile:focus-visible {
  outline: 3px solid var(--ea-gold);
  outline-offset: 3px;
}

@media (max-width: 992px) {
  .ea-grid {
    grid-auto-rows: 230px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ea-tile--wide,
  .ea-tile--big {
    grid-column: 1 / -1;
  }

  .ea-tile--big {
    grid-auto-rows: 300px;
  }
}

@media (max-width: 600px) {
  .ea-grid {
    grid-auto-rows: 220px;
    grid-template-columns: 1fr;
  }

  .ea-tile--big {
    grid-auto-rows: 300px;
  }

  .ea-tile__subtitle {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ea-tile__image,
  .ea-tile__shade,
  .ea-tile__cta {
    transition: none;
  }
}
