/* ==========================================================================
   Contact — ported from the Prestige Contact reference page.

   .pr-banner, .pr-crumbs, .pr-field, .pr-label, .pr-field-row, .pr-choice and
   .pr-btn are lifted from prestige-components.css and are NOT restated here.
   Only the one-off layout the reference kept inline lives in this file, as
   classes so it can be re-laid-out at a breakpoint.

   Values come from prestige-tokens.css — nothing shared is hard-coded.
   ========================================================================== */

/* --- Banner -------------------------------------------------------------- */
/* The photo sits under a flat 0.62 wash. That figure IS the accessibility
 * floor for white text over this photography (measured 6.19:1) — several of
 * the project photos run near-white, so do not lighten it. */
[data-c="banner"] {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    var(--pr-banner-image);
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

/* The reference nested the header INSIDE the banner; header.php renders it
 * above <main>, so the banner is pulled up under it and pads itself clear. */
[data-c="banner"] {
  /* The header is fixed and out of flow, so only the padding is needed to
     start the content below it — no negative margin to cancel. */
  padding-top: var(--pr-header-height, 0px);
}

/* --- Office details ------------------------------------------------------ */

[data-c="office"] {
  padding-top: var(--section-pad);
  padding-right: var(--gutter-page);
  padding-left: var(--gutter-page);
}

[data-c="formhead"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

[data-c="office"] [data-c="formhead"] { gap: 2px; }

[data-c="eyebrow"] {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--subhead);
  line-height: 1;
  color: var(--ink);
}

[data-c="officetitle"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-md);
  line-height: 1;
  text-transform: uppercase;
  margin-top: -0.06em;
}

[data-c="detailsplit"] {
  display: grid;
  grid-template-columns: minmax(0, 760fr) minmax(0, 860fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: stretch;
}

/* Card and map are taller (BugHerd #160): the map sets the floor and the
   stretched grid row carries the card to match. The card's content sits
   centred in the extra height. */
[data-c="detailcard"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 2.6vw, 48px);
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: clamp(28px, 2.8vw, 52px);
}

/* The heading moved inside the dark card, so it takes the card's light ink. */
[data-c="detailcard"] [data-c="eyebrow"],
[data-c="detailcard"] [data-c="officetitle"] { color: var(--paper); }

[data-c="detailgrid"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.4vw, 42px);
}

[data-c="detail"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

[data-c="detailicon"] {
  width: 24px;
  height: 24px;
  color: var(--paper);
  margin-top: 4px;
}

[data-c="detailbody"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

[data-c="detaillabel"] {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}

[data-c="detailvalue"],
[data-c="detaillink"] {
  font-size: var(--body);
  line-height: 28px;
  color: var(--paper);
  text-wrap: pretty;
  /* An email address and a long street address have no spaces to break at, so
     they overflow their column on a narrow phone. `anywhere` lets the browser
     break mid-token only when it must, leaving normal wrapping alone —
     `break-all` would chop ordinary words too. */
  overflow-wrap: anywhere;
}

[data-c="detaillink"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
[data-c="detaillink"]:hover {
  color: var(--paper);
  text-decoration-color: var(--accent);
}

/* --- Map ----------------------------------------------------------------- */

[data-c="map"] {
  min-height: clamp(460px, 32vw, 600px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

[data-c="map"] iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(460px, 32vw, 600px);
  border: 0;
}

/* --- Contact form -------------------------------------------------------- */

[data-c="formsection"] {
  padding-top: var(--section-pad);
  padding-right: var(--gutter-page);
  padding-bottom: var(--section-pad);
  padding-left: var(--gutter-page);
}

[data-c="formsection"] [data-c="formhead"] { gap: 12px; }

[data-c="formtitle"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-md);
  line-height: 1.04;
  text-transform: uppercase;
}

[data-c="formintro"] {
  max-width: 720px;
  color: var(--muted);
}
[data-c="formintro"] p { color: var(--muted); }

[data-c="form"] {
  margin-top: clamp(28px, 2.8vw, 52px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 32px);
}

[data-c="pair"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
}

[data-c="triple"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
}

[data-c="submitrow"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

[data-c="formfootnote"] p {
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}
[data-c="formfootnote"] a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
[data-c="formfootnote"] a:hover { text-decoration-color: var(--accent); }

/* --- Breakpoints --------------------------------------------------------- */

@media (max-width: 1199px) {
  /* The 760/860 split has no room left for the map once the card's two icon
     columns stop fitting side by side. */
  [data-c="detailsplit"] { grid-template-columns: minmax(0, 1fr); }
  [data-c="map"],
  [data-c="map"] iframe { min-height: 420px; }
}

@media (max-width: 991px) {
  /* Standing rule: titles and copy centre at tablet and below. */
  [data-c="formhead"] { text-align: center; align-items: center; }
  [data-c="formintro"] { margin-right: auto; margin-left: auto; }
  [data-c="pair"] { grid-template-columns: minmax(0, 1fr); }
  [data-c="triple"] { grid-template-columns: minmax(0, 1fr); }
  [data-c="submitrow"] { justify-content: center; }
  [data-c="formfootnote"] { text-align: center; }
}

@media (max-width: 575px) {
  [data-c="detailgrid"] { grid-template-columns: minmax(0, 1fr); }
}
/* ==========================================================================
   Gravity Forms.

   The rules that dress GF's markup live in prestige-components.css, scoped to
   GF's own .gform_wrapper so a form is styled on any page, not just this one.

   They style FIELDS only. GF owns layout — its column grid is built from the
   span an editor sets per field in the form editor. Do not add grid or column
   rules here or there; two layout systems on the same markup is what made the
   alignment wrong.
   ========================================================================== */
