/* ==========================================================================
   Contact page
   Requires base.css + style.css (for the button and footer rules)
   ========================================================================== */

.contact-page { background: var(--charcoal); }

/* ---------- Page head ---------- */
.page-head {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/contact-bg.jpg') center / cover no-repeat;
  opacity: .18;
}

.page-head__inner {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: 72px 24px 64px;
  text-align: center;
}

.page-head__logo {
  width: 377px; height: 109px;
  margin: 0 auto 18px;
  max-width: 100%;
}

.page-head__title {
  font-family: var(--f-light);
  font-size: 32.75px; font-weight: 300; line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.page-head__lead {
  margin: 14px auto 26px;
  max-width: 480px;
  font-family: var(--f-serif);
  font-size: 16px; line-height: 25px;
  color: rgba(255, 255, 255, .78);
}

.page-head .btn--brown { margin: 0 auto; }

/* ---------- Branch cards ---------- */
.branches-grid { background: var(--tan); }

.branches-grid__inner {
  max-width: 1000px; margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.branch-card {
  display: flex; flex-direction: column;
  background: var(--grey-dark);
  border-radius: 10px;
  padding: 30px 28px 28px;
  color: var(--white);
}

.branch-card__head { margin-bottom: 20px; }

.branch-card__head h2 {
  font-family: var(--f-heading);
  font-size: 26px; font-weight: 400;
  letter-spacing: 3.4px; text-transform: uppercase;
  color: var(--cream);
}

.branch-card__sub {
  margin-top: 5px;
  font-family: var(--f-serif);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Facts list ---------- */
.branch-card__facts {
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: start;
}

.branch-card__facts dt {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  padding-top: 2px;
}
.branch-card__facts dt img { width: 18px; height: 18px; flex: none; }

.branch-card__facts dd {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 15.5px; line-height: 22px;
}
.branch-card__facts a:hover { color: var(--cream); text-decoration: underline; }

/* ---------- Hours ---------- */
.branch-card__hours-title {
  margin-bottom: 4px;
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.branch-card .hours-table { font-family: var(--f-serif); }

/* ---------- Map embed ---------- */
/* The iframe carries width/height attributes so it still has sane dimensions
   if the stylesheet fails; CSS overrides them to fill the card. */
.branch-card__map-embed {
  margin-top: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  line-height: 0;
}

.branch-card__map-embed iframe {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 10;
  border: 0;
  /* Google's embed renders light; soften it against the dark card. */
  filter: saturate(.9);
}

/* aspect-ratio fallback for older Safari */
@supports not (aspect-ratio: 16 / 10) {
  .branch-card__map-embed iframe { height: 230px; }
}

/* ---------- Actions ---------- */
.branch-card__actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}

/* The shared button is a fixed 175px; these labels are longer, so let it size
   to its text instead of wrapping onto two lines. */
.branch-card__actions .btn--brown {
  width: auto;
  padding: 0 24px;
  white-space: nowrap;
}

.branch-card__map {
  font-family: var(--f-sans);
  font-size: 12.5px; letter-spacing: .4px;
  color: var(--cream);
}
.branch-card__map:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .branches-grid__inner { grid-template-columns: 1fr; gap: 22px; padding: 48px 20px 64px; }
}

@media (max-width: 760px) {
  .page-head__inner { padding: 56px 20px 48px; }
  .page-head__logo { width: 100%; max-width: 280px; height: auto; }
  .page-head__title { font-size: 26px; }
  .branch-card { padding: 26px 20px 24px; }
  .branch-card__head h2 { font-size: 22px; letter-spacing: 2.6px; }
  .branch-card__facts { grid-template-columns: 1fr; gap: 4px 0; }
  .branch-card__facts dd { margin-bottom: 12px; }
  .branch-card__actions .btn--brown { width: 100%; }
}
