/* Company pages: History, About, Contact.
   Header, footer, logo and body font come from the live store theme (functions/_middleware.js).
   Colours match the hub pages (model-hub.css). Everything is scoped to .co-page so it can't
   touch the store header or footer. */

.co-page {
  --co-navy: #1e2a5a;
  --co-orange: #f97316;
  --co-orange-text: #c2410c;  /* darker orange for small text, readable on white */
  --co-ink: #1f2937;
  --co-muted: #4b5563;
  --co-line: #e5e7eb;
  --co-pale: #f8fafc;
  color: var(--co-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.co-page *, .co-page *::before, .co-page *::after { box-sizing: border-box; }
.co-page img { max-width: 100%; height: auto; }
.co-page a { color: var(--co-navy); }
.co-page a:focus-visible { outline: 3px solid var(--co-orange); outline-offset: 2px; }

.co-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Title band */
.co-hero { background: var(--co-pale); border-bottom: 1px solid var(--co-line); }
.co-hero .co-wrap { padding-top: 36px; padding-bottom: 32px; }
.co-hero h1 { margin: 0; color: var(--co-navy); font-size: 2.25rem; line-height: 1.15; font-weight: 800; }
.co-hero p { margin: 10px 0 0; color: var(--co-muted); font-size: 1.05rem; }

/* Preview-only note. Delete the element before go-live. */
.co-draft-note { display: inline-block; margin-top: 12px !important; padding: 4px 10px; border-radius: 4px;
  background: #fff7ed; border: 1px solid #fed7aa; color: var(--co-orange-text) !important; font-size: .9rem !important; }

.co-body { padding-top: 8px; padding-bottom: 56px; }

/* Text */
.co-prose { max-width: 720px; }
.co-prose p { margin: 0 0 16px; }

/* Photos: a row of figures at equal height (flex-grow is set per figure from width/height) */
.co-figs { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 22px; }
.co-figs figure { margin: 0; min-width: 0; }
.co-figs img, .co-photo img { display: block; width: 100%; border-radius: 4px; border: 1px solid var(--co-line); }
.co-page figcaption { margin-top: 6px; font-size: .85rem; line-height: 1.35; color: var(--co-muted); }

/* History sections */
.co-section { padding-top: 36px; }
.co-section h2 { margin: 0 0 16px; padding-top: 16px; border-top: 3px solid var(--co-navy); line-height: 1.15; }
.co-section .co-yrs { display: block; color: var(--co-orange-text); font-size: .85rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; }
.co-section .co-lab { display: block; margin-top: 4px; color: var(--co-navy); font-size: 1.75rem; font-weight: 800; }
.co-slot-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  border: 2px dashed #cbd5e1; border-radius: 4px; color: var(--co-muted); font-size: .9rem; background: var(--co-pale); }

/* Contact */
.co-cols { display: flex; gap: 34px; align-items: flex-start; margin-top: 32px; }
.co-cols > .co-left { flex: 1.15 1 0; min-width: 0; }
.co-cols > .co-right { flex: 1 1 0; min-width: 0; }
.co-card { background: var(--co-pale); border: 1px solid var(--co-line); border-left: 4px solid var(--co-orange);
  border-radius: 6px; padding: 22px 24px; margin: 0 0 24px; }
.co-card dl { margin: 0; }
.co-card dt { margin-top: 16px; color: var(--co-orange-text); font-size: .78rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; }
.co-card dt:first-child { margin-top: 0; }
.co-card dd { margin: 2px 0 0; color: var(--co-navy); font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.co-card dd a { color: var(--co-navy); text-decoration: none; }
.co-card dd a:hover { text-decoration: underline; }
.co-card dd small { display: block; color: var(--co-ink); font-size: .95rem; font-weight: 400; }
.co-photo { margin: 0 0 24px; }
.co-map { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--co-line); border-radius: 4px; overflow: hidden; }
.co-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.co-map-link { display: inline-block; margin-top: 8px; font-size: .95rem; font-weight: 700; }

/* About */
.co-shell { margin-top: 32px; padding: 28px; border: 2px dashed #cbd5e1; border-radius: 6px;
  background: var(--co-pale); color: var(--co-muted); }

/* Phones: photos and columns stack */
@media (max-width: 719px) {
  .co-hero h1 { font-size: 1.8rem; }
  .co-section .co-lab { font-size: 1.45rem; }
  .co-figs { flex-direction: column; }
  .co-figs figure { flex: none !important; width: 100%; }
  .co-cols { flex-direction: column; gap: 0; }
  .co-cols > .co-left, .co-cols > .co-right { flex: none; width: 100%; }
}
