/*
 * Responsive fixes, loaded last so they win over the page styles.
 * Layout comes from CSS variables on each container, which is why values here use !important.
 *
 * Sections below, in order:
 *   1. Tablet (768-1024px)
 *   2. Tablet portrait only (768-899px)
 *   3. Phone and tablet (up to 1024px)
 *   4. Phone (up to 767px)
 *   5. Small desktop (1025-1500px)
 *   6. Touch screens
 *   7. All sizes
 */

/* 1. Tablet ------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Section spacing. Top strip and page heroes have their own. */
  #content .e-con.e-parent:not(.elementor-element-4f981bd, .elementor-element-6999e1b, .elementor-element-539830c, .elementor-element-478a4b6, .elementor-element-026d16c, .elementor-element-5a022c5) {
    --padding-top: 48px !important;
    --padding-bottom: 48px !important;
  }

  /* Header: larger logo, menu button at the right edge. */
  .elementor-element-412f7b4e { --width: 30% !important; }
  .elementor-element-1bc6336d {
    --width: 70% !important;
    --justify-content: flex-end !important;
    --align-items: center !important;
  }
  .elementor-element-67f5ac52 { width: 130px !important; max-width: 130px !important; }
  .elementor-element-67f5ac52 img { width: 100%; height: auto; }

  /* Top strip: keep text clear of the corner graphic. */
  .elementor-element-6c32a93 > .elementor-widget-container { padding-inline: 64px !important; }

  /* Dynamic campaigns card: wider text, full corner graphic. */
  .elementor-element-608649a8 { --width: 62% !important; }
  .elementor-element-1967b0bf {
    background-size: auto 100% !important;
    background-position: right center !important;
  }

  /* Services page: two cards per row. */
  .elementor-element-d363d9f > .e-con-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
  }
  .elementor-element-e33ad94 { grid-column: 1 / -1; }
  .elementor-element-e2405bb,
  .elementor-element-2ac8eaf { display: contents !important; }
  .elementor-element-c066aef,
  .elementor-element-2a5d5fd { display: none !important; }
  .elementor-element-bbb058d,
  .elementor-element-652744b,
  .elementor-element-5c535c2,
  .elementor-element-8cf2969 {
    --width: 100% !important;
    width: 100% !important;
    --margin-top: 0px !important;
    --margin-bottom: 0px !important;
    margin-block: 0 !important;
    align-self: stretch !important;
  }

  /* Contact page: details above the form, so the fields have room. */
  .elementor-element-47cb4ba {
    --flex-direction: column !important;
    --width: 100% !important;
  }
  .elementor-element-08c40a5,
  .elementor-element-a0c8733 { --width: 100% !important; width: 100% !important; }
  .elementor-element-08c40a5 { --min-height: 0 !important; }

  /* FAQ: readable size, full width. */
  .e-con:has(> .elementor-widget-toggle) { --width: min(720px, 100%) !important; width: min(720px, 100%) !important; }
  .elementor-widget-toggle { width: 100% !important; }
  .elementor-toggle .elementor-toggle-title {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  /* Footer: intro above three columns, corner graphic clear of the text. */
  .elementor-element-17a78ea4 {
    --padding-top: 48px !important;
    --padding-bottom: 48px !important;
    background-image: url("/uploads/2024/09/Untitled-design-2.svg") !important;
    background-position: bottom right !important;
    background-size: 200px auto !important;
  }
  .elementor-element-1e784856 {
    --flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    row-gap: 32px;
  }
  .elementor-element-1f370ba3 { --width: 100% !important; width: 100% !important; }
  .elementor-element-4196589,
  .elementor-element-090838f { --width: 28% !important; width: 28% !important; }
  .elementor-element-b6a6a9f { --width: 40% !important; width: 40% !important; }
}

/* 2. Tablet portrait ---------------------------------------------------- */
@media (min-width: 768px) and (max-width: 899px) {

  /* Reviews page: two cards per row. */
  .elementor-element-8e6b869 > .e-con-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
  }
  .elementor-element-2a4a5a4 { grid-column: 1 / -1; }
  .elementor-element-8e6b869 > .e-con-inner > .e-con:not(.elementor-element-2a4a5a4) { display: contents !important; }
  .elementor-element-8e6b869 > .e-con-inner > .e-con > .e-con {
    --width: 100% !important;
    width: 100% !important;
    --margin-top: 0px !important;
    --margin-bottom: 0px !important;
    margin-block: 0 !important;
    align-self: stretch !important;
  }
}

/* 3. Phone and tablet --------------------------------------------------- */
@media (max-width: 1024px) {

  /* "Top Rated" pill: one line, sized to its text. */
  .elementor-element-37f5b82c {
    --width: fit-content !important;
    width: fit-content !important;
    --padding-left: 24px !important;
    --padding-right: 24px !important;
    --padding-top: 9px !important;
    --padding-bottom: 9px !important;
  }
  .elementor-element-e8ae065 .elementor-heading-title { white-space: nowrap; }

  /* iPhones zoom the page when a field's text is under 16px. */
  #contact-form .contact__input { font-size: 16px; }
}

/* 4. Phone -------------------------------------------------------------- */
@media (max-width: 767px) {

  .elementor-element-e8ae065 .elementor-heading-title { font-size: 12px !important; }

  /* Top strip: keep text clear of the corner graphic. */
  .elementor-element-6c32a93 > .elementor-widget-container { padding-right: 40px !important; }
}

/* Service pages: reserve the hero image's space, so slow images don't push the text down. */
@media (max-width: 767px) {
  body:not(.home) #content .e-con > .elementor-widget-image { width: 100%; }
}

/* Process icons: two by two, rather than three with one left over. */
@media (max-width: 560px) {
  .e-con:has(> .elementor-widget-icon-box) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    row-gap: 24px;
  }
  .e-con:has(> .elementor-widget-icon-box) > .elementor-widget-icon-box { width: 100%; }
}

/* Large phones: the hero artwork scaled up until it hit the partner logos. */
@media (min-width: 430px) and (max-width: 767px) {
  .elementor-element-c0eed19 { max-width: 240px; margin-inline: auto; }
  .elementor-element-6999e1b {
    background-size: 340px auto !important;
    background-position: center bottom !important;
  }
}

/* 5. Small desktop ------------------------------------------------------ */
@media (min-width: 1025px) and (max-width: 1500px) {

  /* Footer: stop the green stripe running behind the contact details. */
  .elementor-element-17a78ea4 {
    background-size: auto 100% !important;
    background-position: calc(100% + 150px) center !important;
  }
}

@media (min-width: 1281px) and (max-width: 1500px) {
  .elementor-element-17a78ea4 { background-position: calc(100% + 70px) center !important; }
}

@media (max-width: 1280px) {
  /* Long placeholders were cut off in narrow fields. */
  .contact__input::placeholder { font-size: 13.5px; }
}

/* 6. Touch screens ------------------------------------------------------ */
@media (pointer: coarse) {

  /* Larger tap areas without moving anything: invisible, around each link. */
  footer a,
  header a,
  .elementor-button,
  .elementor-popup-modal a { position: relative; }

  footer a::after,
  header a::after,
  .elementor-button::after,
  .elementor-popup-modal a::after {
    content: "";
    position: absolute;
    inset: -10px -4px;
  }

  .elementor-social-icon { overflow: visible !important; }
  .elementor-social-icon::after { inset: -6px !important; }
}

/* 7. All sizes ---------------------------------------------------------- */

/* Visible focus for keyboard users. Mouse and touch users never see it. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #81d55e !important;
  outline-offset: 2px;
}

/* Registered offices: footer and Contact page ------------------------------ */
.elementor-element-17a78ea4 > .e-con-inner { flex-wrap: wrap !important; }
.elementor-element-1e784856 { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
.elementor-element-0910b0a { flex-direction: column !important; flex-wrap: nowrap !important; }
.elementor-element-0910b0a > * { max-width: 100%; }
.uex-offices { width: 100%; flex: 0 0 100%; box-sizing: border-box; margin-inline: 0; position: relative; font-family: "Poppins", sans-serif; }
.uex-offices__title { margin: 0 0 18px; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.3; }
.uex-offices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.uex-office__country { margin: 0 0 6px; color: #81d55e; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.uex-office__legal { margin: 0 0 6px; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; }
.uex-office__address { margin: 0; color: #d1d4dc; font-size: 13px; font-style: normal; font-weight: 300; line-height: 1.6; }

footer .uex-offices { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Contact card: stacked, on its dark background */
.elementor-element-0910b0a .uex-offices { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.elementor-element-0910b0a .uex-offices__grid { grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element-0910b0a .uex-offices__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
}

@media (max-width: 767px) {
  .uex-offices__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Copyright: last line of the footer */
.uex-copyright { flex: 0 0 100%; width: 100%; text-align: center; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); position: relative; color: #d1d4dc; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 300; line-height: 1.5; }

/* Footer: no corner graphic on phones */
@media (max-width: 767px) {
  .elementor-element-17a78ea4 { background-image: none !important; }
}

/* Footer: phone and email spaced like the link columns */
.elementor-element-3f84372 > .elementor-widget-container { margin-top: -10px !important; }
@media (max-width: 767px) {
  .elementor-element-3f84372 > .elementor-widget-container { margin-top: -18px !important; }
}
