/* =========================================================
   index page styles.
   Loaded after styles/global.css on index.html only.
   ========================================================= */

.cards-wrapper {
  margin-left: var(--page-margin);
  margin-right: var(--page-margin);
  width: calc(100% - 2 * var(--page-margin));
  max-width: calc(100% - 2 * var(--page-margin));
}

/* Phones and tablets (keeps the mobile rule from global.css winning over the rule above) */
@media (max-width: 991px) {
  .cards-wrapper {
    margin-left: var(--page-margin);
    margin-right: var(--page-margin);
  }
}

/* Phones and tablets (keeps the mobile rule from global.css winning over the rule above) */
@media (max-width: 991px) {
  .cards-wrapper {
    margin-left: var(--page-margin);
    margin-right: var(--page-margin);
    width: calc(100% - 2 * var(--page-margin));
  }
}

@media (max-width: 991px) {
  .cards-wrapper {
    margin-left: var(--mobile-page-margin) !important;
    margin-right: var(--mobile-page-margin) !important;
    width: calc(100% - 2 * var(--mobile-page-margin)) !important;
  }
}

/* ===== SHADOW & STYLING UTILITIES ===== */
.shadow-nav::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
  z-index: 500;
  background: transparent;
  box-shadow: 0 -10px 50px 30px rgba(0, 0, 0, 0.6);
}

.tranlogo,
.shadow-nav {
  min-height: auto;
}

.trust-btn {
  margin-top: 20px;
  max-width: fit-content;
  white-space: nowrap;
  font-size: 1.3rem;
}

.carousel-inner {
  overflow: hidden;
}

/* ===== VIDEO CONTAINER ===== */
.video-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

@media (max-width: 991px) {
  .business-dots {
    display: none;
  }

  .text-start,
  .sector-sub {
    text-align: center !important;
  }

  .sector-sub {
    margin-left: 5px !important;
    margin-right: 5px !important;
  }

  .home-header {
    padding-top: 4rem !important;
  }

  .video-container {
    text-align: center;
  }

  .business-dots {
    right: var(--page-margin) !important;
  }

  .tranlogo {
    font-size: 1.5rem;
  }
}

@media (min-width: 1600px) {
  .video-container {
    transform: scale(1);
    transform-origin: left center;
  }
}

/* ============================================
   PAGE-SPECIFIC STYLES
   Global styles are in global.css
   ============================================ */
.card-box {
  position: relative;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.card-box:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-5px);
}

.card-box .btn {
  margin-bottom: 20px;
}

.cards-wrapper {
  margin-bottom: 50px;
}

.column {
  flex: 1;
  min-width: 280px;
}

.item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

/* Layout */
.wrapper {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.column {
  flex: 1;
  max-width: 600px;
}

.column h4 {
  color: var(--orange);
  margin-bottom: 30px;
}

/* Items */
.item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  transition: 0.3s;
}

.item:hover {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  /* Responsive */
  .wrapper {
    flex-direction: column;
  }
}

.item h3 {
  margin-bottom: 0px;
  margin-top: 10px;
  margin-left: 40px;
  margin-right: 40px;
}

.column:first-child {
  text-align: right;
}

.column:last-child {
  text-align: left;
}

/* Keep number + text aligned nicely */
.item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Flip layout for LEFT column */
.column:first-child .item {
  flex-direction: row-reverse;
}

.heading-home {
  z-index: 2;
}

.heading-home h3,
.heading-home h1:where(.home-headline) {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* full background video */
.header-video {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

.card-box {
  position: relative;
  min-height: 350px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* IMAGE layer */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* VIDEO layer */
.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* content above */
.card-box > *:not(.card-bg):not(.card-video) {
  position: relative;
  z-index: 2;
}

/* images */
.public-card .card-bg {
  background-image: url("../../images/public.png");
}

.private-card .card-bg {
  background-image: url("../../images/private.png");
}

/* hover effect */
.card-box:hover .card-bg {
  opacity: 0;
}

.card-box:hover .card-video {
  opacity: 1;
}

/* buttons */
.sector-btn {
  background-color: var(--blue);
  color: var(--orange);
  margin-top: 10px;
}

.sector-btn:hover {
  background-color: white;
  color: var(--orange);
}

.blue-bottom {
  background-color: rgba(0, 32, 92, 0.8);
  display: flex;
  justify-content: center;
  gap: 16px;
}

.card-video {
  pointer-events: none;
}

/* columns */
.column {
  width: 35%;
}

.item {
  transition: 0.25s ease;
  opacity: 0.4;
}

.item.active {
  opacity: 1;
  font-weight: 700;
  transform: scale(1.02);
}

.wrapper {
  position: relative;
}

/* central connection line */
.wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #cfd6e4;
  transform: translateX(-50%);
}

/* each item layout */
.item {
  position: relative;
  margin: 60px 0;
}

.wrapper {
  position: relative;
  display: flex;
}

/* centre line */
.wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cfd6e4;
  transform: translateX(-50%);
}

/* centre icon stack */
.center-icons {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* each icon slot */
.icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.2;
  transform: scale(0.8);
  transition: all 0.3s ease;
  width: 10px;
  height: auto;
}

.icon-row img {
  width: 90px;
  height: auto;
}

/* active icon */
.icon-row.active {
  opacity: 1;
  transform: scale(1.2);
}

.wrapper .item {
  position: relative;
}

.wrapper .item::after {
  content: "";
  position: absolute;
  top: 70%;
  left: 96%;
  width: 20%;
  height: 3px;
  background: #ff6a00;
  transform: translateY(-50%);
  z-index: 1;
}

.wrapper .item::before {
  content: "";
  position: absolute;
  top: 70%;
  left: calc(96% + 20%);
  transform: translate(-50%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #ff6a00;
  z-index: 2;
}

.column:last-child .item::after,
.column:last-child .item::before {
  display: none;
}

.item::after,
.item::before {
  opacity: 0.2;
  transition: 0.3s;
}

.item.active::after,
.item.active::before {
  opacity: 1;
}

/* ================= MOBILE APPROACH ================= */
.mobile-approach {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* card */
.step-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: 0.3s ease;
}

/* icon */
.step-card img {
  width: 50px;
  margin-bottom: 10px;
}

/* problem text */
.step-card h3 {
  font-size: 1rem;
  color: #00205c;
  margin-bottom: 10px;
}

/* divider */
.step-card .divider {
  height: 2px;
  width: 40px;
  margin: 10px auto;
  background: #ff8f00;
  border-radius: 2px;
}

/* solution */
.step-card p {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}

/* subtle interaction */
.step-card:active {
  transform: scale(0.98);
}

@media (max-width: 991px) {
  .sector-btn {
    width: fit-content;
    height: auto;
    margin-left: 0;
  }

  .mobile-pt0 {
    padding-top: 0 !important;
  }

  .card-box {
    min-height: 250px;
  }
}

@media (max-width: 1024px) {
  .icon-row img {
    width: 70px;
    height: auto;
  }

  .center-icons {
    position: absolute;
    left: 50%;
    top: 70px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
}

.capabilities-card {
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 60px 0px;
}

/* LIST RESET */
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* EACH ITEM */
.cap-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e6ef;
}

.cap-list li:last-child {
  border-bottom: none;
}

/* ICON */
.cap-list img {
  width: 70px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.capabilities-card li {
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  color: var(--blue);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* RIGHT IMAGE UNDERLAP */
.image-underlap {
  position: relative;
  z-index: 1;
  transform: translateX(-300px);
}

.business-dots {
  width: 170%;
  height: auto;
}

.sec-card {
  border-radius: 16px;
  padding-top: 15px;
  margin: 30px 0px;
  background: linear-gradient( 135deg, rgba(92, 125, 184, 0.1), rgba(92, 125, 184, 0.01) );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1599px) and (min-width: 992px) {
  .icon-row img {
    width: 85px;
    height: auto;
  }
}

@media (max-width: 1024px) {
  /* Cleanups */
  .shadow-nav::before {
    height: 0 !important;
  }

  .tranlogo,
  .shadow-nav {
    margin-top: 0 !important;
    min-height: auto;
  }
}

/* Define colours for site*/
:root {
  --bs-body-font-family: "Poppins", sans-serif;
  --orange: #ff8f00;
  --blue: #00205c;
  --light-orange: #ff8f0033;
  --light-blue-grad: linear-gradient( 135deg, rgba(92, 125, 184, 0.1), rgba(92, 125, 184, 0.01) );
  --side-left: clamp(80px, 10vw, 100px);
  --page-margin: 88px;
  --mobile-page-margin: 20px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (max-width: 1599px) and (min-width: 992px) {
  :root {
    --page-margin: 40px !important;
  }
}

@media (min-width: 1200px) {
  /* Monitor / Desktop */
  .award-image-card {
    padding: 3rem !important;
  }
}

@media (max-width: 991px) {
  .video-container {
    margin-top: 2rem;
  }

  .cards-wrapper {
    margin-left: var(--mobile-page-margin);
    margin-right: var(--mobile-page-margin);
    width: calc(100% - 2 * var(--mobile-page-margin));
    max-width: calc(100% - 2 * var(--mobile-page-margin));
  }

  .sec-card {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .capabilities-card {
    margin: 10px 0px;
  }

  .start {
    margin-top: 0rem !important;
  }

  .start-content {
    margin-top: 5rem !important;
  }
}

.logo-card a {
  display: block;
}

.logo-card img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-card a:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}

/* =========================================
   VIDEO SECTION
   ========================================= */
.video-container {
  position: relative;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}

/* =========================================
   WISTIA
   ========================================= */
#wistiaVideo {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

wistia-player {
  width: 100%;
  display: block;
  border-radius: 28px;
  overflow: hidden;
}

/* =========================================
   FALLBACK
   ========================================= */
.video-cookie-message {
  width: 100%;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  isolation: isolate;
}

/* subtle background glow */
.video-cookie-message::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient( circle at top right, rgba(255, 255, 255, 0.1), transparent 35% );
  z-index: -1;
}

.video-fallback-inner {
  max-width: 620px;
  text-align: center;
}

.video-icon-wrap img {
  width: 80px;
  height: auto;
}

.video-cookie-message h2 {
  color: white;
  font-size: 42px;
}

.video-divider {
  width: 90px;
  height: 4px;
  background: #f7941d;
  margin: 22px auto 28px;
  border-radius: 100px;
}

.video-cookie-message p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 0;
}

.events-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
}

.events-close:hover {
  color: #333;
}

@media (max-width: 768px) {
  /* =========================================
     MOBILE
     ========================================= */
  .video-cookie-message {
    min-height: 380px;
    padding: 30px 22px;
  }

  .video-cookie-message h2 {
    font-size: 30px;
  }

  .video-cookie-message p {
    font-size: 16px;
  }
}

.video-col {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0 !important;
}

.award-carousel {
  width: 90%;
  max-width: 500px;
  transform: translate(60px, 20px);
}

.award-carousel .carousel-inner {
  overflow: visible;
}

.award-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 350px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  color: white;
}

.award-card > *:not(.confetti-bg) {
  position: relative;
  z-index: 1;
}

/* Image slide */
.award-image-card {
  padding: 0;
}

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

/* Existing award styling */
.award-top {
  display: block;
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: clamp(2px, 0.8vw, 5px);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.award-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.award-divider span {
  flex: 1;
  height: 2px;
  background: #ff8f00;
}

.award-divider strong {
  color: #ff8f00;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 3px;
  white-space: nowrap;
}

.award-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 1px;
}

.award-card h2 small {
  display: block;
  margin-top: 0.5rem;
  color: #ff8f00;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
}

.award-carousel .carousel-item {
  transition: opacity 1.2s ease-in-out;
}

@media (min-width: 992px) and (max-width: 1399px) {
  /* =========================================
     LAPTOP
     992px - 1399px
     ========================================= */
  .award-carousel {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    transform: translate(15px, 15px);
  }

  .award-card {
    height: 310px;
    padding: 2.5rem 1.75rem;
  }

  .award-top {
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
  }

  .award-divider {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .award-divider strong {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .award-card h2 {
    font-size: 2.15rem;
    line-height: 1.15;
  }

  .award-card h2 small {
    font-size: 1.6rem;
    margin-top: 0.4rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* =========================================
     TABLET
     768px - 991px
     ========================================= */
  .award-carousel {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    transform: translate(0, 10px);
  }

  .award-card {
    height: 310px;
    padding: 2.5rem 1.75rem;
  }

  .award-top {
    font-size: 1.15rem;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
  }

  .award-divider {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .award-divider strong {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .award-card h2 {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .award-card h2 small {
    font-size: 1.6rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  /* =========================================
     LARGE MOBILE
     481px - 767px
     ========================================= */
  .award-carousel {
    width: 90%;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    transform: translate(0, 0);
  }

  .award-card {
    height: 300px;
    padding: 2.25rem 1.5rem;
  }

  .award-top {
    font-size: 1rem;
    letter-spacing: 2.5px;
    margin-bottom: 1.25rem;
  }

  .award-divider {
    gap: 0.6rem;
    margin-bottom: 1.4rem;
  }

  .award-divider strong {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .award-card h2 {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  .award-card h2 small {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* =========================================
     MOBILE
     480px and below
     ========================================= */
  .award-carousel {
    width: 92%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    transform: translate(0, 0);
  }

  .award-card {
    height: 270px;
    padding: 2rem 1rem;
  }

  .award-top {
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }

  .award-divider {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .award-divider strong {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .award-card h2 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .award-card h2 small {
    font-size: 1.4rem;
    margin-top: 0.4rem;
  }
}

/* Shown by js/pages/index.js once cookies are accepted */
#wistiaVideo {
  display: none;
}

/* =========================================================
   Mobile and tablet rules
   Restored from before the October 2026 CSS clean-up (commit d1596ad),
   which dropped them; without these, layouts broke on phones.
   ========================================================= */

@media (max-width: 991px) {
  .award-card {
    transform: translate(0px, 0px);
  }

  .award-card {
    padding: 2.5rem 1.5rem;
    max-width: 420px;
  }

  .award-top {
    margin-bottom: 1.25rem;
    letter-spacing: 3px;
  }

  .award-divider {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .award-divider strong {
    letter-spacing: 2px;
  }

  .award-card h2 {
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .award-card {
    transform: translate(0px, 0px);
  }
}
