/* ==========================================================================
   Contact page — assets/contact.css
   Page-specific layout for contact.html / contact-ar.html. Loads after
   home.css, which supplies the shared primitives (.hm-wrap, .hm-eyebrow,
   .hm-title, .hm-lede, .hm-btn*, .hm-link, .hm-section*, .hm-form*,
   .hm-field, .hm-details, .rv). The form itself is the homepage form
   (same ids), so home.js composes the WhatsApp message unchanged.
   Everything here is prefixed .ct- and uses logical properties for RTL.
   ========================================================================== */

/* --- Statement hero (white) ------------------------------------------------- */

.ct-hero {
  padding-top: clamp(9rem, 16vh, 12rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-primary);
}

.ct-crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.ct-crumb a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.ct-crumb a:hover { color: var(--accent-gold); }
.ct-crumb span[aria-current] { color: var(--accent-gold); }
.ct-crumb .sep { opacity: 0.5; }

.ct-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.ct-hero h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 14ch;
}
.ct-hero h1 em { font-style: normal; color: var(--accent-gold); }
.ct-hero .hm-lede { margin-top: 1.5rem; max-width: 30rem; }

/* Three direct channels: big tap targets that work before the form does. */
.ct-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ct-channel {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-primary);
  border: 1px solid var(--rule-soft);
  border-radius: var(--hm-radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.6s var(--hm-ease), box-shadow 0.6s ease, border-color 0.3s ease;
}
.ct-channel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(140, 97, 52, 0.35);
}

.ct-channel-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-secondary);
  color: var(--accent-gold);
}
.ct-channel-icon svg { width: 1.25rem; height: 1.25rem; }
.ct-channel--wa .ct-channel-icon { background: #e7f6ec; color: #1f8a4c; }

.ct-channel-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.ct-channel-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.ct-channel .hm-arrow {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent-gold);
  transition: transform 0.5s var(--hm-ease);
}
.ct-channel:hover .hm-arrow { transform: translateX(4px); }
[dir="rtl"] .ct-channel:hover .hm-arrow { transform: scaleX(-1) translateX(4px); }

@media (min-width: 900px) {
  .ct-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4rem;
  }
  .ct-channels { max-width: 26rem; margin-inline-start: auto; }
  [dir="rtl"] .ct-channels { margin-inline-start: auto; }
}

/* --- Form + what happens next ------------------------------------------------ */

.ct-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
/* Grid items default to min-width:auto, which lets the form's intrinsic
   width push the card past the viewport on phones. */
.ct-main > *,
.ct-hero-grid > * { min-width: 0; }

.ct-main .hm-form { background: var(--bg-primary); }

.ct-side .hm-eyebrow { margin-bottom: 0.9rem; }

.ct-side h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}

.ct-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: ct;
  border-top: 1px solid var(--rule);
}
.ct-step {
  counter-increment: ct;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.3rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.ct-step::before {
  content: '0' counter(ct);
  grid-row: span 2;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-gold);
  padding-top: 0.15rem;
}
.ct-step h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text-primary);
}
.ct-step p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.ct-side .hm-details { margin-top: 2rem; }

@media (min-width: 960px) {
  .ct-main {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 5rem;
    align-items: start;
  }
  .ct-side { position: sticky; top: 8.5rem; }
}

/* --- Map band ------------------------------------------------------------------- */

.ct-map {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--rule-soft);
  padding: 0;
  contain-intrinsic-size: 0 520px;
}
.ct-map iframe {
  display: block;
  width: 100%;
  height: clamp(20rem, 55vh, 34rem);
  border: 0;
  filter: grayscale(100%) contrast(0.95);
}

.ct-map-card {
  position: relative;
  margin: -3.5rem var(--hm-pad-x) 0;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--rule-soft);
  border-radius: var(--hm-radius);
  box-shadow: var(--shadow-card-hover);
  display: grid;
  gap: 1.25rem;
}
.ct-map-card address { font-style: normal; }
.ct-map-card strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}
.ct-map-card p, .ct-map-card address {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-light);
}
.ct-map-card .hm-btn { align-self: start; }

.ct-map-wrap { padding-bottom: var(--hm-section-y); }

@media (min-width: 760px) {
  .ct-map-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.25rem;
    margin-inline: auto;
    max-width: calc(var(--container-max-width) - 2 * var(--hm-pad-x));
  }
}

/* --- Motion preferences --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .ct-channel, .ct-channel .hm-arrow { transition: none; }
}
