/* ============================================================
   TALOS / takeoffs — Bootstrap/HTML replica
   Loads AFTER bootstrap.min.css.
   (1) neutralises Bootstrap Reboot, (2) reproduces the exact
   Tailwind utility output used by the page, (3) carries the
   original tokens, reveal styles and @keyframes verbatim.
   ============================================================ */

/* ---------- Design tokens (src/styles.css :root) ---------- */
:root {
  --radius: 0.625rem;
  --talos-bg: oklch(0.985 0.002 90);
  --talos-fg: oklch(0.18 0.01 60);
  --talos-muted: oklch(0.55 0.01 60);
  --talos-border: oklch(0.88 0.005 60);
  --talos-maroon: oklch(0.32 0.09 25);
}

/* ---------- Reset layer (mimics Tailwind preflight) ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--talos-border); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth !important; }
body {
  margin: 0; line-height: inherit;
  background-color: var(--talos-bg); color: var(--talos-fg);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select, textarea {
  font-family: inherit; font-size: 100%; font-weight: inherit;
  line-height: inherit; color: inherit; margin: 0; padding: 0;
}
button { background-color: transparent; background-image: none; text-transform: none; }
button, [role="button"] { cursor: pointer; }
:focus { outline: none; }
::placeholder { color: var(--talos-muted); opacity: 1; }
nav { display: block; }
blockquote { quotes: none; }

/* ---------- Font-family utilities (Tailwind defaults) ---------- */
.font-sans { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
  "Liberation Mono", "Courier New", monospace; }

/* ---------- Display / layout ---------- */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-\[3px\] { height: 3px; }
.min-h-screen { min-height: 100vh; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.bg-transparent { background-color: transparent; }
.cursor-pointer { cursor: pointer; }
.align-middle { vertical-align: middle; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }

/* position offsets */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-6 { left: 1.5rem; right: 1.5rem; }
.top-6 { top: 1.5rem; }
.top-44 { top: 11rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-6 { bottom: 1.5rem; }
.left-6 { left: 1.5rem; }
.right-6 { right: 1.5rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* ---------- Grid templates ---------- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-\[200px_1fr_240px\] { grid-template-columns: 200px 1fr 240px; }
.grid-cols-\[60px_1fr\] { grid-template-columns: 60px 1fr; }

/* ---------- Gap ---------- */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* ---------- Padding ---------- */
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pr-4 { padding-right: 1rem; }
.pt-3 { padding-top: 0.75rem; }

/* ---------- Margin ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-20 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* ---------- space-y (margin-top on subsequent children) ---------- */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* ---------- Max width ---------- */
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* ---------- Typography ---------- */
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.normal-case { text-transform: none; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\]  { letter-spacing: 0.2em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.02\] { line-height: 1.02; }

.text-\[9px\]  { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1; }

/* ---------- Opacity ---------- */
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* ---------- Transitions + hover ---------- */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.hover\:opacity-70:hover { opacity: 0.7; }
.hover\:opacity-80:hover { opacity: 0.8; }

/* ---------- Responsive: Tailwind sm=640 / md=768 / lg=1024 ---------- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:text-right { text-align: right; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_2fr_auto\] { grid-template-columns: 1fr 2fr auto; }
  .md\:grid-cols-\[280px_1fr\] { grid-template-columns: 280px 1fr; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   Base + reveal + interactions (from src/styles.css)
   ============================================================ */
.frame-jump { font-size: 12px; color: #6E6E6E; transition: color 0.3s ease-in-out; }
.frame-jump:hover { color: #5C1D24; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

.trade-card-hover {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 320ms ease;
  will-change: transform;
}
.trade-card-hover:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.18); }
.trade-row-hover { transition: background-color 200ms ease; }
.trade-row-hover:hover { background-color: #FAF7F2; }
.trade-live-dot { animation: talos-pulse 1.8s ease-in-out infinite; display: inline-block; }
.trade-faq summary::-webkit-details-marker { display: none; }
.trade-faq .trade-faq-icon { transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); display: inline-block; }
.trade-faq[open] .trade-faq-icon { transform: rotate(45deg); }
.trade-cta-btn { transition: transform 220ms ease, filter 220ms ease; display: inline-block; }
.trade-cta-btn:hover { transform: translateX(4px); filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@keyframes talos-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
@keyframes talos-line-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes talos-blink { 50% { opacity: 0; } }
@keyframes talos-draw { to { stroke-dashoffset: 0; } }

/* WhoWeServe dropdown menu hover rows (JS toggles inline bg, this is fallback) */
.wws-panel a:hover { background-color: #f5f5f5; }

/* ============================================================
   Additional utilities for Who-We-Serve & Trade pages
   ============================================================ */
.gap-px { gap: 1px; }
.gap-5 { gap: 1.25rem; }
.gap-10 { gap: 2.5rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-10 { padding: 2.5rem; }
.pt-20 { padding-top: 5rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-12 { margin-top: 3rem; }

.text-left { text-align: left; }
.text-right { text-align: right; }
.underline { text-decoration: underline; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.tracking-\[0\.05em\] { letter-spacing: 0.05em; }
.tracking-\[0\.1em\]  { letter-spacing: 0.1em; }
.tracking-\[0\.12em\] { letter-spacing: 0.12em; }

.items-baseline { align-items: baseline; }
.hover\:opacity-100:hover { opacity: 1; }

.space-y-1\.5 > * + * { margin-top: 0.375rem; }

table.w-full { width: 100%; border-collapse: collapse; }

/* base (mobile-first) grid columns */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* responsive standard columns */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:pl-8 { padding-left: 2rem; }
  /* arbitrary template columns */
  .md\:grid-cols-\[auto_1fr\]   { grid-template-columns: auto 1fr; }
  .md\:grid-cols-\[1\.7fr_1fr\] { grid-template-columns: 1.7fr 1fr; }
  .md\:grid-cols-\[1\.2fr_1fr\] { grid-template-columns: 1.2fr 1fr; }
  .md\:grid-cols-\[1\.4fr_1fr\] { grid-template-columns: 1.4fr 1fr; }
  .md\:grid-cols-\[1fr_1\.4fr\] { grid-template-columns: 1fr 1.4fr; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:block { display: block; }
}

/* ============================================================
   Construction Copilot (TALOS-themed) page additions
   ============================================================ */
.text-6xl { font-size: 3.75rem; line-height: 1; }
@media (min-width: 768px) { .md\:text-6xl { font-size: 3.75rem; line-height: 1; } }
.gap-16 { gap: 4rem; }
.leading-\[1\.05\] { line-height: 1.05; }

/* buttons */
.cc-primary { background-color: var(--talos-maroon); color: var(--talos-bg); transition: filter .2s ease, transform .2s ease; }
.cc-primary:hover { filter: brightness(1.08); }
.cc-outline { border: 1px solid var(--talos-border); color: var(--talos-fg); background: transparent; transition: all .2s ease; }
.cc-outline:hover { border-color: var(--talos-maroon); color: var(--talos-maroon); }

/* seamless bordered card grid hover (echoes takeoffs capabilities) */
.cc-cell { transition: background-color .3s ease; }
.cc-cell:hover { background-color: #FAFAFA; }

/* header secondary login: hidden on mobile, shown md+ (desktop unchanged) */
.cc-login-hide { display: none; }
@media (min-width: 768px) { .cc-login-hide { display: inline-block; } }
@media (min-width: 768px) {
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:ml-auto { margin-left: auto; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
}
.py-6
 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}