:root {
  --brand-blue: #002a3a;
  --brand-orange: #e56910;
  --recycling-green: #15803d;
  --recycling-green-soft: #ecfdf3;
  --bg-page: #fefefe;
  --bg-alt: #eeeeee;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --radius: 14px;
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --max-width: 1100px;
  --transition: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "TT Commons Pro", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}
/* Extra offset on the blog page so the H1 clears the fixed header */
.main--blog {
  padding-top: 60px; /* tweak to taste: 110–130px */
}
.main--service {
  padding-top: 32px;
}
/* ---------------- Layout ---------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 1.8rem;
  font-size: 1.85rem;
  color: var(--brand-blue);
}

.section-title--recycling {
  color: var(--recycling-green);
}

.section-intro {
  margin: 0 0 1.8rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Services grid with half-diamond background image */
.services-grid {
  position: relative;
  overflow: hidden; /* trim the diamond so only half shows */
}

.services-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -210px; /* push half the shape outside so only half is visible */
  width: 420px;
  height: 420px;
  background: url("/assets/images/vending-machine.jpg") center/cover no-repeat;
  transform: translateY(-50%) rotate(45deg); /* diamond silhouette */
  opacity: 0.28;
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.services-grid > * {
  position: relative;
  z-index: 1; /* keep cards and text above the background shape */
}

/* TES Vending tile with local half-diamond background */
.services-card--vending {
  position: relative;
  overflow: hidden;
}

.services-card--vending::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -40%;
  width: 260px;
  height: 260px;
  background: url("/assets/images/vending-machine.jpg") center/cover no-repeat;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.35;
  filter: saturate(0.95) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.services-card--vending h3,
.services-card--vending p {
  position: relative;
  z-index: 1; /* keep text above the background shape */
}

/* Delivery tile with matching half-diamond background */
.services-card--delivery {
  position: relative;
  overflow: hidden;
}

.services-card--delivery::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -35%;
  width: 260px;
  height: 260px;
  background: url("/assets/images/tes-van.jpg") center/cover no-repeat;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.35;
  filter: saturate(0.95) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.services-card--delivery h3,
.services-card--delivery p {
  position: relative;
  z-index: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.highlight-box {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.4rem 1.6rem;
}

/* About timeline */

.timeline {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  position: relative; /* for fade overlay */
}

.timeline-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* scrolling frame for milestones */
.timeline-scroller {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* right-hand fade hint to show there is more content */
.timeline::after {
  content: "";
  position: absolute;
  top: 2.2rem; /* align roughly with timeline content */
  right: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  background: linear-gradient(
    to left,
    rgba(254, 254, 254, 1) 0%,
    rgba(254, 254, 254, 0.85) 50%,
    rgba(254, 254, 254, 0) 100%
  );
  opacity: 1;
  transition: opacity 0.18s ease-out;
}

.timeline.timeline--at-end::after {
  opacity: 0;
}

/* prevent text selection while dragging */
.timeline-scroller,
.timeline-scroller * {
  user-select: none;
  -webkit-user-drag: none;
}

/* hide scrollbar for the timeline scroller */
.timeline-scroller::-webkit-scrollbar {
  display: none;
}

.timeline-scroller {
  scrollbar-width: none; /* Firefox */
}

.timeline-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 2.4rem 0 0.75rem;
  display: flex;
  gap: 2.5rem;
  justify-content: flex-start;
  min-width: max-content; /* allow more items than viewport width */
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3.1rem; /* run just under the year labels */
  height: 2px;
  background: rgba(209, 213, 219, 0.9);
}

.timeline-item {
  position: relative;
  flex: 0 0 210px; /* consistent width for each milestone */
  text-align: center;
  padding: 0 0.75rem;
  scroll-snap-align: center;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.35rem; /* sit above the year label */
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(229, 105, 16, 0.12);
}

.timeline-year {
  font-weight: 600;
  color: var(--brand-blue);
  font-size: 1rem;
  margin: 1.2rem 0 0.6rem; /* leave room beneath the marker and above the line */
}

.timeline-content {
  max-width: 13rem;
  margin: 0.9rem auto 0;
}

.timeline-content h4 {
  margin: 0 0 0.1rem;
  font-size: 0.98rem;
  color: var(--text-main);
}

.timeline-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.map-container {
  margin-top: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
  height: 260px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;           /* always fixed to top */
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;             /* nothing in the hero can beat this */
  background: #fff;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-blue);
}


.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-line-1 {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-line-2 {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  align-items: center;
  line-height: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item--has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-caret {
  font-size: 0.6rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  display: inline;       /* behave like plain text */
  padding: 0;            /* no padding = no ghost click area */
  margin: 0;
  line-height: 1;
}
/* active nav link */
.nav a.nav-active {
  color: var(--brand-blue);
}

.nav a.nav-active::after {
  width: 100%;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--brand-blue);
}

.nav a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: absolute;
  top: 135%;
  left: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(209, 213, 219, 0.95);
  padding: 0.45rem 0.55rem;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 1000;
}

.nav-dropdown a {
  display: block;
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 6px;
}

.nav-dropdown a::after {
  display: none; /* no underline bar inside dropdown */
}

.nav-dropdown a:hover {
  background: #f3f4f6;
  color: var(--brand-blue);
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown.nav-dropdown-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  margin-left: 0.75rem;
  background: transparent;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  font-size: 1.1rem;
  color: var(--brand-blue);
}

/* ---------------- Hero (video) ---------------- */

.hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(0, 42, 58, 0.85),
      rgba(0, 42, 58, 0.7),
      rgba(0, 42, 58, 0.55)
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 50%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  min-height: 50vh;
  padding-block: 1rem;
  color: #fefefe;
}

.hero--video .hero-text h1 {
  color: #ffffff;
}

.hero--video .hero-body,
.hero--video .hero-meta {
  color: #e5e7eb;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #ffedd5;
  margin-bottom: 0.7rem;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 3vw, 2.9rem);
}

.hero-body {
  max-width: 36rem;
}

/* Recycling-specific accents */

.eyebrow--recycling {
  color: var(--recycling-green);
  font-weight: 600;
}

.recycling-highlight {
  border-left: 4px solid var(--recycling-green);
}

.recycling-grid .card h3 {
  color: var(--recycling-green);
}

.recycling-steps {
  align-items: stretch;
}

.recycling-step {
  position: relative;
}

.recycling-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: var(--recycling-green-soft);
  color: var(--recycling-green);
  font-size: 0.9rem;
  font-weight: 600;
}

.recycling-cta {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ecfdf3, #f5f5f5);
  padding: 1.75rem 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0 0.6rem;
}

.hero-meta {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* Right-hand card */

.hero-panel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-panel-inner {
  background: rgba(254, 254, 254, 0.98);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(209, 213, 219, 0.95);
  padding: 1.8rem 2rem;
  max-width: 380px;
}

.hero-panel-inner h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--brand-blue);
}

.hero-panel-inner p,
.hero-panel-inner li {
  color: var(--text-main);
}

.hero-panel-inner ul {
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition),
    color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(229, 105, 16, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(229, 105, 16, 0.4);
}

/* Recycling-specific primary button variant */
.btn-primary--recycling {
  background: var(--recycling-green);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.35);
}

.btn-primary--recycling:hover {
  background: #166534;
  box-shadow: 0 14px 30px rgba(22, 101, 52, 0.45);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--brand-blue);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
}

.btn-outline {
  border-color: var(--border);
  color: var(--brand-blue);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.btn-full {
  width: 100%;
}

/* ---------------- Cards / lists / links ---------------- */

.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.4rem 1.5rem;
}

.card-compact {
  box-shadow: none;
}

.list {
  padding-left: 1.1rem;
  margin: 1rem 0;
  color: var(--text-main);
}

.list li {
  margin-bottom: 0.4rem;
}

.link-inline {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

.link-inline:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}
/* Blog cards */

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0; /* image edge-to-edge */
  overflow: hidden;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.3rem 1.4rem 1.4rem;
}

.blog-card-date {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.blog-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--brand-blue);
}

.blog-card-excerpt {
  margin: 0 0 0.6rem;
  color: var(--text-main);
}
.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-link:hover .blog-card-title {
  color: var(--brand-orange);
}
.blog-post {
  margin-top: 1.5rem;
}
.blog-post-body {
  max-width: 780px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
}
.blog-post-body p {
  margin: 0 0 1rem;
}
.blog-post-hero img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.blog-post-header {
  margin-bottom: 1.4rem;
}

.blog-post-title {
  margin: 0 0 0.6rem;
}

.blog-post-body p {
  margin: 0 0 0.9rem;
  color: var(--text-main);
}

.blog-post-tags {
  margin-top: 0.2rem;
}
.blog-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.blog-tags span {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--text-muted);
}
/* ---------------- Brands carousel ---------------- */

.section-brands {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brand-carousel {
  position: relative;
  overflow: hidden;           /* mask overflow for marquee effect */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  background: #fefefe;
}

/* previously had gradient fade edges; removed for a cleaner look */

/* hide scrollbar */
.brand-carousel::-webkit-scrollbar {
  display: none;
}
.brand-carousel {
  scrollbar-width: none;
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.3rem 0;
  animation: brand-marquee 10s linear infinite;
}

.brand-logo {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}

.brand-logo img {
  max-height: 40px;
  max-width: 140px;
  opacity: 1;
  transform: translateY(0);
  transition: transform var(--transition);
}

.brand-logo img:hover {
  transform: translateY(-2px);
}

/* pause marquee on hover */
.brand-carousel:hover .brand-track {
  animation-play-state: paused;
}

@keyframes brand-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------------- CTA strip ---------------- */

.section-cta {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.cta-inner h2 {
  margin: 0 0 0.4rem;
  color: var(--brand-blue);
}

.cta-inner p {
  margin: 0;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-news-cta {
  margin-top: 1.8rem;
  text-align: center;
}

/* Certification cards */

.cert-card-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100px;
  padding: 4px;
  margin: 0 0 0.75rem;
  object-fit: contain;
}

/* ---------------- Footer ---------------- */

.site-footer {
  padding: 1.8rem 0 1.4rem;
  background: #f5f5f5;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr);
  gap: 1.2rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-heading,
.footer-certs-heading {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.footer-contact p {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: start;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.contact-details {
  margin: 0.8rem 0 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-details p {
  margin: 0 0 0.15rem;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.footer-certs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-cert-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  align-items: center;
}

.footer-cert-logos img {
  height: 60px;
  width: auto;
  display: block;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* ---------------- Contact form ---------------- */

.contact-form {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.5rem 1.6rem;
  width: 100%;
  max-width: 420px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 1px;
  border-color: var(--brand-orange);
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: #ffffff;
  color: var(--text-main);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast--success {
  border-color: #15803d;
}

.toast--error {
  border-color: #b91c1c;
}

/* ---------------- B2B platform flyover hero ---------------- */

.b2b-hero {
  position: relative;
  overflow: hidden;
  background: #f5f6f8;
}

/* canvas wires background */
.b2b-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#b2b-network {
  width: 100%;
  height: 100%;
  display: block;
}

/* keep content above background */
.b2b-hero .container {
  position: relative;
  z-index: 1;
}

.b2b-hero .split {
  align-items: center;
  gap: 3rem;
}

/* glass panel text box */
.b2b-hero-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 2.25rem 2.5rem;
  border-radius: 20px;
}

.b2b-hero-text::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.b2b-hero-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.b2b-hero-list li + li {
  margin-top: 0.3rem;
}

/* screenshot card as background prop */
.b2b-hero-scene {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.b2b-hero-glow {
  position: absolute;
  right: 4%;
  bottom: 18%;
  width: 320px;
  height: 120px;
  transform: translateY(50%);
  background: radial-gradient(
    ellipse at center,
    rgba(15, 23, 42, 0.45),
    transparent 65%
  );
  filter: blur(22px);
  opacity: 0.9;
  pointer-events: none;
}

.b2b-hero-plane {
  width: 520px;
  max-width: 55vw;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.55);
  transform-origin: center;
  transform: rotate(-13deg);
  animation: b2bFloat 14s ease-in-out infinite alternate;
}

.b2b-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes b2bFloat {
  0% {
    transform: rotate(-13deg) translateY(4px) scale(1);
  }
  50% {
    transform: rotate(-10deg) translateY(-4px) scale(1.03);
  }
  100% {
    transform: rotate(-8deg) translateY(-10px) scale(1.05);
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .cta-inner,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-cert-logos img {
    height: 46px;
  }
}

@media (max-width: 768px) {
  /* Full-height slide-in mobile menu */
  .nav {
    display: none;
    position: fixed;
    top: 64px; /* just below the header */
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.75rem 2rem;
    background: #ffffff;
    gap: 1rem;
    overflow-y: auto;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  body.nav-open .nav {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  body.nav-open .nav-toggle {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: transparent;
  }

  .header-inner {
    padding-inline: 1rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 42, 58, 0.85),
      rgba(0, 42, 58, 0.7)
    );
  }

  .nav-item {
    width: 100%;
  }

  .nav a {
    font-size: 1.05rem;
    padding: 0.25rem 0;
  }

  .nav a::after {
    display: none; /* remove hover underline on mobile panel */
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.3rem 0.75rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-width: 0;
  }

  .nav-dropdown a {
    white-space: normal;
    font-size: 0.95rem;
    padding: 0.2rem 0;
  }

  .brand-track {
    gap: 1.6rem;
  }

  .brand-logo img {
    max-height: 32px;
    max-width: 110px;
  }

  .b2b-hero .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .b2b-hero-text {
    padding: 1.75rem 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }

  .b2b-hero-scene {
    position: static;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .b2b-hero-plane {
    width: min(100%, 420px);
    max-width: 100%;
    transform: rotate(-8deg);
  }

  .b2b-hero-glow {
    display: none;
  }
}
/* Dimmed backdrop when mobile nav is open */
@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9998; /* just under the fixed header */
  }
}
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(150%);
  background: #0f172a;         /* change to TES orange if you like */
  color: #f9fafb;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reduced motion: show hero poster instead of video */

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-bg {
    background: url("/assets/images/hero-poster.jpg") center/cover no-repeat;
  }
}

/* Leave room for the fixed header when jumping to anchors */
section[id] {
  scroll-margin-top: 100px;  /* match or slightly exceed header height */
}
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
}

.share-btn {
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #0f172a;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.share-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.share-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Optional brand-ish colours */
.share-linkedin { background: #0a66c2; color: #fff; }
.share-linkedin:hover { background: #084c92; }

.share-x { background: #000; color: #fff; }

.share-facebook { background: #1877f2; color: #fff; }
.share-facebook:hover { background: #1259b6; }

.share-whatsapp { background: #25d366; color: #fff; }
.share-whatsapp:hover { background: #1ba450; }

.share-copy { background: #f97316; color: #fff; } /* TES orange-ish */
.share-copy:hover { background: #ea580c; }
