/* assets/service-pages.css
 *
 * Styles for the standalone server-rendered pages (the seven
 * /services/<slug> pages, /services index, /government, /events,
 * /privacy, /terms, 404). Designed to sit on top of the compiled
 * bundle stylesheet (index-B4G2MoiI.css) so these pages inherit the
 * same brand fonts and colors and read as part of the same site.
 */

:root {
  --tbms-navy: #0F1F3D;
  --tbms-gold: #C9A961;
  --tbms-ink:  #0F1F3D;
  --tbms-body: #3C4858;
  --tbms-mute: #64748b;
  --tbms-border: #e5e7eb;
  --tbms-bg-soft: #F6F7F9;
}

body.tbms-standalone {
  margin: 0; padding: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--tbms-ink);
  background: #fff;
  line-height: 1.65;
}
body.tbms-standalone * { box-sizing: border-box; }

/* ---- Header -------------------------------------------------- */
.tbms-sth { background: #fff; border-bottom: 1px solid var(--tbms-border); position: sticky; top: 0; z-index: 100; }
.tbms-sth-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; min-height: 80px; }
.tbms-sth-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.tbms-sth-logo img { height: 48px; width: auto; display: block; }
@media (min-width: 1024px) { .tbms-sth-logo img { height: 64px; } }

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

/* The Services dropdown. Must open on hover, click, keyboard. Sits
 * above the hero and every other element (high z-index, header's
 * overflow is visible). */
.tbms-sth-dd {
  position: absolute; top: 100%; right: 0;
  min-width: 300px; background: #fff; color: var(--tbms-navy);
  border: 1px solid var(--tbms-border); border-radius: 8px;
  box-shadow: 0 20px 40px -10px rgba(15,31,61,0.2);
  padding: 10px 0; display: none; z-index: 200;
}
.tbms-sth-nav li.has-dropdown:hover > .tbms-sth-dd,
.tbms-sth-nav li.has-dropdown:focus-within > .tbms-sth-dd,
.tbms-sth-dd.is-open { display: block; }
.tbms-sth-dd a { display: block; padding: 10px 18px; font-size: 14.5px; color: var(--tbms-navy); border-radius: 0; }
.tbms-sth-dd a:hover { color: var(--tbms-gold); background: var(--tbms-bg-soft); }

.tbms-sth-cta { display: none; background: var(--tbms-navy); color: #fff !important; text-decoration: none; padding: 12px 22px; font-family: Montserrat, Arial, sans-serif; font-weight: 700; font-size: 14px; border-radius: 6px; line-height: 1; }
@media (min-width: 1024px) { .tbms-sth-cta { display: inline-block; } }
.tbms-sth-cta:hover { background: var(--tbms-gold); color: var(--tbms-navy) !important; }

.tbms-sth-ham { background: transparent; border: 0; color: var(--tbms-navy); font-size: 24px; padding: 8px 12px; margin-left: auto; cursor: pointer; border-radius: 6px; min-width: 44px; min-height: 44px; }
@media (min-width: 1024px) { .tbms-sth-ham { display: none; } }

.tbms-sth-mobile { display: none; background: #fff; border-top: 1px solid var(--tbms-border); }
.tbms-sth-mobile.is-open { display: block; }
.tbms-sth-mobile .inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px 24px; }
.tbms-sth-mobile ul { list-style: none; padding: 0; margin: 0; }
.tbms-sth-mobile a { display: block; padding: 12px 8px; color: var(--tbms-navy); text-decoration: none; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--tbms-border); }
.tbms-sth-mobile details summary { padding: 12px 8px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--tbms-navy); border-bottom: 1px solid var(--tbms-border); list-style: none; }
.tbms-sth-mobile details summary::-webkit-details-marker { display: none; }
.tbms-sth-mobile details summary::after { content: " +"; color: var(--tbms-gold); }
.tbms-sth-mobile details[open] summary::after { content: " -"; }
.tbms-sth-mobile details ul { padding-left: 16px; }
.tbms-sth-mobile .mobile-cta { display: inline-block; margin-top: 18px; }

/* ---- Hero band with world-map styling ---------------------- */
.tbms-hero {
  background: var(--tbms-navy); color: #fff;
  padding: 72px 0 80px; text-align: center;
  position: relative; overflow: hidden;
}
.tbms-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='500' viewBox='0 0 1200 500'><g fill='%23C9A961' opacity='0.09'><circle cx='140' cy='160' r='2.5'/><circle cx='180' cy='170' r='2'/><circle cx='220' cy='160' r='2.5'/><circle cx='260' cy='175' r='2'/><circle cx='300' cy='190' r='2.5'/><circle cx='340' cy='200' r='2'/><circle cx='380' cy='210' r='2.5'/><circle cx='420' cy='220' r='2'/><circle cx='460' cy='210' r='2.5'/><circle cx='500' cy='200' r='2'/><circle cx='540' cy='210' r='2.5'/><circle cx='580' cy='220' r='2'/><circle cx='620' cy='230' r='2.5'/><circle cx='660' cy='240' r='2'/><circle cx='700' cy='230' r='2.5'/><circle cx='740' cy='220' r='2'/><circle cx='780' cy='210' r='2.5'/><circle cx='820' cy='220' r='2'/><circle cx='860' cy='230' r='2.5'/><circle cx='900' cy='240' r='2'/><circle cx='940' cy='230' r='2.5'/><circle cx='980' cy='220' r='2'/><circle cx='1020' cy='210' r='2.5'/><circle cx='160' cy='260' r='2'/><circle cx='200' cy='270' r='2.5'/><circle cx='240' cy='280' r='2'/><circle cx='280' cy='290' r='2.5'/><circle cx='320' cy='300' r='2'/><circle cx='360' cy='310' r='2.5'/><circle cx='400' cy='300' r='2'/><circle cx='440' cy='290' r='2.5'/><circle cx='480' cy='300' r='2'/><circle cx='520' cy='310' r='2.5'/><circle cx='560' cy='320' r='2'/><circle cx='600' cy='330' r='2.5'/><circle cx='640' cy='340' r='2'/><circle cx='680' cy='350' r='2.5'/><circle cx='720' cy='340' r='2'/><circle cx='760' cy='330' r='2.5'/><circle cx='800' cy='320' r='2'/><circle cx='840' cy='310' r='2.5'/><circle cx='880' cy='300' r='2'/><circle cx='920' cy='310' r='2.5'/><circle cx='960' cy='320' r='2'/><circle cx='1000' cy='330' r='2.5'/><circle cx='1040' cy='340' r='2'/></g></svg>");
  background-size: cover; background-position: center;
  pointer-events: none;
}
.tbms-hero > * { position: relative; z-index: 1; }
.tbms-hero h1 { color: #fff; font-size: 34px; font-weight: 700; margin: 0 auto 16px; max-width: 48rem; line-height: 1.2; font-family: Montserrat, Arial, sans-serif; }
@media (min-width: 768px) { .tbms-hero h1 { font-size: 44px; } }
.tbms-hero .positioning { color: #DBE2EC; font-size: 17px; line-height: 1.6; max-width: 44rem; margin: 0 auto 18px; }
.tbms-hero .gold-underline { display: block; width: 72px; height: 4px; background: var(--tbms-gold); border-radius: 2px; margin: 18px auto 0; }

/* ---- Content layout ----------------------------------------- */
.tbms-page { background: #fff; padding: 0 0 48px; }
.tbms-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tbms-section { padding: 56px 0; }
.tbms-section.alt { background: var(--tbms-bg-soft); }
.tbms-section h2 { color: var(--tbms-navy); font-family: Montserrat, Arial, sans-serif; font-size: 28px; font-weight: 700; margin: 0 0 16px; line-height: 1.25; }
.tbms-section h2 + .section-sub { font-size: 16px; color: var(--tbms-mute); margin: 0 0 28px; }
.tbms-section p { color: var(--tbms-body); line-height: 1.75; margin: 0 0 14px; max-width: 54rem; font-size: 17px; }

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

/* Capability cards */
.tbms-capcards { display: grid; gap: 24px; grid-template-columns: 1fr; margin: 32px 0; }
@media (min-width: 768px) { .tbms-capcards { grid-template-columns: 1fr 1fr; } }
.tbms-capcard { background: #fff; border: 1px solid var(--tbms-border); border-radius: 12px; padding: 28px 26px; box-shadow: 0 2px 6px rgba(15,31,61,0.06); transition: transform .2s, box-shadow .2s; }
.tbms-capcard:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -8px rgba(15,31,61,0.14); }
.tbms-capcard h3 { color: var(--tbms-navy); font-family: Montserrat, Arial, sans-serif; font-size: 20px; margin: 0 0 10px; font-weight: 700; }
.tbms-capcard .intro { color: var(--tbms-body); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.tbms-capcard ul { list-style: none; padding: 0; margin: 0; }
.tbms-capcard li { position: relative; padding: 6px 0 6px 28px; color: var(--tbms-body); font-size: 15px; line-height: 1.5; }
.tbms-capcard li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--tbms-gold);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px 11px; background-repeat: no-repeat; background-position: center;
}

/* Phases list */
.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); } }
@media (min-width: 768px) { .tbms-phases.row5 { grid-template-columns: repeat(5, 1fr); } }
.tbms-phases li { background: #fff; border: 1px solid var(--tbms-border); border-radius: 10px; padding: 22px; position: relative; }
.tbms-phases li::before { counter-increment: phase; content: counter(phase, decimal-leading-zero); display: block; color: var(--tbms-gold); font-family: Montserrat, Arial, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .08em; margin-bottom: 8px; }
.tbms-phases h4 { color: var(--tbms-navy); font-family: Montserrat, Arial, sans-serif; font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.tbms-phases p { color: var(--tbms-body); font-size: 15px; line-height: 1.6; margin: 0; }

/* Value for clients list */
.tbms-values { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 24px 0 0; max-width: 54rem; }
@media (min-width: 768px) { .tbms-values { grid-template-columns: 1fr 1fr; } }
.tbms-values .item { position: relative; padding: 8px 0 8px 30px; color: var(--tbms-body); font-size: 16px; line-height: 1.5; }
.tbms-values .item::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tbms-gold);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px; background-repeat: no-repeat; background-position: center;
}

/* Sectors (used on the Project Management and PMO page) */
.tbms-sectors-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 640px) { .tbms-sectors-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-sectors-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tbms-sectors-grid .card { background: #fff; border: 1px solid var(--tbms-border); border-radius: 10px; padding: 24px; }
.tbms-sectors-grid h3 { color: var(--tbms-navy); font-family: Montserrat, Arial, sans-serif; font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.tbms-sectors-grid p { color: var(--tbms-body); font-size: 15px; line-height: 1.6; margin: 0; }

/* Related services */
.tbms-related { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .tbms-related { grid-template-columns: 1fr 1fr 1fr; } }
.tbms-related a { background: #fff; border: 1px solid var(--tbms-border); border-radius: 10px; padding: 18px 20px; color: var(--tbms-navy); font-family: Montserrat, Arial, sans-serif; font-weight: 700; text-decoration: none; }
.tbms-related a:hover { border-color: var(--tbms-gold); color: var(--tbms-gold); }

/* CTA band */
.tbms-cta-band { background: var(--tbms-navy); color: #fff; text-align: center; padding: 64px 24px; }
.tbms-cta-band h2 { color: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 28px; margin: 0 0 20px; }
.tbms-btn-cta { display: inline-block; background: var(--tbms-gold); color: var(--tbms-navy); font-family: Montserrat, Arial, sans-serif; font-weight: 700; padding: 14px 28px; border-radius: 8px; text-decoration: none; min-height: 48px; line-height: 1.4; font-size: 15px; }
.tbms-btn-cta:hover { background: #fff; }

/* Services index cards */
.tbms-svc-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin: 28px 0; }
@media (min-width: 768px) { .tbms-svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .tbms-svc-grid { grid-template-columns: repeat(3, 1fr); } }
.tbms-svc-card { background: #fff; border: 1px solid var(--tbms-border); border-radius: 12px; padding: 28px 26px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.tbms-svc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(15,31,61,0.18); }
.tbms-svc-card h3 { color: var(--tbms-navy); font-family: Montserrat, Arial, sans-serif; font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.tbms-svc-card h3 a { color: inherit; text-decoration: none; }
.tbms-svc-card h3 a:hover { color: var(--tbms-gold); }
.tbms-svc-card p { color: var(--tbms-body); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.tbms-svc-card .learn-more {
  margin-top: auto; align-self: flex-start;
  background: var(--tbms-navy); color: #fff; font-family: Montserrat, Arial, sans-serif;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 6px;
  text-decoration: none; line-height: 1;
}
.tbms-svc-card .learn-more:hover { background: var(--tbms-gold); color: var(--tbms-navy); }

/* Footer */
.tbms-sft { background: var(--tbms-navy); color: #DBE2EC; margin-top: 40px; }
.tbms-sft-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 24px; }
.tbms-sft-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tbms-sft-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tbms-sft-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.tbms-sft h4 { color: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 14px; letter-spacing: .06em; margin: 0 0 14px; font-weight: 700; }
.tbms-sft a { color: #DBE2EC; text-decoration: none; }
.tbms-sft a:hover { color: var(--tbms-gold); }
.tbms-sft ul { list-style: none; padding: 0; margin: 0; }
.tbms-sft li { margin-bottom: 8px; font-size: 14.5px; }
.tbms-sft address { font-style: normal; font-size: 14.5px; line-height: 1.65; }
.tbms-sft p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; color: #DBE2EC; }
.tbms-sft p.small { font-size: 12px; color: #94A3B8; }
.tbms-sft-nl { max-width: 540px; margin: 40px auto 20px; }
.tbms-sft-nl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; }
.tbms-sft-nl input[type="email"] { flex: 1 1 260px; max-width: 360px; min-height: 48px; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 14.5px; font-family: inherit; }
.tbms-sft-nl input[type="email"]::placeholder { color: #94A3B8; }
.tbms-sft-nl button { min-height: 48px; padding: 0 22px; background: var(--tbms-gold); color: var(--tbms-navy); border: 0; border-radius: 6px; font-family: Montserrat, Arial, sans-serif; font-weight: 700; cursor: pointer; font-size: 14.5px; }
.tbms-sft-nl button:hover { background: #fff; }
.tbms-sft-nl .consent { width: 100%; font-size: 11.5px; color: #94A3B8; text-align: center; margin: 10px 0 0; }
.tbms-sft-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; margin-top: 24px; color: #94A3B8; font-size: 12.5px; text-align: center; }

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

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