/* ===========================================================
   TTMC OBT — Premium Light Theme
   Design language: crisp navy & silver on white, editorial
   serif display type, restrained motion — matches brand mark.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-void: #ffffff;
  --bg-base: #f5f7fa;
  --bg-elevated: #eef1f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f6f9;
  --border-hair: rgba(15,35,70,0.09);
  --border-soft: rgba(15,35,70,0.16);
  --border-gold: rgba(31,78,140,0.30);

  --gold-dim: #12315c;
  --gold: #1f4e8c;
  --gold-bright: #2f6fd1;
  --gold-line: linear-gradient(90deg, transparent, #1f4e8c, transparent);

  --silver: #98a2b3;
  --silver-line: linear-gradient(90deg, transparent, #b8c0cc, transparent);
  --silver-metal: linear-gradient(135deg, #eef1f5, #c7ced9 45%, #eef1f5);

  /* True gold — used sparingly as an accent against the blue/silver base:
     star ratings, premium badges, hairline accents. Not the primary CTA color. */
  --accent-gold: #c9a227;
  --accent-gold-bright: #e0b84a;
  --accent-gold-bg: rgba(201,162,39,0.10);
  --tri-line: linear-gradient(90deg, var(--gold-dim), var(--silver) 50%, var(--accent-gold));

  --text-hi: #101d33;
  --text-mid: #51617a;
  --text-dim: #8a95a8;

  --ok: #1f8a5f;
  --ok-bg: rgba(31,138,95,0.10);
  --warn: #a8720a;
  --warn-bg: rgba(184,134,11,0.12);
  --err: #c23b3b;
  --err-bg: rgba(194,59,59,0.09);
  --info: #3d72b4;
  --info-bg: rgba(61,114,180,0.10);

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    linear-gradient(rgba(245,247,250,0.86), rgba(245,247,250,0.86)),
    url('../assets/hero-photo.png') center 30% / cover no-repeat fixed;
  color: var(--text-hi);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Layered brand artwork for marketing / hero sections — stronger presence
   than the whole-site background wash above. */
.brand-hero-bg {
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(31,78,140,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(120,130,148,0.14), transparent 60%),
    url('../assets/hero-bg.svg') center bottom / cover no-repeat;
}
::selection { background: var(--gold); color: #ffffff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #c7cedb; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.display-xl { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.01em; color: var(--text-hi); }
.display-lg { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; color: var(--text-hi); }
.display-md { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--text-hi); }
.lede { font-size: 15.5px; color: var(--text-mid); line-height: 1.7; font-weight: 400; }

/* ---------- top navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 72px;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-hair);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #eef1f6 70%);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15,35,70,0.05), 0 4px 14px rgba(15,35,70,0.12);
}
.brand-mark img { width: 84%; height: 84%; object-fit: contain; }
.brand-text .name { font-family: var(--serif); font-weight: 600; font-size: 16.5px; color: var(--text-hi); letter-spacing: 0.3px; }
.brand-text .tag { font-size: 9.5px; color: var(--gold); letter-spacing: 2.5px; text-transform: uppercase; }

.back-btn {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--text-mid); text-decoration: none; padding: 8px 14px 8px 10px; border-radius: 8px;
  border: 1px solid var(--border-hair); background: var(--bg-card); cursor: pointer; transition: all 0.2s var(--ease);
  margin-left: auto; margin-right: 6px; flex-shrink: 0;
}
.back-btn:hover { color: var(--gold); border-color: var(--border-gold); background: rgba(31,78,140,0.05); }
.back-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.ic { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -3px; }
.ic-lg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 12.5px; font-weight: 600; color: var(--text-mid); text-decoration: none;
  padding: 9px 16px; border-radius: 8px; transition: all 0.2s var(--ease); letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--text-hi); background: rgba(15,35,70,0.05); }
.nav-links a.active { color: var(--gold); background: rgba(31,78,140,0.09); }

.pill { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 11px; border-radius: 20px; }
.pill-gold { background: rgba(31,78,140,0.14); color: var(--gold-bright); border: 1px solid var(--border-gold); }
.pill-live { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(79,174,122,0.3); }
.pill-b2b { background: var(--info-bg); color: var(--info); border: 1px solid rgba(90,157,208,0.3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  padding: 13px 26px; border-radius: 9px; cursor: pointer; border: none;
  transition: all 0.25s var(--ease); text-decoration: none; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim)); color: #ffffff; box-shadow: 0 6px 24px rgba(31,78,140,0.22); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(31,78,140,0.32); }
.btn-ghost { background: transparent; color: var(--text-hi); border: 1.5px solid var(--border-soft); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-dark { background: var(--bg-elevated); color: var(--text-hi); border: 1px solid var(--border-hair); }
.btn-dark:hover { background: var(--bg-card-hover); }
.btn-sm { padding: 8px 16px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---------- cards / surfaces ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border-hair); border-radius: var(--radius);
  padding: 24px 26px;
}
.card-title { font-size: 13px; font-weight: 700; color: var(--text-hi); letter-spacing: 0.3px; margin-bottom: 4px; }
.card-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.glass {
  background: rgba(255,255,255,0.72); backdrop-filter: blur(20px); border: 1px solid var(--border-hair); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15,35,70,0.12);
}
.divider-gold { height: 1px; background: var(--gold-line); border: none; margin: 20px 0; }
.divider { height: 1px; background: var(--border-hair); border: none; margin: 16px 0; }

/* ---------- forms ---------- */
label.field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--border-hair);
  background: var(--bg-elevated); color: var(--text-hi); font-family: var(--sans); font-size: 13.5px; outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(31,78,140,0.14); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231f4e8c'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); padding: 12px 14px; border-bottom: 1px solid var(--border-hair); font-weight: 700; }
td { padding: 14px; font-size: 13px; color: var(--text-mid); border-bottom: 1px solid rgba(15,35,70,0.06); }
tr:hover td { background: rgba(15,35,70,0.025); color: var(--text-hi); }

/* ---------- badges / status ---------- */
.status { font-size: 10.5px; padding: 4px 11px; border-radius: 20px; font-weight: 800; letter-spacing: 0.4px; display: inline-block; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-err { background: var(--err-bg); color: var(--err); }
.status-info { background: var(--info-bg); color: var(--info); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-hair); padding: 50px 32px 30px; margin-top: 70px; }
.site-footer .cols { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h5 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.site-footer a { display: block; font-size: 12.5px; color: var(--text-mid); text-decoration: none; margin-bottom: 9px; }
.site-footer a:hover { color: var(--text-hi); }
.site-footer .bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--border-hair); display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); }

/* ---------- utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; }
.flex { display: flex; }
.muted { color: var(--text-dim); }
.mid { color: var(--text-mid); }
.gold-text { color: var(--gold); }
.fade-in { animation: fadeIn 0.6s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- plane loader — replaces the spinner everywhere ---------- */
.plane-loader { text-align: center; padding: 70px 20px; }
.plane-loader-sky { position: relative; width: 100%; max-width: 320px; height: 84px; margin: 0 auto 18px; overflow: hidden; }
.plane-loader-path { position: absolute; top: 50%; left: 6%; right: 6%; height: 0; border-top: 2px dashed var(--border-soft); transform: translateY(-50%); }
.plane-loader-plane { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin-top: -15px; color: var(--gold); animation: planeFly 2.8s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(31,78,140,0.28)); }
@keyframes planeFly {
  0%   { transform: translateX(-40px) translateY(6px) rotate(-49deg); }
  50%  { transform: translateX(150px) translateY(-10px) rotate(-41deg); }
  100% { transform: translateX(340px) translateY(6px) rotate(-49deg); }
}
.plane-loader-cloud { position: absolute; background: var(--bg-elevated); border-radius: 40px; }
.plane-loader-cloud::before, .plane-loader-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.plane-loader-cloud.c1 { width: 34px; height: 12px; top: 18%; left: 8%; animation: cloudDrift 7s linear infinite; }
.plane-loader-cloud.c1::before { width: 16px; height: 16px; top: -8px; left: 4px; }
.plane-loader-cloud.c1::after { width: 13px; height: 13px; top: -5px; left: 17px; }
.plane-loader-cloud.c2 { width: 26px; height: 9px; top: 68%; left: 58%; animation: cloudDrift 9s linear infinite; animation-delay: -3s; }
.plane-loader-cloud.c2::before { width: 12px; height: 12px; top: -6px; left: 4px; }
.plane-loader-cloud.c3 { width: 20px; height: 8px; top: 30%; left: 82%; animation: cloudDrift 8s linear infinite; animation-delay: -1.2s; }
@keyframes cloudDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.plane-loader-text { font-size: 12.5px; color: var(--text-dim); }

.showcase-tag {
  position: absolute; top: 12px; right: 12px; font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--warn-bg); color: var(--warn);
  border: 1px solid rgba(184,134,11,0.3);
}
.live-tag {
  position: absolute; top: 12px; right: 12px; font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--ok-bg); color: var(--ok);
  border: 1px solid rgba(31,138,95,0.3);
}

/* ---------- tables: let them scroll horizontally inside cards on narrow screens ---------- */
.card { overflow-x: auto; }
table { min-width: 560px; }

/* ---------- mobile nav toggle (hamburger, hidden on desktop) ---------- */
.nav-toggle-cb { display: none; }
.nav-toggle-btn {
  display: none; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 8px; border: 1px solid var(--border-hair); background: var(--bg-card);
  cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent;
}
.nav-toggle-btn svg { width: 18px; height: 18px; color: var(--text-hi); }

/* ===========================================================
   Mobile — shared chrome. Class names below (topbar, brand,
   nav-links, btn, back-btn, pill) are only ever defined here,
   so these rules apply site-wide with no per-page overrides.
   =========================================================== */
@media (max-width: 640px) {
  .topbar { padding: 0 12px; height: 56px; position: sticky; gap: 8px; }
  .brand { gap: 8px; min-width: 0; flex: 1; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { min-width: 0; }
  .brand-text .name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-text .tag { display: none; }

  .back-btn { width: 36px; height: 36px; padding: 0; justify-content: center; margin-right: 0; flex-shrink: 0; font-size: 0; }
  .back-btn svg { width: 17px; height: 17px; }

  .nav-toggle-btn { display: flex; }

  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-card); border-bottom: 1px solid var(--border-hair);
    padding: 10px 12px 16px; box-shadow: 0 16px 30px rgba(15,35,70,0.14); max-width: none; overflow: visible;
  }
  .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; padding: 13px 14px; font-size: 14px; text-align: left; }
  .nav-links a.active { background: rgba(31,78,140,0.08); }
  .nav-links .pill { align-self: flex-start; margin: 4px 0; }
  .nav-links .btn { margin-left: 0 !important; margin-top: 6px; text-align: center; }

  .btn { padding: 11px 18px; font-size: 12.5px; }
  .btn-sm { padding: 7px 13px; font-size: 11px; }

  .display-xl { font-size: clamp(30px, 9vw, 52px); }
  .display-lg { font-size: clamp(22px, 6vw, 30px); }
  .display-md { font-size: 20px; }
  .container, .container-narrow { padding: 0 16px; }

  .site-footer { padding: 34px 18px 22px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .site-footer .bottom { flex-direction: column; gap: 8px; text-align: center; }
}
