/* FitOS Contact — public /contact page.
   Mirrors the rhythm of public/css/impact.css + public/css/brand.css.
   Form controls inherit from community-feedback.css (cf-input / cf-textarea
   / cf-submit / cf-form), so this file only declares the page's section
   rhythm, location grid, channel blocks, social row and CTA. */

.contact-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--gutter) 0;
}

.contact-hero {
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-hero .brand-section {
  text-align: center;
  margin: 0 auto;
}

.contact-section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-section:last-of-type { border-bottom: none; }

.contact-section .brand-section { margin-bottom: 48px; }

/* ── Location two-column (map + address stack) ───────── */
.contact-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-map {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(0.95);
}

.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-block {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid var(--rust);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-block-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-mid);
}

.contact-block-body {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.6;
}

.contact-block-body strong { color: var(--white); }

.contact-block-body a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-block-body a:hover { color: var(--white); }

/* what3words sub-row */
.contact-w3w-brand { margin: 0 0 8px; }

.contact-w3w-logo {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.contact-w3w-wordmark {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--silver);
}

.contact-w3w-row {
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.contact-w3w-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--silver-mid);
}

/* Direct channels (email / phone) */
.contact-channel-row {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-channel-row:last-child { margin-bottom: 0; }

.contact-channel-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-mid);
}

.contact-value-text {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.5;
}

.tbd-value {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.contact-channel-slot-meta {
  margin-top: 4px;
}

/* ── Form section ────────────────────────────────────── */
.contact-form {
  max-width: 720px;
  margin: 24px auto 0;
}

.contact-form .cf-form { margin-bottom: 0; }

/* Submission toasts */
.contact-toast {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border: 1px solid rgba(231,226,214,0.12);
  background: var(--bg-card);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-toast--success {
  border-color: rgba(166,69,43,0.5);
  color: var(--white);
  background: linear-gradient(180deg, rgba(166,69,43,0.18) 0%, var(--bg-card) 100%);
}

.contact-toast--error {
  border-style: dashed;
  border-color: var(--amber);
  color: var(--amber);
}

/* ── Social row (icons / TBD placeholder tiles) ──────── */
.contact-social {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  flex-wrap: wrap;
}

.contact-social-item {
  min-width: 180px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-social-item.tbd {
  border-style: dashed;
  border-color: rgba(245,197,107,0.4);
}

.contact-social-link {
  color: var(--white);
  text-decoration: none;
}

.contact-social-link:hover { color: var(--rust); }

/* ── CTA (mirror .impact-cta / .brand-cta) ──────────── */
.contact-cta {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.contact-cta .container { max-width: 720px; }

.contact-cta .cta-sub {
  color: var(--silver-mid);
  font-size: 16px;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 560px;
}

.contact-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 12px;
}

.contact-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-location {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .contact-map { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
  .contact-wrap { padding: 96px var(--gutter) 0; }
  .contact-hero { padding-bottom: 56px; }
  .contact-section { padding: 64px 0; }
  .contact-section .brand-section { margin-bottom: 32px; }
  .contact-block { padding: 22px 22px; }
  .contact-cta { padding: 80px 0; }
}

@media (max-width: 480px) {
  .contact-w3w-row {
    flex-direction: column;
    gap: 2px;
  }
  .contact-social-item {
    min-width: 0;
    width: 100%;
  }
}
