/* ===================================================================
   Contact page — responsive layout + mobile app-like UX
   Loaded after main.css, so it may override the shared card styles.
   =================================================================== */

/* ============ HEADER ============ */
.contact-header .contact-sub { color: #C6C9D8; font-size: 14px; margin-top: 6px; max-width: 560px; }

/* ============ LAYOUT ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: start;
}
/* The form comes first in the DOM; `order` puts the detail column on the left for
   desktop, and the same order stacks details above the form once it collapses to
   a single column. */
.contact-aside { order: 1; display: flex; flex-direction: column; gap: 14px; }
.contact-form-col { order: 2; }

/* Shared: these panels should not lift on hover — they are page furniture, not cards in a grid */
.contact-panel:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ============ DETAIL LIST (app settings-list style) ============ */
.contact-detail-list { padding: 4px 0; }
.ct-row { display: flex; align-items: center; }
.ct-row + .ct-row { border-top: 0.5px solid var(--border); }
.ct-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 8px 14px 18px;
  color: inherit;
  transition: background 0.15s ease;
}
a.ct-main:hover { background: var(--surface); }
a.ct-main:active { background: var(--surface-2); }
.ct-ico {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ct-ico-red { background: var(--red-light); color: var(--red); }
.ct-ico-green { background: var(--green-light); color: var(--green); }
.ct-ico-navy { background: var(--navy-light); color: var(--navy); }
.ct-ico-gold { background: #FDF1DC; color: var(--gold-dark); }
.ct-ico-slate { background: var(--surface-2); color: var(--text-secondary); }
.ct-body { flex: 1; min-width: 0; }
.ct-label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}
.ct-value { display: block; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.45; overflow-wrap: anywhere; }
.ct-value-soft { font-weight: 500; color: var(--text-secondary); }
.ct-chevron { color: var(--border-strong); font-size: 18px; flex-shrink: 0; margin-right: 16px; }
.ct-copy {
  width: 38px; height: 38px; margin-right: 12px; flex-shrink: 0;
  border-radius: 50%; background: var(--surface); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ct-copy:hover { background: var(--border); color: var(--navy); }
.ct-copy:active { transform: scale(0.88); }
.ct-copy.copied { background: var(--green-light); color: var(--green); }

/* ============ SOCIAL PANEL ============ */
.contact-social { padding: 18px; }
.contact-social h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.contact-social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.contact-social-row a:hover { background: var(--navy); color: var(--white); }
.contact-social-row a:active { transform: scale(0.9); }

/* ============ FORM ============ */
.contact-form-card { padding: 28px; }
.contact-form-card h2 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.contact-form-intro { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.ct-form .mb-3 { margin-bottom: 16px; }
.ct-form textarea.field-input { font-family: inherit; resize: vertical; min-height: 120px; }

/* ============ MAP ============ */
.contact-map { position: relative; padding: 0; height: 380px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Top-left is the only free corner: OSM puts its zoom controls top-right and its
   attribution along the bottom edge. */
.contact-map .map-directions {
  position: absolute; top: 16px; left: 16px;
  box-shadow: var(--shadow-lg);
}

/* ===================================================================
   TABLET
   =================================================================== */
@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; gap: 18px; }
}

/* ===================================================================
   MOBILE — app feel
   =================================================================== */
@media (max-width: 880px) {
  .contact-header h1 { font-size: 22px !important; }
  .contact-header .contact-sub { font-size: 13px; }

  .contact-section { padding-bottom: 28px; }

  /* List rows get full-width touch targets */
  .ct-main { padding: 13px 6px 13px 14px; gap: 12px; }
  .ct-ico { width: 38px; height: 38px; font-size: 18px; }
  .ct-value { font-size: 14.5px; }
  .ct-chevron { margin-right: 12px; }
  .ct-copy { margin-right: 8px; }

  .contact-form-card { padding: 20px 16px; }
  .contact-form-card h2 { font-size: 19px; }
  .ct-form .btn { width: 100%; padding: 14px; }

  .contact-map { height: 240px; }
  .contact-map .map-directions { top: 12px; left: 12px; padding: 9px 14px; font-size: 14px; }
}

@media (max-width: 400px) {
  .ct-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-copy, .contact-social-row a { transition: none; }
  .ct-copy:active, .contact-social-row a:active { transform: none; }
}
