/* ==========================================================================
   TMH Technology — site.css
   Additive theme layer on top of css/styles.css (Bootstrap + brand base).
   Reuses brand tokens already defined in styles.css:
   accent #64C3E1 / accent-dark #3DACD3 / accent-soft #EAF7FB /
   ink #191C1F / body #485159 / footer teal #2B809B / font Manrope
   ========================================================================== */

:root {
  --tmh-accent: #64C3E1;
  --tmh-accent-dark: #3DACD3;
  --tmh-accent-soft: #EAF7FB;
  --tmh-accent-soft-2: #D5F1F8;
  --tmh-ink: #191C1F;
  --tmh-body: #485159;
  --tmh-teal: #2B809B;
}

/* -------------------- Navbar fit / spacing -------------------- */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  #navbarSupportedContent {
    flex-wrap: wrap !important;
    row-gap: 10px;
    justify-content: flex-end;
  }
  #navbarSupportedContent .navbar-nav {
    flex-wrap: wrap;
  }
}

/* -------------------- Nav dropdowns (Technology / Solutions / Platforms) -------------------- */
.navbar-nav .nav-item.nav-dropdown {
  position: relative;
}

.navbar-nav .dropdown-menu {
  font-family: 'Manrope', sans-serif;
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(25, 28, 31, 0.12);
  padding: 10px;
  margin-top: 6px;
}

.navbar-nav .dropdown-item {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--tmh-ink);
  white-space: normal;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background: var(--tmh-accent-soft);
  color: var(--tmh-accent-dark);
}

@media (min-width: 992px) {
  /* Extend the trigger's own hoverable box downward with invisible padding
     (offset by an equal negative margin so surrounding layout doesn't
     shift). This closes the dead zone that used to sit between the nav
     link and the menu below it — without that buffer, moving the cursor
     diagonally toward a submenu item would exit the hover area partway
     down and the menu would vanish before you could click anything. */
  .navbar-nav .nav-item.nav-dropdown {
    padding-bottom: 18px;
    margin-bottom: -18px;
  }
  .navbar-nav .nav-item.nav-dropdown > .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    min-width: 260px;
  }
  .navbar-nav .nav-item.nav-dropdown:hover > .dropdown-menu,
  .navbar-nav .nav-item.nav-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-item.nav-dropdown > .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: rgba(25, 28, 31, 0.03);
    margin: 6px 0 10px;
  }
  .navbar-nav .nav-item.nav-dropdown > .nav-link {
    margin-bottom: 0 !important;
  }
}

/* -------------------- Nav CTA buttons -------------------- */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.nav-cta {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 9px 16px !important;
  border-radius: 85px !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}

.nav-cta-managed {
  background: var(--tmh-accent) !important;
  color: #191C1F !important;
}

.nav-cta-managed:hover {
  background: var(--tmh-accent-dark) !important;
  color: #fff !important;
}

.nav-cta-self {
  background: transparent !important;
  border: 1px solid rgba(25, 28, 31, 0.3);
  color: var(--tmh-ink) !important;
}

.nav-cta-self:hover {
  background: var(--tmh-accent-soft) !important;
  border-color: var(--tmh-accent-dark);
  color: var(--tmh-ink) !important;
}

@media (max-width: 991.98px) {
  .nav-cta-group {
    margin: 14px 0 4px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-cta { text-align: center; }
}

/* -------------------- Buttons -------------------- */
.btn-white {
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  background: #ffffff !important;
  color: var(--tmh-ink) !important;
  border-radius: 85px !important;
  padding: 15px 32px !important;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #e6eef0;
}

.btn-white:hover {
  background: var(--tmh-accent-soft) !important;
  color: var(--tmh-ink) !important;
}

.btn-outline-light-pill {
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  background: transparent !important;
  color: #fff !important;
  border-radius: 85px !important;
  padding: 15px 32px !important;
  display: inline-block;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline-light-pill:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #fff;
}

/* -------------------- Section basics -------------------- */
.section-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tmh-accent-dark);
  background: var(--tmh-accent-soft);
  padding: 6px 16px;
  border-radius: 85px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-weight: 700;
  font-size: 38px;
  line-height: 46px;
  color: var(--tmh-ink);
  margin-bottom: 14px;
}

.section-head p {
  font-weight: 400;
  font-size: 17px;
  line-height: 27px;
  color: var(--tmh-body);
}

/* -------------------- Feature / icon cards -------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991.98px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: #ffffff;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 34px 28px;
  height: 100%;
}

.feature-card .icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--tmh-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-card .icon-tile img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.feature-card h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--tmh-ink);
  margin-bottom: 10px;
}

.feature-card p {
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: var(--tmh-body);
  margin-bottom: 0;
}

/* -------------------- Split rows (image / text) -------------------- */
.split-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-row.reverse {
  flex-direction: row-reverse;
}

.split-row .split-media,
.split-row .split-copy {
  flex: 1 1 0;
  min-width: 0;
}

.split-row .split-media img {
  width: 100%;
  border-radius: 18px;
}

/* For wide "hero style" photography (lots of empty space on one side) —
   crop to a fixed-height panel instead of showing the whole frame. */
.split-media.bg-shot {
  min-height: 360px;
  border-radius: 18px;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
  .split-media.bg-shot { min-height: 240px; }
}

@media (max-width: 767.98px) {
  .split-row,
  .split-row.reverse {
    flex-direction: column;
    gap: 30px;
  }
}

.split-copy .tag {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tmh-accent-dark);
  margin-bottom: 12px;
}

.split-copy h3 {
  font-weight: 700;
  font-size: 30px;
  line-height: 38px;
  color: var(--tmh-ink);
  margin-bottom: 16px;
}

.split-copy p {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--tmh-body);
}

.split-copy ul {
  padding: 0;
  margin: 18px 0 0;
}

.split-copy ul li {
  list-style: none;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  color: var(--tmh-body);
}

.split-copy ul li::before {
  content: "";
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-right: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--tmh-accent) url("../img/round.png") center no-repeat;
  background-size: 10px;
}

/* -------------------- Solution / audience cards -------------------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 991.98px) {
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .solution-grid { grid-template-columns: 1fr; }
}

.solution-card {
  background: #fff;
  border: 1px solid #eef2f4;
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-card .num {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--tmh-accent-dark);
  margin-bottom: 14px;
}

.solution-card h3 {
  font-weight: 700;
  font-size: 22px;
  color: var(--tmh-ink);
  margin-bottom: 12px;
}

.solution-card p {
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: var(--tmh-body);
  flex-grow: 1;
}

.solution-card .card-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.solution-card .card-actions a {
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 85px;
  text-decoration: none;
}

.solution-card .card-actions .a-managed {
  background: var(--tmh-accent-soft);
  color: var(--tmh-accent-dark);
}

.solution-card .card-actions .a-managed:hover {
  background: var(--tmh-accent);
  color: #fff;
}

.solution-card .card-actions .a-self {
  background: var(--tmh-ink);
  color: #fff;
}

.solution-card .card-actions .a-self:hover {
  background: #000;
}

.solution-card.highlight {
  background: var(--tmh-ink);
  border-color: var(--tmh-ink);
}

.solution-card.highlight h3,
.solution-card.highlight .num {
  color: #fff;
}

.solution-card.highlight p {
  color: #c9d3d6;
}

/* -------------------- Compare panels (Platforms page) -------------------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 767.98px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-card {
  border-radius: 18px;
  padding: 40px 36px;
  height: 100%;
}

.compare-card.managed {
  background: var(--tmh-ink);
  color: #fff;
}

.compare-card.self-serve {
  background: var(--tmh-accent-soft);
  color: var(--tmh-ink);
}

.compare-card .tag {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 85px;
  margin-bottom: 18px;
}

.compare-card.managed .tag {
  background: rgba(100, 195, 225, 0.18);
  color: var(--tmh-accent);
}

.compare-card.self-serve .tag {
  background: rgba(61, 172, 211, 0.16);
  color: var(--tmh-accent-dark);
}

.compare-card h3 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 14px;
}

.compare-card p.lead {
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 22px;
}

.compare-card.managed p.lead { color: #cfe9f2; }
.compare-card.self-serve p.lead { color: var(--tmh-body); }

.compare-card ul {
  padding: 0;
  margin: 0 0 28px;
}

.compare-card ul li {
  list-style: none;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  line-height: 22px;
}

.compare-card.managed ul li { color: #e3eef1; }
.compare-card.self-serve ul li { color: var(--tmh-body); }

.compare-card ul li::before {
  content: "";
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-right: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--tmh-accent) url("../img/round.png") center no-repeat;
  background-size: 9px;
}

/* -------------------- Advertiser / Supply columns -------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 767.98px) {
  .offer-grid { grid-template-columns: 1fr; }
}

.offer-col h4 {
  font-weight: 700;
  font-size: 22px;
  color: var(--tmh-ink);
  margin-bottom: 18px;
}

.offer-col ul {
  padding: 0;
  margin: 0;
}

.offer-col ul li {
  list-style: none;
  margin-bottom: 14px;
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  line-height: 24px;
  color: var(--tmh-body);
}

.offer-col ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 20px;
  background: url("../img/arrow.png") left 4px no-repeat;
}

/* -------------------- Stat band -------------------- */
.stat-band {
  background: var(--tmh-ink);
  border-radius: 20px;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

@media (max-width: 767.98px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

.stat-band .stat-num {
  font-weight: 700;
  font-size: 34px;
  color: var(--tmh-accent);
  margin-bottom: 6px;
}

.stat-band .stat-label {
  font-weight: 400;
  font-size: 14px;
  color: #c9d3d6;
}

/* -------------------- CTA banner -------------------- */
.cta-banner {
  background: linear-gradient(120deg, #17575e 0%, #2B809B 100%);
  border-radius: 24px;
  padding: 64px 50px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-weight: 700;
  font-size: 34px;
  line-height: 42px;
  color: #fff;
  margin-bottom: 14px;
}

.cta-banner p {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #d7ecf1;
  max-width: 560px;
  margin: 0 auto 30px;
}

.cta-banner .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-banner .btn-primary,
.cta-banner .btn-outline-light-pill {
  margin-top: 0 !important;
  padding: 14px 34px !important;
  line-height: 1.5 !important;
}

/* -------------------- Pillar cards (home) -------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991.98px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

.pillar-card {
  border-radius: 18px;
  padding: 38px 32px;
  background: #fff;
  box-shadow: 0px 2px 16px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-card .pillar-index {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--tmh-accent-dark);
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-weight: 700;
  font-size: 24px;
  color: var(--tmh-ink);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 15px;
  line-height: 24px;
  color: var(--tmh-body);
  flex-grow: 1;
}

.pillar-card a.pillar-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--tmh-accent-dark);
  text-decoration: none;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pillar-card a.pillar-link:hover { color: var(--tmh-ink); }

/* -------------------- Team cards (company page) -------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 767.98px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0px 2px 16px rgba(0,0,0,0.06);
  padding: 36px;
  text-align: center;
}

.team-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
}

/* -------------------- Anchor targets -------------------- */
[id] {
  scroll-margin-top: 24px;
}

/* -------------------- Inner-page hero breathing room -------------------- */
/* Gives the nav a bit of clear space above the hero photo instead of the
   photo's content butting right up against the menu. */
.inner-page header {
  padding-top: 10px;
  padding-bottom: 28px;
}

/* -------------------- Utility -------------------- */
.mt-90 { margin-top: 90px; }
.mb-0-force { margin-bottom: 0 !important; }

.bg-soft {
  background: var(--tmh-accent-soft);
}

.text-accent { color: var(--tmh-accent-dark); }
