/* ==========================================================================
   CONTACT
   Contact and free site survey (/contact/):
     1. Ways to reach us (call, WhatsApp, email)
     2. Survey form beside what happens next
     3. Offices
   ========================================================================== */

/* Same rhythm as the Solutions and platform pages */
:root { --section-space: clamp(48px, 6vw, 88px); }

/* A heading with its paragraph directly underneath (as on the platform pages) */
.section-head--stack { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.section-head--stack p { max-width: 42em; }


/* 1. Ways to reach us
   -------------------------------------------------------------------------- */
.contact-head {
  padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 64px);
  background: color-mix(in srgb, var(--c) 10%, var(--bg));
}
.contact-head__title {
  max-width: 14em;
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.contact-head .lede { margin-top: 16px; max-width: 38em; }

.reach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
.reach__item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.reach__item:hover { border-color: var(--c); }
.reach__item:active { transform: translateY(1px); }
.reach__icon {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c);
  color: #FFFFFF;
}
.reach__icon svg { width: 22px; height: 22px; }
.reach__label { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.reach__item strong { display: block; margin-top: 2px; color: var(--ink); font: 500 clamp(17px, 1.6vw, 20px)/1.3 var(--font-display); overflow-wrap: anywhere; }


/* 2. Survey form
   -------------------------------------------------------------------------- */
.survey {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.survey__intro > p { margin-top: 16px; max-width: 30em; }
.survey__sub { margin-top: 32px; font-size: 19px; font-weight: 500; }
.survey__steps { margin-top: 12px; }
.survey__steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.survey__steps strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.survey__n {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, var(--bg));
  color: var(--ink);
  font: 600 15px/1 var(--font-display);
}
.survey__note { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
@media (min-width: 1024px) {
  .survey__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}


/* 3. Offices
   -------------------------------------------------------------------------- */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.office {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border-top: 6px solid var(--c);
  border-radius: var(--radius-s) var(--radius-s) var(--radius-l) var(--radius-l);
  background: var(--surface);
}
.office__tile { position: absolute; top: 24px; right: 24px; width: 36px; height: 36px; background: var(--c); --bite: 11px; --offset: -3px; }
.office__state { color: var(--muted); font-size: 14px; font-weight: 600; }
.office h3 { margin-top: 2px; font-size: 26px; font-weight: 500; }
.office address { flex: 1; margin-top: 12px; font-style: normal; font-size: 15.5px; line-height: 1.6; }
.office__map {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.office__map svg { width: 18px; height: 18px; }
.office__map:hover { text-decoration-color: var(--ink); }


/* Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  /* heading and intro, then the form, then what happens next */
  .survey { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .survey__intro { display: contents; }
  .survey__intro > h2, .survey__intro > p:first-of-type { order: 1; }
  .survey .form-card { order: 2; margin-top: 24px; }
  .survey__sub, .survey__steps, .survey__note { order: 3; }
  .reach { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .offices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .reach { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reach__item { flex-direction: column; align-items: flex-start; gap: 12px; }
}
