/* assets/site-shell.css
 *
 * TechBridge Management Solutions site theme, v3.
 * One design system for every server-rendered page.
 *
 * Rules enforced:
 *   - No eyebrow labels anywhere.
 *   - No arrow glyphs (chevrons, >>, etc.). Breadcrumbs use "/".
 *     The only exception is a small caret on dropdown triggers.
 *   - No em or en dashes in copy.
 *   - Self-hosted Montserrat (headings) and Inter (body) from
 *     /assets/fonts/fonts.css.
 */

/* Fonts are loaded via a separate <link> in page.php. */

:root {
  --tbms-navy:    #0F1F3D;
  --tbms-navy-2:  #16284D;
  --tbms-navy-3:  #1D3360;
  --tbms-gold:    #C8A55A;
  --tbms-gold-2:  #B99149;
  --tbms-ink:     #0F1F3D;
  --tbms-body:    #3C4858;
  --tbms-mute:    #6B7280;
  --tbms-bg:      #FFFFFF;
  --tbms-bg-soft: #F6F7F9;
  --tbms-border:  #E5E7EB;
  --tbms-shadow-sm: 0 1px 3px rgba(15,31,61,.05), 0 1px 2px rgba(15,31,61,.04);
  --tbms-shadow:    0 12px 30px -10px rgba(15,31,61,.18);
  --tbms-radius:   12px;
  --tbms-maxw:     1200px;
  --font-head:     'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.tbms-ssr {
  font-family: var(--font-body);
  color: var(--tbms-ink);
  background: var(--tbms-bg);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.tbms-ssr a { color: var(--tbms-navy); text-decoration: none; transition: color .2s; }
body.tbms-ssr a:hover { color: var(--tbms-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--tbms-navy);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tbms-container {
  max-width: var(--tbms-maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.tbms-container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ------------------------------------------------- */
.tbms-header {
  background: #ffffff;
  position: sticky; top: 0; z-index: 90;
  border-bottom: 1px solid var(--tbms-border);
}
.tbms-header .tbms-container {
  display: flex; align-items: center; gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
  min-height: 84px;
}
.tbms-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.tbms-logo img { height: 48px; width: auto; display: block; }
@media (min-width: 768px)  { .tbms-logo img { height: 56px; } }
@media (min-width: 1024px) { .tbms-logo img { height: 64px; } }

.tbms-nav { flex: 1 1 auto; display: none; }
@media (min-width: 1024px) { .tbms-nav { display: block; } }
.tbms-nav > ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 6px; justify-content: flex-end; align-items: center;
}
.tbms-nav > ul > li { position: relative; }
.tbms-nav a {
  color: var(--tbms-navy);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-head);
  display: inline-block;
  line-height: 1.2;
}
.tbms-nav a:hover,
.tbms-nav a:focus-visible,
.tbms-nav a[aria-current="page"] { color: var(--tbms-gold); }
/* Small caret on the Services trigger — the one allowed glyph. */
.tbms-nav li.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  vertical-align: middle;
}

/* ---- Mega menu: full-width panel centered in the container
 *      so the menu never runs past either edge of the screen. */
.tbms-megabar {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 48px);
  max-width: 1200px;
  display: none;
  z-index: 100;
  padding: 0;
}
.tbms-megabar.is-open,
.tbms-nav li.has-dropdown:hover .tbms-megabar,
.tbms-nav li.has-dropdown:focus-within .tbms-megabar {
  display: block;
}
.tbms-megabar .inner {
  background: #fff;
  border: 1px solid var(--tbms-border);
  border-radius: var(--tbms-radius);
  box-shadow: var(--tbms-shadow);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px 32px;
  margin-top: 8px;
}
.tbms-megabar .col h4 {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--tbms-navy);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tbms-gold);
  text-transform: none;
  letter-spacing: 0;
}
.tbms-megabar .col h4 a { color: var(--tbms-navy); }
.tbms-megabar .col h4 a:hover { color: var(--tbms-gold); }
.tbms-megabar .col ul { list-style: none; padding: 0; margin: 0; }
.tbms-megabar .col li a {
  display: block; padding: 6px 0;
  color: var(--tbms-body);
  font-size: 14px; line-height: 1.5;
}
.tbms-megabar .col li a:hover { color: var(--tbms-gold); }
.tbms-megabar .extras {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--tbms-border);
  display: flex; gap: 30px; flex-wrap: wrap;
  font-size: 14px;
}
.tbms-megabar .extras a { color: var(--tbms-navy); font-weight: 600; }
.tbms-megabar .extras a:hover { color: var(--tbms-gold); }

/* CTA + hamburger */
.tbms-header .tbms-cta {
  display: none;
  background: var(--tbms-navy); color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  font-family: var(--font-head);
  line-height: 1;
  flex: 0 0 auto;
  min-height: 48px;
  display: none;
  align-items: center;
}
@media (min-width: 1024px) { .tbms-header .tbms-cta { display: inline-flex; } }
.tbms-header .tbms-cta:hover,
.tbms-header .tbms-cta:focus-visible { background: var(--tbms-gold); color: var(--tbms-navy); }

.tbms-hamburger {
  background: transparent; border: 0; color: var(--tbms-navy);
  font-size: 24px; line-height: 1; cursor: pointer;
  padding: 10px 12px; border-radius: 6px;
  margin-left: auto; flex: 0 0 auto;
  min-width: 48px; min-height: 48px;
}
.tbms-hamburger:hover,
.tbms-hamburger:focus-visible { background: var(--tbms-bg-soft); color: var(--tbms-gold); }
@media (min-width: 1024px) { .tbms-hamburger { display: none; } }

/* Mobile panel (full-screen) */
.tbms-mobile {
  display: none;
  position: fixed; inset: 84px 0 0 0;
  background: #fff;
  z-index: 95;
  overflow-y: auto;
  padding-bottom: 96px;
}
.tbms-mobile.is-open { display: block; }
.tbms-mobile .tbms-container { padding-top: 16px; padding-bottom: 24px; }
.tbms-mobile ul { list-style: none; padding: 0; margin: 0; }
.tbms-mobile > .tbms-container > ul > li { border-bottom: 1px solid var(--tbms-border); }
.tbms-mobile a {
  color: var(--tbms-navy);
  display: block; padding: 16px 8px;
  font-size: 17px; font-weight: 600;
  font-family: var(--font-head);
}
.tbms-mobile a:hover,
.tbms-mobile a:focus-visible,
.tbms-mobile a[aria-current="page"] { color: var(--tbms-gold); }
.tbms-mobile details { border-bottom: 1px solid var(--tbms-border); }
.tbms-mobile details > summary {
  padding: 16px 8px; list-style: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  color: var(--tbms-navy);
  display: flex; justify-content: space-between; align-items: center;
}
.tbms-mobile details > summary::-webkit-details-marker { display: none; }
.tbms-mobile details > summary::after {
  content: ""; width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.tbms-mobile details[open] > summary::after { transform: rotate(-135deg); }
.tbms-mobile .group ul { padding: 0 8px 12px; }
.tbms-mobile .group ul a {
  padding: 10px 0; font-size: 15px; font-weight: 500;
  color: var(--tbms-body);
}
.tbms-mobile .mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--tbms-border);
  padding: 14px 24px; z-index: 96;
  display: flex; justify-content: center;
}
.tbms-mobile .mobile-cta a {
  background: var(--tbms-navy); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  font-weight: 700; text-align: center;
  width: 100%; max-width: 420px;
}

/* ---- Hero band (used on all pages except the home page) ---- */
.tbms-main { flex: 1 1 auto; }
.tbms-hero-band {
  background: var(--tbms-navy);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
}
.tbms-hero-h1 {
  color: #fff;
  font-size: 32px; font-weight: 800; line-height: 1.2;
  max-width: 44rem; margin: 0 0 14px;
}
@media (min-width: 768px) { .tbms-hero-h1 { font-size: 44px; } }
@media (min-width: 1024px) { .tbms-hero-h1 { font-size: 48px; } }
.tbms-hero-sub {
  color: #DBE2EC;
  font-size: 17px; line-height: 1.65;
  max-width: 44rem; margin: 0 0 18px;
}
.tbms-hero-underline {
  display: block;
  width: 64px; height: 4px;
  background: var(--tbms-gold);
  border-radius: 2px;
}

/* ---- Breadcrumbs (slash separator; no chevrons) ------------- */
.tbms-breadcrumbs {
  font-size: 13px; color: var(--tbms-mute);
  padding: 20px 0 0;
}
.tbms-breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tbms-breadcrumbs a { color: var(--tbms-navy); }
.tbms-breadcrumbs a:hover { color: var(--tbms-gold); }
.tbms-breadcrumbs li + li::before {
  content: "/"; margin-right: 8px; color: var(--tbms-mute);
}

/* ---- Sections ---------------------------------------------- */
.tbms-section { padding: 56px 0; }
.tbms-section.tight { padding: 28px 0; }
.tbms-section.loose { padding: 96px 0; }
@media (max-width: 767px) { .tbms-section.loose { padding: 56px 0; } }
.tbms-section.soft { background: var(--tbms-bg-soft); }
.tbms-section.navy { background: var(--tbms-navy); color: #fff; }
.tbms-section.navy h2 { color: #fff; }
.tbms-section.navy p { color: #DBE2EC; }

.tbms-section h2 {
  font-size: 30px; font-weight: 700;
  margin: 0 0 16px; line-height: 1.25;
}
@media (min-width: 768px) { .tbms-section h2 { font-size: 36px; } }
.tbms-section .section-sub {
  font-size: 17px; color: var(--tbms-mute);
  margin: 0 0 32px; max-width: 48rem; line-height: 1.6;
}
.tbms-section p { color: var(--tbms-body); line-height: 1.7; margin: 0 0 14px; max-width: 54rem; font-size: 17px; }
.tbms-section ul { padding-left: 22px; color: var(--tbms-body); line-height: 1.7; margin: 0 0 14px; }
.tbms-section ul li { margin-bottom: 6px; }

/* ---- Buttons ----------------------------------------------- */
.tbms-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; min-height: 48px;
  border-radius: 8px; font-weight: 700;
  font-family: var(--font-head); font-size: 15px;
  text-decoration: none !important; line-height: 1;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  border: 2px solid transparent; cursor: pointer;
  text-align: center;
}
.tbms-btn-primary { background: var(--tbms-navy); color: #fff !important; border-color: var(--tbms-navy); }
.tbms-btn-primary:hover, .tbms-btn-primary:focus-visible { background: var(--tbms-gold); color: var(--tbms-navy) !important; border-color: var(--tbms-gold); }
.tbms-btn-gold { background: var(--tbms-gold); color: var(--tbms-navy) !important; border-color: var(--tbms-gold); }
.tbms-btn-gold:hover, .tbms-btn-gold:focus-visible { background: #fff; color: var(--tbms-navy) !important; border-color: #fff; }
.tbms-btn-outline { background: transparent; color: var(--tbms-navy) !important; border-color: var(--tbms-navy); }
.tbms-btn-outline:hover, .tbms-btn-outline:focus-visible { background: var(--tbms-navy); color: #fff !important; }
.tbms-btn-outline.on-navy { color: #fff !important; border-color: #fff; }
.tbms-btn-outline.on-navy:hover, .tbms-btn-outline.on-navy:focus-visible { background: #fff; color: var(--tbms-navy) !important; }

.tbms-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 0; }
.tbms-cta-row.on-hero { margin-top: 28px; }

/* ---- Cards ------------------------------------------------- */
.tbms-card {
  background: #fff;
  border: 1px solid var(--tbms-border);
  border-radius: var(--tbms-radius);
  padding: 28px 26px;
  box-shadow: var(--tbms-shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.tbms-card:hover { transform: translateY(-3px); box-shadow: var(--tbms-shadow); }
.tbms-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--tbms-bg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tbms-gold);
  margin-bottom: 4px;
}
.tbms-card .icon svg { width: 22px; height: 22px; }
.tbms-card h3 { margin: 0 0 6px; font-size: 19px; color: var(--tbms-navy); }
.tbms-card p { color: var(--tbms-body); font-size: 15.5px; line-height: 1.65; margin: 0; }

.tbms-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px)  { .tbms-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px)  { .tbms-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }
@media (min-width: 640px)  { .tbms-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-grid.cols-2-wide { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---- Division cards (home + about + /services) ------------- */
.tbms-divisions { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .tbms-divisions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-divisions { grid-template-columns: repeat(4, 1fr); } }
.tbms-division {
  background: #fff;
  border: 1px solid var(--tbms-border);
  border-radius: var(--tbms-radius);
  padding: 28px 24px;
  box-shadow: var(--tbms-shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tbms-division:hover { transform: translateY(-3px); box-shadow: var(--tbms-shadow); border-color: var(--tbms-gold); }
.tbms-division .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: #F6EEDD; color: var(--tbms-gold);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tbms-division .icon svg { width: 26px; height: 26px; }
.tbms-division h3 { font-size: 20px; margin: 0 0 10px; }
.tbms-division > p { color: var(--tbms-body); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.tbms-division .services { list-style: none; padding: 0; margin: 0 0 14px; }
.tbms-division .services li { padding: 4px 0; font-size: 14px; }
.tbms-division .services a { color: var(--tbms-navy); }
.tbms-division .services a:hover { color: var(--tbms-gold); }
.tbms-division .view {
  margin-top: auto;
  font-weight: 700; color: var(--tbms-navy);
  font-size: 14px;
  padding-top: 12px;
}
.tbms-division .view:hover { color: var(--tbms-gold); }

/* ---- Numbered phases --------------------------------------- */
.tbms-phases {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
  counter-reset: phase;
}
@media (min-width: 768px) { .tbms-phases.row { grid-template-columns: repeat(4, 1fr); } }
.tbms-phases li {
  background: #fff;
  border: 1px solid var(--tbms-border);
  border-radius: var(--tbms-radius);
  padding: 22px 22px 22px 22px;
  position: relative;
}
.tbms-phases li::before {
  counter-increment: phase;
  content: counter(phase, decimal-leading-zero);
  display: block;
  color: var(--tbms-gold); font-family: var(--font-head);
  font-weight: 700; font-size: 13px; letter-spacing: .08em;
  margin-bottom: 8px;
}
.tbms-phases h4 { margin: 0 0 6px; font-size: 17px; color: var(--tbms-navy); font-family: var(--font-head); }
.tbms-phases p { margin: 0; font-size: 15px; color: var(--tbms-body); line-height: 1.65; }

/* ---- FAQ -------------------------------------------------- */
.tbms-faq { max-width: 54rem; }
.tbms-faq details {
  border-top: 1px solid var(--tbms-border);
  padding: 18px 0;
}
.tbms-faq details:last-child { border-bottom: 1px solid var(--tbms-border); }
.tbms-faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-head);
  font-weight: 600; font-size: 16px;
  color: var(--tbms-navy);
  padding-right: 32px; position: relative;
}
.tbms-faq summary::-webkit-details-marker { display: none; }
.tbms-faq summary::after {
  content: ""; position: absolute; right: 2px; top: 6px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--tbms-gold);
  border-bottom: 2px solid var(--tbms-gold);
  transform: rotate(45deg);
  transition: transform .2s;
}
.tbms-faq details[open] summary::after { transform: rotate(-135deg); }
.tbms-faq p { margin: 12px 0 0; color: var(--tbms-body); font-size: 15.5px; line-height: 1.7; }

/* ---- Proof band (founder credentials) --------------------- */
.tbms-proof {
  background: #FBF6EC;
  border-left: 4px solid var(--tbms-gold);
  padding: 22px 26px;
  border-radius: 8px;
  max-width: 54rem;
}
.tbms-proof p { margin: 0; font-size: 15px; color: var(--tbms-navy); line-height: 1.65; }
.tbms-proof a { color: var(--tbms-navy); text-decoration: underline; text-decoration-color: var(--tbms-gold); text-underline-offset: 3px; }

/* ---- CTA band --------------------------------------------- */
.tbms-cta-band { background: var(--tbms-navy); color: #fff; text-align: center; padding: 72px 0; }
.tbms-cta-band h2 { color: #fff; margin: 0 0 10px; font-size: 28px; }
.tbms-cta-band p { color: #DBE2EC; margin: 0 auto 24px; max-width: 42rem; }

/* ---- Credentials row -------------------------------------- */
.tbms-badges {
  display: flex; flex-wrap: wrap; gap: 26px;
  justify-content: center; align-items: flex-end;
}
.tbms-badges .badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 100px;
}
.tbms-badges .badge img { height: 86px; width: auto; display: block; }
.tbms-badges .badge .caption {
  font-size: 11px; letter-spacing: .08em;
  color: var(--tbms-mute);
  font-family: var(--font-head); font-weight: 700;
}

/* ---- Partners grid (greyscale with hover) ----------------- */
.tbms-partners {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}
@media (min-width: 640px) { .tbms-partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tbms-partners { grid-template-columns: repeat(6, 1fr); } }
.tbms-partner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; text-align: center;
}
.tbms-partner img {
  max-width: 120px; max-height: 60px;
  object-fit: contain; display: block;
  filter: grayscale(1); opacity: .7;
  transition: filter .2s, opacity .2s;
}
.tbms-partner:hover img { filter: grayscale(0); opacity: 1; }
.tbms-partner .caption { font-size: 12.5px; color: var(--tbms-mute); line-height: 1.4; }

/* ---- Forms ------------------------------------------------ */
.tbms-form { max-width: 48rem; }
.tbms-form .row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .tbms-form .row.two { grid-template-columns: 1fr 1fr; } }
.tbms-form .field { display: flex; flex-direction: column; }
.tbms-form label {
  font-family: var(--font-head); font-weight: 600;
  font-size: 13px; color: var(--tbms-navy);
  margin-bottom: 8px; letter-spacing: .02em;
}
.tbms-form .required { color: var(--tbms-gold); }
.tbms-form input[type="text"],
.tbms-form input[type="email"],
.tbms-form input[type="tel"],
.tbms-form input[type="url"],
.tbms-form input[type="number"],
.tbms-form select,
.tbms-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--tbms-border);
  border-radius: 8px;
  font: inherit;
  color: var(--tbms-ink);
  background: #fff;
  min-height: 52px;
  font-size: 15.5px;
  transition: border-color .15s, box-shadow .15s;
}
.tbms-form textarea { min-height: 140px; resize: vertical; }
.tbms-form input:focus-visible, .tbms-form select:focus-visible, .tbms-form textarea:focus-visible {
  outline: none; border-color: var(--tbms-gold);
  box-shadow: 0 0 0 3px rgba(200,165,90,.25);
}
.tbms-form .err { color: #B91C1C; font-size: 13px; margin-top: 6px; display: none; }
.tbms-form .field.invalid input,
.tbms-form .field.invalid select,
.tbms-form .field.invalid textarea { border-color: #B91C1C; }
.tbms-form .field.invalid .err { display: block; }
.tbms-form .consent { font-size: 13px; color: var(--tbms-mute); margin: 12px 0 18px; line-height: 1.5; max-width: 42rem; }
.tbms-form .consent a { color: var(--tbms-navy); text-decoration: underline; }
.tbms-form .form-top-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; display: none; }
.tbms-form.has-top-error .form-top-error { display: block; }
.tbms-form .drop {
  border: 2px dashed var(--tbms-border); border-radius: 10px;
  padding: 22px; text-align: center; background: var(--tbms-bg-soft);
  cursor: pointer;
}
.tbms-form .drop:hover, .tbms-form .drop.hover { border-color: var(--tbms-gold); }
.tbms-form .drop .hint { font-size: 14px; color: var(--tbms-mute); margin-top: 6px; }
.tbms-form .drop input[type="file"] { position: absolute; left: -9999px; }
.tbms-form .drop .name { display: block; margin-top: 10px; font-size: 14px; color: var(--tbms-navy); font-weight: 600; }

.tbms-form-confirm {
  background: #F6FBF7; border: 1px solid #BBE3C4;
  border-left: 4px solid #22C55E;
  border-radius: 10px;
  padding: 26px 28px;
}
.tbms-form-confirm h3 { color: var(--tbms-navy); margin: 0 0 8px; font-size: 20px; }
.tbms-form-confirm p { color: var(--tbms-body); margin: 0 0 12px; }

/* ---- Footer ------------------------------------------------ */
.tbms-footer { background: var(--tbms-navy); color: #DBE2EC; margin-top: auto; }

/* Newsletter band above the columns */
.tbms-newsletter-band {
  background: var(--tbms-navy-2);
  padding: 44px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tbms-newsletter-band .wrap { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 24px; }
.tbms-newsletter-band h3 { color: #fff; font-family: var(--font-head); margin: 0 0 8px; font-size: 24px; }
.tbms-newsletter-band p.sub { color: #DBE2EC; margin: 0 0 20px; font-size: 15px; }
.tbms-newsletter-band form .row {
  display: flex; gap: 10px; align-items: stretch;
  justify-content: center; flex-wrap: wrap;
}
.tbms-newsletter-band input[type="email"] {
  flex: 1 1 280px; max-width: 420px;
  min-height: 52px; max-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; background: rgba(255,255,255,.1); color: #fff;
  font: inherit; font-size: 15px;
}
.tbms-newsletter-band input[type="email"]::placeholder { color: #94A3B8; }
.tbms-newsletter-band input:focus-visible { outline: 2px solid var(--tbms-gold); outline-offset: 1px; }
.tbms-newsletter-band button {
  min-height: 52px; padding: 0 28px;
  background: var(--tbms-gold); color: var(--tbms-navy); border: 0;
  border-radius: 8px; font-family: var(--font-head);
  font-weight: 700; font-size: 15px; cursor: pointer;
  white-space: nowrap;
}
.tbms-newsletter-band button:hover { background: #fff; }
.tbms-newsletter-band .consent {
  display: block; margin-top: 14px;
  font-size: 12.5px; color: #94A3B8; line-height: 1.55;
}
.tbms-newsletter-band .consent a { color: #DBE2EC; }

.tbms-footer-main { padding: 56px 0 24px; }
.tbms-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  margin-bottom: 32px;
}
@media (min-width: 640px)  { .tbms-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }

body.tbms-ssr .tbms-footer a { color: #E2E8F0; }
body.tbms-ssr .tbms-footer a:hover { color: var(--tbms-gold); }

.tbms-footer-brand img { height: 72px; width: auto; display: block; margin-bottom: 18px; }
.tbms-footer-brand p { font-size: 14.5px; line-height: 1.65; margin: 0 0 12px; color: #DBE2EC; max-width: 360px; }
.tbms-footer-brand .reg { font-size: 12.5px; color: #94A3B8; margin: 0; }

.tbms-footer h4 {
  color: #fff; font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em; margin: 0 0 16px;
  text-transform: uppercase;
}
.tbms-footer ul { list-style: none; padding: 0; margin: 0; }
.tbms-footer li { margin-bottom: 10px; font-size: 14.5px; }
.tbms-footer address { font-style: normal; font-size: 14.5px; line-height: 1.65; }

.tbms-socials { display: flex; gap: 10px; margin-top: 12px; }
.tbms-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #E2E8F0;
}
.tbms-socials a:hover { background: var(--tbms-gold); color: var(--tbms-navy); }
.tbms-socials svg { width: 16px; height: 16px; fill: currentColor; }

.tbms-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; color: #94A3B8; font-size: 12.5px;
}
.tbms-footer-bottom .tbms-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
body.tbms-ssr .tbms-footer-bottom a { color: #DBE2EC; }

/* ---- Hero photo cycle (home page) -------------------------- */
.tbms-hero-cycle {
  position: relative;
  min-height: 72vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--tbms-navy);
}
@media (min-width: 1024px) { .tbms-hero-cycle { min-height: 80vh; } }
.tbms-hero-cycle .layers {
  position: absolute; inset: 0;
  z-index: 0;
}
.tbms-hero-cycle .layers img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.tbms-hero-cycle .layers img.on { opacity: 1; }
.tbms-hero-cycle .overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,31,61,.86), rgba(15,31,61,.66) 70%, rgba(15,31,61,.5));
}
.tbms-hero-cycle .content {
  position: relative; z-index: 2;
  padding: 80px 0;
  color: #fff;
}
.tbms-hero-cycle .eyebrow { display: none; }
.tbms-hero-cycle h1 {
  color: #fff;
  font-size: 32px; font-weight: 800; line-height: 1.12;
  max-width: 820px; margin: 0 0 18px;
}
@media (min-width: 768px) { .tbms-hero-cycle h1 { font-size: 44px; } }
@media (min-width: 1200px) { .tbms-hero-cycle h1 { font-size: 52px; } }
.tbms-hero-cycle p { color: #E5EAF2; font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0 0 24px; }
@media (prefers-reduced-motion: reduce) {
  .tbms-hero-cycle .layers img { transition: none; }
}

/* ---- Home proof strip -------------------------------------- */
.tbms-proof-strip {
  background: #fff; border-bottom: 1px solid var(--tbms-border);
  padding: 22px 0;
}
.tbms-proof-strip .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .tbms-proof-strip .row { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tbms-proof-strip .item {
  display: flex; align-items: center; gap: 10px;
  color: var(--tbms-navy); font-family: var(--font-head);
  font-weight: 600; font-size: 14.5px; line-height: 1.3;
}
.tbms-proof-strip .item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tbms-gold); flex: 0 0 auto; }

/* ---- Experience in numbers --------------------------------- */
.tbms-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; text-align: center;
}
@media (min-width: 768px) { .tbms-metrics { grid-template-columns: repeat(4, 1fr); } }
.tbms-metric .value { color: var(--tbms-gold); font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; margin: 0 0 8px; }
.tbms-metric .label { color: #fff; font-size: 14.5px; line-height: 1.5; }

/* ---- Sectors tiles ----------------------------------------- */
.tbms-sectors-tiles { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tbms-sectors-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-sectors-tiles { grid-template-columns: repeat(5, 1fr); } }
.tbms-sector-tile {
  background: #fff; border: 1px solid var(--tbms-border);
  border-radius: var(--tbms-radius); padding: 22px 18px;
  text-align: center; display: block;
}
.tbms-sector-tile:hover { border-color: var(--tbms-gold); color: var(--tbms-navy); }
.tbms-sector-tile h4 { font-size: 15px; margin: 0; color: var(--tbms-navy); font-family: var(--font-head); line-height: 1.3; }

/* ---- Insight cards (home + blog index) --------------------- */
.tbms-blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tbms-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-blog-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tbms-post-card {
  background: #fff; border: 1px solid var(--tbms-border);
  border-radius: var(--tbms-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.tbms-post-card:hover { transform: translateY(-3px); box-shadow: var(--tbms-shadow); }
.tbms-post-card .thumb { aspect-ratio: 16/9; background: var(--tbms-bg-soft); overflow: hidden; }
.tbms-post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbms-post-card .body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.tbms-post-card .meta { font-size: 12.5px; color: var(--tbms-mute); font-family: var(--font-head); letter-spacing: .04em; margin: 0 0 6px; }
.tbms-post-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.tbms-post-card h3 a { color: var(--tbms-navy); }
.tbms-post-card h3 a:hover { color: var(--tbms-gold); }
.tbms-post-card .excerpt { font-size: 14.5px; color: var(--tbms-body); line-height: 1.6; margin: 0 0 14px; }
.tbms-post-card .read { font-weight: 700; font-size: 14px; color: var(--tbms-navy); margin-top: auto; }
.tbms-post-card .read:hover { color: var(--tbms-gold); }

/* ---- Photo gallery (replaces slider) ---------------------- */
.tbms-gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .tbms-gallery { grid-template-columns: repeat(4, 1fr); } }
.tbms-gallery .tile {
  display: block; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 10px; background: var(--tbms-bg-soft);
  border: 1px solid var(--tbms-border); cursor: pointer;
  position: relative;
}
.tbms-gallery .tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.tbms-gallery .tile:hover img { transform: scale(1.03); }
.tbms-gallery-view-all {
  text-align: center; margin-top: 24px;
}

/* Lightbox */
.tbms-lightbox {
  position: fixed; inset: 0;
  background: rgba(15,31,61,.92);
  z-index: 110;
  display: none;
  align-items: center; justify-content: center;
}
.tbms-lightbox.is-open { display: flex; }
.tbms-lightbox .frame {
  max-width: min(96vw, 1200px); max-height: 94vh;
  display: flex; flex-direction: column;
}
.tbms-lightbox img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  background: #000; border-radius: 6px;
}
.tbms-lightbox .caption { color: #fff; margin-top: 12px; text-align: center; font-size: 14px; max-width: 70ch; }
.tbms-lightbox .controls {
  margin-top: 16px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.tbms-lightbox button {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16);
  padding: 10px 18px; border-radius: 8px; font-family: var(--font-head);
  font-weight: 600; cursor: pointer; font-size: 14px;
}
.tbms-lightbox button:hover { background: var(--tbms-gold); color: var(--tbms-navy); }

/* ---- About page specifics --------------------------------- */
.tbms-founder {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 768px) { .tbms-founder { grid-template-columns: 320px 1fr; gap: 48px; } }
.tbms-founder img {
  width: 100%; max-width: 320px; height: 400px;
  object-fit: cover; border-radius: 12px; display: block;
}
.tbms-founder h3 { font-size: 24px; margin: 0 0 4px; }
.tbms-founder .role { color: var(--tbms-gold); font-family: var(--font-head); font-size: 14px; font-weight: 700; margin: 0 0 18px; letter-spacing: .04em; }
.tbms-founder p { line-height: 1.75; }

.tbms-feature-row { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .tbms-feature-row { grid-template-columns: 1fr 1fr; gap: 48px; } }
.tbms-feature-row img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; }
.tbms-feature-row.flip > :first-child { order: 1; }
@media (min-width: 768px) { .tbms-feature-row.flip > :first-child { order: 2; } }

/* ---- Industries (links to Sectors) ------------------------- */
.tbms-industries { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tbms-industries { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-industries { grid-template-columns: repeat(5, 1fr); } }
.tbms-industries a {
  background: #fff; border: 1px solid var(--tbms-border); border-radius: 10px;
  padding: 18px 14px; text-align: center; font-family: var(--font-head); font-weight: 700;
  color: var(--tbms-navy); font-size: 14.5px; line-height: 1.35;
}
.tbms-industries a:hover { border-color: var(--tbms-gold); color: var(--tbms-navy); }

/* ---- Skip link -------------------------------------------- */
.tbms-skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--tbms-navy);
  padding: 8px 12px; z-index: 200;
}
.tbms-skip:focus { left: 8px; top: 8px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
