.contact-page {
  background: #f4f5f2;
}

.contact-copy h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.contact-main {
  padding: 72px 0 110px;
  background: #f4f5f2;
}

.contact-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  width: min(1320px, calc(100% - 12vw));
  margin: 0 auto;
  box-shadow: 0 26px 80px rgba(16,50,66,.10);
}

.contact-copy {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 5vw, 76px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16,50,66,.76) 0%, rgba(16,50,66,.88) 58%, rgba(16,50,66,.96) 100%),
    url("assets/geral/baleal.webp") center 46% / cover no-repeat;
  color: #fff;
}

.contact-copy > * {
  position: relative;
  z-index: 1;
}

.contact-copy .section-index {
  color: rgba(255,255,255,.65);
}

.contact-copy h2 {
  max-width: 560px;
  margin: 28px 0 24px;
  font-size: clamp(46px, 4.8vw, 72px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.055em;
}

.contact-copy > p {
  max-width: 500px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.75;
}

.contact-email-block {
  margin-top: auto;
  padding-top: 58px;
}

.contact-email-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  font-size: clamp(19px, 2vw, 30px);
  letter-spacing: -.025em;
  transition: border-color .25s ease, opacity .25s ease;
}

.contact-email:hover {
  border-color: #fff;
  opacity: .78;
}

.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.contact-meta-item span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-meta-item a,
.contact-meta-item p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.6;
}

.contact-form-wrap {
  min-height: 650px;
  padding: clamp(48px, 5vw, 76px);
  background: #fff;
}

.contact-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.contact-form-head h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}

.contact-form-head p {
  max-width: 260px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.contact-field {
  display: grid;
  gap: 9px;
}

.contact-field.full {
  grid-column: 1 / -1;
}

.contact-field label {
  color: #586a72;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #cfd6d8;
  border-radius: 0;
  outline: none;
  background: transparent;
  padding: 12px 0 13px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease;
}

.contact-field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--dark);
}

.contact-submit {
  grid-column: 1 / -1;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  margin-top: 8px;
  padding: 0 18px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  transition: transform .25s var(--ease), background .25s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: #0b2937;
}

.contact-form-note {
  grid-column: 1 / -1;
  margin: -12px 0 0;
  color: #89959b;
  font-size: 9px;
  line-height: 1.6;
}

.contact-location {
  width: min(1320px, calc(100% - 12vw));
  margin: 74px auto 0;
  padding-top: 32px;
  border-top: 1px solid #d6dddf;
}

.contact-location a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.contact-location-index {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
}

.contact-location strong {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -.045em;
}

.contact-location small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .05em;
}

.contact-location .arrow-icon {
  width: 28px;
  height: 28px;
}

.contact-page .nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    min-height: 560px;
  }

  .contact-form-wrap {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .contact-main {
    padding-bottom: 80px;
  }

  .contact-card,
  .contact-location {
    width: calc(100% - 30px);
  }

  .contact-copy,
  .contact-form-wrap {
    padding: 38px 24px 42px;
  }

  .contact-copy {
    min-height: 500px;
  }

  .contact-copy h2 {
    font-size: 48px;
  }

  .contact-meta {
    grid-template-columns: 1fr;
  }

  .contact-form-head {
    display: block;
    margin-bottom: 36px;
  }

  .contact-form-head p {
    margin-top: 12px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-field,
  .contact-field.full,
  .contact-submit,
  .contact-form-note {
    grid-column: 1;
  }

  .contact-location {
    margin-top: 50px;
  }

  .contact-location a {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .contact-location-index {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .contact-copy h2 {
    font-size: 43px;
  }

  .contact-email {
    font-size: 18px;
  }
}


/* Compact phones: protect form and long contact details from overflow. */
@media (max-width: 700px) {
  .contact-main { padding: 26px 0 55px; }
  .contact-card, .contact-location { width: calc(100% - 28px); }
  .contact-copy { min-height: 0; padding: 35px 22px 38px; }
  .contact-copy h2 { font-size: clamp(36px, 9vw, 48px); line-height: 1.08; }
  .contact-copy > p { font-size: 14px; line-height: 1.7; }
  .contact-email-block { padding-top: 36px; }
  .contact-email { display: inline-flex; max-width: 100%; font-size: clamp(15px, 4.2vw, 22px); overflow-wrap: anywhere; word-break: break-word; }
  .contact-meta { gap: 18px; margin-top: 28px; padding-top: 21px; }
  .contact-form-wrap { min-height: 0; padding: 35px 22px 40px; }
  .contact-form-head { margin-bottom: 26px; }
  .contact-form { gap: 19px; }
  .contact-field input, .contact-field select, .contact-field textarea {
    min-height: 44px;
    font-size: 16px; /* Prevent automatic zoom on iOS form focus. */
  }
  .contact-field textarea { min-height: 120px; }
  .contact-submit { min-height: 50px; }
  .contact-form-note { margin-top: -5px; font-size: 11px; }
  .contact-location { margin-top: 35px; }
  .contact-location strong { font-size: clamp(26px, 7.6vw, 42px); }
}
@media (max-width: 380px) {
  .contact-copy, .contact-form-wrap { padding-inline: 17px; }
  .contact-email { font-size: 15px; }
}


/* Contact section on the one-page Armeria homepage */
html { scroll-behavior: smooth; }
.homepage #contacto { scroll-margin-top: 92px; }
.homepage .contact-main { padding: clamp(66px, 7vw, 102px) 0 78px; }
.homepage .contact-card {
  width: min(1420px, calc(100% - 12vw));
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  box-shadow: 0 12px 50px rgba(16,50,66,.065);
}
.homepage .contact-copy,
.homepage .contact-form-wrap {
  min-height: 560px;
  padding: clamp(38px, 4.2vw, 62px);
}
.homepage .contact-copy h2 {
  margin: 30px 0 22px;
  font-size: clamp(45px, 4vw, 64px);
}
.homepage .contact-email-block { padding-top: 46px; }
.homepage .contact-form-head { margin-bottom: 32px; gap: 18px; }
.homepage .contact-form-head h3 { font-size: clamp(28px, 2.5vw, 36px); }
.homepage .contact-form { gap: 20px 22px; }
.homepage .contact-field textarea { min-height: 94px; }
.homepage .contact-location {
  width: min(1420px, calc(100% - 12vw));
  margin-top: 44px;
  padding-top: 25px;
}
.homepage .contact-location strong { font-size: clamp(26px, 2.7vw, 39px); }
.homepage .contact-submit { cursor: pointer; }
.homepage .contact-submit:disabled { opacity: .65; cursor: progress; transform: none; }
@media (max-width: 980px) {
  .homepage .contact-card { grid-template-columns: 1fr; }
  .homepage .contact-copy, .homepage .contact-form-wrap {
    min-height: 0;
    padding: 42px;
  }
  .homepage .contact-copy { min-height: 430px; }
}
@media (max-width: 700px) {
  .homepage #contacto { scroll-margin-top: 68px; }
  .homepage .contact-main { padding: 53px 0 62px; }
  .homepage .contact-card, .homepage .contact-location { width: calc(100% - 28px); }
  .homepage .contact-copy, .homepage .contact-form-wrap { padding: 34px 22px 36px; }
  .homepage .contact-copy { min-height: 0; }
  .homepage .contact-copy h2 { margin: 22px 0 18px; font-size: clamp(36px, 9vw, 47px); }
  .homepage .contact-email-block { padding-top: 32px; }
  .homepage .contact-form-head { margin-bottom: 24px; }
  .homepage .contact-form { gap: 17px; }
  .homepage .contact-location { margin-top: 32px; }
  .homepage .contact-location strong { font-size: clamp(25px, 7vw, 35px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
