/* ==========================================================================
   SAN-MIA — Contact (.ct-)
   Paper hero → navy: direct lines + glass form over imagery → paper map.
   ========================================================================== */

/* 01 · Direct lines + inquiry (navy) ------------------------------------- */
.ct-main { overflow: hidden; }
.ct-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px clamp(40px, 5.5vw, 104px);
  align-items: start;
}

.ct-lines .eyebrow { margin-bottom: 22px; }
.ct-lines__title { margin-bottom: clamp(36px, 4.4vw, 64px); }

.ct-list { border-top: 1px solid var(--line-dark); }
.ct-list > li { border-bottom: 1px solid var(--line-dark); }
.ct-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  grid-template-areas: "label arrow" "value arrow";
  align-items: center;
  gap: 6px 20px;
  padding-block: clamp(18px, 1.9vw, 26px);
  transition: padding var(--t-med) var(--ease);
}
.ct-row::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.8s var(--ease);
}
[dir="rtl"] .ct-row::after { transform-origin: 100% 50%; }
.ct-row__label {
  grid-area: label;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  line-height: 1.4;
}
html[dir="rtl"] .ct-row__label { letter-spacing: 0; text-transform: none; }
.ct-row__value {
  grid-area: value;
  justify-self: start;
  font-size: clamp(1.25rem, 1.85vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  overflow-wrap: anywhere;
  transition: color var(--t-fast) var(--ease);
}
html[dir="rtl"] .ct-row__value { letter-spacing: 0; line-height: 1.45; }
.ct-row__arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--on-dark-2);
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.ct-row__arrow .i { transition: transform var(--t-med) var(--ease); }
[dir="rtl"] .ct-row__arrow .i-arrow-up { transform: scaleX(-1); }

.ct-row:hover { padding-inline-start: 10px; }
.ct-row:hover::after, .ct-row:focus-visible::after { transform: scaleX(1); }
.ct-row:hover .ct-row__value, .ct-row:focus-visible .ct-row__value { color: var(--gold); }
.ct-row:hover .ct-row__arrow, .ct-row:focus-visible .ct-row__arrow { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.ct-row:hover .i-arrow { transform: translateX(3px); }
[dir="rtl"] .ct-row:hover .i-arrow { transform: scaleX(-1) translateX(3px); }
.ct-row:hover .i-arrow-up { transform: translate(2px, -2px); }
[dir="rtl"] .ct-row:hover .i-arrow-up { transform: scaleX(-1) translate(2px, -2px); }

/* Stage: an image bleeding to the page edge, the form floating over it */
.ct-stage {
  position: relative;
  padding-top: clamp(80px, 9vw, 148px);
}
.ct-stage__media {
  position: absolute;
  top: 0;
  inset-inline-start: 22%;
  inset-inline-end: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
  height: 74%;
  border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
[dir="rtl"] .ct-stage__media { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.ct-stage__media img { object-position: 60% 50%; }
.ct-stage__media::before {
  /* a little navy at the foot so the panel edge settles into the section */
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  z-index: 1;
  background: linear-gradient(to top, rgba(13, 27, 61, 0.45), transparent);
  pointer-events: none;
}

.ct-form {
  position: relative;
  z-index: 2;
  width: min(80%, 600px);
  padding: clamp(28px, 3.2vw, 48px);
  background: var(--glass-dark-strong);
}
.ct-form__title { font-size: var(--fs-h3); margin-bottom: 10px; }
.ct-form__intro { max-width: 44ch; margin-bottom: 30px; font-size: var(--fs-sm); color: var(--on-dark-2); line-height: 1.6; }
.ct-form .field__label { color: var(--on-dark-2); }
.ct-form .btn--primary { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-icon-bg: var(--paper); }
.ct-form .btn--primary:hover { --btn-bg: var(--gold); }
.ct-form .btn--primary:hover .btn__icon { --btn-icon-bg: var(--navy); --btn-icon-fg: var(--white); }

/* 02 · Location map ------------------------------------------------------ */
.ct-map .section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.ct-map__frame { position: relative; }
.ct-map__media {
  position: relative;
  height: clamp(380px, 46vw, 640px);
  overflow: hidden;
  background: var(--paper-2);
}
.ct-map__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.6) contrast(1.04);
  transition: filter var(--t-slow) var(--ease);
}
.ct-map__frame:hover iframe,
.ct-map__frame:focus-within iframe { filter: none; }

.ct-map__card {
  position: absolute;
  z-index: 3;
  inset-inline-start: clamp(16px, 2.4vw, 36px);
  bottom: clamp(16px, 2.4vw, 36px);
  display: grid;
  gap: 10px;
  justify-items: start;
  width: min(380px, calc(100% - 32px));
  padding: clamp(20px, 2vw, 28px);
}
.ct-map__kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-ink);
}
html[dir="rtl"] .ct-map__kicker { text-transform: none; }
.ct-map__address {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .ct-main__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .ct-form { width: min(88%, 600px); }
}

@media (max-width: 960px) {
  .ct-main__grid { grid-template-columns: minmax(0, 1fr); gap: 80px; }
  .ct-stage { padding-top: 0; }
  .ct-stage__media {
    position: relative;
    inset: auto;
    height: clamp(260px, 56vw, 460px);
    margin-inline: clamp(24px, 10vw, 120px) calc(-1 * var(--gutter));
  }
  .ct-form {
    width: auto;
    margin-top: calc(-1 * clamp(96px, 18vw, 180px));
    margin-inline-end: clamp(24px, 6vw, 64px);
  }
}

@media (max-width: 640px) {
  .ct-row { grid-template-columns: minmax(0, 1fr) 40px; column-gap: 14px; }
  .ct-row__arrow { width: 40px; height: 40px; }
  .ct-row:hover { padding-inline-start: 0; }
  .ct-stage__media { margin-inline-start: 32px; }
  .ct-form { margin-inline-end: 0; margin-top: -88px; padding: 28px 20px; }

  .ct-map__media { height: 360px; }
  .ct-map__card { position: relative; inset: auto; width: auto; margin: -56px 12px 0; }
}
