/**
 * KineticUltra — Kinetic Contact page styles.
 * Loaded only on the Page de contact (Kinetic) template.
 * Mirrors .stitch/designs/contact-page/05-establish-connection-refined.html.
 */

/* ---------- Shell + scoped tokens ---------- */
.kc-contact {
  background: var(--k-background, #0e0e13);
  color: var(--k-text, #f9f5fd);
  font-family: 'Inter', sans-serif;
  padding: 96px 0 64px;
  --kc-cyan: #00D4FF;
  --kc-violet: #7B61FF;
  --kc-green: #00FF88;
  --kc-danger: #FF3B5C;
  --kc-surface-low: #131319;
  --kc-surface: #1f1f26;
  --kc-surface-high: #25252d;
  --kc-surface-bright: #2c2b33;
  --kc-muted: #acaab1;
  --kc-hairline: rgba(232, 232, 237, 0.05);
}
.kc-contact__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ---------- Eyebrow ---------- */
.kc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--kc-muted);
  text-transform: uppercase;
}
.kc-eyebrow--cyan { color: var(--kc-cyan); }
.kc-eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kc-green);
  box-shadow: 0 0 12px var(--kc-green);
  animation: kc-pulse 1.6s ease-in-out infinite;
}
@keyframes kc-pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.35 } }

/* ---------- Hero ---------- */
.kc-contact-hero {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 48px;
  align-items: center;
}
.kc-contact-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 20px;
  color: var(--k-text, #f9f5fd);
}
.kc-contact-hero__title-grad {
  background: linear-gradient(90deg, var(--kc-cyan) 0%, var(--kc-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kc-contact-hero__lead {
  color: var(--kc-muted);
  max-width: 480px;
  font-size: 16px;
  line-height: 1.65;
}
.kc-contact-hero__hud { position: relative; }
.kc-contact-hero__schematic {
  position: absolute;
  inset: -12px;
  pointer-events: none;
  border-radius: 16px;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
  z-index: 0;
}
.kc-glass-panel {
  position: relative;
  background: rgba(31, 31, 38, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1;
}
.kc-hud { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.kc-hud__title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--kc-muted);
  text-transform: uppercase;
}
.kc-hud__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kc-hud__label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--k-text, #f9f5fd);
}
.kc-hud__meta {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.kc-hud__meta--green { color: var(--kc-green); }
.kc-hud__meta--cyan { color: var(--kc-cyan); }
.kc-hud__meta--violet { color: var(--kc-violet); }
.kc-hud__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.kc-hud__dot--green { background: var(--kc-green); box-shadow: 0 0 12px rgba(0, 255, 136, 0.6); }
.kc-hud__dot--cyan { background: var(--kc-cyan); box-shadow: 0 0 12px rgba(0, 212, 255, 0.6); }
.kc-hud__dot--violet { background: var(--kc-violet); box-shadow: 0 0 12px rgba(123, 97, 255, 0.6); }

/* ---------- Body grid 7/5 ---------- */
.kc-contact-body {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  scroll-margin-top: 100px;
}

/* ---------- Form card ---------- */
.kc-contact-form-card {
  background: var(--kc-surface);
  border-radius: 16px;
  padding: 48px;
}
.kc-contact-form-card__head { margin-bottom: 36px; }
.kc-contact-form-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.kc-form { display: flex; flex-direction: column; gap: 24px; }
.kc-form__grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.kc-field { display: flex; flex-direction: column; gap: 10px; position: relative; }
.kc-field__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kc-muted);
}
.kc-input {
  width: 100%;
  background-color: var(--kc-surface-high);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px;
  color: var(--k-text, #f9f5fd);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.kc-input::placeholder { color: rgba(172, 170, 177, 0.6); }
.kc-input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: inset 0 0 8px rgba(0, 212, 255, 0.18), 0 0 30px rgba(0, 212, 255, 0.15);
}
.kc-input--select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23acaab1' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  padding-right: 44px;
}
.kc-input--select::-ms-expand { display: none; } /* IE/Edge legacy */
.kc-input--select option {
  background-color: var(--kc-surface-high);
  color: var(--k-text, #f9f5fd);
}
.kc-input--textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.kc-field--textarea { position: relative; }
.kc-field__counter {
  position: absolute;
  right: 16px; bottom: 12px;
  font-size: 11px;
  font-family: 'Inter', monospace;
  color: var(--kc-muted);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Segmented priority */
.kc-segmented { display: flex; gap: 12px; }
.kc-segmented input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.kc-chip {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--kc-surface-high);
  color: var(--kc-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 160ms ease;
}
.kc-segmented input:checked + .kc-chip {
  background: rgba(0, 212, 255, 0.1);
  color: var(--kc-cyan);
  border-color: rgba(0, 212, 255, 0.35);
}
.kc-segmented input:checked + .kc-chip--danger {
  background: rgba(255, 59, 92, 0.12);
  color: var(--kc-danger);
  border-color: rgba(255, 59, 92, 0.4);
}
.kc-chip:hover { color: var(--k-text, #f9f5fd); }

/* Dropzone */
.kc-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(37, 37, 45, 0.3);
  color: var(--kc-muted);
  cursor: pointer;
  transition: all 160ms ease;
}
.kc-dropzone:hover { border-color: rgba(0, 212, 255, 0.3); color: var(--kc-cyan); background: rgba(37, 37, 45, 0.5); }
.kc-dropzone__icon { display: inline-flex; }
.kc-dropzone__text { font-size: 13px; font-family: 'Inter', monospace; }

/* Consent */
.kc-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--kc-muted);
  line-height: 1.5;
}
.kc-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--kc-cyan);
}
.kc-consent a { color: var(--kc-cyan); text-decoration: underline; }

/* Buttons */
.kc-form__actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.kc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.kc-btn--primary {
  background: var(--kc-cyan);
  color: #001f27;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}
.kc-btn--primary:hover {
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.45);
  transform: translateY(-1px);
}
.kc-btn--primary:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.kc-btn--ghost {
  background: transparent;
  color: var(--kc-muted);
  border-color: rgba(255, 255, 255, 0.08);
}
.kc-btn--ghost:hover { color: var(--kc-cyan); border-color: rgba(0, 212, 255, 0.35); }

.kc-form__feedback {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.04em;
}
.kc-form__feedback--ok { background: rgba(0, 255, 136, 0.08); color: var(--kc-green); border: 1px solid rgba(0, 255, 136, 0.25); }
.kc-form__feedback--err { background: rgba(255, 59, 92, 0.08); color: var(--kc-danger); border: 1px solid rgba(255, 59, 92, 0.25); }

/* ---------- Aside ---------- */
.kc-contact-aside { display: flex; flex-direction: column; gap: 16px; }
.kc-card {
  background: var(--kc-surface);
  border-radius: 16px;
  padding: 28px;
}
.kc-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.kc-card__title { margin: 0 0 18px; }
.kc-card .kc-card__title { display: block; }

.kc-channel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.kc-channel { display: flex; align-items: center; gap: 14px; }
.kc-channel__icon { color: var(--kc-muted); flex-shrink: 0; transition: color 160ms ease; }
.kc-channel:hover .kc-channel__icon { color: var(--kc-cyan); }
.kc-channel__label {
  margin: 0;
  font-family: 'Inter', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--kc-muted);
  text-transform: uppercase;
}
.kc-channel__value {
  display: block;
  margin-top: 2px;
  color: var(--k-text, #f9f5fd);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.kc-channel__value:hover { color: var(--kc-cyan); }
.kc-channel__value--btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

.kc-status-chip {
  font-family: 'Inter', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 6px;
}
.kc-status-chip--open { background: rgba(0, 255, 136, 0.1); color: var(--kc-green); }
.kc-status-chip--closed { background: rgba(255, 59, 92, 0.1); color: var(--kc-danger); }

.kc-hours { width: 100%; border-collapse: collapse; }
.kc-hours td {
  padding: 12px 0;
  font-family: 'Inter', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--kc-hairline);
}
.kc-hours td:first-child { color: var(--kc-muted); }
.kc-hours td:last-child { text-align: right; color: var(--k-text, #f9f5fd); }
.kc-hours tr:last-child td { border-bottom: 0; }
.kc-hours__tz { margin: 12px 0 0; font-size: 11px; color: var(--kc-muted); font-style: italic; }

.kc-address { font-size: 14px; line-height: 1.55; margin: 0 0 18px; color: var(--k-text, #f9f5fd); }
.kc-map {
  position: relative;
  height: 160px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.15), transparent 60%),
    linear-gradient(135deg, #0a0a10 0%, #131319 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.kc-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.kc-map__pin { position: relative; color: var(--kc-cyan); filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6)); }

/* Map with a real photo/static-map background: image sits under a translucent
   dark scrim; the neon grid (::before) and the glowing pin stay on top. */
.kc-map--photo {
  background-color: #0a0a10;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(10, 10, 16, 0.78) 0%, rgba(19, 19, 25, 0.62) 100%),
    var(--kc-map-img);
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.kc-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kc-violet);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 200ms ease, color 160ms ease;
}
.kc-link-arrow:hover { gap: 14px; color: #9b85ff; }

/* ---------- Section heads ---------- */
.kc-section-head { margin-bottom: 36px; }
.kc-section-head--center { text-align: center; }
.kc-section-head__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}

/* ---------- Departments ---------- */
.kc-departments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kc-dept-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--kc-surface);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: background 200ms ease, transform 200ms ease;
}
.kc-dept-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kc-cyan), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}
.kc-dept-card:hover {
  background: var(--kc-surface-high);
  transform: translateY(-2px);
}
.kc-dept-card:hover::before { opacity: 1; }
.kc-dept-card__icon { color: var(--kc-cyan); margin-bottom: 12px; }
.kc-dept-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.kc-dept-card__desc { font-size: 13px; color: var(--kc-muted); margin: 0; line-height: 1.5; flex: 1; }
.kc-dept-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.kc-dept-card__count {
  font-family: 'Inter', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--kc-cyan);
  text-transform: uppercase;
}
.kc-dept-card__arrow { color: var(--kc-muted); transition: color 160ms ease; }
.kc-dept-card:hover .kc-dept-card__arrow { color: var(--kc-cyan); }

/* ---------- FAQ ---------- */
.kc-faq { max-width: 880px; margin: 0 auto; }
.kc-faq__list { display: flex; flex-direction: column; gap: 10px; }
.kc-faq__item {
  background: var(--kc-surface-low);
  border-radius: 12px;
  overflow: hidden;
  transition: background 200ms ease;
}
.kc-faq__item[open] { background: var(--kc-surface); }
.kc-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--k-text, #f9f5fd);
}
.kc-faq__q::-webkit-details-marker { display: none; }
.kc-faq__q:hover { color: var(--kc-cyan); }
.kc-faq__chev { color: var(--kc-muted); transition: transform 200ms ease, color 160ms ease; flex-shrink: 0; }
.kc-faq__item[open] .kc-faq__chev { transform: rotate(180deg); color: var(--kc-cyan); }
.kc-faq__a {
  padding: 0 28px 24px;
  color: var(--kc-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Pre-footer CTA ---------- */
.kc-prefooter__panel {
  background: #000;
  border: 1px solid var(--kc-hairline);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  backdrop-filter: blur(18px);
}
.kc-prefooter__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.kc-prefooter__lead { color: var(--kc-muted); margin: 0; max-width: 480px; line-height: 1.55; }
.kc-prefooter__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Extra editor content ---------- */
.kc-contact-extra__prose {
  max-width: 880px;
  margin: 0 auto;
  color: var(--k-text, #f9f5fd);
  line-height: 1.7;
}
.kc-contact-extra__prose a { color: var(--kc-cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .kc-contact-hero { grid-template-columns: 1fr; gap: 32px; }
  .kc-contact-body { grid-template-columns: 1fr; }
  .kc-departments__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .kc-contact { padding-top: 72px; }
  .kc-contact__shell { gap: 64px; padding: 0 20px; }
  .kc-contact-form-card { padding: 28px; }
  .kc-form__grid-2 { grid-template-columns: 1fr; }
  .kc-departments__grid { grid-template-columns: 1fr; }
  .kc-prefooter__panel { padding: 32px; }
  .kc-prefooter__actions { width: 100%; }
  .kc-prefooter__actions .kc-btn { flex: 1; }
}

/* =========================================================
   Light mode — token overrides (WCAG AA)
   ========================================================= */
html[data-theme="light"] .kc-contact {
  /* WCAG AA: --kc-cyan #00D4FF = 1.6:1 on light bg → override to #007A99 = 4.5:1 */
  --kc-cyan: #007A99;
  --kc-surface-low: #ECECF1;
  --kc-surface: #FFFFFF;
  --kc-surface-high: #F4F4F8;
  --kc-muted: #585863;
  --kc-hairline: rgba(14, 14, 19, 0.08);
  background: #F4F4F8;
  color: #0E0E13;
}
