/*
 * =========================================================
 * OLYTIC SOLUTIONS - On-Site Visit Page Styles
 * onsite.css  /  Route: /onsite
 *
 * A distinct, high-intent page for the complimentary on-site
 * visit (a half-day, in person). Compact dark hero, a numbered
 * "what the day looks like" timeline, an outcomes strip, and a
 * single considered request panel. Posts to the same intake
 * endpoint as /contact and /sessions.
 *
 * Self-contained: carries its own hero, timeline, panel, and
 * the shared .f-* form primitives (same language as contact.css
 * and sessions.css), so it does not depend on sessions.css.
 *
 * Requires: tokens.css, typography.css, buttons.css,
 *           nav.css, footer.css, layout.css
 * =========================================================
 */


/* ─────────────────────────────────────────────────────── */
/* SECTION 1: HERO                                         */
/* ─────────────────────────────────────────────────────── */

.os-hero {
  background-color: var(--color-obsidian);
  color: #FFFFFF;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
}

.os-hero__inner {
  max-width: 760px;
}

.os-hero__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--space-4);
}

.os-hero__headline {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}

.os-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: var(--leading-body);
  margin: 0;
}

.os-hero__sub a {
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 145, 73, 0.5);
}

.os-hero__sub a:hover { border-bottom-color: var(--color-gold); }

.os-hero__rule {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  opacity: 0.55;
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 2: THE DAY (numbered timeline)                  */
/* ─────────────────────────────────────────────────────── */

.os-day {
  padding-top: var(--space-20);
  padding-bottom: var(--space-16);
}

.os-intro {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.os-intro__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--space-3);
}

.os-intro__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  margin-bottom: var(--space-2);
}

.os-intro__sub {
  font-size: var(--text-md);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  margin: 0;
}

/* Timeline: a brass spine with numbered stops */
.os-timeline {
  position: relative;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-gold);
  opacity: 0.5;
}

.os-step {
  position: relative;
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding-bottom: var(--space-8);
  margin: 0;
}

.os-step:last-child { padding-bottom: 0; }

.os-step__num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-obsidian);
  color: #FFFFFF;
  border: 2px solid var(--color-gold);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-step__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: 4px;
}

.os-step__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  line-height: 1.3;
}

.os-step__desc {
  font-size: var(--text-sm);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  max-width: 60ch;
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 3: OUTCOMES STRIP                               */
/* ─────────────────────────────────────────────────────── */

.os-outcomes {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  background: var(--color-surface);
  border-top: 1px solid rgba(15, 23, 32, 0.06);
  border-bottom: 1px solid rgba(15, 23, 32, 0.06);
}

.os-outcomes__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--space-6);
}

.os-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.os-outcome {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.os-outcome__title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
}

.os-outcome__desc {
  font-size: var(--text-sm);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 4: REQUEST PANEL                                */
/* ─────────────────────────────────────────────────────── */

.os-form-section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-24);
}

.os-form-intro {
  max-width: 620px;
  margin: 0 auto var(--space-8);
  text-align: left;
}

.os-form-intro__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  margin-bottom: var(--space-2);
}

.os-form-intro__sub {
  font-size: var(--text-md);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  margin: 0;
}

.os-panel {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-8);
  background: #FFFFFF;
  border: var(--border-default);
  border-top: 3px solid var(--color-teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

#submitBtn { margin-top: var(--space-6); }

/* Subtle cross-link to the working sessions page */
.os-crosslink {
  max-width: 620px;
  margin: var(--space-8) auto 0;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.os-crosslink a {
  color: var(--color-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 127, 122, 0.35);
}

.os-crosslink a:hover { border-bottom-color: var(--color-teal); }


/* ─────────────────────────────────────────────────────── */
/* FORM PRIMITIVES (mirrors contact.css / sessions.css)    */
/* ─────────────────────────────────────────────────────── */

.f-row { margin-bottom: var(--space-4); }

.f-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.f-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--space-2);
}

.f-label .req { color: var(--color-gold); margin-left: 2px; }

.f-input {
  width: 100%;
  background: var(--color-surface);
  border: var(--border-default);
  color: var(--color-obsidian);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  outline: none;
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.f-input::placeholder { color: var(--color-muted); opacity: 0.6; }

.f-input:focus {
  border-color: rgba(184, 145, 73, 0.55);
  box-shadow: 0 0 0 3px rgba(184, 145, 73, 0.10);
}

.f-input.error { border-color: var(--color-danger); }

.f-error {
  font-size: 11px;
  color: var(--color-danger);
  margin-top: var(--space-1);
  display: none;
}

.f-error.visible { display: block; }

.f-error-banner {
  display: none;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.20);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-danger);
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
}

.f-error-banner.visible { display: block; }
.f-error-banner a { color: inherit; }

.f-submit {
  width: 100%;
  background: var(--color-teal);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  padding: var(--space-4);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    opacity var(--transition-fast),
    background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.f-submit:hover:not(:disabled) { background: var(--color-obsidian); }
.f-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.f-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: f-spin 0.6s linear infinite;
  display: none;
}

@keyframes f-spin { to { transform: rotate(360deg); } }

.f-submit.loading .f-submit__label { display: none; }
.f-submit.loading .f-spinner        { display: block; }

.f-success {
  display: none;
  text-align: center;
  padding: var(--space-10) 0;
  max-width: 560px;
  margin: 0 auto;
}

.f-success.visible { display: block; }

.f-success__icon {
  width: 48px;
  height: 48px;
  background: rgba(28, 127, 122, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto var(--space-5);
}

.f-success__icon svg { color: var(--color-teal); }

.f-success h2 {
  font-size: var(--text-xl);
  color: var(--color-obsidian);
  margin-bottom: var(--space-3);
  max-width: none;
}

.f-success p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-body);
  margin: 0;
}

.f-success a { color: var(--color-teal); }


/* ─────────────────────────────────────────────────────── */
/* RESPONSIVE                                               */
/* ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .os-outcomes__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 640px) {
  .os-panel { padding: var(--space-6) var(--space-5); }
  .f-input { font-size: 16px; } /* iOS: no zoom on focus */
}

@media (max-width: 480px) {
  .f-row-2 { grid-template-columns: 1fr; }
}
