/*
 * The site footer.
 *
 * Composition, not four columns of links. The first band is the brand: the
 * mark, one line in the display face saying what the firm does, and the signup
 * set apart in its own panel so it reads as an offer rather than as another
 * form. A hairline, then the directory: what we do, the company, the four
 * emirates, and how to reach a person. A last hairline, then the small print.
 *
 * The rules are written against `body .w2e-sitefoot ...` where the theme fights
 * back - Astra sets `img { height: auto }` and a blanket anchor colour at a
 * weight a single class cannot beat.
 */

.w2e-sitefoot {
  --foot-ink: #ffffff;
  --foot-dim: rgba(255, 255, 255, .68);
  --foot-faint: rgba(255, 255, 255, .48);
  --foot-line: rgba(255, 255, 255, .13);
  --foot-gold: var(--w2e-gold, #c99a49);

  background: var(--w2e-navy-deep, #002240);
  color: var(--foot-ink);
  padding: clamp(28px, 3.2vw, 44px) clamp(20px, 5vw, 56px) 0;
  font-family: var(--w2e-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  position: relative;
  z-index: 1;
}

.w2e-sitefoot *,
.w2e-sitefoot *::before,
.w2e-sitefoot *::after { box-sizing: border-box; }

/* Defensive: the theme makes the body a flex row, so if this ever renders as a
   direct child of the body it must still take the full width. */
body > .w2e-sitefoot { flex: 1 0 100%; width: 100%; }

/* ==========================================================================
   Band one: the brand, and the signup panel
   ========================================================================== */

.w2e-sitefoot__head {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px clamp(24px, 4vw, 56px);
  padding-bottom: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--foot-line);
}

.w2e-sitefoot__headtext { flex: 1 1 300px; min-width: 0; }

.w2e-sitefoot__panelh {
  font-family: var(--w2e-serif, "Playfair Display", Georgia, serif);
  font-size: 1.16rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--foot-ink);
}

.w2e-sitefoot__fine {
  color: var(--foot-faint);
  font-size: .82rem;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

.w2e-sitefoot__signup {
  display: flex;
  gap: 8px;
  flex: 0 1 440px;
  flex-wrap: wrap;
}

.w2e-sitefoot__signup input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 11px 14px;
  font: inherit;
  font-size: .9rem;
  color: var(--foot-ink);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--foot-line);
  border-radius: var(--w2e-r, 3px);
}

.w2e-sitefoot__signup input::placeholder { color: rgba(255, 255, 255, .42); }

.w2e-sitefoot__signup input:focus {
  outline: none;
  border-color: var(--foot-gold);
  background: rgba(255, 255, 255, .1);
}

.w2e-sitefoot__signup button {
  flex: 0 0 auto;
  padding: 11px 18px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--w2e-navy-deep, #002240);
  background: var(--foot-gold);
  border: 1px solid var(--foot-gold);
  border-radius: var(--w2e-r, 3px);
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}

.w2e-sitefoot__signup button:hover { filter: brightness(1.08); }
.w2e-sitefoot__signup button:active { transform: translateY(1px); }

.w2e-sitefoot .w2e-newsletter__say {
  flex: 1 0 100%;
  font-size: .84rem;
  margin: 2px 0 0;
  color: var(--foot-ink);
}

/* ---- the brand column ---- */

.w2e-sitefoot__logo { display: block; text-decoration: none; color: inherit; border: 0; }

.w2e-sitefoot__logo:focus-visible { outline: 2px solid var(--foot-gold); outline-offset: 6px; }

body .w2e-sitefoot .w2e-sitefoot__logo-img,
body .w2e-sitefoot .w2e-sitefoot__logo img {
  height: 78px;
  width: auto;
  display: block;
  max-width: 100%;
}

.w2e-sitefoot__wordmark {
  font-family: var(--w2e-serif, "Playfair Display", Georgia, serif);
  font-size: 1.5rem;
}

.w2e-sitefoot__wordmark em { color: var(--foot-gold); font-style: italic; }

/* ==========================================================================
   Band two: the directory
   ========================================================================== */

.w2e-sitefoot__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.05fr);
  gap: clamp(20px, 2.6vw, 40px);
  padding: clamp(22px, 2.6vw, 32px) 0;
}

.w2e-sitefoot__h {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--foot-ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--foot-line);
  position: relative;
  font-family: var(--w2e-sans, "Plus Jakarta Sans", system-ui, sans-serif);
}

/* A short gold rule riding the hairline: the one piece of colour up here. */
.w2e-sitefoot__h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 26px;
  height: 1px;
  background: var(--foot-gold);
}

.w2e-sitefoot__col ul,
.w2e-sitefoot__contactlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.w2e-sitefoot__col li { margin: 0; }

/* Six links in one column left the three columns beside it standing in a field
   of navy. Split into two, every column ends within a row of the others. */
.w2e-sitefoot__list--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.w2e-sitefoot__col a {
  color: var(--foot-dim);
  text-decoration: none;
  font-size: .93rem;
  line-height: 1.45;
  display: inline-block;
  padding: 6px 0;
  transition: color .16s ease, transform .16s ease;
}

.w2e-sitefoot__col a:hover,
.w2e-sitefoot__col a:focus-visible {
  color: var(--foot-ink);
  transform: translateX(2px);
}

/* ---- contact column ---- */

.w2e-sitefoot__contactlist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--foot-dim);
  font-size: .93rem;
  line-height: 1.5;
  padding: 6px 0;
}

.w2e-sitefoot__contactlist svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 3px;
  color: var(--foot-gold);
}

.w2e-sitefoot__contactlist a {
  color: var(--foot-dim);
  text-decoration: none;
  padding: 0;
  word-break: break-word;
}

.w2e-sitefoot__contactlist a:hover,
.w2e-sitefoot__contactlist a:focus-visible { color: var(--foot-ink); transform: none; }

.w2e-sitefoot__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--w2e-r, 3px);
  color: var(--foot-ink) !important;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.w2e-sitefoot__cta:hover,
.w2e-sitefoot__cta:focus-visible {
  background: var(--foot-gold);
  border-color: var(--foot-gold);
  color: var(--w2e-navy-deep, #002240) !important;
  transform: none;
}

/* ---- social ---- */

.w2e-sitefoot__brandcol { padding-top: 2px; }

.w2e-sitefoot__social {
  list-style: none;
  margin: 20px 0 0;
  flex-wrap: wrap;
  padding: 0;
  display: flex;
  gap: 9px;
}

.w2e-sitefoot__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--foot-line);
  border-radius: 50%;
  color: var(--foot-ink);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.w2e-sitefoot__social svg { width: 19px; height: 19px; }

.w2e-sitefoot__social a:hover,
.w2e-sitefoot__social a:focus-visible {
  background: var(--foot-gold);
  border-color: var(--foot-gold);
  color: var(--w2e-navy-deep, #002240);
  transform: translateY(-2px);
}

/* ==========================================================================
   Band three: the small print
   ========================================================================== */

.w2e-sitefoot__bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--foot-line);
  padding: 14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}

.w2e-sitefoot__copy {
  margin: 0;
  color: var(--foot-faint);
  font-size: .8rem;
}

.w2e-sitefoot__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 0;
  padding: 0;
}

.w2e-sitefoot__legal a {
  color: var(--foot-faint);
  font-size: .8rem;
  text-decoration: none;
  padding: 6px 0;
  display: inline-block;
}

.w2e-sitefoot__legal a:hover,
.w2e-sitefoot__legal a:focus-visible { color: var(--foot-ink); }

.w2e-sitefoot__lang { margin-left: auto; }

/* ==========================================================================
   Narrower screens
   ========================================================================== */

@media (max-width: 1080px) {
  .w2e-sitefoot__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .w2e-sitefoot__panel { max-width: 520px; }
  .w2e-sitefoot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
}

@media (max-width: 720px) {
  .w2e-sitefoot { padding-left: 20px; padding-right: 20px; }

  .w2e-sitefoot__id {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  body .w2e-sitefoot .w2e-sitefoot__logo-img,
  body .w2e-sitefoot .w2e-sitefoot__logo img { height: 78px; }

  .w2e-sitefoot__line { max-width: none; font-size: 1.2rem; }
  .w2e-sitefoot__blurb { max-width: none; }
  .w2e-sitefoot__panel { max-width: none; }

  .w2e-sitefoot__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .w2e-sitefoot__lang { margin-left: 0; }
}

@media (max-width: 430px) {
  .w2e-sitefoot__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .w2e-sitefoot__signup input { flex: 1 1 100%; }
  .w2e-sitefoot__signup button { width: 100%; }
}

/* The theme prints its own link styling into the content area; the footer sits
   outside it, but Astra's blanket anchor rules still reach here. */
body .w2e-sitefoot a { box-shadow: none; }
body .w2e-sitefoot a:hover { text-decoration: none; }
