/*
Theme Name: TM86 Enterprises
Theme URI: https://tm86enterprises.com
Author: TM86 Enterprises
Description: Corporate IT infrastructure, data center, and facility engineering theme for TM86 Enterprises. No plugins required — every section is editable from each page's edit screen, plus Appearance > Customize for site-wide header/footer/contact settings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tm86
*/

/* ==========================================================================
   TM86 Enterprises — Design System
   Navy / Steel Gray primary palette, Gold + Cyan accents
   ========================================================================== */

:root {
  --navy-950: #060e1c;
  --navy-900: #0a1930;
  --navy-800: #0f2444;
  --navy-700: #16325c;
  --navy-600: #1d4276;

  --steel-700: #3d4c5e;
  --steel-600: #5b6b7c;
  --steel-500: #7c8b9a;
  --steel-300: #b7c1cb;
  --steel-100: #e9edf1;

  --gray-50: #f6f8fa;
  --white: #ffffff;

  --gold-600: #a97a34;
  --gold-500: #c9974c;
  --gold-400: #dcb06e;
  --gold-100: #f7ecda;

  --cyan-600: #0e8fac;
  --cyan-500: #17aecd;
  --cyan-100: #e3f6fa;

  --text-dark: #101826;
  --text-body: #37455a;
  --text-muted: #64748b;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(10, 25, 48, 0.06);
  --shadow: 0 12px 32px rgba(10, 25, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 25, 48, 0.16);

  --container: 1220px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
/* Component lists are authored without a class, so the [class] reset above
   misses them and the browser's native marker stacks on top of our custom
   ::before bullets. Reset them explicitly. Editor/post content is untouched. */
.pillar-card ul,
.footer-col ul,
.mega ul,
.mega-col ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--gray-50); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--steel-100);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--steel-300); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; color: var(--text-muted); }
.section--navy .section-head p { color: var(--steel-300); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg, .btn i { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.topbar {
  background: var(--navy-950);
  color: var(--steel-300);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--steel-300); transition: var(--transition); }
.topbar a:hover { color: var(--gold-400); }
.topbar-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links svg, .topbar-links i { width: 14px; height: 14px; color: var(--gold-400); }
.topbar-phones { gap: 6px !important; }
.topbar-phones a { display: inline-flex; align-items: center; gap: 4px; color: var(--steel-300); }
.topbar-phones a:hover { color: var(--gold-400); }
.topbar-phone-sep { color: var(--steel-500, #667); }
.flag { font-size: 1em; line-height: 1; }
@media (max-width: 768px) { .topbar-phone-sep { display: none; } .topbar-phones { flex-direction: column; align-items: flex-start; gap: 2px !important; } }
.topbar-social { display: flex; gap: 14px; }
.topbar-social svg, .topbar-social i { width: 15px; height: 15px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--steel-100);
  transition: box-shadow var(--transition), padding var(--transition);
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.brand-mark svg, .brand-mark img { width: 30px; height: 30px; }
/* Bundled brand logo: the icon variant is its own navy tile, so it fills the
   frame; the transparent mark variant sits inside the tile instead. */
.brand-mark img.brand-logo--icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.brand-mark img.brand-logo--mark { width: 30px; height: 30px; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word .name {
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.brand-word .name em {
  font-style: normal;
  color: var(--gold-500);
}
.brand-word .tag {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--steel-500);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > li { position: relative; }
.nav-links a.nav-link, .nav-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active, .nav-links a:hover { color: var(--gold-600); background: var(--gold-100); }
.nav-links svg.chev, .nav-links i.chev { width: 15px; height: 15px; transition: transform var(--transition); }
.nav-item:hover svg.chev, .nav-item:hover i.chev { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  max-width: 90vw;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--steel-100);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: var(--transition);
}
.mega.mega--simple {
  width: 280px;
  grid-template-columns: 1fr;
  padding: 12px;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.mega-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.mega-col ul li { margin-bottom: 6px; }
.mega-col ul a {
  display: block;
  padding: 8px 10px;
  font-size: 0.86rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mega-col ul a:hover { color: var(--navy-900); background: var(--gray-50); }
.mega-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--steel-100);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mega-foot a { font-weight: 700; font-size: 0.85rem; color: var(--navy-900); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy-900);
}
.nav-toggle svg { width: 26px; height: 26px; }

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,174,205,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,174,205,0.10) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--gold-400); }
.hero p.lead {
  font-size: 1.12rem;
  color: var(--steel-300);
  max-width: 560px;
  margin-top: 20px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
}
.hero-stats .stat strong { display: block; font-size: 1.7rem; color: var(--gold-400); font-weight: 800; }
.hero-stats .stat span { font-size: 0.8rem; color: var(--steel-300); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(6,14,28,0.75);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-visual .badge svg, .hero-visual .badge i { width: 22px; height: 22px; color: var(--cyan-500); flex-shrink: 0; }
.hero-visual .badge strong { display: block; font-size: 0.88rem; color: var(--white); }
.hero-visual .badge span { font-size: 0.78rem; color: var(--steel-300); }

.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(23,174,205,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(23,174,205,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 20% 10%, black 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--steel-300);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--gold-400); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: var(--steel-300); max-width: 640px; font-size: 1.05rem; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }

.icon-tile {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg, .icon-tile i { width: 26px; height: 26px; color: var(--gold-400); }
.icon-tile.cyan { background: var(--cyan-100); }
.icon-tile.cyan svg, .icon-tile.cyan i { color: var(--cyan-600); }

.pillar-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--steel-100);
  transition: var(--transition);
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--cyan-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.pillar-card .tag-lead {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-100);
  color: var(--gold-600);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pillar-card ul { margin-top: 16px; }
.pillar-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0 5px 20px;
  position: relative;
}
.pillar-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--cyan-500);
}
.pillar-card .more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 0.87rem; color: var(--navy-900); }
.pillar-card .more-link svg, .pillar-card .more-link i { width: 15px; height: 15px; transition: transform var(--transition); }
.pillar-card:hover .more-link svg, .pillar-card:hover .more-link i { transform: translateX(4px); }

.feature-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .icon-tile { flex-shrink: 0; margin-bottom: 0; background: rgba(255,255,255,0.06); }
.feature-row .icon-tile svg, .feature-row .icon-tile i { color: var(--gold-400); }
.feature-row h4 { color: var(--white); margin-bottom: 6px; }
.feature-row p { color: var(--steel-300); font-size: 0.92rem; }

/* Equal-width grid rather than flex:1 — a long label like "Telecommunications"
   no longer outgrows its box, and every chip stays the same size. */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  text-align: center;
  padding: 16px 12px;
  border: 1px dashed var(--steel-300);
  border-radius: var(--radius-sm);
  color: var(--steel-500);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.tab-btn, .filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid var(--steel-100);
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-800);
  transition: var(--transition);
}
.tab-btn svg, .tab-btn i, .filter-btn svg, .filter-btn i { width: 18px; height: 18px; }
.tab-btn:hover, .filter-btn:hover { border-color: var(--gold-400); }
.tab-btn.active, .filter-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.tab-btn.active svg, .tab-btn.active i, .filter-btn.active svg, .filter-btn.active i { color: var(--gold-400); }
.tab-btn .count {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.72rem;
}
.tab-btn:not(.active) .count { background: var(--steel-100); color: var(--steel-600); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.category-intro {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 32px;
}
.category-intro .icon-tile { margin-bottom: 0; flex-shrink: 0; width: 64px; height: 64px; }
.category-intro .icon-tile svg, .category-intro .icon-tile i { width: 30px; height: 30px; }
.category-intro p { margin-top: 8px; }

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}
.service-chip:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-chip svg, .service-chip i { width: 18px; height: 18px; color: var(--cyan-600); flex-shrink: 0; margin-top: 2px; }

/* Scope band — Supply / Install / Commission / Maintain */
.scope-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--steel-100);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.scope-step {
  position: relative;
  background: var(--white);
  padding: 26px 24px 24px;
  transition: var(--transition);
}
.scope-step:hover { background: var(--gray-50); }
.scope-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-head, inherit);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--steel-300);
}
.scope-ico {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.scope-ico svg, .scope-ico i { width: 20px; height: 20px; color: var(--gold-400); }
.scope-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}
.scope-step p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 900px) {
  .scope-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .scope-band { grid-template-columns: 1fr; }
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--steel-100);
  background: var(--white);
  transition: var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.project-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--navy-950);
  color: var(--gold-400);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.project-body { padding: 20px 22px; }
.project-body h4 { margin-bottom: 6px; }
.project-body p { font-size: 0.88rem; color: var(--text-muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }

.value-card { text-align: left; }
.cert-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.cert-badge .icon-tile { margin-bottom: 0; width: 46px; height: 46px; background: var(--navy-900); flex-shrink: 0; }
.cert-badge .icon-tile svg, .cert-badge .icon-tile i { width: 22px; height: 22px; }
.cert-badge strong { display: block; font-size: 0.92rem; color: var(--text-dark); }
.cert-badge span { font-size: 0.78rem; color: var(--text-muted); }

.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--steel-100);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-bottom: 2px; }
.team-card span { font-size: 0.85rem; color: var(--gold-600); font-weight: 700; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-info-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .icon-tile { margin-bottom: 0; background: rgba(255,255,255,0.08); flex-shrink: 0; width: 44px; height:44px; }
.contact-info-row .icon-tile svg, .contact-info-row .icon-tile i { width: 20px; height:20px; }
.contact-info-row strong { display: block; font-size: 0.85rem; color: var(--steel-300); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-info-row span, .contact-info-row a { font-size: 0.98rem; color: var(--white); font-weight: 600; }
.office-block { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.office-block-head { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-400); margin-bottom: 4px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--navy-900); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  transition: var(--transition);
  color: var(--text-dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px var(--cyan-100);
  background: var(--white);
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--cyan-100);
  color: var(--cyan-600);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }
.form-error {
  display: none;
  background: #fdeceb;
  color: #c0392b;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}
.form-error.show { display: flex; }
.map-placeholder {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--steel-100);
  aspect-ratio: 21/8;
  background: linear-gradient(135deg, var(--steel-100), var(--gray-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-500);
  font-weight: 700;
  gap: 10px;
  position: relative;
}
.map-placeholder svg, .map-placeholder i { width: 22px; height: 22px; color: var(--gold-500); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.hours-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.hours-list .row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 6px 0; border-bottom: 1px dashed var(--steel-100); }
.hours-list .row span:last-child { font-weight: 700; color: var(--navy-900); }

.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,174,205,0.25), transparent 70%);
}
.cta-band h3 { color: var(--white); font-size: 1.6rem; position: relative; z-index: 1; }
.cta-band p { color: var(--steel-300); margin-top: 8px; position: relative; z-index: 1; }
.cta-band .cta-actions { display: flex; gap: 14px; position: relative; z-index: 1; }

.site-footer { background: var(--navy-950); color: var(--steel-300); }
.footer-top { padding: 72px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; color: var(--steel-500); max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-950); }
.footer-social svg, .footer-social i { width: 17px; height: 17px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { font-size: 0.9rem; color: var(--steel-300); transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold-400); padding-left: 3px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.88rem; }
.footer-contact svg, .footer-contact i { width: 17px; height: 17px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.footer-office { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-office .footer-contact { margin-top: 10px; }
.footer-office-label { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--steel-500);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--gold-400); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-100); color: var(--gold-600);
  font-size: 0.72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-links span:nth-child(3) { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 18px; }
  .category-intro { flex-direction: column; }
  .contact-info-card, .form-card { padding: 26px; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 900;
  transform: translateX(100%);
  transition: transform .35s ease;
  overflow-y: auto;
  padding: 24px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav-head button { background: none; border: none; color: var(--white); }
.mobile-nav-head svg { width: 26px; height: 26px; }
.mobile-nav a { display: block; }
.mobile-menu-list > .menu-item > a, .mobile-menu-list > li > a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  text-align: left;
  display: block;
}
.mobile-menu-list .sub-menu {
  padding-left: 14px;
  margin-bottom: 8px;
}
.mobile-menu-list .sub-menu a {
  color: var(--steel-300);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav .btn { margin-top: 24px; }

/* ==========================================================================
   Interactive / unique-feature additions
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--cyan-500));
}

.net-canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; }
.hero { overflow: hidden; }

.tilt { will-change: transform; transition: transform 0.2s ease; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats-row .stat {
  text-align: center;
  padding: 26px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--steel-100);
}
.stats-row .stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--navy-900); }
.stats-row .stat span { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.dashboard-panel {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 44px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.dashboard-head h3 { color: var(--white); margin-bottom: 4px; }
.live-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: #6be3a0; text-transform: uppercase; letter-spacing: 0.05em; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.dashboard-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 20px; }
.dashboard-card .metric-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel-300); }
.dashboard-card strong { display: block; font-size: 1.9rem; font-weight: 800; margin: 8px 0 2px; color: var(--white); }
.dashboard-card .metric-sub { font-size: 0.78rem; color: var(--steel-500); }
.progress-track { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan-500), var(--gold-500)); transition: width 1.6s cubic-bezier(.22,1,.36,1); }
.dashboard-note { margin-top: 22px; font-size: 0.78rem; color: var(--steel-500); position: relative; z-index: 1; }

.testimonial-wrap { position: relative; max-width: 740px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadeIn 0.45s ease; }
.testimonial-slide .quote { font-size: 1.25rem; color: var(--text-dark); font-weight: 600; line-height: 1.55; }
.testimonial-slide .quote::before { content: "\201C"; color: var(--gold-500); }
.testimonial-slide .quote::after { content: "\201D"; color: var(--gold-500); }
.testimonial-author { margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.testimonial-author strong { color: var(--navy-900); display: block; font-size: 0.95rem; }
.testimonial-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }
.testimonial-controls button.arrow {
  background: var(--white); border: 1px solid var(--steel-100); width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.testimonial-controls button.arrow:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.testimonial-controls button.arrow svg { width: 18px; height: 18px; }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--steel-300); border: none; transition: var(--transition);
}
.testimonial-dots button.active { background: var(--gold-500); width: 24px; border-radius: 4px; }

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--steel-100); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; text-align: left; background: none; border: none;
  font-weight: 700; font-size: 1rem; color: var(--navy-900);
}
.faq-question svg, .faq-question i { transition: transform var(--transition); flex-shrink: 0; color: var(--gold-500); }
.faq-item.open .faq-question svg, .faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 420px; }
.faq-answer p { padding: 0 4px 22px; color: var(--text-muted); font-size: 0.95rem; }

.search-box { position: relative; max-width: 520px; margin: 0 auto 36px; }
.search-box input {
  width: 100%; padding: 15px 20px 15px 48px; border-radius: 999px; border: 2px solid var(--steel-100);
  background: var(--white); font-size: 0.95rem; transition: var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 3px var(--cyan-100); }
.search-box svg, .search-box i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--steel-500); }
.search-empty { display: none; text-align: center; padding: 50px 20px; color: var(--text-muted); }
.search-empty.show { display: block; }
.search-empty svg, .search-empty i { width: 32px; height: 32px; color: var(--steel-300); margin: 0 auto 12px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,14,28,0.78); backdrop-filter: blur(4px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg); max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(6,14,28,0.6); color: var(--white); display: flex; align-items: center; justify-content: center; z-index: 2; border: none;
}
.modal-media { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--steel-100); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 34px; }
.modal-body .project-tag { position: static; display: inline-block; margin-bottom: 14px; }
.modal-body h3 { margin-bottom: 12px; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.copy-btn svg, .copy-btn i { width: 14px; height: 14px; }
.copy-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy-950); color: var(--white); padding: 13px 22px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; opacity: 0; pointer-events: none; transition: var(--transition);
  display: flex; align-items: center; gap: 8px; z-index: 1200;
}
.copy-toast svg, .copy-toast i { width: 16px; height: 16px; color: #6be3a0; }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.field-error { font-size: 0.78rem; color: #e0575a; margin-top: 4px; display: none; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #e0575a; }
.form-group.invalid .field-error { display: block; }
.form-group.valid input, .form-group.valid textarea { border-color: #3ddc84; }

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .dashboard-panel { padding: 28px 22px; }
}

/* ==========================================================================
   WordPress admin meta box helpers (repeaters, image fields)
   ========================================================================== */
.tm86-repeater-template { display: none; }

/* ==========================================================================
   Responsive refinements — tablet and phone
   ========================================================================== */
@media (max-width: 1080px) {
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { padding: 40px 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .tabs-nav { gap: 8px; }
  .tab-btn, .filter-btn { font-size: 0.82rem; padding: 9px 13px; }
}
@media (max-width: 720px) {
  /* CTA band: stack the copy above full-width buttons instead of pushing
     them to a lonely right edge. */
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 32px 24px;
    gap: 22px;
  }
  .cta-band h3 { font-size: 1.35rem; }
  .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; }

  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats { gap: 18px; }

  .scope-step { padding: 20px 18px; }
  .section-head h2 { font-size: 1.6rem; }
  .container { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 560px) {
  .logo-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 20px; border-radius: var(--radius); }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .brand-mark { width: 40px; height: 40px; }
  .service-chip { padding: 13px 15px; font-size: 0.88rem; }
}

/* About — founding milestones under the story copy */
.story-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--steel-100);
}
.story-milestones strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
}
.story-milestones span { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 560px) {
  .story-milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .story-milestones strong { font-size: 1.25rem; }
  .story-milestones span { font-size: 0.74rem; }
}
