/**
 * Icon Cards
 * Row of dark-green cards (check icon + bold Teko statement).
 * Desktop = equal-width row; mobile = stacked.
 */

/* Strip Elementor container padding + force full-bleed so the section band
   spans edge-to-edge (the inner wrapper re-applies the max-width). */
.elementor-column
  > .elementor-element-populated:has(.elementor-widget-agency-icon-cards),
.e-con:has(> .e-con-inner > .elementor-widget-agency-icon-cards),
.e-con:has(.elementor-widget-agency-icon-cards) {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  padding: 0 !important;
}

.elementor-section:has(.elementor-widget-agency-icon-cards),
.elementor-section:has(.elementor-widget-agency-icon-cards) > .elementor-container,
.e-con:has(.elementor-widget-agency-icon-cards) {
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Brand tokens ────────────────────────────────────────────────────────── */
/* Scoped to .aew-iccr so they don't leak into other widgets. Source of truth
   is design-system.md. Update there first; copy here second. */
.aew-iccr {
  --aew-cards:             var(--e-global-color-aew-cards, #FFFFFF);
  --aew-background:        var(--e-global-color-aew-background, #F4F4F4);
  --aew-lines:             var(--e-global-color-aew-lines, #DDDDDD);
  --aew-misc-accent:       var(--e-global-color-aew-misc-accent, #666666);
  --aew-secondary-cards:   var(--e-global-color-aew-secondary-cards, #EEEEEE);
  --aew-secondary-bg:      var(--e-global-color-aew-secondary-bg, #333333);
  --aew-secondary-accent:  var(--e-global-color-aew-secondary-accent, #555555);
  --aew-text:              var(--e-global-color-aew-text, #1A1A1A);
  --aew-cta:               var(--e-global-color-aew-cta, #444444);
  --aew-cta-hover:         var(--e-global-color-aew-cta-hover, #2B2B2B);
}

/* ── Outer block ─────────────────────────────────────────────────────────── */
/* Design-system width model: X gutter on the outer block; inner caps at 1440. */
.aew-iccr {
  width: 100%;
  background-color: var(--aew-background);
  padding-left: 40px;
  padding-right: 40px;
}

.aew-iccr *,
.aew-iccr *::before,
.aew-iccr *::after {
  box-sizing: border-box;
}

/* ── Inner wrapper: true 1440 content cap; owns Y padding only ───────────── */
.aew-iccr__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 0;
}

/* ── Grid (equal-width row) ──────────────────────────────────────────────── */
.aew-iccr__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.aew-iccr__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  min-height: 320px;
  padding: 40px 32px;
  background-color: var(--aew-secondary-bg);
  border-radius: 24px;        /* design-system card radius */
}

/* ── Icon ────────────────────────────────────────────────────────────────── */
.aew-iccr__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: none;
}

.aew-iccr__icon svg,
.aew-iccr__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aew-iccr__icon svg {
  fill: var(--aew-secondary-cards);
}

/* ── Text (Teko SemiBold — design-system H3 scale) ──────────────────────── */
.aew-iccr__text {
  margin: 0;
  max-width: 100%;
  color: var(--aew-background);
  font-family: var(--aew-teko);
  font-weight: 600;
  font-size: 40px;
  line-height: 0.85;
  text-transform: uppercase;
  /* Allow long statements to wrap inside the card instead of clipping. */
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ── Responsive: tablet ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* X gutter inherited from outer (40); Y 64 from desktop inner */
  .aew-iccr__card {
    min-height: 260px;
  }

  .aew-iccr__text {
    font-size: 32px;          /* design-system H3 desktop-down */
  }
}

/* ── Responsive: mobile (stack) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .aew-iccr { padding-left: 16px; padding-right: 16px; }   /* X 16 mobile */
  .aew-iccr__inner {
    padding: 32px 0;          /* Y 32 mobile */
  }

  .aew-iccr__grid {
    grid-template-columns: 1fr;   /* stack */
    gap: 16px;                    /* design-system stacking gap */
  }

  .aew-iccr__card {
    min-height: 220px;
    border-radius: 20px;          /* design-system mobile card radius */
  }

  .aew-iccr__text {
    font-size: 28px;
  }
}
