/* ==========================================================================
   contact-us.css – Contact Us page (Figma frame "contact-us" 1:3859, 1920 × 3547)
   1 Figma px = var(--u). Shared hero and .cut-frame live in pages.css,
   the form field base styles in components.css.
   ========================================================================== */

/* ---------- Offices intro (title y684, sub y772) ---------- */
.contact-offices { position: relative; padding-top: calc(96 * var(--u)); }
/* triangle strip – Figma 1:3860 (x -72, y 360), same tiles as About */
.contact-offices__triangles {
  position: absolute; left: calc(-2 * var(--u)); top: calc(-228 * var(--u));
  width: calc(224 * var(--u)); height: calc(588 * var(--u));
  max-width: none; pointer-events: none;
}
.contact-offices__head { position: relative; width: calc(1600 * var(--u)); margin-inline: auto; }
.contact-offices__sub {
  width: calc(1008 * var(--u));
  margin: calc(16 * var(--u)) auto 0;
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
  text-align: center;
}

/* ---------- Country tabs (Figma component 1:24 – 74 high, radius 40, #b9dbfe border) ---------- */
.office-tabs {
  position: relative;
  display: flex; justify-content: center; gap: calc(24 * var(--u));
  margin-top: calc(64 * var(--u));
}
.office-tab {
  display: inline-flex; align-items: center; gap: calc(16 * var(--u));
  padding: calc(12 * var(--u)) calc(32 * var(--u)) calc(12 * var(--u)) calc(16 * var(--u));
  border: 1px solid #b9dbfe;
  border-radius: calc(40 * var(--u));
  background: transparent;
  color: #000;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: calc(32 * var(--u));
  line-height: calc(40 * var(--u));
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.office-tab img { flex: none; width: calc(48 * var(--u)); height: calc(48 * var(--u)); border-radius: 50%; }
.office-tab.is-active,
.office-tab:hover,
.office-tab:focus-visible { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.office-tab:focus-visible { outline: 2px solid var(--c-sky, #55c5ff); outline-offset: 3px; }

/* ---------- Details + map (y986, 680 high) ---------- */
.office {
  position: relative;
  display: grid;
  grid-template-columns: calc(784 * var(--u)) 1fr;
  height: calc(680 * var(--u));
  margin-top: calc(40 * var(--u));
}
.office__details {
  position: relative;
  padding: calc(56 * var(--u)) calc(64 * var(--u));
  background: linear-gradient(138deg, #0284c7 0%, #004b98 48%, #264a91 100%);
  color: #fff;
}
.office__details::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(10 * var(--u)); background: #55c5ff; }
.office__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: calc(40 * var(--u));
  line-height: calc(56 * var(--u));
  text-transform: uppercase;
}
.office__list { display: grid; row-gap: calc(32 * var(--u)); margin-top: calc(16 * var(--u)); }
.office__item { display: flex; align-items: flex-start; gap: calc(16 * var(--u)); }
.office__icon { flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u)); margin-top: calc(4 * var(--u)); }
.office__label {
  color: #d5d5d5;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: calc(28 * var(--u));
  line-height: calc(40 * var(--u));
}
.office__value {
  margin-top: calc(8 * var(--u));
  font-size: calc(32 * var(--u));
  line-height: calc(48 * var(--u));
}
.office__value a { white-space: nowrap; transition: color 0.3s; }
.office__value a:hover, .office__value a:focus-visible { color: #55c5ff; }
.office__map { overflow: hidden; background: #eef3f8; }
.office__map img, .office__map iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
/* tab switch – details text and map fade out, swap, fade back in (js/contact.js) */
.office__list, .office__map > * { transition: opacity 0.2s ease; }
.office.is-switching .office__list, .office.is-switching .office__map > * { opacity: 0; }

/* ---------- Get in touch (y1826: 512 × 534 photo, form 1008 wide at x752) ---------- */
.contact-enquiry {
  position: relative;
  display: grid;
  grid-template-columns: calc(512 * var(--u)) 1fr;
  column-gap: calc(80 * var(--u));
  align-items: start;
  margin-top: calc(160 * var(--u));
}
/* right triangle strip – Figma 1:3886 (x 1699, y 2226) */
.contact-enquiry__triangles {
  position: absolute; right: calc(-160 * var(--u)); top: calc(400 * var(--u));
  width: calc(221 * var(--u)); height: calc(588 * var(--u));
  max-width: none; pointer-events: none; z-index: -1;
}
.contact-enquiry__media { height: calc(534 * var(--u)); }
.contact-enquiry__body { position: relative; }
.contact-enquiry__text {
  width: calc(766 * var(--u));
  margin-top: calc(16 * var(--u));
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}

/* light form variant – white fields, #d2d2d2 border, #979797 placeholder and icons */
.contact-form--light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "name     location"
    "email    enquiry"
    "phone    enquiry"
    "actions  actions";
  column-gap: calc(32 * var(--u));
  row-gap: calc(24 * var(--u));
}
.contact-form--light .field:has(#cf-name) { grid-area: name; }
.contact-form--light .field:has(#cf-email) { grid-area: email; }
.contact-form--light .field:has(#cf-phone) { grid-area: phone; }
.contact-form--light .field:has(#cf-location) { grid-area: location; }
.contact-form--light .field--textarea { grid-area: enquiry; }
.contact-form--light .contact-form__actions {
  grid-area: actions;
  display: flex; align-items: center; justify-content: flex-end; gap: calc(24 * var(--u));
  margin-top: calc(16 * var(--u));
}
.contact-form--light .field__box { background: #fff; border-color: #d2d2d2; }
.contact-form--light .field__box:focus-within { border-color: var(--c-navy); }
.contact-form--light .field--textarea .field__box { height: 100%; }
.contact-form--light .field__placeholder { color: #979797; }
/* home icons are #dedede – darkened to Figma #979797 */
.contact-form--light .field__icon,
.contact-form--light .field__caret { filter: brightness(0.68); }
.contact-form--light .field__box input,
.contact-form--light .field__box select,
.contact-form--light .field__box textarea { color: #141414; }
.contact-form--light .field__error { color: var(--c-required); }
.contact-form--light .contact-form__status { color: var(--c-text); }

/* ==========================================================================
   TABLET + MOBILE (< 1200px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .contact-offices { padding-top: 64px; }
  .contact-offices__triangles { display: none; }
  .contact-offices__head { width: auto; padding-inline: var(--gutter); }
  .contact-offices .section-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; }
  .contact-offices__sub { width: auto; max-width: 640px; margin-top: 12px; font-size: 17px; line-height: 1.6; }

  .office-tabs { flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-inline: var(--gutter); }
  .office-tab { gap: 10px; padding: 8px 18px 8px 8px; border-radius: 40px; font-size: 20px; line-height: 28px; }
  .office-tab img { width: 36px; height: 36px; }

  .office { grid-template-columns: 1fr 1fr; height: auto; margin-top: 32px; }
  .office__details { padding: 40px 32px; }
  .office__details::before { height: 6px; }
  .office__title { font-size: 26px; line-height: 36px; }
  .office__list { row-gap: 20px; margin-top: 16px; }
  .office__item { gap: 12px; }
  .office__icon { width: 24px; height: 24px; margin-top: 2px; }
  .office__label { font-size: 18px; line-height: 26px; }
  .office__value { margin-top: 4px; font-size: 18px; line-height: 28px; overflow-wrap: anywhere; }
  .office__map { min-height: 320px; }

  .contact-enquiry { grid-template-columns: 1fr 1.6fr; column-gap: 32px; margin-top: 72px; }
  .contact-enquiry__triangles { display: none; }
  .contact-enquiry__media { height: auto; aspect-ratio: 512 / 534; }
  .contact-enquiry .section-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; }
  .contact-enquiry__text { width: auto; margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .contact-form--light { grid-template-columns: 1fr; grid-template-areas: "name" "email" "phone" "location" "enquiry" "actions"; row-gap: 20px; margin-top: 24px; }
  .contact-form--light .field--textarea .field__box { height: 140px; }
  .contact-form--light .contact-form__actions { margin-top: 4px; }
}

@media (max-width: 767.98px) {
  .office { grid-template-columns: 1fr; }
  .office__details { padding: 32px 20px; }
  .office__map { min-height: 0; aspect-ratio: 816 / 680; }

  .contact-enquiry { grid-template-columns: 1fr; row-gap: 28px; }
  .contact-enquiry__media { max-width: 480px; }
  .contact-form--light .contact-form__actions { justify-content: flex-start; flex-direction: row-reverse; }
}
