@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&display=swap');

/* ============================================================
   TENEO Landing page styles
   ============================================================ */

.teneo-page {
  background: #000;
  color: #fff;
}

/* Headings use the site's Acumin Concept font */
.teneo-hero-title,
.teneo-eyebrow,
.teneo-heading-main,
.teneo-card-title {
  font-family: "Acumin-Variable-Concept", "Arial", "Helvetica", sans-serif;
}

/* The Search Teneo button reuses .menu-opener for its click behaviour,
   so suppress the hamburger bars it would otherwise inherit. */
.teneo-search-btn:before,
.teneo-search-btn:after {
  display: none !important;
}

/* home.css hides .btn-secondary.header-btn globally; re-show the Teneo search button
   beside the menu, in only one header at a time (main header at top, sticky #header on scroll). */
.header:not(#header) .btn-secondary.header-btn.teneo-search-btn {
  display: inline-block !important;
  position: absolute;
  right: 58px;
  top: 14px;
  margin: 0;
  z-index: 21;
  width: unset !important;
  min-width: unset !important;
  height: unset !important;
  padding: 10px 12px !important;
  /* Landing hero is dark, so the default button is white outlined */
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  font-size: 12px !important;
}

/* Compact outlined style once the sticky #header slides in on scroll */
#header.shrink .btn-secondary.header-btn.teneo-search-btn {
  display: inline-block !important;
  position: absolute;
  right: 58px;
  top: -5px;
  margin: 0;
  z-index: 21;
  width: unset !important;
  min-width: unset !important;
  height: unset !important;
  padding: 10px 12px !important;
  color: #000000;
  background: transparent;
  border: 1px solid #000000;
  font-size: 12px !important;
}

/* Keep the search button + hamburger on one line with the logo at every width.
   Both are centred inside .header .container (position:relative), whose height tracks
   the logo — so they always line up with it. margin-top centres the hamburger without
   touching its transform (that drives the open/close X animation). */
.header:not(#header) .btn-secondary.header-btn.teneo-search-btn {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.header:not(#header) .menu-opener {
  top: 40% !important;
  margin-top: -14px !important;
}
/* When the menu is open, drop the hamburger/X to 22% so it lines up with the open
   menu's search bar (closed it stays at 40%, in line with the Search Teneo button). */
.menu-active .header:not(#header) .menu-opener {
  top: 22% !important;
}

/* Search Teneo button: site purple/pink gradient (main + sticky header) */
.header:not(#header) .btn-secondary.header-btn.teneo-search-btn,
#header.shrink .btn-secondary.header-btn.teneo-search-btn {
  background: linear-gradient(135deg, #4f51a7 0%, #e729c4 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.teneo-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- Hero ---------- */
.teneo-hero {
  padding: 120px 0 60px;
  text-align: center;
}

.teneo-hero-title {
  font-size: 180px;
  line-height: 1;
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
  color: #fff;
  /* Soft glow to echo the lit-sign look of the final design */
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.85),
    0 0 40px rgba(120, 200, 255, 0.55),
    0 0 90px rgba(120, 160, 255, 0.35);
}

/* Hero uses the glowing Teneo logo image instead of text */
.teneo-hero-title--img {
  text-shadow: none;
  line-height: 0;
}
.teneo-hero-title--img img {
  display: block;
  margin: 0 auto;
  width: min(760px, 85%);
  height: auto;
  margin-top: 70px;
}

/* Full-width hero video: spans the entire viewport width, no side padding */
.teneo-hero--video {
  padding: 0;
}

.teneo-hero-video {
  width: 100%;
}

.teneo-hero-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Explore sections ---------- */
.teneo-explore {
  padding: 40px 0 120px;
}

.teneo-explore-grid {
  display: flex;
  gap: 56px;
  justify-content: center;
  margin: 0 auto;
}

/* Both columns share the same fixed width so they stay equal, like the reference */
.teneo-col {
  flex: 0 0 440px;
  width: 440px;
  max-width: 100%;
  /* column stretches to the tallest column so its rows can be equalised below */
  display: flex;
  flex-direction: column;
}

.teneo-col-heading {
  text-align: center;
  margin: 0 0 28px;
  font-weight: 200;
}

.teneo-eyebrow,
.teneo-heading-main {
  display: block;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #fff;
}

.teneo-eyebrow {
  font-size: 22px;
  margin-bottom: 6px;
}

.teneo-heading-main {
  font-size: 22px;
}

.teneo-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* equal-height rows in both columns, so card bottoms line up across the grid */
  flex: 1;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 22px;
}

.teneo-card-list li {
  display: flex;
}

.teneo-card-list li > .teneo-card {
  flex: 1;
}

/* ---------- Card (shared) ---------- */
.teneo-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  min-height: 160px;
  box-sizing: border-box;
  border: 1px solid #7c7c7c;
  border-radius: 14px;
  overflow: hidden;
  background: #050505;
  text-decoration: none;
  color: #fff;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* text area padding (image/badge stay flush/inset separately) */
.teneo-card-body {
  padding: 18px 24px;
}

/* product (badge) card keeps an inset badge with a gap */
.teneo-card--product {
  padding-left: 50px;
  display: flex;
  gap: 40px;
}

.teneo-card--product .teneo-card-body {
  padding-left: 18px;
}

/* No lift on hover (Altria has none): a translate would shift the card but not the
   spotlight clone, offsetting the gradient ring from the border = double line.
   The base border stays visible on hover (like Altria); the gradient ring aligns
   exactly on top of it near the cursor, so there's no double line. */

/* ============================================================
   Altria-style spotlight: a masked overlay of cloned cards,
   revealed with a colour glow (border + faint fill) that
   follows the cursor. Clones are positioned/sized by JS.
   ============================================================ */
.teneo-explore .container {
  position: relative;
}

.teneo-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--opacity, 0);
  -webkit-mask: radial-gradient(
    18rem 18rem at var(--x) var(--y),
    #000 1%,
    transparent 55%
  );
  mask: radial-gradient(
    18rem 18rem at var(--x) var(--y),
    #000 1%,
    transparent 55%
  );
  transition: opacity 0.4s ease;
  z-index: 6;
}

.tsl-card {
  position: absolute;
  border-radius: 14px;
  background: var(--tsl-fill);
  box-sizing: border-box;
}
/* Gradient border on the clone (masked ring) */
.tsl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--tsl-grad);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.teneo-card-title {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.teneo-card-sub {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  color: #e2e1e1;
  margin-top: 6px;
  max-width: 175px;
}

/* End-application card: photo flush to the card's left/top/bottom edges (no gap) */
.teneo-card--image .teneo-card-media {
  align-self: stretch;
  flex: 0 0 50%;
  width: 50%;
  border-radius: 0;
  overflow: hidden;
}

.teneo-card--image .teneo-card-body {
  flex: 1 1 50%;
  min-width: 0;
}

.teneo-card--image .teneo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product card: badge image on the left */
.teneo-badge {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--teneo-badge-bg);
  /* 1px ring of the same colour hides the anti-aliased edge against the dark card */
  box-shadow: 0 0 0 1px var(--teneo-badge-bg);
}

.teneo-badge-code {
  font-family: "Roboto Condensed", "Arial Narrow", "Arial", sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #fff;
}

/* ============================================================
   Responsive — each breakpoint declared once
   ============================================================ */

/* Tablet and below: stack the two columns */
@media screen and (max-width: 991px) {
  .teneo-hero-title {
    font-size: 110px;
  }

  .teneo-explore-grid {
    flex-direction: column;
    align-items: center;
    gap: 56px;
  }

  .teneo-col {
    flex-basis: auto;
    width: 100%;
    max-width: 460px;
  }
}

/* Phones */
@media screen and (max-width: 600px) {
  .teneo-hero {
    padding: 80px 0 40px;
  }

  .teneo-hero-title {
    font-size: 64px;
  }

  .teneo-eyebrow {
    font-size: 13px;
    letter-spacing: 4px;
  }

  .teneo-heading-main {
    font-size: 18px;
    letter-spacing: 4px;
  }

  .teneo-card-body {
    padding: 14px 18px;
  }

  .teneo-card--image .teneo-card-media {
    flex-basis: 50%;
    width: 50%;
  }

  .teneo-card-title {
    font-size: 17px;
  }

  .teneo-badge {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
  .teneo-badge-code {
    font-size: 26px;
  }
}

/* Mobile only (Teneo pages): shrink header logo, compact the search button, nudge the menu opener.
   These rules live in the Teneo stylesheets, which load only on Teneo pages, so they never affect other pages. */
@media screen and (max-width: 767px) {
  .header:not(#header) .logo img,
  .header:not(#header) .logo lottie-player {
    width: 55% !important;
  }

  .header:not(#header) .btn-secondary.header-btn.teneo-search-btn {
    padding: 6px 7px !important;
    font-size: 8px !important;
  }

  .menu-opener {
    right: 20px;
  }
}

/* Exactly 768px only: push the search button further from the right edge. */
@media screen and (min-width: 768px) and (max-width: 768px) {
  .header:not(#header) .btn-secondary.header-btn.teneo-search-btn {
    right: 85px !important;
  }
}
