/* =====================================================================
   UTOPIA — Contact page (extends styles.css + pages.css)
   Reuses the liquid-glass .mc-card + shared .field form styling.
   ===================================================================== */

/* hero photo with a legibility wash on top. Uses a wide 2560px crop cut from
   the raw shot (not a stretched portrait) so it stays sharp when zoomed out. */
.ct-hero {
  background-color: #03060d;
  background-image:
    radial-gradient(95% 85% at 50% 40%, rgba(3,8,18,0.26), transparent 72%),
    linear-gradient(180deg, rgba(3,8,18,0.52) 0%, rgba(3,8,18,0.34) 42%, rgba(3,6,13,0.94) 100%),
    url("../foto/hero-contact.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* phones: portrait crop of the same raised-glass shot — the wide 2560px crop
   covers a tall screen with a blown-up center slice */
@media (max-width: 600px) {
  .ct-hero {
    background-image:
      radial-gradient(95% 85% at 50% 40%, rgba(3,8,18,0.26), transparent 72%),
      linear-gradient(180deg, rgba(3,8,18,0.52) 0%, rgba(3,8,18,0.34) 42%, rgba(3,6,13,0.94) 100%),
      url("../foto/above-oldtown.webp");
  }
}

/* ---------- two-column layout ---------- */
.ct-grid {
  display: grid; grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(1.6rem, 4vw, 3rem); align-items: stretch;
}

/* ---------- info column ---------- */
.ct-info {
  display: flex; flex-direction: column;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid rgba(220,227,234,0.1); border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,26,46,0.42), rgba(5,16,33,0.22));
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.04);
}
.ct-info__photo {
  position: relative; overflow: hidden; border-radius: 14px;
  margin-bottom: 1.6rem; aspect-ratio: 16 / 10;
  border: 1px solid rgba(220,227,234,0.14);
}
.ct-info__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.9) saturate(1.03); transition: transform 1.4s var(--ease);
}
.ct-info:hover .ct-info__photo img { transform: scale(1.04); }
.ct-info__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(3,8,16,0.45) 100%);
}
.ct-info__eyebrow {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-size: 0.7rem;
  letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 0.9rem;
}
.ct-info__title {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--cream); line-height: 1.1;
}
.ct-info__lead { margin: 1rem 0 1.8rem; color: rgba(239,232,216,0.82); font-size: 1.04rem; }

.ct-list { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.ct-item { display: grid; grid-template-columns: auto 1fr; gap: 0.95rem; align-items: start; }
.ct-item__ic {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid rgba(220,227,234,0.22); border-radius: 12px;
  background: rgba(255,255,255,0.04); color: var(--gold-soft);
}
.ct-item__ic svg { width: 19px; height: 19px; }
.ct-item__label {
  display: block; font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-size: 0.66rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.25rem;
}
.ct-item__val { color: var(--cream); font-size: 1.08rem; line-height: 1.5; overflow-wrap: anywhere; }
.ct-item__val a { color: var(--cream); transition: color 0.3s var(--ease); }
.ct-item__val a:hover { color: var(--gold-soft); }

.ct-info__social { display: flex; gap: 0.8rem; margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid rgba(220,227,234,0.14); }
.ct-info__social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(220,227,234,0.22); border-radius: 50%;
  color: var(--cream); transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.ct-info__social a:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-2px); }
.ct-info__social svg { height: 16px; width: auto; }

/* ---------- form card (reuses .mc-card from styles.css) ---------- */
.ct-card {
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
}
.ct-card__title {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--cream);
}
.ct-card__sub { color: var(--ink-dim); font-size: 1.02rem; margin-top: 0.5rem; }

.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-top: 1.8rem; }
.ct-actions { align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.ct-submit { width: 100%; }
.ct-note { font-size: 0.92rem; color: var(--ink-dim); text-align: center; }
.ct-error {
  font-size: 0.92rem; text-align: center; color: #f1b0aa;
  background: rgba(200,86,88,0.1); border: 1px solid rgba(200,86,88,0.34);
  border-radius: 10px; padding: 0.6rem 0.9rem;
}

/* success state */
.ct-done { text-align: center; padding: clamp(1.6rem, 4vw, 2.6rem) 0.5rem; }
.ct-check {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem; color: #06101f;
  background: linear-gradient(180deg, #f3f6f9, #c3ccd5);
  box-shadow: 0 12px 34px rgba(220,227,234,0.3);
}
.ct-done h3 { font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.2rem); color: var(--cream); }
.ct-done p { color: rgba(239,232,216,0.9); margin: 0.9rem auto 1.8rem; max-width: 30rem; }
.ct-done .btn-outline { display: inline-block; }

/* ---------- map ---------- */
.ct-map {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  border: 1px solid rgba(220,227,234,0.12); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.ct-map iframe {
  display: block; width: 100%; height: clamp(260px, 38vw, 420px); border: 0;
  filter: grayscale(0.35) brightness(0.82) contrast(1.05);
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .ct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ct-info { padding: clamp(1.5rem, 6vw, 2rem); }
  .ct-card { padding: clamp(1.6rem, 6vw, 2.2rem) clamp(1.2rem, 5vw, 1.6rem); }
}
@media (max-width: 520px) {
  .ct-form { grid-template-columns: 1fr; }
}
