/* =====================================================
   contact.css — styles only for the Get in touch page
   ===================================================== */

.page-contact { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* The content fills the screen; the footer sits at the bottom */
.contact {
  flex: 1; min-height: 802px; padding-top: 25px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
}
.contact__logo { width: 214px; height: 168px; }
.contact .title { margin-top: 77px; }
.contact .grain { filter: url(#grain-lg); }   /* this title keeps the big grain on phones too, like your mobile design */

.contact__links {
  list-style: none; margin: 80px 0 0; padding: 0;
  width: min(345px, 100% - 2 * var(--page-margin));
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.contact__links li:nth-child(-n+2) { grid-column: 1 / -1 }
.contact-box {
  display: flex; align-items: center; justify-content: center; height: 65px;
  border: 1px solid var(--text-title); color: var(--text-title);
  font-size: 16px; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
@media (hover: hover) { .contact-box:hover { color: var(--button); border-color: var(--button); } }
.contact-box:focus-visible { color: var(--button); border-color: var(--button); }
.contact-box:active { color: var(--bg); background: var(--button); border-color: var(--button); }

.page-contact .site-footer { margin-top: 0; padding-bottom: 54px; }

@media (max-width: 767px) {
  .page-contact .site-header { margin-top: 25px; }
  .contact { min-height: 573px; padding-top: 4px; }
  .contact .title { margin-top: 28px; font-size: 64px; }
  .contact__links { margin-top: 32px; gap: 16px; }
  .contact-box { height: 62px; }
  .page-contact .site-footer { padding-bottom: 26px; }
}

/* Sideways phones (a short, wide screen): everything gets smaller and closer together,
   so the buttons fit without scrolling. Desktop and upright screens are not affected. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1199px) {
  .page-contact .site-header { margin-top: 12px; }
  .contact { min-height: 0; padding-top: 0; }
  .contact__logo { width: 102px; height: 80px; }
  .contact .title { margin-top: 6px; font-size: 40px; }
  .page-contact .contact .grain { filter: url(#grain-sm); }   /* finer grain, so the smaller title stays readable */
  .contact__links { margin-top: 12px; gap: 10px; }
  .contact-box { height: 44px; }
  .page-contact .site-footer { flex-direction: row; margin-top: 10px; padding-bottom: 10px; }
}
