/* .nav-tabs-custom {
  border: 3px solid red;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
  overflow: hidden;
  padding: 5px;
}
.nav-tabs-custom > *:not(:last-child) {
  margin-right: -10px;
} */

@font-face {
  font-family: Kodaro;
  src: url('./fonts/KODARO.ttf') format('truetype');
}

:root {
  --white: #fff;
  --black: #000;
  --blue: #185ee0;
  --light-blue: #e6eef9;
  --color-primary-dark: #3446e1;
}

.nav-tabs-custom {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 30px;
  overflow: hidden;
}

.nav-tabs-custom .tab-custom + .tab-custom {
  margin-left: 5px;
}
.tab-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--black);
  height: 30px;
  padding: 5px 15px;
  border-radius: 20px;
}

.tab-custom .active {
  overflow: hidden;
  color: var(--white);
}

.tab-custom.active {
  overflow: hidden;
  color: var(--white);
  background-color: var(--blue);
  border-color: var(--blue);
}

.tab-custom:not(.active):hover {
  background: var(--light-blue);
}

/* MOBILE VIEW NAV MENU */
@media (max-width: 768px) {
  .nav-tabs-custom {
    margin-left: -15px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav-tabs-custom::-webkit-scrollbar {
    display: none;
  }

  .tab-custom {
    flex: 0 0 auto;
    font-size: 0.75rem;
    padding: 5px 12px;
    height: 28px;
  }
}

/* .nav-menu{
  width: 100%;
  border: 3px solid red;
} */

.footer-container {
  /* -webkit-text-stroke-color: var(--grey-60); */
  width: 100%;
  max-width: 1680px;
  padding-left: 80px;
  padding-right: 80px;
}


/* =====================================================
   FIX: Centered scrolled navbar on inner pages
   ----------------------------------------------------
   Bug: inner pages use <div class="nav-menu other"> and
   the .other class adds margin-left:-5vw + margin-right:13vw
   which push the floating nav off-center when it becomes
   .fixed during scroll. Homepage uses plain <div class="nav-menu">
   so it doesn't have the bug.

   Fix: when nav-menu has BOTH .other AND .fixed (i.e. inner
   page + scrolled state), reset those margins to zero so the
   left:50% + translateX(-50%) centering rule works correctly.
   Desktop only, mobile already nulls these margins.
   Added: May 2026
   ===================================================== */
@media screen and (min-width: 991px) {
  .nav-menu.other.fixed {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* =====================================================
   EXPERTISE MEGA MENU v5 (dark)
   A one to one recreation of the reference dropdown:
   near black panel, four columns where the first three
   are dark cards with photo banner headers and arrowed
   link lists, and the fourth is a photo CTA card with
   call, email and a white pill button.
   Desktop: 4 columns under the top pill.
   Mobile: bottom sheet above the nav pill, banner
   headers are tap to expand accordions, CTA card last.
   Added: Jul 2026
   ===================================================== */

.menu-dropdown.mega {
  width: min(1180px, 96vw);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  background: #161616;
}

.mega-menu-inner {
  padding: 46px 12px 12px 12px; /* extra top padding so content clears the nav pill it slides out from */
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 12px;
  align-items: stretch;
}

/* ---------- Category cards ---------- */
.mega-col {
  display: flex;
  flex-direction: column;
  background: #2b2b2b;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  overflow: hidden;
}

/* Photo banner header inside each card */
.mega-cat-toggle {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 14px 4px 14px;
  padding: 24px 16px;
  border: none;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  cursor: default;
  text-align: left;
}

.mega-cat-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 2px 14px rgba(0, 0, 0, 0.6);
}

.mega-chevron {
  display: none; /* shown on mobile only */
  flex: 0 0 auto;
  color: #ffffff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.85));
  transition: transform 0.25s ease;
}

/* Per category banner image with a light brand tone overlay,
   kept translucent so the photograph stays clearly visible.
   The left edge is darkest because the title sits there. */
.cat-green .mega-cat-toggle {
  background-image: linear-gradient(100deg, rgba(9, 22, 3, 0.78), rgba(28, 58, 10, 0.28)),
    url("images/menu-branding.webp");
  background-position: center 55%;
}

.cat-blue .mega-cat-toggle {
  background-image: linear-gradient(100deg, rgba(4, 13, 30, 0.78), rgba(13, 45, 95, 0.28)),
    url("images/menu-websites.webp");
  background-position: center 42%;
}

/* Deep Rolex green (#006039) replaces the old red pink tone */
.cat-pink .mega-cat-toggle {
  background-image: linear-gradient(100deg, rgba(0, 30, 18, 0.78), rgba(0, 96, 57, 0.32)),
    url("images/menu-marketing.webp");
  background-position: center 30%;
}

/* ---------- Links (card body) ---------- */
.mega-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 16px 14px;
  flex: 1;
}

.mega-link {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #e8e8e8;
  text-decoration: none;
  padding: 8px 8px;
  border-radius: 7px;
  line-height: 1.35;
  transition: background-color 0.16s ease, color 0.16s ease;
}

/* Always visible arrow so every item clearly reads as a link */
.mega-link::before {
  content: '\2192';
  font-size: 0.82rem;
  font-weight: 700;
  color: #9a9a9a;
  flex: 0 0 auto;
  transition: transform 0.18s ease, color 0.18s ease;
}

/* Hover effects only on devices with a real cursor, so taps on
   touch screens never leave a stuck highlight behind */
@media (hover: hover) and (pointer: fine) {
  .mega-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #7fd136;
  }

  .mega-link:hover::before {
    color: #7fd136;
    transform: translateX(4px);
  }
}

/* Brief press feedback on touch */
.mega-link:active {
  opacity: 0.55;
}

.mega-link:focus-visible {
  outline: 2px solid #7fd136;
  outline-offset: 1px;
}

/* ---------- CTA card (4th column) ---------- */
.mega-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 26px 22px;
  background-image: linear-gradient(115deg, rgba(7, 13, 4, 0.93), #017bff40),
    url("images/menu-cta.webp");
  background-size: cover;
  background-position: center 87%;
}

.mega-cta-title {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mega-cta-text {
  margin: 0 0 6px 0;
  color: #dedede;
  font-size: 0.85rem;
  line-height: 1.5;
}

.mega-cta-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.16s ease;
}

.mega-cta-line::before {
  content: '\2192';
  color: #7fd136;
  font-weight: 700;
}

.mega-cta-line:hover {
  color: #7fd136;
}

.mega-cta-btn {
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #161616;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 7px 7px 18px;
  border-radius: 99px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mega-cta-btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #161616;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mega-cta-btn:hover {
  background: #7fd136;
  color: #12280a;
}

/* ---------- MOBILE (nav pill is fixed at the bottom) ---------- */
@media screen and (max-width: 991px) {
  .menu-dropdown.mega {
    /* Anchor the panel ABOVE the pill so it grows upward and
       never depends on a hardcoded offset. !important is needed
       to beat the inline "top" style set by GSAP in navbar.js */
    top: auto !important;
    bottom: calc(100% + 12px); /* panel floats fully ABOVE the pill, nothing can hide behind it */
    width: min(92vw, 400px);
    max-height: calc(100vh - 260px);
    max-height: calc(100dvh - 210px); /* dvh = honest visible height on iPhone Safari; comfortable sheet, never touches the top of the screen */
    overscroll-behavior: contain; /* internal scrolling never chains to the page behind */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  .mega-menu-inner {
    padding: 14px 10px 12px 10px; /* panel sits above the pill now, no clearance zone needed */
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Banner headers become tap targets */
  .mega-cat-toggle {
    cursor: pointer;
    width: calc(100% - 20px);
    margin: 10px 10px 4px 10px;
    padding: 20px 14px;
  }

  .mega-cat-toggle:active {
    filter: brightness(0.9);
  }

  .mega-cat-title {
    font-size: 0.92rem;
  }

  .mega-chevron {
    display: block;
  }

  .mega-col.open .mega-chevron {
    transform: rotate(180deg);
  }

  /* Accordion: collapsed by default, expands on tap */
  .mega-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 12px;
    flex: none;
  }

  .mega-col.open .mega-links {
    max-height: 640px;
    padding: 6px 12px 14px 12px;
  }

  .mega-link {
    font-size: 0.9rem;
    padding: 10px 10px;
  }

  /* CTA card sits last, always visible */
  .mega-cta-card {
    padding: 22px 18px;
    gap: 9px;
  }

  .mega-cta-line {
    font-size: 0.76rem;
  }

  .mega-cta-btn {
    align-self: stretch;
    justify-content: center;
    padding: 10px 10px 10px 18px;
    font-size: 0.84rem;
  }
}
