/* Contact page — hydrates #mq-contact-shell.
   Folds:
     1) HERO — vertical image stack (left) + form + details (right); light
     2) INFO — three-up info cards; light
   Both folds are light, with a subtle break (#fafafa hero → #f7f7f5 info)
   so the boundary reads without going zebra. */

/* ===== Shared ============================================================ */
#mq-contact-shell {
  color: #131917;
  background: #ffffff;
  font-family: var(--font-body--family);
}
.mq-contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4vw;
}
.mq-contact__fold {
  padding: 72px 0;
}
.mq-contact__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F15A27;
  font-weight: 600;
  margin: 0 0 12px;
}
.mq-contact__h {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: inherit;
}
.mq-contact__lede {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(19, 25, 23, 0.7);
  max-width: 640px;
}

/* ===== FOLD 1: hero (stack | form+details) — LIGHT ===================== */
.mq-contact__fold--hero {
  background: #fafafa;            /* off-white so product cards + white form don't disappear */
  color: #131917;
  padding: 80px 0 96px;
  overflow: hidden;
  position: relative;
}
.mq-contact__fold--hero .mq-contact__eyebrow { color: #F15A27; }
.mq-contact__fold--hero .mq-contact__h       { color: #131917; }
.mq-contact__fold--hero .mq-contact__lede    { color: #5b6560; }

.mq-contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 999px) {
  .mq-contact-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---- Vertical image stack --------------------------------------------- */
.mq-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}
.mq-stack__frame {
  position: relative;
  width: 280px;
  height: 420px;
  perspective: 1200px;
  outline: none;
  touch-action: pan-x;              /* allow horizontal page scroll if any; we handle Y */
  cursor: grab;
}
.mq-stack__frame:active { cursor: grabbing; }
.mq-stack__frame:focus-visible {
  box-shadow: 0 0 0 2px #F15A27;
  border-radius: 24px;
}
.mq-stack__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 420px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  transition: transform 0.45s cubic-bezier(.22, 1, .36, 1),
              opacity   0.45s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 40px -14px rgba(19, 25, 23, 0.22),
              0 0 0 1px rgba(19, 25, 23, 0.06);
}
.mq-stack__card > a,
.mq-stack__card > .mq-stack__link {
  display: block; width: 100%; height: 100%;
  color: inherit; text-decoration: none;
}
.mq-stack__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Bottom gradient removed — cards sit on a light bg so no legibility helper needed. */
.mq-stack__card--skeleton { pointer-events: none; }
.mq-stack__skel {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #eeeeee 0%,
    #f6f6f6 50%,
    #eeeeee 100%);
  background-size: 200% 100%;
  animation: mq-stack-skel 1.4s ease-in-out infinite;
}
@keyframes mq-stack-skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Counter — top left of stack */
.mq-stack__counter {
  position: absolute;
  top: 24px; left: 12px;
  display: flex; flex-direction: column; align-items: center;
  color: #131917;
  font-variant-numeric: tabular-nums;
}
.mq-stack__counter-current {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}
.mq-stack__counter-sep {
  display: block;
  width: 28px; height: 1px;
  background: rgba(19, 25, 23, 0.2);
  margin: 8px 0;
}
.mq-stack__counter-total {
  font-size: 13px;
  color: rgba(19, 25, 23, 0.5);
}

/* Dots — right side of stack */
.mq-stack__dots {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
}
.mq-stack__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(19, 25, 23, 0.22);
  cursor: pointer;
  transition: height 0.25s ease, background 0.2s ease;
}
.mq-stack__dot:hover { background: rgba(19, 25, 23, 0.45); }
.mq-stack__dot[aria-current="true"] {
  height: 22px;
  border-radius: 3px;
  background: #F15A27;
}

/* Hint — bottom of stack */
.mq-stack__hint {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(19, 25, 23, 0.5);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}
.mq-stack__hint-arrow {
  display: inline-flex; width: 18px; height: 18px;
}
.mq-stack__hint-arrow svg { width: 100%; height: 100%; }
.mq-stack__hint-arrow--up   { animation: mq-hint-up   1.5s ease-in-out infinite; }
.mq-stack__hint-arrow--down { animation: mq-hint-down 1.5s ease-in-out infinite; }
@keyframes mq-hint-up   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mq-hint-down { 0%,100% { transform: translateY(0); } 50% { transform: translateY( 6px); } }

@media (prefers-reduced-motion: reduce) {
  .mq-stack__card       { transition: none; }
  .mq-stack__skel       { animation: none; background: #f0f0f0; }
  .mq-stack__hint-arrow { animation: none; }
}

/* ---- Hero right column (form + follow bar) --------------------------- */
.mq-contact-hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mq-contact-hero-right__intro { display: flex; flex-direction: column; gap: 8px; }

/* Slim "Follow us at [icons]" bar (replaces the old details block). */
.mq-contact-follow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(19, 25, 23, 0.08);
}
.mq-contact-follow__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F15A27;
  font-weight: 600;
}
.mq-contact-follow__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mq-contact-follow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(19, 25, 23, 0.15);
  border-radius: 50%;
  color: #131917;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mq-contact-follow__icon:hover {
  background: #131917;
  border-color: #131917;
  color: #ffffff;
}
.mq-contact-follow__icon svg { width: 16px; height: 16px; }

/* ===== Form ============================================================== */
.mq-contact-form {
  display: grid;
  gap: 16px;
}
.mq-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 559px) {
  .mq-contact-form__row { grid-template-columns: 1fr; }
}
.mq-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mq-contact-form__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(19, 25, 23, 0.72);
}
/* NOTE: Horizon's base.css has `input:not([type=checkbox],[type=radio]) {
   background-color: var(--color-input-background); border-color: ... }`
   which is (0,1,1) — beats a plain .class (0,1,0). Prefixing with the form
   class bumps us to (0,2,0) so our light styling wins cleanly. */
.mq-contact-form .mq-contact-form__input,
.mq-contact-form .mq-contact-form__textarea {
  font-family: var(--font-body--family);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #e3e6e4;      /* light neutral, matches spec */
  border-radius: 4px;             /* input radius token */
  background: #ffffff;
  color: #131917;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mq-contact-form .mq-contact-form__input:focus,
.mq-contact-form .mq-contact-form__textarea:focus {
  outline: none;
  border-color: #F15A27;
  box-shadow: 0 0 0 3px rgba(241, 90, 39, 0.15);
}
.mq-contact-form .mq-contact-form__input::placeholder,
.mq-contact-form .mq-contact-form__textarea::placeholder {
  color: rgba(19, 25, 23, 0.4);
}
.mq-contact-form__textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
.mq-contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.mq-contact-form__submit {
  align-self: flex-start;
  padding: 12px 26px;
  min-height: 46px;
  background: #F15A27;
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-body--family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mq-contact-form__submit:hover  { background: #d84a1c; }
.mq-contact-form__submit:active { transform: translateY(1px); }
.mq-contact-form__submit:disabled {
  background: rgba(241, 90, 39, 0.55);
  cursor: not-allowed;
}
.mq-contact-form__status {
  font-size: 13px;
  line-height: 1.5;
  min-height: 20px;
}
.mq-contact-form__status[data-state="success"] { color: #256d5f; }
.mq-contact-form__status[data-state="error"]   { color: #a13411; }

/* --- Form: dark variant (inside the hero fold) ------------------------ */
.mq-contact-form--dark .mq-contact-form__label {
  color: rgba(255, 255, 255, 0.72);
}
.mq-contact-form--dark .mq-contact-form__input,
.mq-contact-form--dark .mq-contact-form__textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.mq-contact-form--dark .mq-contact-form__input::placeholder,
.mq-contact-form--dark .mq-contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.mq-contact-form--dark .mq-contact-form__input:focus,
.mq-contact-form--dark .mq-contact-form__textarea:focus {
  border-color: #F15A27;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(241, 90, 39, 0.25);
}
.mq-contact-form--dark .mq-contact-form__status[data-state="success"] { color: #a4e3d3; }
.mq-contact-form--dark .mq-contact-form__status[data-state="error"]   { color: #ffb59d; }

/* ===== Contact details =================================================== */
.mq-contact-details {
  display: grid;
  gap: 22px;
  padding: 24px;
  background: #f7f7f5;
  border-radius: 4px;
}
.mq-contact-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
@media (max-width: 559px) {
  .mq-contact-details__grid { grid-template-columns: 1fr; }
}
.mq-contact-details__group { display: grid; gap: 4px; }
.mq-contact-details__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F15A27;
  font-weight: 600;
  margin: 0;
}
.mq-contact-details__value {
  font-size: 14px;
  line-height: 1.55;
  color: #131917;
  margin: 0;
}
.mq-contact-details a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(19, 25, 23, 0.35);
  text-underline-offset: 3px;
}
.mq-contact-details a:hover { color: #F15A27; text-decoration-color: currentColor; }

.mq-contact-details__socials {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 2px;
}
.mq-contact-details__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(19, 25, 23, 0.15);
  border-radius: 50%;
  color: #131917;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.mq-contact-details__social:hover {
  background: #131917; color: #ffffff; border-color: #131917;
}
.mq-contact-details__social svg { width: 16px; height: 16px; }

/* --- Details: dark variant (inside the hero fold) --------------------- */
.mq-contact-details--dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mq-contact-details--dark .mq-contact-details__value { color: #ffffff; }
.mq-contact-details--dark a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, 0.35); }
.mq-contact-details--dark a:hover { color: #F15A27; text-decoration-color: currentColor; }
.mq-contact-details--dark .mq-contact-details__social {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.mq-contact-details--dark .mq-contact-details__social:hover {
  background: #F15A27; color: #ffffff; border-color: #F15A27;
}

/* ===== FOLD 2: info blocks =============================================== */
.mq-contact__fold--info {
  /* Layer a soft white overlay over the studio-shot backdrop so heading + card
     text stay legible; the image itself peeks through around the cards.
     Stronger at the top (where the heading + lede sit) fading to lighter
     mid-fold (where the cards float over the desk imagery). */
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.65) 40%,
      rgba(255, 255, 255, 0.55) 100%),
    #f7f7f5 url('../assets/contact-info-bg.jpg') no-repeat center/cover;
  padding: 72px 0;
}
.mq-contact-info-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 899px) {
  .mq-contact-info-grid { grid-template-columns: 1fr; }
}
.mq-contact-info-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 28px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(19, 25, 23, 0.06);
}
.mq-contact-info-card__title {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: #131917;
}
.mq-contact-info-card__body {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(19, 25, 23, 0.72);
  margin: 0;
}
.mq-contact-info-card__cta {
  align-self: flex-start;
  padding: 10px 18px;
  border: 1px solid #131917;
  border-radius: 14px;
  background: transparent;
  color: #131917;
  font-family: var(--font-body--family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mq-contact-info-card__cta:hover { background: #131917; color: #ffffff; }

.mq-contact-info-card--featured {
  background: #131917;
  color: #ffffff;
  border-color: transparent;
}
.mq-contact-info-card--featured .mq-contact-info-card__title { color: #ffffff; }
.mq-contact-info-card--featured .mq-contact-info-card__body  { color: rgba(255, 255, 255, 0.75); }
.mq-contact-info-card--featured .mq-contact-info-card__cta {
  background: #F15A27; border-color: #F15A27; color: #ffffff;
}
.mq-contact-info-card--featured .mq-contact-info-card__cta:hover {
  background: #d84a1c; border-color: #d84a1c;
}

/* ===== Mobile padding fold-wide ========================================== */
@media (max-width: 559px) {
  .mq-contact__fold        { padding: 48px 0; }
  .mq-contact__fold--hero  { padding: 48px 0 64px; }
  .mq-contact-info-card    { padding: 22px; }
  .mq-stack                { min-height: 560px; }
}

/* ===== Mobile fixes (a11y audit items 1 + 3) ============================
   - Contact form inputs bumped to 16px to prevent iOS Safari's auto-zoom
     on focus (only fires under 16px). Mobile-only via media query so
     desktop density is unchanged.
   - Image-stack dots keep their visible 6px size but get a ≥44px
     invisible tap area via ::before, per audit constraint (no visual
     resize on icons/dots). */
@media (max-width: 749px) {
  .mq-contact-form .mq-contact-form__input,
  .mq-contact-form .mq-contact-form__textarea {
    font-size: 16px;
  }
  .mq-stack__dot {
    position: relative;
  }
  .mq-stack__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    /* pointer-events inherits — clicks on the pseudo bubble to the button */
  }
}
