/* صفحة التواصل (2026-09-27)
 *
 * WHAT WAS WRONG
 *
 * Six identical cards — phone, WhatsApp, email, address, licence, hours —
 * stacked in one column beside a fifteen-field form. Nothing was ranked: the
 * three things a visitor actually wants to press looked exactly like the three
 * things they only want to read, and none of the three was pressable at all.
 * A phone number that is not a tel: link on a phone is a number to be copied
 * by hand.
 *
 * WHAT REPLACES IT
 *
 *   1. three large actions, and they are links: call, WhatsApp, email;
 *   2. the form, with the aside that carries what is read rather than pressed;
 *   3. the map.
 *
 * The values themselves stay panel-managed through data-site (migration 018),
 * so the association edits a number once and it changes here too.
 */

/* ---- 1. the three actions ---- */

.cx-actions {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cx-action {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--ds-line, #E3EAEC);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cx-action:hover,
.cx-action:focus-visible {
  border-color: var(--ds-gold-500, #C9A227);
  box-shadow: 0 14px 30px rgba(10, 42, 61, 0.09);
  transform: translateY(-3px);
  outline: none;
}

.cx-action:focus-visible { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.3); }

.cx-action__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #0A2A3D, var(--ds-teal-800, #12525C));
  color: #fff;
}

.cx-action__icon svg { width: 22px; height: 22px; fill: currentColor; }

.cx-action__body { display: grid; gap: 3px; min-width: 0; }

.cx-action__channel {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-grey-600, #5A6B74);
}

.cx-action__value {
  font-size: 17px;
  font-weight: 700;
  color: #0A2A3D;
  overflow-wrap: anywhere;
}

.cx-action__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ds-grey-600, #5A6B74);
}

/* ---- 2. the form and what sits beside it ---- */

.cx-split {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 900px) {
  .cx-split { grid-template-columns: 1fr; }
}

/* Two short fields side by side read as one question, and cut the form's
   apparent length by four rows. They stack on a phone. */
.cx-pair {
  display: grid;
  gap: 0 16px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 620px) {
  .cx-pair { grid-template-columns: 1fr; }
}

.cx-aside {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(165deg, #0A2A3D 0%, var(--ds-teal-800, #12525C) 100%);
  border-block-start: 3px solid var(--ds-gold-500, #C9A227);
  color: #fff;
}

.cx-aside h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.cx-fact { display: grid; gap: 4px; }

.cx-fact dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ds-gold-500, #C9A227);
}

.cx-fact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}

.cx-aside dl { display: grid; gap: 16px; margin: 0; }

.cx-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  padding: 11px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cx-map-link svg { width: 17px; height: 17px; fill: currentColor; }

.cx-map-link:hover,
.cx-map-link:focus-visible {
  background: rgba(201, 162, 39, 0.16);
  border-color: var(--ds-gold-500, #C9A227);
  color: var(--ds-gold-500, #C9A227);
  outline: none;
}

/* ---- 3. the map ---- */

.cx-map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ds-line, #E3EAEC);
  background: var(--ds-ground, #EEF3F4);
  /* The height is reserved before the frame loads, so the page below it never
     jumps. */
  aspect-ratio: 16 / 7;
  min-height: 300px;
}

.cx-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 620px) {
  .cx-map { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-action { transition: none; }
  .cx-action:hover { transform: none; }
}
