/* =========================================================
   CONTACT / "START A CONVERSATION" — page-specific styles
   Extends the global design system (styles.css).
   ========================================================= */

/* ----- Interior hero (centered variant) ----- */
.hero--interior { height: 78vh; justify-content: center; }
.hero--interior::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
}
.hero--interior .hero__content { padding-top: 150px; padding-bottom: 110px; }
.hero__content--center { text-align: center; }
.hero__content--center .eyebrow { display: inline-block; margin-left: auto; margin-right: auto; }
.hero__content--center .eyebrow::after { left: 50%; transform: translateX(-50%); }
.hero--interior .hero__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
}
.hero--interior .hero__headline em {
  font-style: normal;
  color: var(--white);
}
.hero__sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.55s forwards;
}
.hero--interior .hero__eyebrow {
  color: var(--blue);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

/* ----- Contact section ----- */
.contact { background: var(--white); }
.contact .container { padding-top: 84px; padding-bottom: 88px; }
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

/* Left — Get in Touch */
.contact__info { position: sticky; top: 108px; }
.contact__info-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 15ch;
}
.contact__info-copy {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 40ch;
}
.contact__channels { display: flex; flex-direction: column; gap: 20px; }
.contact__channel { display: flex; align-items: center; gap: 16px; }
.contact__channel-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__channel-body { display: flex; flex-direction: column; gap: 2px; }
.contact__channel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-label);
}
.contact__channel-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--dur-fast) var(--ease-out);
}
a.contact__channel-value:hover { color: var(--blue); }
.contact__channel-value--muted { font-weight: 500; color: var(--slate); font-size: 14px; }

/* Right — Form card */
.contact__form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px 44px 40px;
  box-shadow: 0 30px 70px -36px rgba(13, 27, 75, 0.24);
}
.contact__form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.form-optional { font-weight: 500; color: var(--muted-label); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9AA6B5; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 168, 198, 0.14);
}
.form-group input:invalid:not(:placeholder-shown) { border-color: #C0392B; }

/* Custom select chevron */
.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap__chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-label);
  pointer-events: none;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 15px 28px;
  font-size: 15px;
}
.form-fineprint {
  font-size: 12.5px;
  color: var(--muted-label);
  text-align: center;
  line-height: 1.6;
  margin-top: 14px;
}

/* Success state */
.contact-success { text-align: center; padding: 24px 8px 8px; }
.contact-success__icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(62, 142, 99, 0.12);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.contact-success__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-success__copy {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 42ch;
  margin: 0 auto;
}
.contact-success__copy a { color: var(--blue); font-weight: 600; }

/* ----- Impact stats band (shared with the industries page) ----- */
.ind-stats { background: var(--off-white); padding: 0; }
.ind-stats .container { padding-top: 84px; padding-bottom: 84px; text-align: center; }
.ind-stats .eyebrow { display: inline-block; margin-left: auto; margin-right: auto; }
.ind-stats .eyebrow::after { left: 50%; transform: translateX(-50%); }
.ind-stats .impact__headline { margin-bottom: 52px; }
.ind-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ind-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--border-light);
}
.ind-stat:last-child { border-right: none; }
.ind-stat__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.ind-stat__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-label);
  line-height: 1.5;
  max-width: 16ch;
}

/* ----- ISO certification band ----- */
.iso-band { background: var(--white); border-top: 1px solid var(--border-light); padding: 34px 0; }
.iso-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.iso-band__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-right: 6px;
}
.iso-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--slate);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.iso-pill svg { width: 13px; height: 15px; color: var(--blue); }
.iso-pill:hover { border-color: rgba(0, 168, 198, 0.4); color: var(--navy); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .contact__info { position: static; }
  .contact__info-title, .contact__info-copy { max-width: none; }
}

@media (max-width: 860px) {
  .hero--interior { height: auto; min-height: auto; }
  .hero--interior .hero__content { padding: 132px 24px 76px; }
  .contact .container { padding-top: 60px; padding-bottom: 64px; }
  .contact__form-card { padding: 32px 26px 30px; }
  .ind-stats .container { padding-top: 60px; padding-bottom: 60px; }
  .ind-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .ind-stat:nth-child(2) { border-right: none; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .ind-stats__grid { grid-template-columns: 1fr 1fr; }
  .iso-band__inner { gap: 8px; }
  .iso-band__label { flex-basis: 100%; text-align: center; margin-right: 0; margin-bottom: 4px; }
}

/* WordPress contact submission status */
.contact-form__status {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.contact-form__status.is-loading,
.contact-form__status.is-error,
.contact-form__status.is-success { display: block; }
.contact-form__status.is-loading { background: #eef8fc; color: #0d6d8c; }
.contact-form__status.is-error { background: #fff1f0; color: #b42318; border: 1px solid #ffc9c5; }
.contact-form__status.is-success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.contact-form .form-submit:disabled { opacity: .7; cursor: wait; }


/* =========================================================
   CONTACT SECURITY — honeypot and reCAPTCHA
   ========================================================= */
.contact-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-recaptcha {
  margin: 4px 0 18px;
  min-height: 78px;
}

.contact-recaptcha > div:first-child {
  min-height: 78px;
}

.contact-recaptcha__status {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.contact-recaptcha__status.is-error {
  display: block;
  color: #b42318;
}

.form-recaptcha-disclosure {
  margin: 8px auto 0;
  max-width: 52ch;
  color: var(--muted-label);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
}

.form-recaptcha-disclosure a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grecaptcha-badge {
  z-index: 1000;
}

@media (max-width: 380px) {
  .contact-recaptcha {
    overflow: hidden;
  }

  #murkezRecaptcha {
    transform: scale(.92);
    transform-origin: left top;
    width: 304px;
    margin-bottom: -6px;
  }
}


/* =========================================================
   CONTACT FORM — centered heading and success state
   ========================================================= */
.contact__form-card > .contact__form-title {
  width: 100%;
  text-align: center;
}

.contact-success {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.contact-success__icon {
  margin-left: auto;
  margin-right: auto;
}

.contact-success__title,
.contact-success__copy {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-success__copy {
  max-width: 560px;
}
