/* ─────────────────────────────────────────────────────────────
   Contact page — form + layout
   Builds on styles.css / main.css design tokens. Reuses the
   .contact-card / .cc-* studio-card classes for the details aside.
   ───────────────────────────────────────────────────────────── */

.contact-page { padding-top: 84px; }

/* Header */
.contact-head { padding: 72px 0 8px; }
.contact-head .breadcrumb { margin-bottom: 28px; }
.contact-kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 100px);
  line-height: .98; letter-spacing: -0.01em;
  margin: 18px 0 0;
}
.contact-title em { font-style: italic; color: var(--accent-deep); }
.contact-intro {
  margin: 26px 0 0; max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2);
}

/* Two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 56px;
  align-items: start;
  margin: 56px 0 110px;
}

/* ── FORM ── */
.pe-form-card {
  background: var(--paper-card, #fff);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 40px;
}
.pe-form-title {
  font-family: var(--font-display);
  font-size: 30px; line-height: 1.1; margin: 0 0 6px;
}
.pe-form-sub {
  font-size: 14px; color: var(--muted); margin: 0 0 28px;
}

.pe-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23542d84' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 16%, transparent);
}

/* honeypot — hidden from humans without creating off-screen scroll width */
.pe-hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Belt-and-suspenders: the contact page never scrolls sideways */
.contact-page { overflow-x: clip; }

.pe-form-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-top: 4px;
}
.pe-submit {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  padding: 15px 30px; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.pe-submit:hover { background: var(--accent-deep); transform: translateY(-2px); }
.pe-submit svg { width: 15px; height: 15px; }
.pe-form-note { font-size: 12px; color: var(--muted); max-width: 30ch; }

/* Flash banners */
.form-flash {
  border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.5;
  margin-bottom: 24px; border: 1px solid var(--rule);
}
.form-flash.ok    { background: color-mix(in oklch, #1f8a5b 12%, transparent); border-color: color-mix(in oklch, #1f8a5b 40%, transparent); color: #14633f; }
.form-flash.error { background: color-mix(in oklch, #e43226 10%, transparent); border-color: color-mix(in oklch, #e43226 38%, transparent); color: #a31d14; }
[data-theme="dark"] .form-flash.ok    { color: #6fe3ad; }
[data-theme="dark"] .form-flash.error { color: #ff9c92; }

/* ── ASIDE DETAILS ── */
.contact-aside { display: flex; flex-direction: column; gap: 22px; }

/* WhatsApp button */
.wa-btn {
  display: flex; align-items: center; gap: 14px;
  background: #1f8a5b; color: #fff;
  border-radius: 14px; padding: 18px 20px;
  transition: background .2s ease, transform .2s ease;
}
.wa-btn:hover { background: #186e49; transform: translateY(-2px); }
.wa-btn svg { width: 26px; height: 26px; flex: none; }
.wa-btn .wa-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.wa-btn .wa-text b { font-size: 15px; font-weight: 600; }
.wa-btn .wa-text span { font-size: 12px; font-family: var(--font-mono); letter-spacing: .04em; opacity: .85; }

/* Detail card (reuses studio-card look) */
.detail-card {
  background: var(--paper-card, #fff);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.detail-row { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; }
.detail-key {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); padding-top: 3px;
}
.detail-val { display: flex; flex-direction: column; gap: 3px; font-size: 15px; color: var(--ink); }
.detail-val .dv-sub { font-size: 13px; color: var(--muted); }
.detail-val a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: color .2s, border-color .2s; width: fit-content; }
.detail-val a:hover { color: var(--accent-deep); border-color: var(--accent); }
.detail-social { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.detail-social a { display: inline-flex; align-items: center; gap: 8px; border: none; }
.detail-social .ds-arr { color: var(--muted); }

/* Map */
.contact-map {
  border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--paper-2);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.2) contrast(1.02); }

/* RTL tweaks */
html[dir="rtl"] .contact-title { font-family: var(--font-display-ar, var(--font-display)); font-weight: 600; line-height: 1.06; letter-spacing: 0; font-size: clamp(44px, 6.5vw, 92px); }
html[dir="rtl"] .contact-title em { font-style: normal; }
html[dir="rtl"] .field select {
  background-position: left 16px center; padding-right: 15px; padding-left: 38px;
}
html[dir="rtl"] .detail-row { grid-template-columns: 88px 1fr; }

/* Responsive */
@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; margin-bottom: 80px; }
  .pe-form-card { padding: 28px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .pe-form-foot { flex-direction: column; align-items: stretch; }
  .pe-submit { justify-content: center; }
}
