/* ============================================================================
   Fully Loaded Barbados Inc. — shared stylesheet
   Design tokens carry over from the logo-concepts brand sheet: Ink / Mist /
   Steel / Signal / Amber, Sora + IBM Plex Sans + IBM Plex Mono.
   ============================================================================ */

:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --surface-2: #EAEEF1;
  --ink: #10151B;
  --ink-soft: #5B6772;
  --line: #D6DCE1;
  --accent: #07549a;
  --accent-strong: #06376a;
  --accent-contrast: #FFFFFF;
  --amber: #B9750C;
  --danger: #B3261E;
  --success: #157F3C;
  --shadow: 0 1px 2px rgba(16, 21, 27, 0.06), 0 8px 24px rgba(16, 21, 27, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F13;
    --surface: #121821;
    --surface-2: #1A222C;
    --ink: #ECF1F4;
    --ink-soft: #9AA7B2;
    --line: #2A343E;
    --accent: #69b7ff;
    --accent-strong: #91caff;
    --accent-contrast: #071d34;
    --amber: #F5A623;
    --danger: #FF6B63;
    --success: #4ADE80;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px rgba(0,0,0,0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F13;
  --surface: #121821;
  --surface-2: #1A222C;
  --ink: #ECF1F4;
  --ink-soft: #9AA7B2;
  --line: #2A343E;
  --accent: #69b7ff;
  --accent-strong: #91caff;
  --accent-contrast: #071d34;
  --amber: #F5A623;
  --danger: #FF6B63;
  --success: #4ADE80;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 12px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .word { font-family: "Sora", sans-serif; line-height: 1.05; }
.brand .word .l1 { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand .word .l2 { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent-strong); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover { color: var(--ink); }
.main-nav a[aria-current="page"]:not(.btn) {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px 20px;
    gap: 14px;
  }
  .main-nav.open { display: flex; }
  .site-header .bar { position: relative; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ----------------------------------------------------------------- hero */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(680px 340px at 88% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--surface);
}
.hero-inner {
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero p.lede { font-size: 17.5px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0D1117;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 46%; height: 46%; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/9; }
}

/* -------------------------------------------------------------- sections */
section.block { padding: 56px 0; }
section.block.tight { padding: 40px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.block-head { margin-bottom: 32px; max-width: 62ch; }

/* ------------------------------------------------------------- services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background: var(--surface);
  transition: border-color .15s ease, transform .15s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.service-card .icon {
  width: 38px; height: 38px;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-card .icon svg { width: 20px; height: 20px; color: var(--accent-strong); }
.service-card h3 { margin-bottom: 6px; }
.service-card p { margin: 0; font-size: 14px; }

/* ------------------------------------------------------------------ grid */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.stat { }
.stat .num { font-family: "Sora", sans-serif; font-size: 26px; font-weight: 800; }
.stat .label { font-size: 12.5px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- cards */
.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 22px;
}
.card + .card { margin-top: 14px; }

/* ----------------------------------------------------------------- form */
form.stack { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.field .hint { font-size: 12.5px; color: var(--ink-soft); }
input, select, textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 110px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.form-msg {
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 6px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.form-msg.error { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* --------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.status-new, .badge.status-pending { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.badge.status-reviewed, .badge.status-confirmed { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.badge.status-quoted, .badge.status-in_progress { color: #6B4FBB; border-color: #6B4FBB55; }
.badge.status-converted, .badge.status-completed { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.badge.status-closed, .badge.status-cancelled { color: var(--ink-soft); }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
thead th {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }

/* ----------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); padding: 10px 4px; margin-right: 20px;
  border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --------------------------------------------------------------- empty */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------------------------------------------------------------- auth */
.auth-shell {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 32px;
}
.auth-card h1 { font-size: 24px; }
.auth-switch { font-size: 13.5px; margin-top: 18px; text-align: center; color: var(--ink-soft); }

/* ------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--line);
  margin-left: 4px;
}
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -6px; top: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
}
.timeline .when { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--ink-soft); }
.timeline .what { font-size: 14px; font-weight: 600; margin-top: 2px; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; margin-bottom: 8px; font-size: 13.5px; }
.footer-col a:hover { color: var(--accent-strong); }

/* --------------------------------------------------------------- utility */
.gate-msg { max-width: 480px; margin: 80px auto; text-align: center; padding: 0 20px; }
[hidden] { display: none !important; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }
