/*
 * 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;
  align-items: center;
  justify-content: space-between;
  gap: 16px clamp(24px, 4vw, 56px);
  padding-bottom: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--foot-line);
}

.w2e-sitefoot__calltitle {
  font-family: var(--w2e-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--foot-ink);
  margin: 0;
  max-width: 22ch;
}

.w2e-sitefoot__callcta {
  flex: 0 0 auto;
  display: inline-block;
  padding: 14px 30px;
  background: var(--foot-gold);
  border: 1px solid var(--foot-gold);
  border-radius: var(--w2e-r, 3px);
  color: var(--w2e-navy-deep, #002240) !important;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter .16s ease, transform .16s ease;
}

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

.w2e-sitefoot__callcta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---- 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 {
  /* Sized from the wordmark, not the tower: see the note in brand.css. */
  height: 104px;
  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 ---- */

/* --------------------------------------------------------------------------
   The mark, centred over the row of networks

   The column is made to shrink to its widest child - which is the row of four
   discs - and its contents centred within that. The logo therefore sits
   centred above the icons rather than hanging off their left edge, while the
   group as a whole stays aligned with the columns beside it instead of
   drifting into the middle of the footer.

   align-items: flex-start on the column keeps that shrink-to-fit behaviour in
   the grid; without it the cell stretches and there is nothing to centre
   against.
   -------------------------------------------------------------------------- */
.w2e-sitefoot__brandcol {
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.w2e-sitefoot__brandcol > .w2e-sitefoot__logo,
.w2e-sitefoot__brandcol > .w2e-sitefoot__social {
  align-self: center;
}

/* Air between the mark and the row of networks.
   `.w2e-sitefoot__social` already asks for 20px, and loses: the reset a few
   rules above it, `.w2e-sitefoot__col ul { margin: 0 }`, carries one more
   element in its selector and wins on specificity - which left the discs six
   pixels under the logo, close enough to read as one object. Three classes and
   an element settle it. */
.w2e-sitefoot__col.w2e-sitefoot__brandcol > ul.w2e-sitefoot__social {
  margin-top: 26px;
}

.w2e-sitefoot__brandcol > .w2e-sitefoot__logo {
  /* The anchor is a block; centring the image inside it is what actually puts
     the mark over the middle of the icons. */
  text-align: center;
}

.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; }

/* --------------------------------------------------------------------------
   Each network in its own colour

   The glyph is white and the disc carries the brand colour, rather than the
   other way round. On this navy band that is not a stylistic preference:
   Facebook blue is #1877F2 and LinkedIn blue is #0A66C2, and a blue mark laid
   flat on a blue-black footer is a mark nobody can see. White on the brand
   colour keeps both the recognition and the contrast.

   Instagram has no single colour - its identity is the gradient, so it gets
   the gradient. TikTok's is black, which would disappear against the footer
   the same way the blues would, so its disc keeps a light rim to hold its edge.
   -------------------------------------------------------------------------- */

.w2e-sitefoot__social a[data-net] {
  color: #FFFFFF;
  border-color: transparent;
}

.w2e-sitefoot__social a[data-net="facebook"]  { background: #1877F2; }
.w2e-sitefoot__social a[data-net="linkedin"]  { background: #0A66C2; }
.w2e-sitefoot__social a[data-net="whatsapp"]  { background: #25D366; }

.w2e-sitefoot__social a[data-net="instagram"] {
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}

.w2e-sitefoot__social a[data-net="tiktok"] {
  background: #010101;
  border-color: rgba(255, 255, 255, .38);
}

/* Hover lifts and brightens rather than repainting: turning a Facebook disc
   gold on hover would throw away the one thing the colour is there to do. */
.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);
}

.w2e-sitefoot__social a[data-net]:hover,
.w2e-sitefoot__social a[data-net]:focus-visible {
  color: #FFFFFF;
  transform: translateY(-2px);
  filter: brightness(1.12) saturate(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

.w2e-sitefoot__social a[data-net="facebook"]:hover,
.w2e-sitefoot__social a[data-net="facebook"]:focus-visible  { background: #1877F2; border-color: transparent; }
.w2e-sitefoot__social a[data-net="linkedin"]:hover,
.w2e-sitefoot__social a[data-net="linkedin"]:focus-visible  { background: #0A66C2; border-color: transparent; }
.w2e-sitefoot__social a[data-net="whatsapp"]:hover,
.w2e-sitefoot__social a[data-net="whatsapp"]:focus-visible  { background: #25D366; border-color: transparent; }
.w2e-sitefoot__social a[data-net="instagram"]:hover,
.w2e-sitefoot__social a[data-net="instagram"]:focus-visible {
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  border-color: transparent;
}
.w2e-sitefoot__social a[data-net="tiktok"]:hover,
.w2e-sitefoot__social a[data-net="tiktok"]:focus-visible {
  background: #010101;
  border-color: rgba(255, 255, 255, .6);
}

/* Focus has to stay visible on a coloured disc, where a white ring alone can
   vanish into the brand colour. */
.w2e-sitefoot__social a[data-net]:focus-visible {
  outline: 2px solid var(--foot-gold);
  outline-offset: 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: 96px; }

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

  .w2e-sitefoot__head { flex-direction: column; align-items: flex-start; }
  .w2e-sitefoot__calltitle { max-width: none; }
  .w2e-sitefoot__callcta { width: 100%; text-align: center; padding: 15px 20px; }

  .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; }
