/* ==================================================
   CONTACT US LANDING PAGE

   Loaded after css/style.css. This file contains only the
   Contact-page layout and Repository-style compact-header
   overrides so the shared homepage CSS remains untouched.
   ================================================== */

.contact-page {
  --contact-brown: #4b2c0f;
  --contact-brown-deep: #2d1b0b;
  --contact-forest: #0b2d1c;
  --contact-paper: #f3ede0;
  --contact-paper-line: #c9baa0;
  --contact-gold: #d0ae5c;
}

/* ==================================================
   COMPACT GLOBAL NAVIGATION

   Mirrors the navigation-only treatment established on the
   SS Repository page: no large site-mark / brand block.
   ================================================== */

.contact-page .site-header {
  min-height: 62px;
  padding: 0 38px;
  justify-content: flex-end;
}

.contact-page .primary-navigation {
  margin-left: auto;
  justify-content: flex-end;
}

/* ==================================================
   CONTACT HERO

   The corrected source artwork is cropped to a compact 1200 x 160
   banner, approximately the same visual depth as the SS Repository
   identity banner. The title/subtitle remain live HTML text.
   ================================================== */

.contact-hero {
  position: relative;
  z-index: 3;
  min-height: var(--section-hero-height, 258px);
  overflow: hidden;
  color: #fff;
  background: var(--contact-brown-deep);

  /* No border or shadow here: those two properties created the pale
     horizontal seam that was visible between the old hero and body. */
  border: 0;
  box-shadow: none;
}

.contact-hero-art {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

/* Slight darkening on the left improves text contrast without modifying
   the supplied artwork itself. */
.contact-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 16, 5, 0.34) 0%, rgba(31, 16, 5, 0.12) 46%, transparent 72%);
  pointer-events: none;
}

.contact-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: var(--section-hero-height, 258px);
  width: min(calc(100% - 88px), 1110px);
  margin-inline: auto;
  flex-direction: column;
  justify-content: center;
  padding-right: 44%;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.46);
}

.contact-hero-copy h1 {
  margin: 0;
  color: #fff9e9;
  font-size: clamp(34px, 3.7vw, 45px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-hero-copy p {
  margin: 10px 0 0;
  color: #f4e3b6;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 500;
  line-height: 1.2;
}

/* ==================================================
   PAPER CONTACT SURFACE
   ================================================== */

.contact-surface {
  position: relative;
  z-index: 1;
  min-height: 980px;
  margin-top: 0;
  overflow: hidden;
  border-top: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.46), transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(225, 208, 175, 0.15), transparent 34%),
    var(--contact-paper);
}

.contact-landscape {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;

  /* Fade only the pale sky at the top into the paper surface so there is
     no visible horizontal edge where the supplied landscape begins. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.72) 12%, #000 25%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.72) 12%, #000 25%, #000 100%);
}

.contact-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(290px, 0.43fr) minmax(0, 0.57fr);
  width: min(calc(100% - 86px), 1090px);
  min-height: 770px;
  margin-inline: auto;
  padding-top: 54px;
}

.contact-sidebar {
  display: grid;
  grid-template-rows: minmax(390px, auto) 1fr;
  border-right: 1px solid rgba(111, 93, 65, 0.42);
}

.contact-information,
.contact-connect,
.contact-form-panel {
  position: relative;
}

.contact-information {
  padding: 0 42px 42px 12px;
  border-bottom: 1px solid rgba(111, 93, 65, 0.38);
}

.contact-connect {
  padding: 35px 42px 0 12px;
}

.contact-form-panel {
  padding: 0 12px 0 52px;
}

.contact-information h2,
.contact-connect h2,
.contact-form-panel h2 {
  margin: 0 0 37px;
  color: #172019;
  font-size: clamp(25px, 2.45vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: uppercase;
}

.contact-form-panel h2 {
  margin-bottom: 38px;
}

.contact-address,
.contact-connect p,
.contact-detail-row,
.contact-form input,
.contact-form textarea {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.contact-address {
  margin: 0 0 46px;
  color: #3a392f;
  font-size: 18px;
  font-style: normal;
  line-height: 1.55;
}

.contact-detail-list {
  display: grid;
  gap: 25px;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #2c3029;
  font-size: 18px;
  line-height: 1.3;
}

.contact-detail-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #f4e8c9;
  background: #17341f;
  border: 1px solid #8e7a49;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(35, 30, 18, 0.18);
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-connect p {
  max-width: 300px;
  margin: 0 0 34px;
  color: #3a392f;
  font-size: 17px;
  line-height: 1.55;
}

.contact-social {
  display: flex;
  gap: 30px;
  align-items: center;
}

.contact-social-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #17341f;
  background: rgba(247, 240, 224, 0.72);
  border: 2px solid #17341f;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(51, 40, 23, 0.14);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.contact-social-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-social-mark .fill {
  fill: currentColor;
  stroke: none;
}

/* The current href values are temporary homepage links. These hover/focus
   states will remain appropriate after the final social URLs are substituted. */
.contact-social-mark:hover,
.contact-social-mark:focus-visible {
  color: #f5e9c8;
  background: #17341f;
  transform: translateY(-2px);
}


/* ==================================================
   CONTACT FORM — DESIGN PROTOTYPE
   ================================================== */

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form-field {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  color: #2d332b;
  background: rgba(255, 252, 244, 0.72);
  border: 1px solid #b9ab91;
  border-radius: 5px;
  box-shadow:
    0 2px 5px rgba(80, 63, 37, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-form input {
  min-height: 62px;
  padding: 12px 19px;
  font-size: 17px;
}

.contact-form textarea {
  min-height: 220px;
  padding: 17px 19px;
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #787366;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 253, 247, 0.93);
  border-color: #8e7845;
  box-shadow: 0 0 0 3px rgba(208, 174, 92, 0.24);
}

.contact-submit-button {
  justify-self: center;
  min-width: 205px;
  min-height: 55px;
  margin-top: 5px;
  padding: 10px 24px;
  color: #f7f0df;
  background: linear-gradient(180deg, #173a24, #0d2b1a);
  border: 1px solid #c0a15c;
  border-radius: 5px;
  box-shadow: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
}

.contact-submit-button:hover,
.contact-submit-button:focus-visible {
  color: #fff8e6;
  background: linear-gradient(180deg, #1d482d, #123521);
  box-shadow: none;
  transform: none;
}

/* ==================================================
   LANDSCAPE / COPYRIGHT
   ================================================== */

.contact-copyright {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 18px;
  left: 0;
  color: rgba(247, 239, 216, 0.86);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ==================================================
   RESPONSIVE CONTACT LAYOUT
   ================================================== */

@media (max-width: 1110px) {
  .contact-page .site-header {
    min-height: 60px;
    padding-inline: 30px;
  }

  .contact-content {
    width: min(calc(100% - 64px), 1000px);
  }

  .contact-information,
  .contact-connect {
    padding-right: 30px;
  }

  .contact-form-panel {
    padding-left: 38px;
  }
}

@media (max-width: 940px) {
  .contact-page .site-header {
    min-height: 62px;
    padding-inline: 22px;
  }

  .contact-page .menu-toggle {
    margin-left: auto;
  }

  .contact-content {
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
    width: min(calc(100% - 48px), 870px);
  }

  .contact-information h2,
  .contact-connect h2,
  .contact-form-panel h2 {
    font-size: 24px;
  }

  .contact-address,
  .contact-detail-row {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .contact-hero,
  .contact-hero-copy {
    min-height: 150px;
  }

  .contact-hero-art {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
    transform: none;
  }

  .contact-hero-copy {
    width: min(calc(100% - 40px), 680px);
    padding-right: 34%;
  }

  .contact-hero-copy h1 {
    font-size: clamp(31px, 8vw, 40px);
  }

  .contact-hero-copy p {
    max-width: 240px;
    font-size: 15px;
  }

  .contact-surface {
    min-height: 1500px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    width: min(calc(100% - 40px), 620px);
    min-height: 0;
    padding-top: 42px;
  }

  .contact-sidebar {
    display: block;
    border-right: 0;
  }

  .contact-information {
    padding: 0 8px 36px;
    border-bottom: 1px solid rgba(111, 93, 65, 0.38);
  }

  .contact-connect {
    padding: 34px 8px 42px;
    border-bottom: 1px solid rgba(111, 93, 65, 0.38);
  }

  .contact-form-panel {
    padding: 38px 8px 0;
  }

  .contact-information h2,
  .contact-connect h2,
  .contact-form-panel h2 {
    margin-bottom: 27px;
    font-size: 25px;
  }

  .contact-address {
    margin-bottom: 32px;
  }

  .contact-social {
    gap: 20px;
  }

  .contact-landscape {
    width: 135%;
    left: -18%;
  }
}

@media (max-width: 430px) {
  .contact-hero,
  .contact-hero-copy {
    min-height: 142px;
  }

  .contact-hero-art {
    object-position: 61% center;
  }

  .contact-hero-copy {
    width: min(calc(100% - 28px), 390px);
    padding-right: 26%;
  }

  .contact-hero-copy h1 {
    font-size: 30px;
  }

  .contact-hero-copy p {
    font-size: 14px;
  }

  .contact-surface {
    min-height: 1450px;
  }

  .contact-content {
    width: min(calc(100% - 28px), 390px);
  }

  .contact-information h2,
  .contact-connect h2,
  .contact-form-panel h2 {
    font-size: 22px;
  }

  .contact-detail-row {
    align-items: flex-start;
    gap: 13px;
    font-size: 15px;
  }

  .contact-detail-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .contact-social-mark {
    width: 50px;
    height: 50px;
  }

  .contact-form input {
    min-height: 57px;
    font-size: 16px;
  }

  .contact-form textarea {
    min-height: 190px;
    font-size: 16px;
  }

  .contact-landscape {
    width: 165%;
    left: -35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form input,
  .contact-form textarea {
    transition: none;
  }
}

/* ==================================================
   ACTIVE CONTACT FORM SUBMISSION
   ================================================== */

/* The form is now connected to gdform.asp, so the CTA behaves like a
   normal interactive submit button rather than the earlier prototype. */
.contact-submit-button {
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

/* Keep the Send Message button shadow-free, but give it the same subtle
   upward hover/focus motion used by the social icons. */
.contact-submit-button:hover,
.contact-submit-button:focus-visible {
  color: #f7f0df;
  background: linear-gradient(180deg, #1d4930, #103622);
  border-color: #d0ae5c;
  box-shadow: none;
  transform: translateY(-2px);
}

/* Return to the normal position while the button is actively being pressed. */
.contact-submit-button:active {
  box-shadow: none;
  transform: translateY(0);
}

/* Browsers normally stop the form before submission when a required
   field is empty. This subtle state also helps users identify a field
   they interacted with but left invalid. */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #9a4d3f;
}
