/**
 * Components — header, navigation, buttons, cards, footer.
 */

/* ==========================================================================
 * Header
 * Fixed over the page. On the front page it sits on top of the hero behind a
 * soft white gradient, matching the design; elsewhere it is solid white.
 * ======================================================================= */

.wb-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--wb-z-header);
  min-height: var(--wb-header-h);
  display: flex;
  align-items: center;
  background-color: var(--wb-white);
  transition: background-color var(--wb-transition), box-shadow var(--wb-transition);
}

/*
 * Transparent over the hero: a white gradient fades out downwards so the nav
 * stays legible, and the image behind shows through unblurred. The design's
 * navbar specifies a backdrop blur, but it is deliberately left off here.
 */
.wb-has-transparent-header .wb-header {
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Once scrolled, the header becomes solid so links stay legible. */
.wb-header.is-stuck,
.wb-has-transparent-header .wb-header.is-stuck {
  background-color: var(--wb-white);
  background-image: none;
  box-shadow: var(--wb-shadow-sm);
}

.wb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wb-space-6);
  width: 100%;
}

.wb-header__brand {
  flex-shrink: 0;
}

.wb-logo {
  display: inline-flex;
  align-items: center;
}

.wb-logo__img {
  width: auto;
  height: 3.5rem;
}

@media (min-width: 64rem) {
  .wb-logo__img {
    height: 5.125rem; /* 82px, as designed */
  }
}

/* The footer logo is the same artwork rendered in white. */
.wb-logo--invert .wb-logo__img {
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
 * Primary menu
 * ----------------------------------------------------------------------- */

.wb-header__nav {
  display: none;
}

@media (min-width: 64rem) {
  .wb-header__nav {
    display: block;
    flex: 1 1 auto;
  }
}

.wb-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--wb-space-6);
}

/*
 * Small desktops: with the language toggle beside them, the links need a
 * little less air to fit between the logo and the gutter.
 */
@media (min-width: 64rem) and (max-width: 79.9375rem) {
  .wb-header__inner {
    gap: var(--wb-space-5);
  }

  .wb-header .wb-menu {
    gap: var(--wb-space-4);
  }
}

.wb-menu__link,
.wb-menu a {
  position: relative;
  display: inline-block;
  padding-block: var(--wb-space-2);
  color: var(--wb-ink);
  font-size: var(--wb-fs-body);
  font-weight: var(--wb-fw-regular);
  white-space: nowrap;
}

.wb-menu a:hover,
.wb-menu a:focus,
.wb-menu .current-menu-item > a {
  color: var(--wb-primary);
}

/* Underline that grows from the centre on hover. */
.wb-menu a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  left: 50%; /* Physical on purpose: centring is the same either way round. */
  width: 0;
  height: 2px;
  background-color: var(--wb-secondary);
  transform: translateX(-50%);
  transition: width var(--wb-transition);
}

.wb-menu a:hover::after,
.wb-menu a:focus::after,
.wb-menu .current-menu-item > a::after {
  width: 100%;
}

/* Placeholder items in the fallback menu are not clickable. */
.wb-menu__link--inactive {
  color: var(--wb-gray-400);
  cursor: default;
}

.wb-header__actions {
  display: flex;
  align-items: center;
  gap: var(--wb-space-4);
  flex-shrink: 0;
}

/*
 * Both selectors are needed: .wb-btn also sets display, and is declared later
 * in this file, so a single-class rule here would lose the specificity tie.
 */
.wb-btn.wb-header__cta {
  display: none;
}

@media (min-width: 64rem) {
  .wb-btn.wb-header__cta {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
 * Burger
 * ----------------------------------------------------------------------- */

.wb-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--wb-radius-sm);
  color: var(--wb-primary-dark);
}

@media (min-width: 64rem) {
  .wb-burger {
    display: none;
  }
}

/*
 * Language menu (inc/polylang.php): a small outlined button showing the
 * current language — globe, "EN" / "AR", caret — that drops a short list of
 * the languages, each named in itself. Built on <details>, so it works
 * without JavaScript.
 */
.wb-lang {
  position: relative;
  flex-shrink: 0;
}

.wb-lang__current {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 2rem; /* 32px */
  padding-inline: 0.5rem;
  border: 1px solid var(--wb-hairline);
  border-radius: var(--wb-radius-sm);
  color: var(--wb-ink);
  font-size: 0.8125rem; /* 13px */
  font-weight: var(--wb-fw-semibold);
  line-height: 1;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color var(--wb-transition), border-color var(--wb-transition);
}

/* No disclosure triangle: the caret icon stands in for it. */
.wb-lang__current::-webkit-details-marker {
  display: none;
}

.wb-lang__current:hover,
.wb-lang__current:focus-visible,
.wb-lang[open] .wb-lang__current {
  border-color: var(--wb-secondary);
  color: var(--wb-secondary);
}

/* Scoped past the general .wb-icon size (28px), declared later in this file. */
.wb-lang .wb-lang__icon {
  width: 1rem;
  height: 1rem;
}

.wb-lang .wb-lang__caret {
  width: 0.625rem;
  height: 0.625rem;
  transition: transform var(--wb-transition);
}

.wb-lang[open] .wb-lang__caret.wb-icon {
  transform: rotate(180deg);
}

.wb-lang__list {
  position: absolute;
  z-index: 60;
  inset-block-start: calc(100% + 0.375rem);
  inset-inline-end: 0;
  min-width: 8.5rem;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid var(--wb-hairline);
  border-radius: var(--wb-radius-sm);
  background-color: var(--wb-white);
  box-shadow: 0 10px 28px rgba(0, 0, 28, 0.12);
  list-style: none;
}

.wb-lang__option {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  color: var(--wb-ink);
  font-size: 0.875rem; /* 14px */
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.wb-lang__option:hover,
.wb-lang__option:focus-visible {
  background-color: var(--wb-surface);
  color: var(--wb-secondary);
}

.wb-lang__option.is-current {
  color: var(--wb-primary);
  font-weight: var(--wb-fw-semibold);
}

.wb-burger__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1rem;
}

.wb-burger__line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--wb-transition), opacity var(--wb-transition);
}

.wb-burger[aria-expanded="true"] .wb-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.wb-burger[aria-expanded="true"] .wb-burger__line:nth-child(2) {
  opacity: 0;
}

.wb-burger[aria-expanded="true"] .wb-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
 * Mobile menu
 * ----------------------------------------------------------------------- */

.wb-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--wb-z-menu);
  background-color: rgba(9, 22, 56, 0.45);
}

.wb-mobile-menu[hidden] {
  display: none;
}

/*
 * A full-width white panel, not a drawer: the design fills the screen with the
 * menu, a call to action, social links and the contact details.
 */
.wb-mobile-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 2.125rem; /* 34px */
  width: 100%;
  height: 100%;
  padding: var(--wb-space-4) var(--wb-space-4) 1.4375rem;
  background-color: var(--wb-white);
  overflow-y: auto;
  animation: wb-slide-in 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wb-slide-in {
  from { transform: translateY(-2%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.wb-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wb-mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--wb-primary-dark);
}

/* Close glyph drawn from two rules, so no extra icon file is needed. */
.wb-mobile-menu__x {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.wb-mobile-menu__x::before,
.wb-mobile-menu__x::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
}

.wb-mobile-menu__x::before { transform: rotate(45deg); }
.wb-mobile-menu__x::after  { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
 * Menu rows
 * Each is a full-width tab with a caret; the current page is tinted and
 * carries a green leading edge.
 * ----------------------------------------------------------------------- */

.wb-menu--stacked {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.wb-menu--stacked .wb-menu__item,
.wb-menu--stacked li {
  border-bottom: 1px solid var(--wb-border);
}

.wb-menu--stacked a,
.wb-menu--stacked .wb-menu__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wb-space-5) var(--wb-space-5);
  color: var(--wb-primary-dark);
  font-size: var(--wb-fs-small);
  font-weight: var(--wb-fw-bold);
  white-space: normal;
}

/*
 * The pseudo-element the desktop menu uses for its hover underline is reused
 * here as the caret. The hover, focus and current-item rules above set that
 * underline to full width, so they are restated at higher specificity — or
 * a tapped link on a phone becomes a 100%-wide bar rotated 45 degrees.
 */
.wb-menu--stacked a::after,
.wb-menu--stacked a:hover::after,
.wb-menu--stacked a:focus::after,
.wb-menu--stacked .current-menu-item > a::after {
  content: "";
  position: static;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  margin-inline-start: var(--wb-space-4);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  background: none;
  transition: none;
}

.wb-menu--stacked .current-menu-item > a,
.wb-menu--stacked .current_page_item > a {
  background-color: var(--wb-surface);
  box-shadow: inset 3px 0 0 var(--wb-secondary);
}

.wb-mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 1.5625rem; /* 25px */
  margin-top: auto;
}

.wb-btn.wb-mobile-menu__cta {
  width: 100%;
  min-height: 3.75rem; /* 60px */
}

.wb-mobile-menu__cta .wb-btn__icon {
  width: 2rem;
  height: 2rem;
}

/* Contact details under a divider. */
.wb-menu-info {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-4);
  margin: 0;
  padding-top: 1.5625rem;
  border-top: 1px solid var(--wb-border);
  list-style: none;
}

.wb-menu-info__item {
  display: flex;
  align-items: center;
  gap: var(--wb-space-2);
  color: #6d7c85;
  font-size: var(--wb-fs-caption);
  line-height: 1.75rem;
}

.wb-menu-info__item a {
  color: inherit;
}

.wb-menu-info__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--wb-primary);
}

/* ==========================================================================
 * Buttons
 * 56px tall, 4px radius, bold 17px label. Hover turns green across every
 * variant, per the brand colour spec.
 * ======================================================================= */

.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wb-space-2);
  padding: 0.9375rem var(--wb-space-4); /* 15px 16px */
  border: 1px solid transparent;
  border-radius: var(--wb-radius-sm);
  font-size: var(--wb-fs-btn);
  font-weight: var(--wb-fw-bold);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--wb-transition), border-color var(--wb-transition),
    color var(--wb-transition), transform var(--wb-transition);
}

.wb-btn:active {
  transform: translateY(1px);
}

.wb-btn--large {
  padding-inline: var(--wb-space-8); /* Matches the 204px hero button. */
}

.wb-btn--small {
  padding: var(--wb-space-2) var(--wb-space-4);
  font-size: var(--wb-fs-small);
}

.wb-btn--primary {
  background-color: var(--wb-primary);
  border-color: var(--wb-primary);
  color: var(--wb-white);
}

.wb-btn--primary:hover,
.wb-btn--primary:focus {
  background-color: var(--wb-secondary);
  border-color: var(--wb-secondary);
  color: var(--wb-white);
}

/* For buttons sitting on a photo or dark panel. */
.wb-btn--bright {
  background-color: var(--wb-primary-bright);
  border-color: var(--wb-primary-bright);
  color: var(--wb-white);
}

.wb-btn--bright:hover,
.wb-btn--bright:focus {
  background-color: var(--wb-secondary);
  border-color: var(--wb-secondary);
  color: var(--wb-white);
}

.wb-btn--secondary {
  background-color: var(--wb-secondary);
  border-color: var(--wb-secondary);
  color: var(--wb-white);
}

.wb-btn--secondary:hover,
.wb-btn--secondary:focus {
  background-color: var(--wb-primary);
  border-color: var(--wb-primary);
  color: var(--wb-white);
}

.wb-btn--outline {
  background-color: transparent;
  border-color: var(--wb-primary);
  color: var(--wb-primary);
}

.wb-btn--outline:hover,
.wb-btn--outline:focus {
  background-color: var(--wb-primary);
  color: var(--wb-white);
}

.wb-btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--wb-primary);
}

.wb-btn--ghost:hover,
.wb-btn--ghost:focus {
  color: var(--wb-secondary);
}

.wb-btn__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Text link with a trailing arrow, as used on the news cards. */
.wb-link {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-2);
  color: var(--wb-secondary);
  font-weight: var(--wb-fw-regular);
}

.wb-link__icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--wb-transition);
}

.wb-link:hover .wb-link__icon {
  transform: translateX(3px);
}

/* ==========================================================================
 * Icons
 * ======================================================================= */

.wb-icon {
  display: inline-block;
  width: 1.75rem;  /* 28px, the icon artboard size */
  height: 1.75rem;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ==========================================================================
 * Cards
 * ======================================================================= */

.wb-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--wb-white);
  transition: transform var(--wb-transition), box-shadow var(--wb-transition);
}

.wb-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--wb-surface);
}

.wb-media__img,
.wb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wb-card:hover .wb-card__media img {
  transform: scale(1.04);
}

.wb-card__status {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--wb-space-3);
  inset-inline-end: var(--wb-space-3);
  padding: var(--wb-space-1) var(--wb-space-3);
  border-radius: var(--wb-radius-pill);
  background-color: var(--wb-primary-dark);
  color: var(--wb-white);
  font-size: var(--wb-fs-micro);
  font-weight: var(--wb-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wb-card__status--sold {
  background-color: var(--wb-text);
}

.wb-card__status--reserved {
  background-color: var(--wb-secondary);
}

.wb-card__link {
  color: inherit;
}

.wb-card__link:hover,
.wb-card__link:focus {
  color: var(--wb-primary);
}

.wb-card__excerpt p {
  margin: 0;
}

.wb-date {
  color: var(--wb-secondary);
  font-size: var(--wb-fs-meta);
}

/* --------------------------------------------------------------------------
 * Apartment card
 * The title and price sit on a white plate over the image's bottom-left
 * corner, with the specification row below the image.
 * ----------------------------------------------------------------------- */

/*
 * Mobile draws a bordered card with the title, price and specs stacked under
 * the image. Desktop drops the border and floats the title/price on a white
 * plate over the image's bottom-left corner.
 */
.wb-card--apartment {
  gap: 0;
  border: 1px solid #e9eef1;
}

.wb-card--apartment .wb-card__media {
  aspect-ratio: 424 / 325;
}

.wb-card--apartment .wb-card__imglink {
  display: block;
  height: 100%;
}

.wb-card__plate {
  padding: var(--wb-space-3) var(--wb-space-4) var(--wb-space-2);
  background-color: var(--wb-white);
}

@media (min-width: 64rem) {
  .wb-card--apartment {
    gap: var(--wb-space-3);
    background-color: transparent;
    border: 0;
  }

  .wb-card--apartment .wb-card__media {
    border-radius: 6px;
  }

  /*
   * A fixed 202x69 label in the corner of the 424px image, not a band across
   * the card — long titles wrap inside it rather than widening it.
   */
  .wb-card__plate {
    position: absolute;
    z-index: 2;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 12.625rem; /* 202px */
    min-height: 4.3125rem; /* 69px */
    padding: 0.5625rem 0.75rem var(--wb-space-2);
  }
}

/*
 * Mobile card, from the 393px frame: a 160px photograph set 1px inside the
 * border, then title, price and specs stacked beneath it. The media box must
 * not clip here — at this width the plate flows below the image inside it.
 */
@media (max-width: 63.99rem) {
  .wb-card--apartment .wb-card__media {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    margin: 1px 1px 0;
    overflow: visible;
    background-color: var(--wb-white);
  }

  .wb-card--apartment .wb-card__imglink {
    height: 10rem; /* 160px */
    overflow: hidden;
  }

  .wb-card--apartment .wb-card__plate {
    padding: 0.875rem 1rem 0; /* 14px 16px 0 */
  }

  .wb-card--apartment .wb-card__plate .wb-card__title {
    margin: 0;
    color: var(--wb-primary-dark);
    font-size: 0.875rem; /* 14px */
    font-weight: var(--wb-fw-semibold);
    line-height: 1.8125rem; /* 29px */
  }

  .wb-card--apartment .wb-card__price {
    margin: 0.25rem 0 0; /* 4px */
    color: var(--wb-secondary);
    font-size: 0.8125rem; /* 13px */
    font-weight: var(--wb-fw-bold);
    line-height: 1.75rem; /* 28px */
  }

  .wb-card--apartment .wb-specs--compact {
    margin: 0.625rem 0 0; /* 10px */
    padding: 0 1rem 1.4375rem; /* 0 16px 23px */
  }
}

/*
 * The plate is a fixed width, so a long title is held to two lines rather
 * than growing the label down over the photograph.
 */
.wb-card__plate .wb-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0 0 var(--wb-space-1);
  color: var(--wb-text);
  font-size: var(--wb-fs-body);
  font-weight: var(--wb-fw-bold);
  line-height: 1.5;
}

.wb-card__price {
  margin: 0;
  color: var(--wb-primary);
  font-size: var(--wb-fs-quote);
  font-weight: var(--wb-fw-bold);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
 * News card — image beside the copy
 * ----------------------------------------------------------------------- */

.wb-card--news {
  flex-direction: row;
  align-items: stretch;
  gap: var(--wb-space-5);
  box-shadow: var(--wb-shadow-card);
}

.wb-card--news .wb-card__media {
  flex: 0 0 46%;
  max-width: 17rem; /* 272px */
  align-self: stretch;
}

.wb-card--news .wb-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: var(--wb-space-4);
  padding-block: var(--wb-space-5);
  padding-inline-end: var(--wb-space-5);
}

.wb-card--news .wb-card__title {
  margin: 0;
  color: var(--wb-primary-dark);
  font-size: var(--wb-fs-newscard);
  font-weight: var(--wb-fw-bold);
  line-height: 1.2;
}

.wb-card--news .wb-card__excerpt {
  color: var(--wb-gray-600);
  font-size: var(--wb-fs-body);
}

.wb-card--news .wb-date,
.wb-card--news .wb-card__excerpt,
.wb-card--news .wb-link {
  margin: 0;
}

/*
 * On the phone frame the news items are plain rows, not cards: a 130px
 * photograph at 31.79% of the width, the copy beside it, no shadow or
 * padding, and 18px between rows.
 */
@media (max-width: 63.99rem) {
  .wb-card--news {
    gap: 4.05%;
    box-shadow: none;
  }

  .wb-card--news .wb-card__media {
    flex: 0 0 31.79%;
    align-self: center;
  }

  .wb-card--news .wb-card__media img {
    height: 8.125rem; /* 130px */
  }

  .wb-card--news .wb-card__body {
    gap: 0;
    padding: 0;
  }

  .wb-card--news .wb-card__title {
    font-size: 1rem; /* 16px */
    line-height: 2.125rem; /* 34px */
  }

  .wb-card--news .wb-date {
    color: var(--wb-gray-400);
    font-size: 0.6875rem; /* 11px */
    line-height: 1.4375rem; /* 23px */
  }

  .wb-card--news .wb-card__excerpt {
    margin-top: 0.25rem;
    font-size: 0.78125rem; /* 12.5px */
    line-height: 1.2125rem; /* 19.4px */
  }

  .wb-card--news .wb-link {
    margin-top: 0.5rem;
    color: var(--wb-primary);
    font-size: 0.78125rem; /* 12.5px */
    line-height: 1.625rem; /* 26px */
  }
}

/* ==========================================================================
 * Specification chips (beds, baths, area)
 * ======================================================================= */

.wb-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-4) var(--wb-space-5);
  align-items: center;
}

.wb-specs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-4);
  color: var(--wb-gray-400);
  font-size: var(--wb-fs-body);
}

.wb-specs__icon {
  width: 1.5rem; /* 24px */
  height: 1.5rem;
  color: var(--wb-primary);
}

.wb-specs__name {
  color: var(--wb-gray-500);
}

.wb-specs__value {
  font-weight: var(--wb-fw-bold);
}

.wb-specs__label {
  margin-inline-start: -0.65rem;
  font-weight: var(--wb-fw-regular);
}

/* Two-column grid used by the featured listing. */
.wb-specs--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wb-space-2) var(--wb-space-4);
  align-items: start;
}

/* Compact row under each apartment card, with hairline separators. */
.wb-specs--compact {
  gap: 0;
  padding: 0 var(--wb-space-4) var(--wb-space-4);
}

@media (min-width: 64rem) {
  /* Outside the card body at desktop, so it needs no inset. */
  .wb-specs--compact {
    padding: 0;
  }
}

.wb-specs--compact .wb-specs__item {
  gap: var(--wb-space-2);
  padding-inline: var(--wb-space-3);
  color: var(--wb-gray-500);
  font-size: var(--wb-fs-micro);
}

.wb-specs--compact .wb-specs__item:first-child {
  padding-inline-start: 0;
}

.wb-specs--compact .wb-specs__item + .wb-specs__item {
  border-inline-start: 1px solid rgba(0, 0, 0, 0.5);
}

/* Green on the card's spec row, where the full-size row uses blue. */
.wb-specs--compact .wb-specs__icon {
  width: 1rem;
  height: 1rem;
  color: var(--wb-secondary);
}

.wb-specs--compact .wb-specs__value {
  font-weight: var(--wb-fw-regular);
}

/* ==========================================================================
 * Footer
 * ======================================================================= */

.wb-footer {
  background-color: var(--wb-primary-dark);
  color: var(--wb-white);
}

.wb-footer__inner {
  display: grid;
  gap: var(--wb-space-5);
  padding-block: var(--wb-space-6) var(--wb-space-5);
}

/*
 * Desktop: 64px above the columns, then a 32px gap to the copyright and 24px
 * below it — the frame hugs to 394px with these.
 */
@media (min-width: 64rem) {
  .wb-footer__inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
    gap: var(--wb-space-6);
    padding-block: var(--wb-space-10) 0; /* 64px 0 */
  }
}

.wb-footer__brand .wb-logo__img {
  height: 5.125rem;
}

.wb-footer__text {
  margin-top: var(--wb-space-5);
  max-width: 34rem;
  color: var(--wb-white);
  font-size: var(--wb-fs-body);
  opacity: 0.9;
}

.wb-footer__menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wb-space-3) var(--wb-space-4);
}

@media (min-width: 64rem) {
  .wb-footer__menu {
    display: flex;
    flex-direction: column;
    gap: var(--wb-space-4);
    padding-block: 0.375rem; /* 6px, as the frame draws the list */
  }
}

/*
 * Footer links are underlined in the design, and sit 16px apart on a 26px
 * line — so the header nav's vertical padding is dropped here.
 */
.wb-footer__menu a,
.wb-footer__menu .wb-menu__link {
  padding-block: 0;
  color: var(--wb-white);
  font-size: var(--wb-fs-body);
  line-height: 1.53; /* 26px */
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
  transition: opacity var(--wb-transition), color var(--wb-transition);
}

.wb-footer__menu a:hover,
.wb-footer__menu a:focus {
  color: var(--wb-secondary-light);
  opacity: 1;
}

.wb-footer__connect {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-9);
}

/*
 * At desktop the column hugs the form beneath it (field, gap, button ≈ 243px)
 * and sits against the right edge, so the heading always breaks onto two
 * lines as drawn — whatever the container's width.
 */
@media (min-width: 64rem) {
  .wb-footer__connect {
    width: 15.2rem; /* 243px */
    justify-self: end;
  }
}

/* --------------------------------------------------------------------------
 * Newsletter
 * ----------------------------------------------------------------------- */

.wb-newsletter__title {
  margin: 0 0 var(--wb-space-4);
  color: var(--wb-white);
  font-size: var(--wb-fs-newsletter);
  text-transform: uppercase;
}

/* Field and button are top-aligned, 8.07px apart, as drawn. */
.wb-newsletter__form {
  display: flex;
  align-items: flex-start;
  gap: 0.5044rem; /* 8.07px */
}

/*
 * 9.68px/12.91px of padding around 10.8px text, which is what makes the
 * field the 33.88px tall the design gives it — so the height is left to
 * follow from those rather than being pinned separately.
 */
/*
 * Scoped past base.css's input[type="email"], which is a more specific
 * selector than a bare class and would otherwise keep its own padding.
 */
.wb-newsletter .wb-newsletter__input {
  /* Fills the row on mobile, where the frame lets it grow. */
  flex: 1 1 auto;
  min-width: 0;
  height: 2.1175rem; /* 33.88px */
  padding: 0.605rem 0.8069rem; /* 9.68px 12.91px */
  background-color: var(--wb-white);
  border: 0;
  border-radius: var(--wb-radius-sm);
  font-size: 0.675rem; /* 10.8px */
  line-height: normal;
}

/*
 * A green button carrying the paper plane alone. Fixed at 36.85px tall and
 * hugging its contents in width, which the padding and icon settle at ~40px.
 */
.wb-newsletter__submit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.3069rem; /* 4.91px */
  height: 2.3031rem; /* 36.85px */
  padding: 0.5375rem 0.6144rem; /* 8.6px 9.83px */
  background-color: var(--wb-secondary);
  border: 0.61px solid var(--wb-secondary);
  border-radius: 0.1538rem; /* 2.46px */
  color: var(--wb-white);
  transition: background-color var(--wb-transition);
}

/* At desktop the field is the fixed 193.58x33.88 the design gives it. */
@media (min-width: 64rem) {
  .wb-newsletter .wb-newsletter__input {
    flex: 0 0 auto;
    width: 12.0988rem; /* 193.58px */
  }
}

.wb-newsletter__submit:hover,
.wb-newsletter__submit:focus {
  background-color: var(--wb-secondary-light);
}

.wb-newsletter__submit .wb-icon {
  width: 1.2281rem; /* 19.65px */
  height: 1.2281rem;
}

/* --------------------------------------------------------------------------
 * Social links
 * ----------------------------------------------------------------------- */

.wb-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wb-space-4);
}

.wb-social__label {
  color: var(--wb-white);
  font-size: var(--wb-fs-body);
  opacity: 0.9;
}

.wb-social__list {
  display: flex;
  gap: var(--wb-space-3);
}

/* Bare glyphs in the design — no ring around them. */
.wb-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem; /* 25.6px */
  height: 1.6rem;
  color: var(--wb-white);
  transition: color var(--wb-transition);
}

.wb-social__link:hover,
.wb-social__link:focus {
  color: var(--wb-secondary-light);
}

/*
 * Social glyphs are drawn with CSS masks so no icon font or extra SVG file is
 * needed. Each network sets its own mask image.
 */
/* Phosphor Light logos, inlined by wadi_badan_icon() and recoloured by CSS. */
.wb-social__icon {
  width: 1.6rem; /* 25.6px */
  height: 1.6rem;
}

/* --------------------------------------------------------------------------
 * Footer bar
 * ----------------------------------------------------------------------- */

/*
 * The mobile frame rules off the copyright; the desktop one does not.
 */
.wb-footer__bar {
  padding-block: var(--wb-space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 64rem) {
  .wb-footer__bar {
    padding-block: 2.625rem var(--wb-space-5); /* 32px gap + 10px inset, 24px */
    border-top: 0;
  }
}

.wb-footer__copyright {
  margin: 0;
  color: var(--wb-white);
  font-size: var(--wb-fs-micro);
  line-height: normal; /* a single 12px line, as drawn */
  opacity: 0.6;
  text-align: center;
}

/* ==========================================================================
 * Slider controls and pagination
 * ======================================================================= */

.wb-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--wb-gray-300);
  border-radius: 50%;
  color: var(--wb-primary);
  transition: background-color var(--wb-transition), color var(--wb-transition),
    border-color var(--wb-transition);
}

.wb-slider-btn:hover,
.wb-slider-btn:focus {
  background-color: var(--wb-primary);
  border-color: var(--wb-primary);
  color: var(--wb-white);
}

.wb-pagination {
  margin-top: var(--wb-space-8);
}

.wb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-2);
  justify-content: center;
}

.wb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: var(--wb-space-3);
  border: 1px solid var(--wb-gray-300);
  border-radius: var(--wb-radius-sm);
  color: var(--wb-primary-dark);
}

.wb-pagination .page-numbers.current,
.wb-pagination .page-numbers:hover {
  background-color: var(--wb-primary);
  border-color: var(--wb-primary);
  color: var(--wb-white);
}

/* "Read More" is a plain underlined link in the design, with no icon. */
.wb-card--news .wb-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wb-social--centred {
  justify-content: center;
  gap: 2.5rem;
}

.wb-social--centred .wb-social__label {
  color: var(--wb-primary-dark);
  opacity: 1;
}

.wb-social--centred .wb-social__list {
  gap: var(--wb-space-5);
}

.wb-social--centred .wb-social__link {
  border-color: var(--wb-primary-bright);
  color: var(--wb-primary-dark);
}

.wb-social--centred .wb-social__link:hover,
.wb-social--centred .wb-social__link:focus {
  color: var(--wb-white);
}

/* ==========================================================================
 * Page hero — washed photograph carrying the page title
 * Used by the Contact and About templates.
 * ======================================================================= */

.wb-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 15.75rem; /* 252px on mobile */
  /* Mobile: the title centres 140px down, just under the header's shadow. */
  padding-block: calc(var(--wb-header-h) - var(--wb-space-2)) var(--wb-space-8);
  overflow: hidden;
}

@media (min-width: 64rem) {
  .wb-page-hero {
    min-height: 39.9375rem; /* 639px */
    padding-block: calc(var(--wb-header-h) + var(--wb-space-6)) var(--wb-space-6);
  }
}

.wb-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wb-page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 60% white wash on mobile, 50% at desktop, as drawn. */
.wb-page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 64rem) {
  .wb-page-hero__media::after {
    background-color: rgba(255, 255, 255, 0.5);
  }
}

.wb-page-hero__inner {
  position: relative;
  z-index: 1;
}

/* 36.5px on the phone rising to 64px, a step larger than --wb-fs-h1 at 390. */
.wb-page-hero__title {
  margin: 0;
  color: var(--wb-navy);
  font-size: clamp(2.2813rem, 1.6429rem + 2.619vw, 4rem);
  line-height: 1.36; /* 87 / 64 */
  text-align: center;
}
