/*
 * contact styles.
 * Keep rule order intact: later rules refine earlier layouts and responsive states.
 */

.contact-heading {
  padding: 60px 0 55px;
}
.contact-heading h1 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.1;
  margin-bottom: 28px;
}
.contact-heading > p:last-child {
  font-size: 19px;
  line-height: 1.7;
  color: var(--body);
}
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.contact-information h2,
.inquiry-panel h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin: 0 0 22px;
  line-height: 1.2;
}
.contact-information > p,
.inquiry-panel > p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
  margin: 0 0 28px;
}
.contact-information dl {
  margin: 30px 0;
}
.contact-information dl > div {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.contact-information dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--body);
  margin-bottom: 10px;
}
.contact-information dd {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.contact-information address {
  font-size: 17px;
}
.contact-information a:hover {
  text-decoration: underline;
}
.contact-information h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  margin: 28px 0 18px;
}
.contact-social-icons {
  display: flex;
  gap: 12px;
}
.contact-social-icons a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.contact-social-icons svg {
  width: 21px;
  height: 21px;
}
.inquiry-panel {
  padding: 38px;
  background: var(--tint);
}
.inquiry-field {
  margin: 0 0 23px;
}
.inquiry-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 9px;
}
.inquiry-field input,
.inquiry-field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  min-height: 48px;
}
.inquiry-field textarea {
  resize: vertical;
  line-height: 1.7;
}
.inquiry-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 22px;
}
.inquiry-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 15px 20px;
  min-height: 50px;
  font-size: 15px;
}
#inquiry-status {
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
}
#inquiry-status:empty {
  display: none;
}
.contact-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 45px 0 20px;
}
.contact-location h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin: 0 0 20px;
}
.contact-location p {
  color: var(--body);
  line-height: 1.8;
}
@media (max-width: 800px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-heading {
    padding: 40px 0 35px;
  }
  .contact-location {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 500px) {
  .inquiry-panel {
    padding: 26px 22px;
  }
  .contact-information h2,
  .inquiry-panel h2,
  .contact-location h2 {
    font-size: 30px;
  }
  .contact-information dd {
    font-size: 20px;
  }
  .contact-heading > p:last-child {
    font-size: 17px;
  }
}

.contact-social-icons {
  flex-wrap: wrap;
}
.contact-social-icons a {
  color: var(--body);
  transition:
    transform 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}
@media (hover: hover) {
  .contact-social-icons a:hover {
    color: var(--ink);
    border-color: var(--ink);
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-social-icons a {
    transition: none;
  }
  .contact-social-icons a:hover {
    transform: none;
  }
}

/* Refined contact page aligned with the site's editorial styling. */
.contact-heading {
  padding: 55px 0 50px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 50px;
}
.contact-heading .about-eyebrow {
  letter-spacing: 0.14em;
  font-size: 11px;
  margin-bottom: 22px;
}
.contact-heading h1 {
  font-size: clamp(42px, 4.8vw, 70px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.contact-heading > p:last-child {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  color: var(--body);
}
.contact-page-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(45px, 7vw, 100px);
}
.contact-information h2,
.inquiry-panel h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 22px;
}
.contact-information > p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 30px;
  max-width: 480px;
}
.contact-information dl {
  margin: 0 0 30px;
}
.contact-information dl > div {
  padding: 22px 0;
}
.contact-information dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.contact-information dd {
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.5;
}
.contact-information address {
  font-size: 16px;
  line-height: 1.8;
}
.contact-information h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 17px;
}
.contact-social-icons {
  gap: 10px;
}
.contact-social-icons a {
  border-color: #c7c7c7;
}
.inquiry-panel {
  background: #f2f2f0;
  padding: 40px 42px;
  color: #222;
}
.inquiry-panel > p {
  font-size: 15px;
  margin-bottom: 30px;
  color: #555;
}
.inquiry-field {
  margin-bottom: 24px;
}
.inquiry-field label {
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: #444;
}
.inquiry-field input,
.inquiry-field textarea {
  background: transparent;
  color: #222;
  border: 0;
  border-bottom: 1px solid #aaa;
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
  border-radius: 0;
}
.inquiry-field textarea {
  min-height: 125px;
}
.inquiry-field input:focus,
.inquiry-field textarea:focus {
  border-bottom-color: #222;
  outline: 2px solid #555;
  outline-offset: 5px;
}
.inquiry-note {
  font-size: 12px;
  color: #666;
  line-height: 1.7;
  margin: 28px 0 23px;
}
.inquiry-send {
  background: #222;
  color: #fff;
  min-height: 52px;
  padding: 14px 20px;
  font-weight: 400;
}
.contact-location {
  margin-top: 60px;
  padding: 38px 0 12px;
  align-items: center;
}
.contact-location .about-eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
}
.contact-location h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
.contact-location p:last-child {
  font-size: 15px;
  margin: 0;
}
.contact-location > .text-link {
  font-size: 14px;
  margin-top: 0;
}
body.dark .inquiry-panel {
  background: #292929;
  color: #eee;
}
body.dark .inquiry-panel > p,
body.dark .inquiry-field label,
body.dark .inquiry-note {
  color: #ccc;
}
body.dark .inquiry-field input,
body.dark .inquiry-field textarea {
  color: #eee;
  border-color: #888;
}
@media (max-width: 800px) {
  .contact-heading {
    padding: 35px 0;
    margin-bottom: 35px;
  }
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-information > p {
    max-width: none;
  }
  .contact-location {
    align-items: flex-start;
    gap: 24px;
  }
}
@media (max-width: 500px) {
  .contact-page {
    width: calc(100% - 36px);
  }
  .contact-heading h1 {
    font-size: 42px;
  }
  .contact-heading > p:last-child {
    font-size: 16px;
  }
  .inquiry-panel {
    padding: 30px 24px;
  }
  .contact-information h2,
  .inquiry-panel h2,
  .contact-location h2 {
    font-size: 29px;
  }
  .contact-information dd {
    font-size: 20px;
  }
  .contact-location {
    margin-top: 40px;
    padding-top: 30px;
  }
  .contact-location > .text-link {
    max-width: 100%;
  }
}

/* Interactive office location map. */
.contact-map {
  width: 100%;
  margin: 25px 0 20px;
  background: #eee;
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
@media (max-width: 650px) {
  .contact-map {
    margin-top: 22px;
  }
  .contact-map iframe {
    height: 320px;
  }
}
