/* ══════════════════════════════════════════
   Contact Page — Light Hero
   ══════════════════════════════════════════ */

.co-hero {
  position: relative;
  background: var(--off-white);
  overflow: hidden;
  padding: 180px 0 100px;
  border-bottom: 1px solid var(--border);
}

.co-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.co-hero__breadcrumb {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  margin-bottom: 40px;
}

.co-hero__breadcrumb a {
  color: var(--gray-light);
  transition: color 0.2s ease;
}

.co-hero__breadcrumb a:hover { color: var(--black); }

.co-hero__breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.4;
}

.co-hero__breadcrumb-current {
  color: var(--gray);
}

.co-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime-dark);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.co-hero__eyebrow::before,
.co-hero__eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(168, 204, 54, 0.5);
}

.co-hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 100%;
}

.co-hero__valueprop {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray);
  max-width: 48ch;
}

/* ══════════════════════════════════════════
   Nav: light hero state
   ══════════════════════════════════════════ */

body.co-page .nav:not(.is-scrolled) .nav__pill {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.1);
}

body.co-page .nav:not(.is-scrolled) .nav__logo-white { display: none; }
body.co-page .nav:not(.is-scrolled) .nav__logo-black { display: block; }
body.co-page .nav:not(.is-scrolled) .nav__link       { color: rgba(0, 0, 0, 0.85); }
body.co-page .nav:not(.is-scrolled) .nav__link:hover  { color: rgba(0, 0, 0, 0.85); }
body.co-page .nav:not(.is-scrolled) .nav__link::after  { background: var(--black); }
body.co-page .nav:not(.is-scrolled) .nav__hamburger   { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.1); }
body.co-page .nav:not(.is-scrolled) .nav__hamburger-line { background-color: rgba(0, 0, 0, 0.75); }

/* ══════════════════════════════════════════
   Contact Main — Form + Info
   ══════════════════════════════════════════ */

.co-main { background: var(--white); }

.co-main__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: start;
}

/* ── Info column ── */

.co-main__info-heading {
  margin-bottom: 20px;
}

.co-main__info-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
  max-width: 38ch;
  margin-bottom: 48px;
}

.co-main__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.co-main__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.co-main__detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-dark);
}

.co-main__detail-value {
  font-size: 15px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.5;
  transition: color 0.2s ease;
}

a.co-main__detail-value:hover {
  color: var(--black);
}

/* ══════════════════════════════════════════
   Form
   ══════════════════════════════════════════ */

.co-main__form-wrap {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}

.co-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.co-form__row {
  display: flex;
  gap: 20px;
}

.co-form__row--half .co-form__field {
  flex: 1;
}

.co-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.co-form__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.co-form__label span {
  color: var(--lime-dark);
}

.co-form__input,
.co-form__select,
.co-form__textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.co-form__input::placeholder,
.co-form__textarea::placeholder {
  color: var(--gray-light);
  font-weight: 300;
}

.co-form__input:focus,
.co-form__select:focus,
.co-form__textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(168, 204, 54, 0.15);
  outline: none;
}

/* Select wrapper */
.co-form__select-wrap {
  position: relative;
}

.co-form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

.co-form__select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--gray-light);
  pointer-events: none;
}

/* Textarea */
.co-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Validation states */
.co-form__field.is-error .co-form__input,
.co-form__field.is-error .co-form__select,
.co-form__field.is-error .co-form__textarea {
  border-color: #d94040;
  box-shadow: 0 0 0 3px rgba(217, 64, 64, 0.1);
}

.co-form__error {
  font-size: 12px;
  font-weight: 400;
  color: #d94040;
  margin-top: 2px;
  display: none;
}

.co-form__field.is-error .co-form__error {
  display: block;
}

/* Submit */
.co-form__submit {
  align-self: flex-start;
  gap: 10px;
  padding: 16px 32px;
  font-size: 12px;
  cursor: pointer;
}

.co-form__submit-arrow {
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.3s var(--ease), background 0.2s ease;
}

.co-form__submit:hover .co-form__submit-arrow {
  transform: rotate(45deg);
  background: rgba(0, 0, 0, 0.07);
}

/* Success */
.co-form__success {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(168, 204, 54, 0.1);
  border: 1px solid rgba(168, 204, 54, 0.3);
  border-radius: 10px;
}

.co-form__success[hidden] {
  display: none;
}

.co-form__success-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.co-form__success-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   GSAP pre-hide
   ══════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  .co-hero__breadcrumb,
  .co-hero__eyebrow,
  .co-hero__headline,
  .co-hero__valueprop {
    visibility: hidden;
    animation: anim-safety 0s 3.5s forwards;
  }
}

/* ══════════════════════════════════════════
   Tablet — below 1024px
   ══════════════════════════════════════════ */

@media (max-width: 1023px) {
  .co-main__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .co-main__info-desc {
    max-width: 100%;
  }

  .co-main__form-wrap {
    padding: 40px;
  }
}

/* ══════════════════════════════════════════
   Mobile — below 768px
   ══════════════════════════════════════════ */

@media (max-width: 767px) {
  .co-hero {
    padding: 140px 0 72px;
  }

  .co-hero__breadcrumb {
    margin-bottom: 28px;
  }

  .co-hero__headline {
    font-size: clamp(28px, 7vw, 44px);
  }

  .co-hero__valueprop {
    font-size: 15px;
  }

  .co-main__form-wrap {
    padding: 28px 20px;
    border-radius: 12px;
  }

  /* iOS auto-zoom guard: keep focusable controls >=16px on mobile */
  .co-form__input,
  .co-form__select,
  .co-form__textarea {
    font-size: 16px;
  }

  .co-form__row--half {
    flex-direction: column;
    gap: 24px;
  }

  .co-form__submit {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   Small phones — below 400px
   ══════════════════════════════════════════ */

@media (max-width: 400px) {
  .co-hero {
    padding: 120px 0 56px;
  }

  .co-hero__headline {
    font-size: 26px;
  }

  .co-hero__eyebrow {
    font-size: 10px;
  }

  .co-hero__eyebrow::before,
  .co-hero__eyebrow::after {
    width: 20px;
  }

  .co-main__form-wrap {
    padding: 24px 16px;
  }

  .co-main__details {
    gap: 20px;
  }
}
