/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-page {
  background: var(--bg);
}

.contact-main {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 8vw, 10rem);
}

.contact-inner {
  width: 100%;
}

.contact__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 2rem;
}

.contact__heading {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0a2d33;
  margin-bottom: 3rem;
}

.contact__email {
  display: inline-block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #0a2d33;
  border-bottom: 1px solid #0a2d33;
  padding-bottom: 3px;
  margin-bottom: 2.5rem;
  transition: opacity 0.2s;
}

.contact__email:hover { opacity: 0.6; }

.contact__socials {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.contact__socials a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.contact__socials a:hover { color: #0a2d33; }

.contact__signature {
  position: absolute;
  right: clamp(4rem, 14vw, 18rem);
  top: 52%;
  transform: translateY(-50%);
  width: clamp(180px, 28vw, 420px);
  pointer-events: none;
}

/* Contact form */
.contact__form {
  margin-top: 3rem;
  width: 100%;
}

.contact__form-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.contact__field--message {
  flex: 2;
}

.contact__field label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

.contact__field input,
.contact__field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(10, 45, 51, 0.3);
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #0a2d33;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}

.contact__field textarea {
  height: 2rem;
  overflow-y: auto;
  line-height: 1.5;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(10, 45, 51, 0.3);
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-bottom-color: #0a2d33;
}

.contact__submit {
  flex-shrink: 0;
  align-self: flex-end;
  background: none;
  border: none;
  border-bottom: 1px solid #0a2d33;
  color: #0a2d33;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.contact__submit:hover { opacity: 0.5; }

.submit-popup {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 45, 51, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.submit-popup.visible {
  opacity: 1;
  pointer-events: all;
}

.submit-popup__box {
  background: var(--bg);
  padding: 3rem 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.submit-popup__heading {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #0a2d33;
}

.submit-popup__sub {
  font-size: 0.85rem;
  color: var(--mid);
  letter-spacing: 0.04em;
}

.submit-popup__close {
  margin-top: 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid #0a2d33;
  color: #0a2d33;
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-popup__close:hover { opacity: 0.5; }

@media (max-width: 768px) {
  .contact-main {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 2rem;
  }

  .contact-inner {
    order: 1;
  }

  .contact__signature {
    position: static;
    transform: none;
    order: 2;
    width: clamp(140px, 55vw, 260px);
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .contact__form-row { flex-direction: column; align-items: stretch; }
  .contact__submit { align-self: flex-start; }
}

/* Nav active state */
.contact-page .nav--solid .nav__links .nav__active {
  color: #0a2d33;
  opacity: 1;
  border-bottom: 1px solid #0a2d33;
  padding-bottom: 2px;
}
