/* Motion Medical Transport — global styles
   Tailwind handles most; this file holds the things Tailwind can't (focus rings,
   photo placeholder pattern, prose tweaks, scroll behavior).
*/

@font-face { font-display: swap; }

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: #fff;
}

/* Visible, brand-tinted focus rings — accessibility-as-feature */
*:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Headlines: editorial serif, tightly tracked */
.h-display {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.h-section {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Eyebrow — institutional uppercase label */
.eyebrow {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

/* Photo placeholder — diagonal stripes + monospace label */
.photo-slot {
  position: relative;
  background-color: #EEF2F7;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(11,31,58,0.04) 0 1px,
    transparent 1px 14px
  );
  border: 1px solid var(--rule);
  overflow: hidden;
}
.photo-slot::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding: 16px;
  text-align: center;
}

/* Quiet ruled rows */
.ruled > * + * { border-top: 1px solid var(--rule); }

/* Form controls — institutional */
.field-label {
  font: 600 12px/1 Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 12px 14px;
  font: 400 15px/1.4 Inter, sans-serif;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 120ms, box-shadow 120ms;
}
.field-input:hover { border-color: #CBD5E1; }
.field-input:focus {
  border-color: var(--brand-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36,118,210,0.15);
}
.field-input[aria-invalid="true"] {
  border-color: #B91C1C;
  box-shadow: 0 0 0 3px rgba(185,28,28,0.10);
}
.field-error {
  color: #B91C1C;
  font-size: 13px;
  margin-top: 6px;
}

/* Button base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font: 600 14px/1 Inter, sans-serif;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent {
  background: var(--brand-accent);
  color: #1A1306;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.btn-accent:hover { background: #B68E3F; box-shadow: 0 6px 16px rgba(200,160,77,0.35); }
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover { background: #14315A; }
.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-ghost {
  color: var(--brand-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn-ghost:hover { color: var(--brand-primary); }

/* Section dividers */
.tick { width: 32px; height: 2px; background: var(--brand-secondary); display: inline-block; }

/* Subtle hover lift on cards */
.card-lift { transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.card-lift:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,23,42,0.06), 0 16px 32px rgba(15,23,42,0.08); border-color: #CBD5E1; }

/* Service "spec sheet" number */
.spec-num {
  font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* Reset list defaults inside content blocks we care about */
.clean-list { list-style: none; padding: 0; margin: 0; }

/* Anchor scroll offset (sticky header) */
:target { scroll-margin-top: 96px; }

/* -- Brand color utilities ---------------------------------------------------
   The Tailwind Play CDN doesn't reliably pick up custom theme colors set via
   window.tailwind.config in a separate file, so we ship plain CSS for every
   brand utility class our markup uses. These read straight from the
   --brand-* CSS variables set in theme.js, so the token block remains the
   single source of truth.
*/
.bg-navy        { background-color: var(--brand-primary); }
.text-navy      { color: var(--brand-primary); }
.border-navy    { border-color: var(--brand-primary); }
.hover\:bg-navy:hover { background-color: var(--brand-primary); }
.hover\:text-navy:hover { color: var(--brand-primary); }
.hover\:border-navy:hover { border-color: var(--brand-primary); }

.bg-brand       { background-color: var(--brand-secondary); }
.text-brand     { color: var(--brand-secondary); }
.border-brand   { border-color: var(--brand-secondary); }
.hover\:text-brand:hover { color: var(--brand-secondary); }
.hover\:bg-brand:hover { background-color: var(--brand-secondary); }

.bg-tint        { background-color: var(--brand-tint); }
.bg-tint\/50    { background-color: color-mix(in srgb, var(--brand-tint) 50%, transparent); }
.bg-tint\/40    { background-color: color-mix(in srgb, var(--brand-tint) 40%, transparent); }
.hover\:bg-tint\/50:hover { background-color: color-mix(in srgb, var(--brand-tint) 50%, transparent); }

.bg-accent      { background-color: var(--brand-accent); }
.text-accent    { color: var(--brand-accent); }
.border-accent  { border-color: var(--brand-accent); }

.bg-surface     { background-color: var(--surface); }
.text-ink       { color: var(--ink); }
.text-ink-soft  { color: var(--ink-soft); }
.text-ink-mute  { color: #64748B; }
.bg-rule        { background-color: var(--rule); }
.border-rule    { border-color: var(--rule); }

/* Fonts (Tailwind theme fallback) */
.font-serif { font-family: "Source Serif 4", Georgia, serif; }
.font-sans  { font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
.font-mono  { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* Shadows */
.shadow-card { box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.04); }
.shadow-lift { box-shadow: 0 2px 4px rgba(15,23,42,0.06), 0 12px 32px rgba(15,23,42,0.08); }
