/* =========================================================
   CONTACT
   Michael McCafferty Fine Art Photography
   ========================================================= */

.contact-page {
  background: #f5f3ee;
  color: #151515;
}

.contact-shell {
  width: min(88vw, 1480px);
  margin: 0 auto;
}

.contact-eyebrow {
  margin: 0 0 28px;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
}

.contact-eyebrow.dark {
  color: #65635d;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.contact-hero {
  min-height: 72vh;
  padding: 180px 0 110px;
  display: flex;
  align-items: end;
  background: #171717;
  color: #f6f3ec;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .55fr);
  gap: clamp(70px, 10vw, 170px);
  align-items: end;
}

.contact-hero h1 {
  margin: 0;
  max-width: 950px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(76px, 9.5vw, 162px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .79;
}

.contact-hero-detail {
  padding-bottom: 10px;
}

.contact-hero-detail p {
  max-width: 510px;
  margin: 0 0 36px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 2vw, 35px);
  line-height: 1.2;
  color: rgba(255,255,255,.82);
}

.contact-hero-detail a {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 5px;
  transition: border-color .25s ease;
}

.contact-hero-detail a:hover {
  border-color: #fff;
}

.contact-hero-detail span {
  display: block;
  color: rgba(255,255,255,.48);
  font-family: "Inter", sans-serif;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   Form section
   --------------------------------------------------------- */

.contact-form-section {
  padding: clamp(100px, 12vw, 190px) 0;
  background: #f5f3ee;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(500px, 1.05fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

.contact-form-intro {
  position: sticky;
  top: 130px;
}

.contact-index {
  display: block;
  margin-bottom: 66px;
  font-family: "Inter", sans-serif;
  font-size: .68rem;
  letter-spacing: .15em;
  color: #8b877d;
}

.contact-form-intro h2,
.contact-alt h2 {
  margin: 0 0 38px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 5.5vw, 92px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .9;
}

.contact-form-intro > p:last-child {
  max-width: 520px;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.8;
  color: #5f5d57;
}

.contact-form-intro strong {
  font-weight: 500;
  color: #242424;
}


/* ---------------------------------------------------------
   Form
   --------------------------------------------------------- */

.contact-form-wrap {
  width: 100%;
  scroll-margin-top: 120px;
}

.contact-form {
  display: grid;
  gap: 34px;
}

.contact-form-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.contact-field {
  display: flex;
  flex-direction: column;
}

.contact-field label {
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #5e5b54;
}

.contact-field label span {
  margin-left: 7px;
  font-weight: 300;
  letter-spacing: .05em;
  text-transform: none;
  color: #9b978d;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c9c5bb;
  border-radius: 0;
  background: transparent;
  padding: 13px 0 14px;
  color: #171717;
  font-family: "Inter", sans-serif;
  font-size: .94rem;
  font-weight: 300;
  line-height: 1.5;
  outline: none;
  transition: border-color .25s ease;
}

.contact-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f6c64 50%),
    linear-gradient(135deg, #6f6c64 50%, transparent 50%);
  background-position:
    calc(100% - 8px) 50%,
    calc(100% - 3px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.contact-field textarea {
  min-height: 185px;
  resize: vertical;
  border: 1px solid #c9c5bb;
  padding: 16px 18px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #252525;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #aaa69d;
}

.contact-submit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 8px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-width: 215px;
  padding: 17px 20px;
  border: 1px solid #222;
  background: #1b1b1b;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background .25s ease,
    color .25s ease;
}

.contact-submit:hover {
  background: transparent;
  color: #171717;
}

.contact-submit span {
  font-size: 1rem;
  line-height: 1;
}

.contact-submit-row p {
  max-width: 310px;
  margin: 0;
  color: #8b877f;
  font-family: "Inter", sans-serif;
  font-size: .68rem;
  font-weight: 300;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   Messages
   --------------------------------------------------------- */

.contact-message {
  margin-bottom: 42px;
  padding: 22px 24px;
  border: 1px solid #c8c3b8;
  font-family: "Inter", sans-serif;
}

.contact-message > span {
  display: block;
  margin-bottom: 7px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-message p,
.contact-message ul {
  margin: 0;
  color: #55524c;
  font-size: .82rem;
  font-weight: 300;
  line-height: 1.65;
}

.contact-message ul {
  padding-left: 18px;
}

.contact-message-success {
  background: #ecefe8;
  border-color: #bac4b2;
}

.contact-message-error {
  background: #f2e9e6;
  border-color: #d2b9b1;
}


/* ---------------------------------------------------------
   Anti-spam honeypot
   --------------------------------------------------------- */

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* ---------------------------------------------------------
   Alternative contact
   --------------------------------------------------------- */

.contact-alt {
  padding: clamp(90px, 10vw, 150px) 0;
  background: #e9e6df;
}

.contact-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 9vw, 150px);
  align-items: end;
}

.contact-alt h2 {
  margin-bottom: 0;
}

.contact-alt-detail {
  border-top: 1px solid #bcb7ad;
  padding-top: 26px;
}

.contact-alt-detail a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #bcb7ad;
  color: #171717;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(25px, 2.3vw, 38px);
  line-height: 1;
  text-decoration: none;
}

.contact-alt-detail a span {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.contact-alt-detail p {
  max-width: 520px;
  margin: 24px 0 0;
  color: #6c6962;
  font-family: "Inter", sans-serif;
  font-size: .8rem;
  font-weight: 300;
  line-height: 1.75;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 980px) {

  .contact-hero {
    min-height: auto;
    padding: 150px 0 90px;
  }

  .contact-hero-grid,
  .contact-form-layout,
  .contact-alt-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-grid {
    gap: 70px;
  }

  .contact-form-layout {
    gap: 80px;
  }

  .contact-form-intro {
    position: static;
  }

  .contact-index {
    margin-bottom: 42px;
  }

  .contact-alt-grid {
    gap: 55px;
  }
}


@media (max-width: 640px) {

  .contact-shell {
    width: calc(100% - 40px);
  }

  .contact-hero {
    padding: 125px 0 70px;
  }

  .contact-hero h1 {
    font-size: clamp(62px, 20vw, 88px);
    line-height: .82;
  }

  .contact-hero-grid {
    gap: 50px;
  }

  .contact-hero-detail p {
    font-size: 24px;
  }

  .contact-form-section {
    padding: 90px 0;
  }

  .contact-form-intro h2,
  .contact-alt h2 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .contact-form-two {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-submit-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-alt {
    padding: 80px 0;
  }

  .contact-alt-detail a {
    align-items: flex-end;
    font-size: 25px;
  }
}