/* ============================================================
   CONTACT PAGE — loaded only on contact.html
   Photo hero + two-column form section
   Uses tokens from styles.css (--ink, --rust, --paper, --gold)
   ============================================================ */

/* ---------- HERO ---------- */
.contact-hero {
  position: relative;
  width: 100%;
  min-height: 60svh;
  display: flex;
  align-items: center;
  background: url('/images/apex.JPG') center center / cover no-repeat;
  padding: calc(72px + clamp(60px, 8vw, 100px)) 5vw clamp(48px, 6vw, 80px);
  z-index: 2;
  isolation: isolate;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 35, 63, 0.55) 0%, rgba(16, 35, 63, 0.80) 100%),
    linear-gradient(90deg, rgba(16, 35, 63, 0.85) 0%, rgba(16, 35, 63, 0.60) 55%, rgba(16, 35, 63, 0.35) 100%);
  z-index: 0;
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  max-width: 46em;
}

.contact-hero__label {
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}

.contact-hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 11;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #f7f4ed;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 28px rgba(16, 35, 63, 0.45);
}

.contact-hero__lede {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
  color: rgba(247, 244, 237, 0.92);
  margin-top: 24px;
  max-width: 38em;
  text-shadow: 0 1px 14px rgba(16, 35, 63, 0.4);
}

/* ---------- FORM SECTION ---------- */
.contact-form-section {
  position: relative;
  width: 100%;
  background: var(--paper);
  padding: clamp(60px, 9vw, 120px) 5vw;
  z-index: 2;
}

.contact-form-section__inner {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact-form__head {
  position: sticky;
  top: 100px;
}

.contact-form__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-variation-settings: 'opsz' 11;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin-top: 14px;
}

.contact-form__lede {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-72);
  margin-top: 18px;
  max-width: 34em;
}

/* Contact details block */
.contact-form__contact {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 24em;
}

.contact-form__contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

.contact-form__contact-row small {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-72);
}

.contact-form__contact-row a,
.contact-form__contact-row span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.005em;
  text-decoration: none;
}

.contact-form__contact-row a:hover {
  color: var(--rust);
}

/* The form card itself */
.contact-form {
  background: white;
  border: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 40px);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-form__field label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(168, 100, 56, 0.12);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form__submit {
  margin-top: 6px;
}

.contact-form__note {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--ink-72);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.contact-form__success {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(168, 100, 56, 0.10);
  border-left: 2px solid var(--rust);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- BUTTONS ---------- */
.contact-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 100px;
  padding: 14px 26px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-form .btn-primary:hover {
  background: #5a3a3c;
  transform: translateY(-1px);
}

/* ---------- REVEAL STATES ---------- */
.contact-hero [data-reveal],
.contact-form-section [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.3, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.contact-hero [data-reveal].is-in,
.contact-form-section [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- TABLET ---------- */
@media (max-width: 960px) {
  .contact-form-section__inner {
    grid-template-columns: 1fr;
  }

  .contact-form__head {
    position: static;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
  .contact-hero {
    padding: calc(72px + 60px) 5vw 60px;
    min-height: 50svh;
  }

  .contact-hero__title {
    font-size: clamp(26px, 7.5vw, 44px);
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__title {
    font-size: clamp(22px, 6vw, 32px);
  }
}

@media (max-width: 520px) {
  .contact-hero,
  .contact-form-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .contact-hero [data-reveal],
  .contact-form-section [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}