/* =====================================================
   CONTACT US PAGE  -  properties/static/css/contact.css
   Desktop first, then tablet (<=1024px), then mobile (<=600px)
   ===================================================== */

.contact-page {
  color: #292D2A;
  font-size: 18px;
  line-height: 1.5;
}

.contact-page h1,
.contact-page h2,
.contact-page h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: #24483F;
  margin: 0;
}

/* ---------- Pills ---------- */
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.contact-pill-forest { background: #24483F; color: #fff; }

.contact-pill-cream {
  height: 60px;
  padding: 0 9px 0 32px;
  font-size: 18px;
  background: #FAF7F0;
  color: #24483F;
}

.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
}

.contact-pill-forest .contact-ico { background: #FAF7F0; color: #24483F; }
.contact-pill-cream  .contact-ico { background: #24483F; color: #FAF7F0; }

/* ---------- Hero ---------- */
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: center;
  padding: 48px 96px 0;
}

.contact-hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #24483F;
}

.contact-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24483F;
}

.contact-hero h1 {
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.contact-lead {
  margin: 0;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.65;
}

.contact-hero-image {
  position: relative;
  height: 290px;
  overflow: hidden;
  border-radius: 28px;
  background: #DCE6DA;
}

.contact-hero-image img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-image::before {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 0;
  box-sizing: border-box;
  width: 96px;
  height: 140px;
  border: 1.5px solid rgba(250, 247, 240, 0.8);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
}

/* ---------- Main section ---------- */
.contact-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
  padding: 96px 96px 0;
}

/* left: info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 12px;
}

.contact-info h2 {
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.contact-info-lead {
  margin: 0 0 8px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
}

.contact-card {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border-radius: 36px;
  background: #DCE6DA;
  border: 1.5px solid rgba(36, 72, 63, 0.14);
}

.contact-card-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #24483F;
  color: #FAF7F0;
}

.contact-card-body { min-width: 0; }

.contact-card-body h3 {
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.2;
}

.contact-card-body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.contact-card-body .contact-email {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  color: #24483F;
  overflow-wrap: anywhere;
}

/* right: form card */
.contact-form-card {
  box-sizing: border-box;
  padding: 48px;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(36, 72, 63, 0.08);
}

.contact-form-card h2 {
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.contact-topics-label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
}

.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.contact-topic {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid rgba(36, 72, 63, 0.3);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #292D2A;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: #292D2A;
}

.contact-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 52px;
  padding: 0 24px;
  border: 1.5px solid #839A90;
  border-radius: 999px;
  background: #FAF7F0;
  font-family: inherit;
  font-size: 16px;
  color: #292D2A;
}

.contact-area {
  height: auto;
  min-height: 168px;
  padding: 16px 24px;
  border-radius: 26px;
  line-height: 1.5;
  resize: vertical;
}

.contact-field::placeholder {
  color: #667069;
  opacity: 1;
}

.contact-field:focus {
  outline: none;
  border-color: #24483F;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 72, 63, 0.22);
}

.contact-submit {
  width: 100%;
  height: 58px;
  margin-top: 8px;
  justify-content: space-between;
  padding: 0 8px 0 30px;
  font-size: 17px;
}

.contact-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #4F5651;
}

/* ---------- Closing call to action ---------- */
.contact-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin: 112px 36px 0;
  padding: 64px 72px;
  border-radius: 36px;
  background: #24483F;
}

.contact-cta > * { position: relative; }

.contact-cta::before {
  content: "";
  position: absolute;
  right: 300px;
  bottom: 0;
  box-sizing: border-box;
  width: 120px;
  height: 170px;
  border: 2px solid rgba(250, 247, 240, 0.2);
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
}

.contact-cta-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.contact-cta h2 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #FAF7F0;
}

.contact-cta p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #DCE6DA;
}

.contact-cta .contact-pill { flex: none; }


/* =====================================================
   TABLET  (design 768px) - applies up to 1024px wide
   ===================================================== */
@media (max-width: 1024px) {

  .contact-pill { gap: 12px; }
  .contact-ico { width: 40px; height: 40px; }
  .contact-pill-cream { height: 56px; padding: 0 8px 0 28px; font-size: 17px; }

  /* hero: stacked */
  .contact-hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 24px;
  }
  .contact-hero-text { gap: 20px; padding: 60px 16px 0; }
  .contact-hero h1 { font-size: 56px; line-height: 1.06; }
  .contact-lead { font-size: 18px; max-width: 620px; }
  .contact-hero-image { height: 200px; }
  .contact-hero-image::before { right: 40px; width: 90px; height: 120px; border-radius: 45px 45px 0 0; }

  /* main: narrow info column + wide form */
  .contact-main {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 20px;
    padding: 72px 32px 0;
  }
  .contact-info { gap: 14px; padding-top: 0; }
  .contact-info h2 { font-size: 38px; }
  .contact-info-lead { margin-bottom: 4px; font-size: 16px; line-height: 1.6; }

  .contact-card {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
  }
  .contact-card-icon { width: 48px; height: 48px; }
  .contact-card-icon svg { width: 24px; height: 24px; }
  .contact-card-body h3 { font-size: 22px; }
  .contact-card-body p  { font-size: 15px; }
  .contact-card-body .contact-email { margin-top: 6px; font-size: 14px; }

  .contact-form-card {
    padding: 28px;
    border-radius: 36px;
    box-shadow: 0 10px 30px rgba(36, 72, 63, 0.08);
  }
  .contact-form-card h2 { margin-bottom: 16px; font-size: 30px; }
  .contact-topics-label { margin-bottom: 8px; }
  .contact-topics { gap: 6px; margin-bottom: 22px; }
  .contact-topic { height: 34px; padding: 0 12px; font-size: 13px; }
  .contact-form { gap: 14px; }
  .contact-field { height: 50px; padding: 0 22px; }
  .contact-area { height: auto; min-height: 150px; padding: 14px 22px; border-radius: 24px; }
  .contact-submit { height: 56px; margin-top: 6px; padding: 0 8px 0 26px; }
  .contact-note { margin-top: 14px; }

  /* closing call to action: text above the button */
  .contact-cta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    margin: 80px 24px 0;
    padding: 52px 40px;
    border-radius: 32px;
  }
  .contact-cta::before { right: 36px; width: 90px; height: 130px; border-radius: 45px 45px 0 0; }
  .contact-cta-text { gap: 12px; max-width: 520px; }
  .contact-cta h2 { font-size: 38px; }
  .contact-cta p  { font-size: 17px; }
}


/* =====================================================
   MOBILE  (design 390px) - applies up to 600px wide
   ===================================================== */
@media (max-width: 600px) {

  /* hero */
  .contact-hero { gap: 24px; padding: 0 12px; }
  .contact-hero-text { gap: 16px; padding: 36px 8px 0; }
  .contact-hero h1 { font-size: 42px; line-height: 1.08; }
  .contact-lead { font-size: 16px; }
  .contact-hero-image { height: 180px; border-radius: 24px; }
  .contact-hero-image::before { right: 24px; width: 70px; height: 96px; border-radius: 35px 35px 0 0; }

  /* main: one column, info then form */
  .contact-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 12px 0;
  }
  .contact-info { padding: 0 8px; }
  .contact-info h2 { font-size: 34px; }
  .contact-info-lead { margin: -2px 0 8px; }

  .contact-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }
  .contact-card-body h3 { margin-bottom: 4px; font-size: 23px; }
  .contact-card-body p  { font-size: 16px; }
  .contact-card-body .contact-email { margin-top: 2px; font-size: 16px; }

  .contact-form-card { padding: 28px 20px; border-radius: 28px; }
  .contact-label { margin-bottom: 5px; }
  .contact-field { padding: 0 20px; }
  .contact-area { padding: 14px 20px; }

  /* closing call to action */
  .contact-cta {
    gap: 14px;
    margin: 40px 12px 0;
    padding: 44px 24px;
    border-radius: 28px;
  }
  .contact-cta::before { display: none; }
  .contact-cta-text { gap: 14px; max-width: none; }
  .contact-cta h2 { font-size: 32px; }
  .contact-cta p  { font-size: 16px; }
  .contact-cta .contact-pill {
    width: 100%;
    height: 56px;
    margin-top: 10px;
    justify-content: space-between;
    padding: 0 8px 0 26px;
    font-size: 17px;
  }
}
/* ---------- Breadcrumb ---------- */
/* Look comes from breadcrumb.css; this only sets the spacing. */
.contact-crumb { padding: 28px 96px 0; }

@media (max-width: 1024px) {
  .contact-crumb { padding: 22px 40px 0; }
}

@media (max-width: 600px) {
  .contact-crumb { padding: 16px 20px 0; }
}

/* ---------- Page width = navbar width ---------- */
/* --contact-edge is the navbar's side space (site-nav.css .site-header),
   so every section lines up with the navbar's left and right edges.
   Placed last so it wins over the side spacing set above. */
.contact-page { --contact-edge: max(48px, calc((100% - 1328px) / 2)); }

.contact-crumb,
.contact-hero,
.contact-main {
  padding-left: var(--contact-edge);
  padding-right: var(--contact-edge);
}

.contact-cta {
  margin-left: var(--contact-edge);
  margin-right: var(--contact-edge);
}

/* text inside the sections starts right at that edge */
.contact-hero-text,
.contact-info {
  padding-left: 0;
  padding-right: 0;
}

/* the navbar uses 22px side space on phones */
@media (max-width: 600px) {
  .contact-page { --contact-edge: 22px; }
}
