:root {
  --brand-blue: #002a3a;
  --brand-orange: #e56910;
  --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 */
}
/* ---------------- 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-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));
}

.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;
}

.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 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-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: 4.5rem 0 3.5rem;
  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: 65vh;
  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;
}

.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);
}

.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);
}

/* prevent text/image selection while dragging */
.brand-carousel,
.brand-carousel * {
  user-select: none;
  -webkit-user-drag: none;
}

.brand-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  cursor: grab;
  padding-bottom: 0.2rem;
  background: #fefefe;
}

/* fade edges */
.brand-carousel::before,
.brand-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}

.brand-carousel::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(254, 254, 254, 1) 0%,
    rgba(254, 254, 254, 0.9) 60%,
    rgba(254, 254, 254, 0) 100%
  );
}

.brand-carousel::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(254, 254, 254, 1) 0%,
    rgba(254, 254, 254, 0.9) 60%,
    rgba(254, 254, 254, 0) 100%
  );
}

/* hide scrollbar */
.brand-carousel::-webkit-scrollbar {
  display: none;
}
.brand-carousel {
  scrollbar-width: none;
}

.brand-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.3rem 0;
}

.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);
}

.brand-carousel.is-dragging {
  cursor: grabbing;
}

/* ---------------- 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;
}

/* ---------------- Footer ---------------- */

.site-footer {
  padding: 2.5rem 0 1.8rem;
  background: #f5f5f5;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 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;
}

.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-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) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .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)
    );
  }

  .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;
  }
}
.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; }
