/* ==========================================================================
   Contacts Page Styles
   Styles for the contact form, information blocks, and images.
   ========================================================================== */

/* This block owns neither of its outer gaps, by design (see the stack tokens):
   the banner above owns the gap before it, and the footer below owns the gap
   after it. Adding a margin-top here is what made the top gap 80px when every
   other gap on the page was 64px, and a margin-bottom would likewise stack with
   the footer's own margin-top. Column gutter is declared separately from
   row-gap so the vertical rhythm can never drag the horizontal one with it. */
.contact-page-container {
  align-items: start;
  column-gap: var(--spacing-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: var(--section-spacing);
}

/* Image styling */
.contact-column picture {
  margin-bottom: var(--stack-gap);
  width: 100%;
}

.contact-column img {
  border-radius: var(--radius-small);
  box-shadow: var(--elevation-1);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

/* Info Blocks */
.contact-block {
  -webkit-backdrop-filter: blur(0.25rem);
  backdrop-filter: blur(0.25rem);
  background: rgba(255, 255, 255, 0.4);
  border: 0.0625rem solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-medium);
  padding: 1.75rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-block:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-0.25rem);
}

.contact-block--centered {
  text-align: center;
}

.contact-block h3 {
  color: var(--color-carbon-black);
  font-size: var(--font-size-medium);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  margin-top: 0;
  text-transform: uppercase;
}

.contact-block p {
  color: var(--color-carbon-black);
  font-size: var(--font-size-extra-small);
  line-height: 1.7;
  margin: 0.5rem 0;
}

.contact-block a:not(.directions-button):not(.social-link) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-block a:not(.directions-button):not(.social-link):hover {
  color: var(--color-faded-copper);
}

.directions-button {
  background-color: var(--color-faded-copper);
  border-radius: var(--radius-pill);
  box-shadow: var(--elevation-2);
  color: var(--color-parchment);
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 1.25rem;
  padding: 0.65rem 1.75rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.directions-button:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-0.125rem);
}

/* Third skin for .social-link (main.css section 5): bare glyphs again, but on
   the card's light ground rather than the header's. Kept below "Get
   Directions" — this card's job is to get someone through the door, and the
   social links are the softer secondary ask. Divider marks the demotion. */
.contact-social {
  border-top: 0.0625rem solid rgba(107, 79, 58, 0.25);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.contact-social-title {
  color: var(--color-coffee-bean);
  font-size: var(--font-size-2x-small);
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.contact-social .social-links {
  gap: var(--spacing-4);
  justify-content: center;
}

.contact-social .social-link {
  color: var(--color-coffee-bean);
  padding: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social .social-link:hover {
  color: var(--color-faded-copper);
  transform: translateY(-0.125rem);
}

.contact-social .social-link::before {
  height: 1.5rem;
  width: 1.5rem;
}

/* Responsive Logic */
/* Single column: every vertical gap on the page is --stack-gap, including
   the one before the footer. The footer override is scoped by living in this
   stylesheet, which only loads on this page — no page-specific selector needed,
   and it loads after main.css so it wins at equal specificity.
   Breakpoint matches the 47.5rem the shared footer margin uses; at 48rem the
   two disagreed and left an 8px band with a mobile body and a desktop footer. */
@media (max-width: 47.5rem) {
  .contact-page-container {
    grid-template-columns: 1fr;
    row-gap: var(--stack-gap);
  }

  footer {
    margin-top: var(--stack-gap);
  }
}
