/*
 * Contact page — scoped styles.
 * Loaded ONLY by contact.php. All rules are nested under .contact-page so they
 * cannot leak onto any other route, and no shared/global classes are modified.
 */

.contact-page .contact-hero {
  position: relative;
  overflow: hidden;
}

/* Thin dark scrim behind the fixed transparent header only, so nav text stays
   readable against this page's light cream hero (header itself is untouched). */
.contact-page .contact-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 112px;
  background: linear-gradient(to bottom, rgba(123, 18, 51, 0.92), rgba(123, 18, 51, 0));
  pointer-events: none;
  z-index: 1;
}

.contact-page .contact-hero > .max-w-7xl { position: relative; z-index: 2; }

.contact-page .hero-media-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  box-shadow: 0 24px 60px -12px rgba(123, 18, 51, 0.28);
  border: 1px solid var(--border);
}

.contact-page .hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.contact-page .hero-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(123, 18, 51, 0.08) 0%, rgba(201, 160, 168, 0.22) 100%);
}

.contact-page .contact-pill {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 0.875rem 1.375rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-page .contact-pill:hover,
.contact-page .contact-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(123, 18, 51, 0.25);
  border-color: rgba(123, 18, 51, 0.3);
}

.contact-page .contact-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.875rem;
  background: var(--muted);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-page .office-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 8px 32px -12px rgba(123, 18, 51, 0.10);
}

.contact-page .office-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--muted);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-page .office-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
}

.contact-page .availability-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.contact-page .availability-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(123, 18, 51, 0.08);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-page .careers-cta-media {
  position: relative;
  min-height: 240px;
  height: 100%;
}

.contact-page .careers-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-page .btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 3rem;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-page .btn-cta-light:hover,
.contact-page .btn-cta-light:focus-visible {
  transform: translateY(-2px) scale(1.02);
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.25);
}

.contact-page a:focus-visible,
.contact-page button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .contact-page .hero-media-frame { aspect-ratio: 4 / 3; max-height: 320px; }
}
