/* ============================================================
   TENEO Category page (Home Care / Personal Care / Food & Beverage)
   Shared layout. Classes are prefixed "tc-".
   Breakpoints are declared once each at the bottom.
   ============================================================ */

.teneo-category {
  background: #fff;
  color: #1a1a1a;
}

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

/* ---------- Header ---------- */
/* On the top (non-sticky) header these white-hero pages show the black lottie
   logo, because the default white lottie is invisible on a white background.
   The sticky #header is left untouched so it shows the same default burst
   logo as every other page. */
.teneo-light .header:not(#header) .logo .logo-white,
.teneo-light .header:not(#header) .logo .logo-img {
  display: none;
}

.teneo-light .header:not(#header) .logo .teneo-header-logo-black {
  display: block;
}

/* Drop the global 5px top padding on the MAIN header for these pages only
   (:not(#header) so the sticky header keeps its own padding, matching the landing page). */
.teneo-light .header:not(#header) {
  padding-top: 24px;
}

/* menu / search styling */
.teneo-light .menu-opener:before,
.teneo-light .menu-opener:after {
  background: #080808;
}

.menu-active .teneo-light .menu-opener:before,
.menu-active .teneo-light .menu-opener:after {
  background: #fff;
}

/* The "Menu" text that appears on hover: dark on the white product pages so it stays visible */
.teneo-light .menu-opener span {
  color: #080808;
}

.teneo-light .teneo-search-btn {
  color: #111;
  border-color: #111;
}

.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;
  /* White hero at the top, so the default button is black outlined */
  color: #000000;
  background: transparent;
  border: 1px solid #000000;
  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;
}

/* ---------- Hero (image left, text right) ---------- */
.tc-hero {
  display: flex;
  align-items: stretch;
  background: #fff;
}

.tc-hero-image {
  flex: 0 0 50%;
  max-width: 50%;
}

.tc-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 11;
}

.tc-hero-text {
  flex: 1;
  padding: 0px 0px 0% 3%;
  align-self: center;
}

.tc-title {
  font-family: "Acumin-Variable-Concept", "Arial", "Helvetica", sans-serif;
  font-size: clamp(32px, 10vw, 80px);
  font-weight: 800;
  margin: 0 0 20px;
  color: #111;
  max-width: 300px;
}

.tc-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  max-width: 480px;
}

.tc-intro p {
  margin: 0 0 14px;
  font-size: 16px;
  color: #000000;
}

/* ---------- Usages ---------- */
.tc-usages {
  background-color: #000;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 90px 0;
  position: relative;
}
section.tc-usages.personal-care-usages {
  top: -3.81vw;
}
.tc-col-banner img {
  width: 60%;
  margin: 0 auto;
  padding: 30px 15px 15px 15px;
}
/* Backgrounds come from ACF via inline CSS vars (with a page default fallback) */
.tc-usages {
  background-image: var(--tc-halfbg);
}

.tc-tab-input:checked ~ .tc-usages {
  background-image: var(--tc-fullbg);
}

.tc-section-title {
  font-family: "Acumin-Variable-Concept", "Arial", "Helvetica", sans-serif;
  font-size: clamp(32px, 10vw, 80px);
  font-weight: 800;
  margin: 0 0 18px;
  color: #fff;
}

.tc-usages-head {
  max-width: 820px;
  margin: 25px auto 50px;
}

.tc-usages-head p {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
}

.tc-usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Hidden radios drive the CSS-only tabs; fixed keeps them in view (no scroll jump) */
.tc-tab-input {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tc-usage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 0 0 230px;
  width: 230px;
  height: 150px;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  color: #1a1a1a;
  transition:
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

/* Blue glow on hover (same look as the active card) */
.tc-usage-card:hover {
  box-shadow:
    0 0 0 2px #2e6cf6,
    0 16px 45px rgba(46, 108, 246, 0.45);
}

.tc-usage-icon {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-usage-icon img {
  max-height: 54px;
  width: auto;
}

.tc-usage-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

/* Dim non-selected cards once a tab is open */
.tc-tab-input:checked ~ .tc-usages .tc-usage-card {
  opacity: 0.45;
  box-shadow: none;
}

#tc-tab-0:checked ~ .tc-usages .tc-usage-card--0,
#tc-tab-1:checked ~ .tc-usages .tc-usage-card--1,
#tc-tab-2:checked ~ .tc-usages .tc-usage-card--2 {
  opacity: 1;
  background: #fff;
  box-shadow:
    0 0 0 2px #2e6cf6,
    0 16px 45px rgba(46, 108, 246, 0.45);
}

/* ---------- Panels (revealed by the active tab) ---------- */
.tc-panels {
  margin-top: 70px;
}

.tc-panel {
  display: none;
}

#tc-tab-0:checked ~ .tc-usages .tc-panel--0,
#tc-tab-1:checked ~ .tc-usages .tc-panel--1,
#tc-tab-2:checked ~ .tc-usages .tc-panel--2 {
  display: block;
}

.tc-panel-title {
  font-family: "Acumin-Variable-Concept", "Arial", "Helvetica", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.tc-panel-desc {
  margin: 0 auto 40px;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  color: #ffffff;
  max-width: 643px;
}

/* Three product columns — each sizes to its own content (not equal height) */
.tc-cols {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 790px;
  margin: 0 auto;
}
/* First tab (Injection Molding) only: columns stretch to equal height.
   Other tabs keep flex-start so each column sizes to its own content. */
.tc-panel--0 .tc-cols {
  align-items: stretch;
}

.tc-col-banner {
  text-align: center;
}
.tc-col {
  position: relative;
  z-index: 0;
  flex: 1 1 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  color: #1a1a1a;
  --c: #2f8a1e;
  transition: color 0.3s ease;
}

/* The coloured fill lives on a ::before overlay whose opacity fades in/out, so it
   transitions smoothly both ways (a solid → gradient background can't be animated). */
.tc-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tc-col:hover::before {
  opacity: 1;
}

/* FA column: white by default (teal text + icons), dark-teal fill on hover */
.tc-col--fa {
  --c: #009aaf;
  border: 1px solid rgba(10, 130, 150, 0.4);
}
.tc-col--fa::before {
  background:
    radial-gradient(
      circle at top left,
      rgba(1, 94, 107, 0.95),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(1, 94, 107, 0.85),
      transparent 55%
    ),
    #021f24;
}
.tc-col--fa:hover {
  --c: #ffffff;
  color: #fff;
}

/* SS column: white by default (green text/icons), dark-green fill on hover */
.tc-col--ss {
  --c: #2f8a1e;
  border: 1px solid rgba(47, 138, 30, 0.4);
}
.tc-col--ss::before {
  background:
    radial-gradient(
      circle at top left,
      rgba(53, 90, 10, 0.95),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(53, 90, 10, 0.85),
      transparent 55%
    ),
    #0e2205;
}
.tc-col--ss:hover {
  --c: #ffffff;
  color: #fff;
}

/* CE column: white by default (purple text/icons), dark-purple fill on hover */
.tc-col--ce {
  --c: #4b00dd;
  border: 1px solid rgba(75, 0, 221, 0.35);
}
.tc-col--ce::before {
  background:
    radial-gradient(
      circle at top left,
      rgba(60, 10, 140, 0.95),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(60, 10, 140, 0.85),
      transparent 55%
    ),
    #17042e;
}
.tc-col--ce:hover {
  --c: #ffffff;
  color: #fff;
}

/* Title + sheet icons transition on hover-out too, so nothing jerks */
.tc-col-title {
  transition: color 0.3s ease;
}
.tc-col:hover .tc-col-title {
  color: #fff;
}
.tc-sheet-icon img {
  transition: filter 0.3s ease;
}
.tc-col:hover .tc-sheet-icon img {
  filter: brightness(0) invert(1);
}

/* Column banner logos: a dark "default" logo on the white card, swapped for a white
   "hover" logo when the card fills with colour. Both come from separate image files
   (ACF-editable), so no CSS colour filter is used. */
.tc-col-banner {
  position: relative;
}
.tc-col-logo {
  transition: opacity 0.3s ease;
}
.tc-col-logo--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.tc-col:hover .tc-col-logo--default {
  opacity: 0;
}
.tc-col:hover .tc-col-logo--hover {
  opacity: 1;
}

.tc-col-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  padding-top: 10px;
}

.tc-sheet-list {
  list-style: none;
  padding: 0 12px 16px;
  /* Block is centered in the column, but rows stay left-aligned so all
     icons line up vertically and all labels start at the same point. */
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.tc-sheet {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--c);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.3s ease;
}

/* Keep each column's own colour on hover (overriding main.css a:hover{color:#000})
   and show the link affordance as an underline instead of a black text swap. */
.tc-col .tc-sheet:hover,
.tc-col .tc-sheet:focus {
  background: rgba(0, 0, 0, 0.04);
  color: var(--c);
  text-decoration: underline;
}

/* Highlight applied when arriving from the Teneo search "By Category" deep link */
.tc-col .tc-sheet--highlight {
  background: rgba(0, 0, 0, 0.06);
  outline: 2px solid var(--c);
  border-radius: 8px;
  font-weight: 800;
}
.tc-col--fa .tc-sheet--highlight {
  background: rgba(255, 255, 255, 0.12);
}
span.tc-sheet-label {
  margin-top: 6px;
}
.tc-sheet-icon {
  flex: 0 0 auto;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-sheet-icon img {
  max-width: 35px;
  max-height: 30px;
  width: auto;
  height: auto;
}
section.tc-usages.home-care-usages {
  top: calc(-2.5vw - 1.5px);
}
/* ---------- Additional Categories ---------- */
.tc-additional {
  background: #fff;
  text-align: center;
  padding: 70px 0 75px;
}

.tc-section-title--dark {
  color: #111;
  margin-bottom: 50px;
}

.tc-additional-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.tc-additional-list li {
  width: 320px;
  max-width: 100%;
}

.tc-additional-card {
  text-align: left;
}

.tc-additional-media {
  display: block;
  overflow: hidden;
  margin-bottom: 16px;
}

.tc-additional-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.tc-additional-title {
  font-size: clamp(20px, 6.25vw, 30px) !important;
  font-weight: 800;
  margin: 0 0 8px;
  color: #111;
}

.tc-additional-text {
  font-size: 13px;
  line-height: 1.5;
  color: #777;
  margin: 0 0 12px;
}

/* Learn More CTA (site-standard .btn-primary), centred inside the Usages section,
   just below the usage boxes / expanded panel. */
.tc-cta {
  text-align: center;
}
.tc-cta .btn-primary {
  display: inline-block;
}

/* Only when a usage tab is open (full-cover panel shown): add extra top spacing */
.tc-tab-input:checked ~ .tc-usages .tc-cta {
  margin-top: 75px;
}

/* Site-standard purple gradient button */
.tc-additional-link {
  position: relative;
  display: inline-block;
  padding: 10px 26px;
  border-radius: 30px;
  /* Solid black base; the gradient sits on ::before and fades out on hover */
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
}

.tc-additional-link:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #4f51a7 0%, #e729c4 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: -1;
}
a.tc-additional-link span {
  position: relative;
  top: 2px;
}
/* Hover: fade the gradient overlay out to reveal solid black (like the Altria "Learn More" button) */
/* Keep the label white in every state (overriding the global a:active/a:focus{color:#000}) */
.tc-additional-link,
.tc-additional-link:hover,
.tc-additional-link:focus,
.tc-additional-link:active {
  color: #fff;
  text-decoration: none;
}
.tc-additional-link:hover:before {
  opacity: 0;
}
section.tc-additional.home-care-additional {
  padding-top: 25px;
}

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

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .tc-hero-text {
    padding: 80px 0px 0% 3%;
  }

  .tc-title {
    font-size: clamp(32px, 10vw, 51px);
  }
}

/* Tablet */
@media screen and (max-width: 991px) {
  .tc-hero {
    flex-direction: column;
  }

  .tc-hero-image {
    flex-basis: auto;
    max-width: 100%;
  }

  .tc-hero-text {
    padding: 40px 20px;
  }

  .tc-title,
  .tc-section-title {
    font-size: 32px;
  }

  .tc-cols {
    flex-wrap: wrap;
  }

  .tc-col {
    flex: 0 0 calc(50% - 12px);
  }
  .tc-title {
    max-width: unset;
    text-align: center;
  }
  .tc-usages {
    top: unset;
  }
}

/* Phones */
@media screen and (max-width: 600px) {
  .tc-usages {
    padding: 60px 0;
  }

  .tc-usage-card {
    flex: 0 0 260px;
    width: 260px;
    max-width: 100%;
    height: 150px;
  }

  .tc-panel-title {
    font-size: 26px;
  }

  .tc-col {
    flex: 0 0 100%;
  }

  .tc-additional {
    padding: 50px 0 70px;
  }
  .tc-title {
    max-width: unset;
    text-align: center;
  }
  .tc-usages {
    top: unset;
  }
  .tc-intro p {
    text-align: center;
  }
  .tc-cta {
    padding: 0px 0 25px;
  }
}

/* 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 .btn-secondary.header-btn.teneo-search-btn {
    right: 90px !important;
  }
}
span.download-text {
  margin-top: 4px;
}
