/* ─────────────────────────────────────────────────────────────────────────────
   Contact — hanging hearts in the hero, WhatsApp and the other channels on
   the start side, the inquiry form on the other. The FAQ comes from blocks.css.
   ───────────────────────────────────────────────────────────────────────────── */

@layer page {

  /* ── Hero: hearts hang from the top of the page, behind the glass header ── */
  .page-hero { overflow: clip; }
  .page-hero__art.contact-hero__hearts {
    position: absolute;
    top: 0;
    inset-inline-end: max(var(--gutter), calc((100% - var(--container)) / 2 + 4rem));
    width: clamp(7rem, 4rem + 7vw, 9.5rem);
    transform-origin: 50% 0;
    animation: hearts-sway 7s ease-in-out infinite;
  }
  @keyframes hearts-sway {
    0%, 100% { rotate: 1.5deg; }
    50%      { rotate: -1.5deg; }
  }

  /* ── Channels and form ──────────────────────────────────────────────────── */
  .contact { padding-top: var(--s-4); }
  .contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.5rem, 0.5rem + 4vw, 4.5rem);
    align-items: start;
  }
  .contact__channels { display: grid; gap: var(--s-5); }

  .whatsapp-card {
    display: grid;
    gap: var(--s-5);
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
    border-radius: var(--r-lg);
    background: var(--glass-solid);
    border: 1px solid var(--white);
    box-shadow: var(--shadow-inset), var(--shadow-md);
  }
  .whatsapp-card__head { display: flex; align-items: center; gap: var(--s-4); }
  .whatsapp-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--r-sm);
    background: rgb(31 168 85 / 0.1);
    color: #13803F;
  }
  .whatsapp-card__icon svg { width: 1.6rem; height: 1.6rem; }
  .whatsapp-card__title { font-size: var(--fs-h3); }
  .whatsapp-card__sub { color: var(--ink-2); font-size: var(--fs-small); }
  .whatsapp-card__text { color: var(--ink-2); line-height: 1.95; }
  .whatsapp-card__btn { justify-self: start; }

  .channels { display: grid; padding: var(--s-2) var(--s-5); border-radius: var(--r-lg); }
  .channels > li + li { border-top: 1px solid var(--line); }
  .channel { display: flex; align-items: center; gap: var(--s-4); padding-block: var(--s-4); }
  a.channel { transition: color var(--dur-fast) linear; }
  a.channel:hover .channel__value { color: var(--pink-strong); }
  .channel__icon { width: 2.75rem; height: 2.75rem; }
  .channel__icon svg { width: 1.2rem; height: 1.2rem; }
  .channel__text { display: grid; gap: 2px; min-width: 0; }
  .channel__label { color: var(--ink-2); font-size: var(--fs-caption); }
  .channel__value { font-weight: 500; overflow-wrap: anywhere; transition: color var(--dur-fast) linear; }
  .channel__value.ltr { justify-self: start; }

  .contact__social { display: flex; align-items: center; gap: var(--s-3); color: var(--ink-2); font-size: var(--fs-small); }
  .contact__social span { margin-inline-end: var(--s-2); }

  .contact__form-wrap { position: relative; }
  /* The dotted loop leads from the channels into the form; the artwork points
     right, so it is mirrored to point toward the form in RTL. */
  .contact__arrow {
    position: absolute;
    z-index: 1;
    top: -5.4rem;
    inset-inline-start: -7.25rem;
    width: 12rem;
    scale: -1 1;
    rotate: 8deg;
  }

  .inquiry {
    display: grid;
    gap: var(--s-5);
    padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
    border-radius: var(--r-xl);
  }
  .inquiry__head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-2); }
  .inquiry__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--pink-strong);
    color: var(--white);
    box-shadow: var(--shadow-pink);
  }
  .inquiry__icon svg { width: 1.35rem; height: 1.35rem; }
  .inquiry__title { font-size: var(--fs-h3); }
  .inquiry__sub { color: var(--ink-2); font-size: var(--fs-small); }
  .inquiry .field__error:not([hidden]) { display: block; }
  .inquiry__submit { width: 100%; margin-top: var(--s-2); }
  .inquiry__note { color: var(--ink-2); font-size: var(--fs-caption); text-align: center; }

  @media (max-width: 960px) {
    .contact__grid { grid-template-columns: minmax(0, 1fr); }
    .contact__arrow { display: none; }
  }
  @media (max-width: 720px) {
    /* Between the brand and the menu button, so no heart sits on a control. */
    .page-hero__art.contact-hero__hearts { top: 0; inset-inline-end: 6.5rem; width: 5.5rem; opacity: 1; }
    .whatsapp-card__btn { justify-self: stretch; }
  }
  @media (prefers-reduced-motion: reduce) {
    .page-hero__art.contact-hero__hearts { animation: none; }
  }
}
