/* ===== CONTACT PAGE =====
   Page stylesheet for /contact/. Reuses the shared shell primitives from
   style.css (.container, .section-title, .section-sub, .btn-primary, .reveal,
   .social-links) and the homepage palette: --blue #4169E1, #f5f6f8 cards,
   8px radii, tinted 40px icon boxes, Goldman headings. */

/* ── HERO: intro on top, picture + form in one equal-height row ──────────────── */
.contact-hero { padding: 48px 0 64px; }

.contact-hero-intro {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;   /* picture and form end up the same height */
}

.contact-hero-media {
  position: relative;
  min-height: 440px;
  border-radius: 8px;
  overflow: hidden;
}
.contact-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}

.contact-headline {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.06;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* ── FORM CARD ───────────────────────────────────────────────────────────────── */
.contact-form-card {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 32px 28px;
}
.contact-form-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.contact-form-note { font-size: 13px; color: #767676; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #d9dde3;
  border-radius: 4px;
  padding: 11px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-submit { width: 100%; border: none; cursor: pointer; margin-top: 4px; }
.contact-form-status { font-size: 13px; color: var(--blue); margin-top: 14px; min-height: 18px; }

/* ── BENTO: office (2) + appointment (tall) / email + phone / social (full) ──── */
.contact-details { padding: 8px 0 72px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.bento-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.bento-card--office { grid-column: span 2; }
.bento-card--book   { grid-row: span 2; }
.bento-card--social { grid-column: 1 / -1; }

/* Office card: copy on the left, embedded Google map on the right. */
.bento-card--office {
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
}
.bento-office-body { flex: 1 1 0; min-width: 0; }
.bento-office-map {
  flex: 1 1 0;
  min-width: 0;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #e9edf5;
}
.bento-office-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Colour: office / email / phone stay white (the .bento-card default); the
   appointment CTA and the social strip share the homepage grey (#f5f6f8, the
   same tint as .foss-card). */
.bento-card--book,
.bento-card--social { background: #f5f6f8; }

.bento-icon {
  width: 40px;
  height: 40px;
  background: rgba(65, 105, 225, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 18px;
}
.bento-icon svg { width: 18px; height: 18px; }

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 10px;
}
.bento-card p { font-size: 14px; color: #666; line-height: 1.65; }
.bento-address { font-style: normal; font-size: 15px; color: #333; line-height: 1.6; }
.bento-link {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.bento-link:hover { text-decoration: underline; }
.bento-cta { margin-top: 20px; align-self: flex-start; }
/* The appointment card keeps its top blank — that space is reserved for a
   Google Appointments embed later — and stacks icon + copy + CTA at the
   bottom-left. min-height holds the blank area on phones, where the card no
   longer spans two grid rows. */
.bento-card--book {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  min-height: 320px;
}

.bento-card--social {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.bento-social-text h3 { margin-bottom: 4px; }
.bento-social-text p { margin: 0; }
.bento-card--social .social-links a { width: 40px; height: 40px; }
.bento-card--social .social-links svg { width: 18px; height: 18px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .contact-hero { padding: 36px 0 48px; }
  .contact-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-hero-media { min-height: 320px; }
  .contact-headline { font-size: 32px; }
  /* 16px stops iOS Safari zooming the page when a field takes focus. */
  .field input,
  .field textarea { font-size: 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--office { grid-column: span 2; }
  .bento-card--book   { grid-row: span 1; }
  .bento-card--social { grid-column: auto; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .contact-headline { font-size: 26px; }
  .contact-form-card { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card { padding: 24px 20px; }
  .bento-card--office { grid-column: auto; flex-direction: column; gap: 20px; }
  .bento-office-map { min-height: 180px; }
  .bento-card--social { flex-direction: column; align-items: flex-start; }
  .bento-cta { width: 100%; text-align: center; }
}
