/* ==========================================================================
   AT BOOST — SITE SHELL (MOBILE-FIRST, MODERN, STRUCTURED & RESPONSIVE)
   Unified Header & Footer Design System for all pages
   ========================================================================== */

:root {
  --shell-dark: #05080E;
  --shell-cream: #F2F0ED;
  --shell-cyan: #4ECDC4;
  --shell-coral: #F06060;
  --shell-coral-hover: #E84C4C;
  --shell-line: rgba(10, 10, 10, 0.12);
  --shell-line-dark: rgba(255, 255, 255, 0.1);
  --shell-text-muted: #94A3B8;
  --shell-nav-h: 80px;
  --shell-nav-h-mob: 66px;
}

/* Prevent layout shifts and horizontal scroll */
html {
  overflow-x: clip;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body.nav-open {
  overflow: hidden;
}

body {
  padding-top: var(--shell-nav-h);
}

/* Pages with a switcher immediately after the fixed shell header must reserve
   the header height only once. */
body:has(.switcher){padding-top:0}
body:has(.switcher) .topbar + .switcher{margin-top:var(--shell-nav-h)}

/* --------------------------------------------------------------------------
   1. TOPBAR & NAVIGATION BAR
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed !important;
  top: 0 !important;
  z-index: 1000;
  width: 100%;
  background: rgba(247, 247, 242, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--shell-line) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topbar > nav.container {
  min-height: var(--shell-nav-h) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 16px;
}

/* Brand Logo */
.topbar .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar .brand-logo-image {
  display: block;
  width: 240px;
  height: 64px;
  /* Crop the asset's empty vertical margins so the wordmark fills the navbar. */
  object-fit: cover;
}

.topbar .brand-logo-image--light {
  display: none;
}

.topbar .brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.topbar .brand-mark::before,
.topbar .brand-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
}

.topbar .brand-mark::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--shell-cyan);
  border-left: 3px solid var(--shell-cyan);
}

.topbar .brand-mark::after {
  right: 0;
  bottom: 0;
  border-right: 3px solid var(--shell-coral);
  border-bottom: 3px solid var(--shell-coral);
}

.topbar .brand-mark span {
  position: absolute;
  top: 6px;
  left: 7px;
  color: var(--shell-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.topbar .brand-mark i {
  position: absolute;
  right: -5px;
  bottom: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shell-coral);
}

.topbar .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--shell-dark);
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.topbar .wordmark strong {
  font-weight: 800;
}

.topbar .wordmark span {
  font-weight: 400;
}

.topbar .wordmark b {
  color: var(--shell-coral);
}

/* Desktop Navigation Links */
.topbar .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar .nav-link-item,
.topbar .nav-links > a {
  color: var(--shell-dark);
  position: relative;
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.topbar .dropdown-chevron {
  font-size: 10px;
  color: var(--shell-coral);
  transition: transform 0.25s ease;
}

.topbar .nav-link-item::after,
.topbar .nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--shell-cyan);
  transition: width 0.25s ease;
}

.topbar .nav-link-item:hover::after,
.topbar .nav-links > a:hover::after,
.topbar .nav-links a.active::after {
  width: 100%;
}

.topbar .nav-link-item:hover,
.topbar .nav-links > a:hover {
  color: #000;
}

/* Dropdown Menu (Desktop) */
.topbar .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1100;
}

.topbar .nav-item .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 1100;
  display: grid;
  gap: 3px;
  min-width: 780px;
  width: min(780px, calc(100vw - 32px));
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--shell-line);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(5, 8, 14, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

/* ── EXPERTISES MEGA-MENU ── */
.topbar .mega-menu{
  grid-template-columns: 270px 1fr;
  padding: 0;
  /* overflow MUST stay visible so the ::before bridge is not clipped */
  overflow: visible;
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.1);
  min-width: 860px;
  width: min(920px, calc(100vw - 32px));
}

/* Inner wrapper clips the dark background to the rounded border */
.topbar .mega-menu > * {
  overflow: hidden;
}

.topbar .mega-menu > .mega-expertise-list {
  background: #050710;
  border-radius: 16px 0 0 16px;
}

.topbar .mega-menu > .mega-services-panel {
  background: linear-gradient(140deg,#0c1117 0%,#07090e 100%);
  border-radius: 0 16px 16px 0;
}

/* Left: Expertise list */
.topbar .mega-expertise-list{
  padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  background: #050710;
}

.topbar .mega-list-header{
  padding: 6px 12px 12px;
  color: var(--shell-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.topbar .mega-expertise{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff !important;
  transform: none !important;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.topbar .mega-expertise:hover,
.topbar .mega-expertise.is-active{
  background: rgba(240,96,96,.1);
  border-color: rgba(240,96,96,.55);
}

.topbar .mega-exp-num{
  flex: 0 0 28px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-align: right;
}

.topbar .mega-exp-body { flex: 1; min-width: 0; }

.topbar .mega-expertise strong,
.topbar .mega-service strong{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.topbar .mega-expertise small,
.topbar .mega-service small{
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
}

.topbar .mega-expertise > b{
  color: var(--shell-cyan);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
}

.topbar .mega-see-all{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 4px 4px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px dashed rgba(78,205,196,.3);
  color: var(--shell-cyan) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.topbar .mega-see-all:hover{
  background: rgba(78,205,196,.08);
  border-color: rgba(78,205,196,.7);
}

/* Right: Service panel */
.topbar .mega-services-panel{
  padding: 0;
  min-height: 420px;
  background: linear-gradient(140deg,#0c1117 0%,#07090e 100%);
  position: relative;
  overflow: hidden;
}

.topbar .mega-panel{
  display: none;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.topbar .mega-panel.is-active{ display: flex; }

.topbar .mega-panel-header{
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.topbar .mega-panel-tag{
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--shell-coral);
  margin-bottom: 6px;
}

.topbar .mega-panel-title{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease;
}

.topbar .mega-panel-title:hover{ color: var(--shell-cyan) !important; }

.topbar .mega-panel-arrow{
  font-size: 14px;
  color: var(--shell-cyan);
  transition: transform .2s ease;
}

.topbar .mega-panel-title:hover .mega-panel-arrow{ transform: translate(2px,-2px); }

.topbar .mega-panel-desc{
  margin: 4px 0 0;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  line-height: 1.4;
}

.topbar .mega-services-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  padding: 8px 12px;
}

.topbar .mega-service{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  color: #fff !important;
  transform: none !important;
  text-decoration: none;
  transition: background .18s ease;
}

.topbar .mega-service:hover{ background: rgba(255,255,255,.05); }

.topbar .mega-service-icon{
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(78,205,196,.1);
  color: var(--shell-cyan);
  font-size: 16px;
}

.topbar .mega-all-services-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 24px 16px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px dashed rgba(78,205,196,.25);
  color: var(--shell-cyan) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.topbar .mega-all-services-link:hover{
  background: rgba(78,205,196,.07);
  border-color: rgba(78,205,196,.6);
}

/* The compact accordion is rendered from the same data as the desktop
   mega-menu, but is only exposed inside the mobile drawer. */
.topbar .mobile-expertise-accordion {
  display: none;
}

/* ── SERVICES DROPDOWN ── */
.topbar .services-dropdown{
  min-width: 940px;
  width: min(980px, calc(100vw - 32px));
  padding: 0;
  /* overflow MUST stay visible so the ::before bridge is not clipped */
  overflow: visible;
  background: transparent;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  /* The actual background is on the inner wrapper */
}

.topbar .services-dropdown-inner{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 220px;
  gap: 0;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.topbar .nav-item:hover .services-dropdown,
.topbar .nav-item:focus-within .services-dropdown{
  transform: translateX(-50%) translateY(0);
}



.topbar .services-col{
  padding: 20px 18px;
  border-right: 1px solid var(--shell-line);
}

.topbar .services-col:last-child{ border-right: 0; }

.topbar .dropdown-service-link{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--shell-dark) !important;
  text-decoration: none;
  transition: background .18s ease;
}

.topbar .dropdown-service-link:hover{ background: var(--shell-cream); }

.topbar .dropdown-service-link strong{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--shell-dark);
}

.topbar .dropdown-service-link small{
  display: block;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
  white-space: normal;
  margin-top: 1px;
}

.topbar .ds-icon{
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(78,205,196,.12);
  color: var(--shell-cyan);
  font-size: 12px;
}

.topbar .services-cta-col{
  background: #06090f;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topbar .services-cta-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
  flex: 1;
}

.topbar .services-cta-kicker{
  font-size: 11px;
  font-weight: 800;
  color: var(--shell-coral);
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.topbar .services-cta-card p{
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.topbar .services-cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--shell-coral);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}

.topbar .services-cta-btn:hover{
  background: var(--shell-coral-hover);
  transform: translateY(-1px);
}

.topbar .services-all-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px dashed rgba(78,205,196,.3);
  color: var(--shell-cyan) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.topbar .services-all-link:hover{
  background: rgba(78,205,196,.08);
  border-color: rgba(78,205,196,.6);
}

.topbar .nav-item:hover .dropdown-menu,
.topbar .nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Services dropdown needs its own hover transform (different initial state) */
.topbar .nav-item:hover .services-dropdown,
.topbar .nav-item:focus-within .services-dropdown {
  transform: translateX(-50%) translateY(0);
}

.topbar .nav-item:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.topbar .nav-item .dropdown-menu::before {content:"";position:absolute;left:0;right:0;top:-11px;height:12px}
.topbar .dropdown-heading {padding:8px 14px 4px;color:var(--shell-coral);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.topbar .dropdown-divider {height:1px;margin:7px 4px 4px;background:var(--shell-line)}

/* Generic link style — only applies to simple dropdowns, not mega/services */
.topbar .dropdown-menu:not(.mega-menu):not(.services-dropdown) a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--shell-dark);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar .dropdown-menu a::after {
  content: none !important;
}

.topbar .dropdown-menu:not(.mega-menu):not(.services-dropdown) a:hover {
  background: var(--shell-cream);
  color: var(--shell-coral);
  transform: translateX(4px);
}

/* Nav Actions */
.topbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar .ecosystem-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: 999px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.25s ease;
}

.topbar .ecosystem-pill:hover {
  background: #ffffff;
  border-color: var(--shell-cyan);
  transform: translateY(-1px);
}

.topbar .ecosystem-pill i {
  width: 7px;
  height: 7px;
  background: var(--shell-cyan);
  border-radius: 50%;
  display: inline-block;
}

.topbar .header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--shell-dark) !important;
  color: #ffffff !important;
  padding: 11px 20px !important;
  font-size: 13px !important;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.topbar .header-cta-btn:hover {
  background: #151f2e !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(5, 8, 14, 0.18);
}

.topbar .header-cta-btn .cta-label-short {
  display: none;
}

/* Animated Hamburger Mobile Toggle */
.topbar .mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--shell-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.topbar .mobile-toggle:hover {
  background: #ffffff;
  border-color: var(--shell-dark);
}

.topbar .mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--shell-dark);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.2s ease;
}

/* Hamburger to X Morph */
.topbar.open .mobile-toggle span:nth-child(1),
.topbar .mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.open .mobile-toggle span:nth-child(2),
.topbar .mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.topbar.open .mobile-toggle span:nth-child(3),
.topbar .mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop Overlay for mobile drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Hidden by default on desktop */
.mobile-menu-actions {
  display: none;
}

/* --------------------------------------------------------------------------
   2. FOOTER SECTION
   -------------------------------------------------------------------------- */
footer {
  background: var(--shell-dark) !important;
  color: #ffffff;
  padding: 64px 0 32px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr !important;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

footer .footer-brand-wrap {
  max-width: 320px;
}

footer .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
  max-width: 100%;
}

footer .brand-logo-image {
  display: block;
  width: 280px;
  max-width: 100%;
  height: 72px;
  object-fit: cover;
}

footer .brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

footer .brand-mark::before,
footer .brand-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
}

footer .brand-mark::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--shell-cyan);
  border-left: 3px solid var(--shell-cyan);
}

footer .brand-mark::after {
  right: 0;
  bottom: 0;
  border-right: 3px solid var(--shell-coral);
  border-bottom: 3px solid var(--shell-coral);
}

footer .brand-mark span {
  position: absolute;
  top: 6px;
  left: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

footer .brand-mark i {
  position: absolute;
  right: -5px;
  bottom: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shell-coral);
}

footer .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

footer .wordmark strong {
  font-weight: 800;
}

footer .wordmark span {
  font-weight: 300;
}

footer .wordmark b {
  color: var(--shell-coral);
}

footer .footer-copy {
  color: var(--shell-text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 18px;
}

footer .footer-address {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

footer .footer-address strong {
  color: var(--shell-cyan);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

footer .footer-col h4 {
  color: #77879a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin: 0 0 20px;
}

footer .footer-col a {
  display: block;
  color: #cbd4df;
  font-size: 13.5px;
  margin: 11px 0;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer .footer-col a:hover {
  color: var(--shell-cyan);
  transform: translateX(3px);
}

footer .footer-contact-button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 16px !important;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--shell-coral);
  color: #ffffff !important;
  background: var(--shell-coral);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

footer .footer-contact-button:hover {
  background: transparent;
  border-color: var(--shell-cyan);
  color: var(--shell-cyan) !important;
  transform: translateY(-2px);
}

footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 28px;
  color: #77879a;
  font-size: 12px;
}

footer .ecosystem-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

footer .ecosystem-lockup .line {
  width: 28px;
  height: 1px;
  background: #334155;
}

footer .footer-legal {
  color: #77879a;
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE BREAKPOINTS (MOBILE-FIRST POLISH)
   -------------------------------------------------------------------------- */

/* Keep desktop navigation within the viewport before the mobile breakpoint. */
@media (min-width: 861px) and (max-width: 1120px) {
  .topbar .brand-logo-image {
    width: 180px;
  }

  .topbar .nav-eco-link {
    display: none;
  }
}

/* Tablet & Smaller Desktops (<= 1040px) */
@media (max-width: 1040px) {
  footer .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr !important;
    gap: 32px;
  }
  footer .footer-col:last-child {
    grid-column: span 3;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Tablet & Mobile Breakpoint (<= 860px) */
@media (max-width: 860px) {
  body {
    padding-top: var(--shell-nav-h-mob);
  }
  body:has(.switcher){padding-top:0}
  body:has(.switcher) .topbar + .switcher{margin-top:var(--shell-nav-h-mob)}

  .topbar > nav.container {
    position: relative;
    z-index: 1000;
    width: min(1320px, calc(100% - 32px));
    min-height: var(--shell-nav-h-mob) !important;
    gap: 12px;
    padding-inline: 0;
  }

  .topbar .brand-logo {
    min-width: 0;
    width: clamp(128px, 40vw, 180px);
    flex-shrink: 1;
  }

  .topbar .brand-logo-image {
    width: 100%;
    height: 50px;
    object-fit: cover;
  }

  .topbar .nav-actions {
    gap: 8px;
    margin-left: auto;
  }

  /* Show toggle and adjust nav actions */
  .topbar .mobile-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .topbar .nav-eco-link,
  .topbar .ecosystem-pill {
    display: none !important;
  }

  .topbar .header-cta-btn .cta-label-full {
    display: none;
  }

  .topbar .header-cta-btn .cta-label-short {
    display: inline;
  }

  .topbar .header-cta-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  .topbar.open {
    background: #050508;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }

  .topbar.open .brand-mark span,
  .topbar.open .wordmark {
    color: #ffffff;
  }

  .topbar.open .brand-logo-image {
    display: none;
  }

  .topbar.open .brand-logo-image--light {
    display: block;
  }

  .topbar.open .header-cta-btn {
    display: none;
  }

  .topbar.open .mobile-toggle {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .topbar.open .mobile-toggle span {
    background: #ffffff;
  }

  /* Mobile Slide-down Navigation Drawer */
  .topbar .nav-links {
    position: fixed;
    top: var(--shell-nav-h-mob);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: calc(100dvh - var(--shell-nav-h-mob));
    max-height: calc(100vh - var(--shell-nav-h-mob));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 16px 32px;
    background: #050508;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease;
    z-index: 1001;
  }

  .topbar.open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar:not(.open) .nav-links,
  .topbar:not(.open) .nav-links * {
    pointer-events: none !important;
  }

  .topbar .nav-link-item,
  .topbar .nav-links > a {
    width: 100%;
    padding: 18px 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
  }

  .topbar .nav-link-item:hover,
  .topbar .nav-links > a:hover {
    color: #ffffff;
  }

  .topbar .nav-link-item::after,
  .topbar .nav-links > a::after {
    content: none !important;
  }

  /* Mobile Dropdown Menu — accordion pattern */
  .topbar .nav-item {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  /* By default hide dropdowns on mobile; open via .mobile-open */
  .topbar .nav-item .dropdown-menu {
    position: static;
    display: none;
    padding: 10px 8px 14px;
    background: #f6f7f9;
    border-radius: 12px;
    border: 1px solid rgba(10, 10, 10, 0.06);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 6px 0 10px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .topbar .nav-item.mobile-open .dropdown-menu { display: block; }
  .topbar .nav-item.mobile-open > .nav-link-item .dropdown-chevron { transform: rotate(180deg); }

  /* A tapped trigger remains :focus-within on mobile. Override the desktop
     centering transform so the accordion stays aligned with the drawer. */
  .topbar .nav-item:hover .dropdown-menu,
  .topbar .nav-item:focus-within .dropdown-menu {
    transform: none;
  }

  /* Expertises become nested dark cards on mobile. */
  .topbar .nav-item .mega-menu{
    display: none;
    padding: 0;
    background: transparent;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 0 12px;
  }

  .topbar .mega-menu > .mega-expertise-list,
  .topbar .mega-menu > .mega-services-panel{
    display: none;
  }

  /* Services dropdown on mobile */
  .topbar .services-dropdown{ min-width: 0; width: 100%; }
  .topbar .services-dropdown-inner{ grid-template-columns: 1fr; }
  .topbar .services-col{ padding: 10px 8px; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.06); }
  .topbar .services-cta-col{ background: transparent; padding: 10px 8px; }
  .topbar .services-cta-card{ background: #eef0f3; border-color: rgba(0,0,0,.08); }
  .topbar .services-cta-card p{ color: var(--shell-text-muted); }
  .topbar .services-all-link{ border-color: rgba(0,0,0,.12); color: var(--shell-coral) !important; }

  .topbar .dropdown-service-link strong{ color: var(--shell-dark); }

  .topbar .dropdown-menu a {
    padding: 9px 11px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid rgba(10, 10, 10, 0.05);
    white-space: normal;
    line-height: 1.35;
  }

  .topbar .nav-item .mobile-expertise-accordion {
    display: grid;
    gap: 10px;
    width: 100%;
  }

  .topbar .mobile-expertise-item {
    overflow: hidden;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
  }

  .topbar .mobile-expertise-toggle {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 0 0 0 14px;
    color: #ffffff;
    background: #0b0b0d;
  }

  .topbar .mobile-expertise-toggle .mobile-expertise-summary {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 0;
    background: transparent;
    border: 0;
    color: inherit;
    text-decoration: none;
  }

  .topbar .mobile-expertise-summary strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  .topbar .mobile-expertise-summary small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar .mobile-expertise-chevron {
    display: grid;
    place-items: center;
    width: 46px;
    flex: 0 0 46px;
    margin: 0;
    padding: 0;
    color: var(--shell-coral);
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    font: inherit;
    font-size: 17px;
    cursor: pointer;
    transform: rotate(0);
    transition: transform 0.22s ease, background-color 0.22s ease;
  }

  .topbar .mobile-expertise-item.is-open .mobile-expertise-chevron {
    background: rgba(255, 255, 255, 0.025);
    transform: rotate(180deg);
  }

  .topbar .mobile-expertise-panel {
    display: none;
    padding: 5px 10px 10px;
    background: #050506;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .topbar .mobile-expertise-item.is-open .mobile-expertise-panel {
    display: block;
  }

  .topbar .mega-menu .mobile-expertise-service {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 68px;
    padding: 11px 4px;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .topbar .mega-menu .mobile-expertise-service:hover,
  .topbar .mega-menu .mobile-expertise-service:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  .topbar .mobile-expertise-service-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    font-size: 11px;
  }

  .topbar .mobile-expertise-service-copy {
    min-width: 0;
  }

  .topbar .mobile-expertise-service-copy strong,
  .topbar .mobile-expertise-service-copy small {
    display: block;
  }

  .topbar .mobile-expertise-service-copy strong {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
  }

  .topbar .mobile-expertise-service-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10.5px;
    line-height: 1.4;
  }

  .topbar .mobile-expertise-service-arrow {
    color: var(--shell-coral);
    font-size: 17px;
  }

  /* Mobile Drawer Action Buttons */
  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-pill-btn .dot {
    width: 7px;
    height: 7px;
    background: var(--shell-cyan);
    border-radius: 50%;
  }

  .mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--shell-coral);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
  }

  /* Footer on Tablet */
  footer .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
  }

  footer .footer-brand-wrap {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  footer .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* Smartphone & Compact (<= 560px) */
@media (max-width: 560px) {
  .topbar .nav-item .dropdown-menu {
    grid-template-columns: 1fr;
  }

  .topbar .wordmark {
    font-size: 19px;
  }

  .topbar .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .topbar .brand-mark span {
    font-size: 11px;
    top: 5px;
    left: 6px;
  }

  footer {
    padding: 48px 0 28px !important;
  }

  footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px;
    padding-bottom: 36px;
  }

  footer .footer-col {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
  }

  footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   4. SHARED BUTTON SYSTEM
   Use .at-btn with one visual variant. Existing page-specific buttons retain
   their original styling until they are explicitly migrated.
   -------------------------------------------------------------------------- */
.at-btn {
  --at-btn-bg: transparent;
  --at-btn-color: var(--shell-dark);
  --at-btn-border: rgba(5, 8, 14, 0.22);
  min-height: 46px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--at-btn-border);
  border-radius: 999px;
  background: var(--at-btn-bg);
  color: var(--at-btn-color);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.at-btn:hover {
  transform: translateY(-2px);
}

.at-btn:focus-visible {
  outline: 3px solid rgba(78, 205, 196, .42);
  outline-offset: 3px;
}

.at-btn:disabled,
.at-btn[aria-disabled="true"] {
  opacity: .52;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.at-btn :where(.arrow, .btn-hero-arrow) {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform .2s ease;
}

.at-btn:hover :where(.arrow, .btn-hero-arrow) {
  transform: translate(2px, -2px);
}

.at-btn--primary {
  --at-btn-bg: var(--shell-coral);
  --at-btn-color: #fff;
  --at-btn-border: var(--shell-coral);
}

.at-btn--primary:hover {
  background: var(--shell-coral-hover);
  border-color: var(--shell-coral-hover);
  color: #fff;
  box-shadow: 0 10px 24px rgba(240, 96, 96, .28);
}

/* Hero CTA variants shared with the contact-page visual language. */
.at-btn--hero-primary,
.at-btn--hero-secondary {
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.at-btn--hero-primary {
  --at-btn-bg: var(--shell-coral);
  --at-btn-color: #fff;
  --at-btn-border: var(--shell-coral);
  box-shadow: 0 6px 20px rgba(240, 96, 96, .3);
}

.at-btn--hero-primary:hover {
  background: var(--shell-coral-hover);
  border-color: var(--shell-coral-hover);
  color: #fff;
  box-shadow: 0 10px 28px rgba(240, 96, 96, .45);
}

.at-btn--hero-secondary {
  --at-btn-bg: rgba(255,255,255,.04);
  --at-btn-color: #fff;
  --at-btn-border: rgba(255,255,255,.2);
}

.at-btn--hero-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

.at-btn--hero-primary .cta-icon,
.at-btn--hero-secondary .cta-icon {
  flex: 0 0 auto;
}

.at-btn--dark {
  --at-btn-bg: var(--shell-dark);
  --at-btn-color: #fff;
  --at-btn-border: var(--shell-dark);
}

.at-btn--dark:hover {
  background: #151f2e;
  border-color: #151f2e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(5, 8, 14, .2);
}

.at-btn--light {
  --at-btn-bg: #fff;
  --at-btn-color: var(--shell-dark);
  --at-btn-border: #fff;
}

.at-btn--outline {
  --at-btn-bg: transparent;
  --at-btn-color: var(--shell-dark);
  --at-btn-border: rgba(5, 8, 14, .3);
}

.at-btn--outline-light {
  --at-btn-bg: transparent;
  --at-btn-color: #fff;
  --at-btn-border: rgba(255, 255, 255, .68);
}

.at-btn--outline:hover {
  background: var(--shell-dark);
  border-color: var(--shell-dark);
  color: #fff;
}

.at-btn--outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--shell-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

/* Homepage contact CTA hierarchy: secondary action + strong primary submit. */
.contact-card > div .at-btn--outline-light {
  min-height: 48px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.72) !important;
}

.contact-card > div .at-btn--outline-light:hover {
  background: #fff !important;
  color: var(--shell-dark) !important;
}

.contact-form .at-btn--primary {
  min-height: 54px !important;
  border-radius: 999px !important;
  background: var(--shell-coral) !important;
  border: 1px solid var(--shell-coral) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.contact-form .at-btn--primary:hover {
  background: var(--shell-coral-hover) !important;
  border-color: var(--shell-coral-hover) !important;
  color: #fff !important;
}

@media (max-width: 560px) {
  .at-btn {
    min-height: 48px;
    padding: 12px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-btn {
    transition: none;
  }
}
.topbar .nav-links > .nav-item:nth-child(2){display:none}
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-disclosure {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: inherit;
  opacity: .62;
}
