/**
 * Info Columns V2
 * Dark banded section: centered section heading, a 3-up grid of columns
 * (rounded image + Teko title + paragraph) and a single centered CTA below.
 * Desktop = 3-up; tablet = 2-up; mobile = 1-up.
 */

/* 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-info-columns-v2),
.e-con:has(> .e-con-inner > .elementor-widget-agency-info-columns-v2),
.e-con:has(.elementor-widget-agency-info-columns-v2) {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  padding: 0 !important;
}

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

/* ── Brand tokens ────────────────────────────────────────────────────────── */
/* Scoped to .aew-infc so they don't leak into other widgets. Source of truth
   is design-system.md. Update there first; copy here second. */
.aew-infc {
  --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 (full-bleed dark band) ──────────────────────────────────── */
.aew-infc {
  width: 100%;
  background-color: var(--aew-infc-bg, var(--aew-secondary-bg));
}

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

/* ── Inner wrapper (max-width + X padding + banded Y padding) ─────────────── */
/* Design-system width model: X gutter on the outer block; inner caps at a true 1440. */
.aew-infc { padding-left: 40px; padding-right: 40px; box-sizing: border-box; }

.aew-infc__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 0;          /* desktop Y 64px / X 5rem */
}

/* ── Section heading ─────────────────────────────────────────────────────── */
/* Wrapper-class prefix raises specificity to (0,2,0) so the colour beats the
   Elementor kit's `.elementor-kit-N h1..h6 { color }` rule (0,1,1). */
.aew-infc .aew-infc__heading {
  margin: 0 0 48px;
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 85%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--aew-infc-heading, var(--aew-background));
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.aew-infc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* ── Column ──────────────────────────────────────────────────────────────── */
.aew-infc__col {
  display: flex;
  flex-direction: column;
}

/* No-image card: a self-contained padded colour box (e.g. contact cards).
   width/radius/padding are editor-controllable. Default centred in its column. */
.aew-infc__col--noimg {
  background-color: var(--aew-infc-card-bg, var(--aew-secondary-cards));
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  margin-inline: auto;
}

/* When a max-width makes the box narrower than its column, pull the two boxes
   toward the centre gap: left column's box hugs the right edge, right column's
   box hugs the left edge. (Only the first row of a 2-up grid.) */
.aew-infc__grid:has(.aew-infc__col--noimg) .aew-infc__col--noimg:nth-child(odd) {
  margin-inline: auto 0;
}

.aew-infc__grid:has(.aew-infc__col--noimg) .aew-infc__col--noimg:nth-child(even) {
  margin-inline: 0 auto;
}

/* Links inside the column text (phone / email). Default to the text colour. */
.aew-infc__col-text a {
  color: var(--aew-infc-link, var(--aew-infc-text, var(--aew-background)));
  text-decoration: underline;
}

/* ── Media (rounded image) ───────────────────────────────────────────────── */
.aew-infc__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 24px;
}

.aew-infc__media--empty {
  background-color: var(--aew-secondary-cards);
}

/* ── Column title ────────────────────────────────────────────────────────── */
.aew-infc .aew-infc__col-title {
  margin: 0 0 12px;
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--aew-infc-title, var(--aew-cta));
}

/* ── Column text ─────────────────────────────────────────────────────────── */
.aew-infc__col-text {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  color: var(--aew-infc-text, var(--aew-background));
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.aew-infc__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.aew-infc__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 16px;
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 85%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--aew-infc-btn-text, #FFFFFF);
  background-color: var(--aew-infc-btn-bg, var(--aew-cta));
  border: 1px solid var(--aew-infc-btn-bg, var(--aew-cta));
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.aew-infc__cta:hover,
.aew-infc__cta:focus-visible {
  background-color: var(--aew-infc-btn-bg-hover, var(--aew-cta-hover));
  border-color: var(--aew-infc-btn-bg-hover, var(--aew-cta-hover));
  color: var(--aew-infc-btn-text-hover, var(--aew-infc-btn-text, #FFFFFF));
}

.aew-infc__cta:focus-visible {
  outline: 2px solid var(--aew-background);
  outline-offset: 2px;
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* X gutter from outer (40); Y 64 from desktop inner */
  .aew-infc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .aew-infc { padding-left: 16px; padding-right: 16px; }
  .aew-infc__inner {
    padding: 32px 0;           /* mobile Y 32 */
  }
  .aew-infc__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  /* Stacked on mobile — re-centre the cards (undo the pull-to-centre split). */
  .aew-infc__grid:has(.aew-infc__col--noimg) .aew-infc__col--noimg:nth-child(odd),
  .aew-infc__grid:has(.aew-infc__col--noimg) .aew-infc__col--noimg:nth-child(even) {
    margin-inline: auto;
  }
  .aew-infc .aew-infc__heading {
    font-size: 40px;
    margin-bottom: 32px;
  }
  .aew-infc .aew-infc__col-title {
    font-size: 28px;
  }
  .aew-infc__col-text {
    font-size: 14px;
  }
  .aew-infc__cta {
    font-size: 16px;
    padding: 18px 24px 16px;
  }
  .aew-infc__cta-wrap {
    margin-top: 32px;
  }
}
