
/* ==========================================
   MAX FARMZ — CONTACT PAGE
========================================== */

.contact-page {
  background: #FBF6EC;
  color: #1B3A24;
}

.contact-wrap {
  width: 88%;
  max-width: 1400px;
  margin: 0 auto;
}

/* =====================================
   HEADER
===================================== */

.contact-page .site-header {
  position: absolute;
  z-index: 9999;
  background: transparent;
}

.contact-page .header-nav a {
  color: #FFFFFF;
}

.contact-page .header-nav a:hover,
.contact-page .header-nav a[aria-current="page"] {
  color: #F36D21;
}

/* =====================================
   DARK GREEN HERO
===================================== */

.contact-hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;

  display: flex;
  align-items: center;

  padding: 160px 0 155px;

  background:
    radial-gradient(
      circle at 85% 45%,
      #315F3A 0%,
      #1B3A24 54%,
      #112C1B 100%
    );

  color: #FFFFFF;
}

.contact-hero-decoration {
  position: absolute;
  top: -180px;
  right: -190px;

  width: 650px;
  height: 650px;

  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  pointer-events: none;
}

.contact-hero-decoration::before,
.contact-hero-decoration::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}

.contact-hero-decoration::before {
  inset: 80px;
}

.contact-hero-decoration::after {
  inset: 165px;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 830px;

  animation: contactReveal 1s ease both;
}

.contact-eyebrow,
.contact-section-label {
  display: block;

  color: #F36D21;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.contact-hero h1 {
  margin-top: 22px;

  font-family: Cambria, Georgia, serif;
  font-size: clamp(55px, 7vw, 110px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
}

.contact-hero h1 span {
  display: block;
  color: #F36D21;
}

.contact-hero-content > p {
  max-width: 630px;
  margin-top: 28px;

  color: rgba(255,255,255,.8);
  font-size: 17px;
  line-height: 1.85;
}

.contact-hero-line {
  width: 75px;
  height: 2px;
  margin-top: 36px;

  background: #F36D21;
}

.contact-hero-caption {
  display: block;
  margin-top: 18px;

  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

@keyframes contactReveal {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
   MAIN CONTACT AREA
===================================== */

.contact-main {
  position: relative;
  padding: 105px 0 125px;
  background: #FBF6EC;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 9%;
  align-items: start;
}

/* =====================================
   LEFT CONTACT INFORMATION
===================================== */

.contact-info {
  padding-top: 30px;
}

.contact-info h2 {
  margin-top: 20px;

  font-family: Cambria, Georgia, serif;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.1;
  color: #1B3A24;
}

.contact-info h2 span {
  display: block;
  color: #257D3F;
}

.contact-info-description {
  margin-top: 23px;
  max-width: 460px;

  color: #637466;
  font-size: 16px;
  line-height: 1.85;
}

/* Contact detail rows */

.contact-details {
  margin-top: 48px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 19px;

  padding: 20px 0;
  border-bottom: 1px solid rgba(27,58,36,.12);

  text-decoration: none;
  color: inherit;
}

a.contact-detail {
  transition: transform .3s ease;
}

a.contact-detail:hover {
  transform: translateX(5px);
}

.contact-detail-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
  background: #257D3F;
  color: #FFFFFF;
}

.contact-detail-icon svg {
  width: 25px;
  height: 25px;
}

.contact-detail small {
  display: block;

  color: #F36D21;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
}

.contact-detail strong {
  display: block;
  margin-top: 8px;

  color: #1B3A24;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Instagram */

.contact-social {
  margin-top: 43px;
}

.contact-social > span {
  display: block;
  margin-bottom: 15px;

  color: #637466;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 13px;

  color: #257D3F;
  text-decoration: none;
  font-weight: 700;

  transition: color .3s ease;
}

.contact-social a:hover {
  color: #F36D21;
}

.contact-social svg {
  width: 28px;
  height: 28px;
}

/* =====================================
   CONTACT FORM CARD
===================================== */

.contact-form-card {
  background: #FFFFFF;
  padding: 45px;

  border: 1px solid rgba(27,58,36,.09);
  border-radius: 20px;

  box-shadow: 0 20px 55px rgba(27,58,36,.08);
}

.contact-form-heading {
  margin-bottom: 35px;
}

.contact-form-heading h2 {
  margin-top: 15px;

  font-family: Cambria, Georgia, serif;
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.2;

  color: #1B3A24;
}

.contact-form-heading h2 span {
  color: #F36D21;
}

.contact-form-heading p {
  margin-top: 13px;

  color: #637466;
  font-size: 15px;
  line-height: 1.7;
}

/* Two-column fields */

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.contact-field {
  margin-bottom: 22px;
}

.contact-field label {
  display: block;
  margin-bottom: 10px;

  color: #1B3A24;
  font-size: 13px;
  font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;

  border: 1px solid #E0E7DF;
  border-radius: 9px;

  padding: 15px 16px;

  background: #FBF6EC;
  color: #1B3A24;

  font: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #91A093;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #257D3F;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37,125,63,.1);
}

/* Submit button */

.contact-submit {
  width: 100%;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 22px;

  border: none;
  border-radius: 9px;

  background: #257D3F;
  color: #FFFFFF;

  font: inherit;
  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .3s ease,
    transform .3s ease;
}

.contact-submit:hover {
  background: #1B3A24;
  transform: translateY(-2px);
}

.contact-submit span {
  font-size: 24px;
  font-weight: 400;
}

.contact-form-note {
  margin-top: 17px;

  font-size: 12px;
  line-height: 1.6;
  color: #758476;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 1000px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5%;
  }

  .contact-form-card {
    padding: 32px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

  .contact-hero {
    min-height: 520px;
    padding: 155px 0 95px;
  }

  .contact-hero h1 {
    font-size: clamp(51px, 12vw, 78px);
  }

  .contact-hero-content > p {
    font-size: 15px;
    line-height: 1.7;
  }

  .contact-hero-decoration {
    width: 420px;
    height: 420px;
    right: -240px;
    top: -80px;
  }

  .contact-main {
    padding: 65px 0 85px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-info {
    padding-top: 0;
  }

  .contact-info h2 {
    font-size: clamp(40px, 9vw, 52px);
  }

  .contact-details {
    margin-top: 35px;
  }

  .contact-detail strong {
    font-size: 16px;
  }

  .contact-form-card {
    padding: 28px 22px;
    border-radius: 15px;
  }

  .contact-form-heading h2 {
    font-size: 35px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {
  .contact-hero-content {
    animation: none;
  }

  .contact-detail,
  .contact-submit,
  .contact-social a {
    transition: none;
  }
}
