/* ==========================================================================
   PAGE — Contact Us (contact-us.html)
   Lifted from preview/contact-us/style.css. Every selector is already
   namespaced `contact-us-`, so it cannot reach the other five pages.

   The standalone preview's own .preview-* chrome and body reset are dropped
   here — the shared `site-` header and footer above replace them.

   General Sans is only loaded by contact-us.html, which is the one page whose
   design uses it (the form labels and the consent line).
   ========================================================================== */

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  /* Brand */
  --contact-us-gold:        #FFC600;  /* eyebrow, highlight, submit, CTA border */
  --contact-us-gold-deep:   #C99C00;  /* office accent bar, map links, pin disc */

  /* Dark surfaces */
  --contact-us-hero-bg:     #060F1E;
  --contact-us-scrim:       rgba(6, 15, 30, 0.75);

  /* Text */
  --contact-us-body:        #646464;  /* intro, addresses, phone */
  --contact-us-heading:     #333333;  /* "Our Presence" */
  --contact-us-office-ink:  #4A4A4A;  /* office titles */
  --contact-us-on-dark:     #FFFFFF;
  --contact-us-email-ink:   #FDFDFD;

  /* Form */
  --contact-us-rule:        #9B9B9B;  /* the underline under every field */
  --contact-us-label:       #B2B2B2;
  --contact-us-consent:     #BBBBBB;
  --contact-us-required:    #FC0606;
  --contact-us-box-bg:      #F7F7F7;
  --contact-us-box-border:  #848484;
  --contact-us-error:       #C62828;

  /* Type */
  --contact-us-font-display: 'Poppins', 'Sailec Bold', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --contact-us-font-body:    'Poppins', 'Sailec Medium', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --contact-us-font-form:    'General Sans', 'Poppins', 'Sailec Medium', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Geometry — 1240px of content inside a 100px margin at 1440, as the Figma
     draws it. The gutter ramps rather than stepping, so the margin is right
     at every width instead of only at exactly 1440. */
  --contact-us-max:      1240px;
  --contact-us-gutter:   20px;
  --contact-us-radius:   20px;

  /* Must stay in step with --monk-header-h in the theme's style.css. */
  --contact-us-header-h: 76px;
}

@media (min-width: 480px) {
  :root { --contact-us-gutter: 24px; }
}

@media (min-width: 768px) {
  /* Same ramp as --site-gutter: 32px at 768 → 100px at 1440, then holds. */
  :root { --contact-us-gutter: clamp(32px, 10.119vw - 45.71px, 100px); }
}


/* ==========================================================================
   PAGE SHELL
   ========================================================================== */

.contact-us-page,
.contact-us-page *,
.contact-us-page *::before,
.contact-us-page *::after {
  box-sizing: border-box;
}

.contact-us-page {
  /* Clears the theme's fixed header. functions.php adds
     `monk-figma-template` to <body>, which stands the theme's generic
     .monk-main offset down so this is the only offset applied. */
  padding-top: var(--contact-us-header-h);
  font-family: var(--contact-us-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--contact-us-body);
  /* Counts the break opportunity when computing min-content width, which is
     what actually keeps long addresses out of the horizontal scrollbar. */
  overflow-wrap: anywhere;
}

.contact-us-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
  margin: 0;
  padding: 0;
}

.contact-us-page :where(ul, ol) {
  list-style: none;
}

.contact-us-page :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}

.contact-us-page :focus-visible {
  outline: 3px solid var(--contact-us-gold);
  outline-offset: 3px;
}

.contact-us-container {
  width: 100%;
  max-width: calc(var(--contact-us-max) + var(--contact-us-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--contact-us-gutter);
}


/* ==========================================================================
   1. HERO
   ========================================================================== */

.contact-us-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 13.9vw, 200px) clamp(64px, 13.4vw, 193px);
  text-align: center;
  color: var(--contact-us-on-dark);
  background-color: var(--contact-us-hero-bg);
  /* The amber glow behind the headline — a radial gradient in the Figma,
     centred at 50% 20% with the reach taken from its gradientTransform. */
  background-image: radial-gradient(
    104.5% 91.1% at 50% 20%,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(245, 158, 11, 0) 70%
  );
}

.contact-us-eyebrow {
  font-family: var(--contact-us-font-display);
  font-weight: 600;
  font-size: clamp(0.9375rem, 0.8886rem + 0.2174vw, 1.0625rem);
  line-height: 1.5;
  color: var(--contact-us-gold);
}

.contact-us-hero-title {
  max-width: 16em;
  margin: 12px auto 0;
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4565rem + 1.3043vw, 2.5rem);
  line-height: 1.25;
  color: var(--contact-us-on-dark);
}

.contact-us-hl {
  color: var(--contact-us-gold);
}


/* ==========================================================================
   2. FORM
   ========================================================================== */

.contact-us-form-section {
  padding-block: clamp(48px, 7.2vw, 103px) clamp(48px, 7vw, 101px);
}

.contact-us-form-title {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.0326rem + 0.9662vw, 1.875rem);
  line-height: 1.252;
  color: var(--contact-us-body);
}

.contact-us-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(24px, 5.3vw, 76px);
  row-gap: 44px;
  margin-top: clamp(40px, 5.8vw, 84px);
}

/* --- One field: underline, floating label, inline error -------------------
   The label is a real <label> that sits where the Figma draws it while the
   field is empty, then shrinks and lifts once the field has focus or content.
   It is driven entirely by :placeholder-shown, so it behaves correctly with
   JavaScript disabled — every input carries placeholder=" " for that.
   -------------------------------------------------------------------------- */

.contact-us-field {
  position: relative;
  padding-top: 22px;
}

.contact-us-field input,
.contact-us-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 0 10px;
  font-family: var(--contact-us-font-form);
  font-size: clamp(1rem, 0.9348rem + 0.2899vw, 1.25rem);
  line-height: 1.4;
  color: #333333;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--contact-us-rule);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease;
}

.contact-us-field textarea {
  min-height: 74px;
  resize: vertical;
}

.contact-us-field input:focus,
.contact-us-field textarea:focus {
  outline: none;
  border-bottom-color: var(--contact-us-gold-deep);
  border-bottom-width: 2px;
  padding-bottom: 9px;   /* keeps the baseline still as the rule thickens */
}

.contact-us-field label {
  position: absolute;
  left: 0;
  top: 26px;
  transform-origin: left top;
  font-family: var(--contact-us-font-form);
  font-size: clamp(1rem, 0.9348rem + 0.2899vw, 1.25rem);
  line-height: 1.152;
  color: var(--contact-us-label);
  pointer-events: none;
  transition: transform 0.18s ease, color 0.18s ease;
}

.contact-us-field input:focus + label,
.contact-us-field input:not(:placeholder-shown) + label,
.contact-us-field textarea:focus + label,
.contact-us-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px) scale(0.72);
  color: var(--contact-us-body);
}

.contact-us-req {
  color: var(--contact-us-required);
  font-size: 0.58em;
  vertical-align: super;
}

.contact-us-error {
  margin-top: 6px;
  font-family: var(--contact-us-font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--contact-us-error);
}

.contact-us-field.is-invalid input,
.contact-us-field.is-invalid textarea {
  border-bottom-color: var(--contact-us-error);
}

/* --- Consent row --- */

.contact-us-consent {
  position: relative;
  margin-top: clamp(32px, 4.1vw, 59px);
}

.contact-us-consent input {
  position: absolute;
  top: 6px;
  left: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  background: var(--contact-us-box-bg);
  border: 1px solid var(--contact-us-box-border);
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.contact-us-consent input:checked {
  background: var(--contact-us-gold);
  border-color: var(--contact-us-gold-deep);
}

/* The tick — drawn rather than loaded, so it can never 404. */
.contact-us-consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #1B1B1B;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-us-consent label {
  /* Padding, not margin — it makes the whole line a 44px-tall tap target
     that toggles the box. */
  display: block;
  padding: 4px 0 4px 34px;
  min-height: 30px;
  font-family: var(--contact-us-font-form);
  font-size: clamp(0.9375rem, 0.8886rem + 0.2174vw, 1.25rem);
  line-height: 1.5;
  color: var(--contact-us-consent);
  cursor: pointer;
}

.contact-us-consent label a {
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
}

.contact-us-consent label a:hover,
.contact-us-consent label a:focus-visible {
  color: var(--contact-us-gold-deep);
}

.contact-us-consent .contact-us-error {
  padding-left: 34px;
}

.contact-us-consent.is-invalid input {
  border-color: var(--contact-us-error);
}

/* --- Status line + submit --- */

.contact-us-form-status {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.contact-us-form-status[data-state="error"] {
  color: var(--contact-us-error);
  background: #FDECEA;
}

.contact-us-form-status[data-state="ok"] {
  color: #1B5E20;
  background: #E8F5E9;
}

.contact-us-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 177px;
  min-height: 55px;
  margin-top: clamp(28px, 3.1vw, 45px);
  padding: 14px 28px;
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.9565rem + 0.1932vw, 1.125rem);
  line-height: 1;
  color: #000000;
  background: var(--contact-us-gold);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.contact-us-submit:hover {
  background: #FFD426;
}

.contact-us-submit:active {
  transform: translateY(1px);
}


/* ==========================================================================
   3. HAVE ANY QUESTIONS
   ========================================================================== */

.contact-us-questions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 10.4vw, 150px) clamp(64px, 10.5vw, 151px);
  text-align: center;
  color: var(--contact-us-on-dark);
  background-color: var(--contact-us-hero-bg);
}

.contact-us-questions-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* The 75% #060F1E scrim the Figma lays over the photo. */
.contact-us-questions::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--contact-us-scrim);
}

.contact-us-questions-title {
  max-width: 746px;
  margin-inline: auto;
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.0326rem + 0.9662vw, 1.875rem);
  line-height: 1.252;
  color: var(--contact-us-on-dark);
}

.contact-us-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 80px;
  margin-top: clamp(24px, 3.3vw, 47px);
  padding: 14px 25px;
  border: 2px solid var(--contact-us-gold);
  border-radius: 5px;
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1.0625rem, 0.8886rem + 0.7729vw, 1.5625rem);
  line-height: 1.28;
  color: var(--contact-us-email-ink);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.contact-us-email:hover,
.contact-us-email:focus-visible {
  background: var(--contact-us-gold);
  color: #1B1B1B;
}

.contact-us-email-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--contact-us-gold);
}

.contact-us-email:hover .contact-us-email-badge,
.contact-us-email:focus-visible .contact-us-email-badge {
  background: #1B1B1B;
}

.contact-us-email-badge img {
  width: 23px;
  height: auto;
}

.contact-us-email-text {
  min-width: 0;
  overflow-wrap: anywhere;
}


/* ==========================================================================
   4. OUR PRESENCE
   ========================================================================== */

.contact-us-presence {
  padding-block: clamp(48px, 6.4vw, 92px) clamp(56px, 7.7vw, 111px);
}

.contact-us-presence-title {
  text-align: center;
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4565rem + 1.3043vw, 2.5rem);
  line-height: 1.252;
  color: var(--contact-us-heading);
}

.contact-us-offices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 2.2vw, 32px) 20px;
  margin-top: clamp(28px, 3.2vw, 46px);
}

.contact-us-office {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: var(--contact-us-radius);
  box-shadow: 0 0 20px -2px rgba(0, 0, 0, 0.15);
}

.contact-us-office-photo {
  width: 100%;
  aspect-ratio: 400 / 239;
  object-fit: cover;
}

.contact-us-office-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 23px 27px 27px;
}

.contact-us-office-title {
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1.1875rem, 1.1223rem + 0.2899vw, 1.375rem);
  line-height: 1.5;
  color: var(--contact-us-office-ink);
}

.contact-us-office-badge {
  color: var(--contact-us-gold-deep);
}

.contact-us-office-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.502;
}

.contact-us-pin {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--contact-us-gold-deep);
}

.contact-us-pin img {
  width: 11px;
  height: auto;
}

/* The Figma draws this as a 25px gold segment butted against a 313px grey
   hairline. One element, two backgrounds — no extra markup, and it can't fall
   out of alignment. */
.contact-us-office-rule {
  height: 2px;
  margin: 22px 0 0;
  border: 0;
  background-image:
    linear-gradient(var(--contact-us-gold-deep), var(--contact-us-gold-deep)),
    linear-gradient(#000000, #000000);
  background-size: 25px 2px, 100% 0.8px;
  background-position: left center, left center;
  background-repeat: no-repeat;
}

.contact-us-office-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 8px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 2;
}

.contact-us-office-meta dt {
  font-weight: 700;
}

.contact-us-office-meta dd {
  margin: 0;
}

/* Pins the map link to the bottom of the card, so cards in a row line up
   however much address text sits above it. */
.contact-us-office-map {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  color: var(--contact-us-gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-us-office-map:hover,
.contact-us-office-map:focus-visible {
  text-decoration-thickness: 2px;
}


/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

@media (min-width: 768px) {

  .contact-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Both of these run the full width of the form at every size above mobile. */
  .contact-us-field--wide,
  .contact-us-field--full {
    grid-column: 1 / -1;
  }

  .contact-us-offices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {

  /* The Figma grid: three 363px columns, then 363 + 803, then the full 1240. */
  .contact-us-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-us-field--wide {
    grid-column: span 2;
  }

  .contact-us-field--full {
    grid-column: 1 / -1;
  }

  .contact-us-offices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {

  .contact-us-page *,
  .contact-us-page *::before,
  .contact-us-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* ==========================================================================
   WPForms — maps the plugin's markup onto the design above.
   The form is a WPForms form (base styles only, WPForms → Settings → General).
   Each field carries the design's own class via its "CSS Classes" setting
   (contact-us-field, contact-us-field--wide/--full, contact-us-consent), so
   most rules above apply unchanged. What follows covers the differences:
   WPForms prints the label BEFORE the input, so the floating label is keyed
   off :has() instead of the `input + label` sibling selector.
   ========================================================================== */

.contact-us-wpforms .wpforms-container {
  margin: 0;
}

.contact-us-wpforms .wpforms-field-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(24px, 5.3vw, 76px);
  row-gap: 44px;
  width: auto;
  margin-top: clamp(40px, 5.8vw, 84px);
}

.contact-us-wpforms .wpforms-container .wpforms-field.contact-us-field {
  padding: 22px 0 0;
}

.contact-us-wpforms .contact-us-field .wpforms-field-label {
  font-weight: 400;
}

.contact-us-wpforms .contact-us-field:has(input:focus) .wpforms-field-label,
.contact-us-wpforms .contact-us-field:has(input:not(:placeholder-shown)) .wpforms-field-label,
.contact-us-wpforms .contact-us-field:has(textarea:focus) .wpforms-field-label,
.contact-us-wpforms .contact-us-field:has(textarea:not(:placeholder-shown)) .wpforms-field-label {
  transform: translateY(-24px) scale(0.72);
  color: var(--contact-us-body);
}

.contact-us-wpforms .wpforms-required-label {
  color: var(--contact-us-required);
  font-size: 0.58em;
  vertical-align: super;
}

/* Inline errors (jQuery Validate inserts them after the input). */
.contact-us-wpforms .wpforms-container em.wpforms-error {
  margin-top: 6px;
  font-family: var(--contact-us-font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--contact-us-error);
}

.contact-us-wpforms .wpforms-container .contact-us-field input.wpforms-error,
.contact-us-wpforms .wpforms-container .contact-us-field textarea.wpforms-error,
.contact-us-wpforms .wpforms-container .contact-us-field input.user-invalid,
.contact-us-wpforms .wpforms-container .contact-us-field textarea.user-invalid {
  border: 0;
  border-bottom: 1px solid var(--contact-us-error);
}

/* --- Consent: fieldset > ul > li > input + label ------------------------- */

.contact-us-wpforms .wpforms-container .wpforms-field.contact-us-consent {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 4.1vw, 59px);
  padding: 0;
  position: relative;
}

.contact-us-wpforms .contact-us-consent fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.contact-us-wpforms .contact-us-consent ul,
.contact-us-wpforms .contact-us-consent li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-us-wpforms .contact-us-consent li {
  position: relative;
}

.contact-us-wpforms .contact-us-consent .wpforms-field-label-inline {
  display: block;
  padding: 4px 0 4px 34px;
  min-height: 30px;
  font-family: var(--contact-us-font-form);
  font-size: clamp(0.9375rem, 0.8886rem + 0.2174vw, 1.25rem);
  line-height: 1.5;
  color: var(--contact-us-consent);
  cursor: pointer;
}

.contact-us-wpforms .contact-us-consent .wpforms-field-label-inline::after {
  content: " *";
  color: var(--contact-us-required);
  font-size: 0.58em;
  vertical-align: super;
}

.contact-us-wpforms .wpforms-container .contact-us-consent input[type="checkbox"].wpforms-error {
  border: 1px solid var(--contact-us-error);
}

.contact-us-wpforms .contact-us-consent em.wpforms-error {
  padding-left: 34px;
}

/* --- Submit + confirmation ------------------------------------------------ */

.contact-us-wpforms .wpforms-submit-container {
  padding: 0;
}

.contact-us-wpforms .wpforms-container .contact-us-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 177px;
  min-height: 55px;
  margin-top: clamp(28px, 3.1vw, 45px);
  padding: 14px 28px;
  font-family: var(--contact-us-font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.9565rem + 0.1932vw, 1.125rem);
  line-height: 1;
  color: #000000;
  background: var(--contact-us-gold);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.contact-us-wpforms .wpforms-submit-spinner {
  margin: clamp(28px, 3.1vw, 45px) 0 0 12px;
  vertical-align: middle;
}

.contact-us-wpforms .wpforms-confirmation-container-full,
.contact-us-wpforms .wpforms-confirmation-container {
  max-width: 800px;
  margin: clamp(40px, 5.8vw, 84px) auto 0;
  padding: 16px 20px;
  border-radius: 6px;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: #1B5E20;
  background: #E8F5E9;
}

.contact-us-wpforms .wpforms-confirmation-container-full p,
.contact-us-wpforms .wpforms-confirmation-container p {
  margin: 0;
}

@media (min-width: 768px) {
  .contact-us-wpforms .wpforms-field-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .contact-us-wpforms .wpforms-field-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Older WPForms builds print the error as a <label>; keep it out of the
   floating-label positioning above. */
.contact-us-wpforms .contact-us-field label.wpforms-error {
  position: static;
  transform: none;
  pointer-events: auto;
}
