/* ============================================================
   RestartME, Contact
   ============================================================ */

.contact-hero { position: relative; padding-bottom: var(--space-2xl); }
.contact-hero__head { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.contact-hero__copy { max-width: 680px; }
.contact-hero .eyebrow { color: var(--sky-ink); }
.contact-hero .lead { max-width: 56ch; margin-top: 1.25rem; color: var(--slate); }

/* Title "connect → impact" spark */
.contact-hero__spark { width: clamp(230px, 24vw, 360px); flex-shrink: 0; }
.connect-spark { width: 100%; height: auto; display: block; overflow: visible; }
.cs-wire { stroke: var(--hairline-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 230; stroke-dashoffset: 230; }
.cs-flow { stroke: var(--sky-deep); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 18 340; stroke-dashoffset: 230; opacity: 0; filter: drop-shadow(0 0 4px rgba(46,134,192,0.55)); }
.cs-ring { fill: none; stroke: var(--sky); stroke-width: 1.6; }
.cs-dot { fill: var(--sky-deep); }
.cs-bloom { fill: none; stroke: var(--sky); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; opacity: 0; }
.cs-logo-disc { fill: #fff; filter: drop-shadow(0 6px 16px rgba(30,95,134,0.28)); }
.cs-spk { stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.cs-mote { fill: var(--sky); opacity: 0.55; }

.contact-hero__head.is-visible .cs-wire { animation: csDraw 1s var(--ease-out) 0.2s forwards; }
.contact-hero__head.is-visible .cs-flow { animation: csFlow 2.9s linear 1.1s infinite; }
.contact-hero__head.is-visible .cs-bloom { animation: csBloom 2.9s ease-out 1.1s infinite; }
.contact-hero__head.is-visible .cs-bloom--2 { animation-delay: 2.55s; }
.contact-hero__head.is-visible .cs-mote { animation: csMote 4s var(--ease-in-out) infinite; }
.contact-hero__head.is-visible .cs-mote--2 { animation-delay: 1.4s; }
@keyframes csDraw { to { stroke-dashoffset: 0; } }
@keyframes csFlow { 0% { stroke-dashoffset: 230; opacity: 0; } 12% { opacity: 1; } 86% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes csBloom { 0% { opacity: 0.85; transform: scale(0.5); } 80% { opacity: 0; transform: scale(2.7); } 100% { opacity: 0; transform: scale(2.7); } }
@keyframes csMote { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 0.7; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .cs-wire { stroke-dashoffset: 0; }
  .cs-flow, .cs-bloom, .cs-mote { animation: none; }
}
.contact-hero__media {
  position: relative; overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-2xl);
  aspect-ratio: 21 / 8;
}
.contact-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.contact-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim-soft); }
.contact-hero__cap {
  position: absolute; left: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.1rem, 3vw, 2rem); z-index: 2;
  font-family: var(--font-display); font-style: italic; font-size: var(--text-lg);
  color: #fff; text-shadow: 0 2px 24px rgba(8,26,39,0.5); max-width: 30ch;
}
@media (max-width: 768px) { .contact-hero__media { aspect-ratio: 4 / 3; } }

.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }

.contact-aside { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-info { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-info h3 { font-size: var(--text-xl); }
.contact-info__item { display: flex; gap: var(--space-md); align-items: flex-start; }
.contact-info__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--sky) 16%, transparent); color: var(--accent); }
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.contact-info__value { display: block; font-size: var(--text-base); color: var(--text); margin-top: 0.15rem; }
.contact-socials { display: flex; gap: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--divider); }

/* Real Google map (branded light) + logo-pin beacon overlay */
.contact-map {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); isolation: isolate;
  background: var(--mist);
  border: 1px solid color-mix(in srgb, var(--sky) 16%, transparent);
}
.contact-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--space-lg); color: var(--slate); font-size: var(--text-sm); }
.map-fallback a { color: var(--sky-deep); font-weight: 600; }

/* Beacon (OverlayView): logo pin + pulsating signal, rides on the map */
.cm-beacon { position: absolute; width: 0; height: 0; pointer-events: none; }
.cm-pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  box-shadow: 0 8px 22px rgba(14,42,59,0.32); display: grid; place-items: center;
}
.cm-pin img { width: 62%; height: 62%; object-fit: contain; }
.cm-pulse {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; border: 2px solid var(--sky); opacity: 0;
  animation: cmPulse 3s ease-out infinite;
}
.cm-pulse:nth-child(2) { animation-delay: 1s; }
.cm-pulse:nth-child(3) { animation-delay: 2s; }
@keyframes cmPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(4.3); opacity: 0; } }

.contact-map__plate {
  position: absolute; left: var(--space-md); right: var(--space-md); bottom: var(--space-md); z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: 0.7rem 0.9rem; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warm-white) 84%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--sky) 18%, transparent); box-shadow: var(--shadow-sm);
}
.cm-addr { display: flex; flex-direction: column; font-size: var(--text-xs); color: var(--slate); line-height: 1.3; }
.cm-addr__label { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; margin-bottom: 0.1rem; }
.cm-dir { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--text-sm); font-weight: 600; color: var(--sky-deep); white-space: nowrap; }
.cm-dir svg { width: 16px; height: 16px; }
.cm-dir:hover { color: var(--sky-ink); }

@media (prefers-reduced-motion: reduce) {
  .cm-pulse { animation: none; opacity: 0; }
  .cm-pulse:first-child { opacity: 0.28; transform: scale(2.4); }
}

/* Form */
.contact-form { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: var(--space-md); }
.contact-form h3 { font-size: var(--text-xl); margin-bottom: var(--space-xs); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span { font-size: var(--text-sm); font-weight: 500; color: var(--text); }
.field em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--warm-white);
  border: 1px solid var(--divider); border-radius: var(--radius-md);
  font-size: var(--text-base); color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 22%, transparent); }
.field textarea { resize: vertical; }
.form-note { font-size: var(--text-xs); color: var(--text-faint); text-align: center; }

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .contact-hero__head { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact-hero__spark { width: 230px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-hero__spark { display: none; }
}
