/* Tekminders-style hero banner + overlay header */
:root {
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --hero-min-h: 92vh;
  --hero-page-min-h: 55vh;
}

body.has-hero-overlay {
  margin: 0;
  padding: 0;
}

/* ── Hero Banner Shell ── */
.tm-hero {
  position: relative;
  min-height: var(--hero-min-h);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tm-hero--page { min-height: var(--hero-page-min-h); }

/* Single bg (inner pages – image set per page via inline style) */
.tm-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Stacked bg slides (home – hover swaps full hero image) */
.tm-hero__bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.tm-hero__bg-item {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: opacity;
}
.tm-hero__bg-item.is-active {
  opacity: 1;
}
.tm-hero__overlay {
  position: absolute; inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
  z-index: 1;
}
.tm-hero__grid-lines {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 2;
}
.tm-hero__grid-lines span {
  border-right: 1px solid rgba(255,255,255,0.15);
}
.tm-hero__grid-lines span:last-child { border-right: none; }

/* ── Home: 4-column service grid (full-height hover zones) ── */
.tm-hero--home {
  min-height: var(--hero-min-h);
}

.tm-hero-home__cols {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: auto;
}

.tm-hero-col {
  position: relative;
  height: 100%;
  min-height: 100%;
  padding: 7.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.35s ease;
}

/* Full-column hit area – hover works anywhere in the cell */
.tm-hero-col::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tm-hero-col:last-child { border-right: none; }
.tm-hero-col:hover,
.tm-hero-col.is-hovered {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.tm-hero--home:has(.tm-hero-col:hover) .tm-hero__overlay,
.tm-hero--home:has(.tm-hero-col.is-hovered) .tm-hero__overlay {
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.55s ease;
}

/* Column inner – default bottom, hover moves to top */
.tm-hero-col__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: auto;
  padding-top: 0;
  transition: margin 0.45s ease, padding 0.45s ease, transform 0.45s ease;
}

.tm-hero-col:hover .tm-hero-col__inner,
.tm-hero-col.is-hovered .tm-hero-col__inner {
  margin-top: 0;
  padding-top: 5.5rem;
  transform: translateY(0);
}

.tm-hero-col__tag {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
  width: fit-content;
  transition: margin 0.35s ease;
}
.tm-hero-col__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  margin: 0;
}
.tm-hero-col__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: max-height 0.45s ease, opacity 0.4s ease, margin 0.4s ease, transform 0.45s ease;
}
.tm-hero-col:hover .tm-hero-col__desc,
.tm-hero-col.is-hovered .tm-hero-col__desc {
  max-height: 6.5em;
  opacity: 1;
  margin-top: 1rem;
  transform: translateY(0);
}

/* ── Page title hero ── */
.tm-hero-page__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 1.5rem 80px;
}
.tm-hero-page__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.5px;
}
.tm-hero-page__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.tm-hero-page__breadcrumb {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tm-hero-page__breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.tm-hero-page__breadcrumb a:hover { color: #fff; }
.tm-hero-page__breadcrumb .sep { opacity: 0.5; }

/* ── Home intro strip (content below hero) ── */
.home-intro {
  background: var(--surface, #F4F7FF);
  padding: 70px 0;
  border-bottom: 1px solid var(--border, #D6E2FF);
}
.home-intro h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark, #20243F);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.home-intro h1 span { color: var(--blue-primary, #20243F); }
.home-intro .intro-sub {
  font-size: 1.05rem;
  color: var(--text-muted, #5A6480);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.75rem;
}
.home-intro-stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 2rem;
}
.home-intro-stats .stat-item { padding: 0 1.5rem; text-align: center; }
.home-intro-stats .stat-item:first-child { padding-left: 0; }
.home-intro-stats .stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--blue-primary, #20243F); line-height: 1;
}
.home-intro-stats .stat-label {
  font-size: 0.78rem; color: var(--text-muted, #5A6480);
  margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.home-intro-stats .stat-divider {
  width: 1px; height: 40px;
  background: var(--border, #D6E2FF);
}

@media (max-width: 991px) {
  .tm-hero {
    min-height: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .tm-hero-home__cols {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 280px;
    margin-top: auto;
    grid-template-columns: repeat(2, 1fr);
  }
  .tm-hero-col {
    height: auto;
    min-height: 200px;
    padding: 2rem 1.5rem 2rem;
  }
  .tm-hero-col:hover .tm-hero-col__inner,
  .tm-hero-col.is-hovered .tm-hero-col__inner {
    padding-top: 1.25rem;
  }
  .tm-hero-col:nth-child(2) { border-right: none; }
  .tm-hero-col:nth-child(1),
  .tm-hero-col:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .tm-hero__grid-lines { grid-template-columns: repeat(2, 1fr); }
  .tm-hero-page__content { padding: 120px 1.5rem 60px; }
}
/* ── Page intro (content moved from old page-hero) ── */
.page-intro {
  background: var(--surface, #F4F7FF);
  padding: 50px 0;
  border-bottom: 1px solid var(--border, #D6E2FF);
}
.page-intro p {
  font-size: 1.05rem;
  color: var(--text-muted, #5A6480);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.page-intro .btn-cta {
  background: var(--blue-primary, #20243F);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.page-intro .btn-cta:hover {
  background: var(--blue-dark, #161929);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(32, 36, 63, 0.25);
}
.page-intro .btn-outline-blue {
  background: transparent;
  color: var(--blue-primary, #20243F);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--blue-primary, #20243F);
  font-size: 0.9rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.page-intro .btn-outline-blue:hover { background: var(--blue-light, #E8F0FF); }

.page-intro .hero-badge-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--blue-light, #E8F0FF);
  color: var(--blue-primary, #20243F);
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 50px;
  margin-bottom: 1rem;
}

@media (max-width: 575px) {
  .tm-hero-home__cols { grid-template-columns: 1fr; }
  .tm-hero-col { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .tm-hero-col:last-child { border-bottom: none; }
  .home-intro-stats { flex-wrap: wrap; gap: 1rem; }
  .home-intro-stats .stat-divider { display: none; }
}
