/* ── 21. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-midnight);
}

.footer__main {
  padding-block: 72px 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  margin: 16px 0 24px;
  max-width: 260px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-midnight);
}

.footer__badges { display: flex; flex-wrap: wrap; gap: 6px; }

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}

.footer__col ul li a:hover { color: var(--color-teal); padding-left: 4px; }

.footer__offices .office-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.office-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.office-flag { font-size: 1.4rem; }

.office-item div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.office-item div strong {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}

.office-item div span {
  font-size: 0.76rem;
  color: rgba(255,255,255,.35);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 24px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy, .footer__region {
  font-size: 0.8rem;
  color: rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__copy a { color: rgba(255,255,255,.45); }
.footer__copy a:hover { color: var(--color-teal); }

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal li a {
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  transition: color var(--transition);
}

.footer__legal li a:hover { color: var(--color-teal); }

/* ── 22. SCROLL ANIMATIONS ──────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 23. INNER PAGE TEMPLATES ───────────────────────────────── */
.page-hero {
  background: var(--color-navy);
  padding: 120px 0 72px;
  text-align: center;
}

.page-hero h1 { color: var(--color-white); }
.page-hero p  { color: rgba(255,255,255,.6); margin-top: 12px; font-size: 1.05rem; }

.page-content {
  padding-block: 72px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--color-teal);
  color: var(--color-midnight);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ── 24. RESPONSIVE ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }

  .hero__inner        { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero__headline     { font-size: 2.8rem; }
  .hero__subline      { margin-inline: auto; }
  .hero__actions      { justify-content: center; }
  .hero__trust-line   { justify-content: center; }
  .hero__visual       { order: -1; max-width: 600px; margin-inline: auto; width: 100%; }
  .float-badge--1,
  .float-badge--2     { display: none; }

  .products-grid      { grid-template-columns: 1fr; }
  .bento-grid         { grid-template-columns: 1fr 1fr; }
  .bento-card--featured { grid-column: 1 / -1; }
  .glass-cards-grid   { grid-template-columns: 1fr; gap: 16px; }
  .hardware-inner     { grid-template-columns: 1fr; }
  .global-grid        { grid-template-columns: 1fr; }
  .case-studies-grid  { grid-template-columns: 1fr 1fr; }
  .blog-grid          { grid-template-columns: 1fr 1fr; }
  .footer__grid       { grid-template-columns: 1fr 1fr; }
  .mega-panel__inner  { grid-template-columns: 1fr 1fr; }
  .mega-panel__sidebar { display: none; }
  .marquee-section::before,
  .marquee-section::after { width: 80px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .primary-nav  { display: none; }
  .header__actions { display: none; }
  .hamburger    { display: flex; }

  .hero__headline { font-size: 2.2rem; }
  .bento-grid     { grid-template-columns: 1fr; }
  .bento-card--featured { grid-column: 1; }
  .case-studies-grid    { grid-template-columns: 1fr; }
  .blog-grid            { grid-template-columns: 1fr; }
  .footer__grid         { grid-template-columns: 1fr; }
  .cta-banner__inner    { flex-direction: column; text-align: center; }
  .cta-banner__copy p   { margin-inline: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__legal        { gap: 16px; }
  .mega-panel           { display: none; } /* Mobile uses drawer instead */
  .industries-track     { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; justify-content: flex-start; }
  .product-card__body   { padding: 24px 20px 12px; }
  .product-card__footer { padding: 16px 20px 20px; }
  .product-card__visual { padding: 0 20px; }
  .office-cards         { min-width: unset; }
  .global-grid          { gap: 24px; }
}

/* ── 25. UTILITY ────────────────────────────────────────────── */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── NTS LEAFLET MAP ──────────────────────────────────────── */
#nts-map {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  filter: contrast(1.02) saturate(0.9);
  z-index: 1;
}

/* Pulsing marker */
.map-marker {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-teal);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px rgba(0,194,168,0.8);
  position: relative;
  z-index: 3;
}

.map-marker__pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0,194,168,0.4);
  animation: markerPulse 2.2s ease-out infinite;
  z-index: 2;
}

.map-marker__pulse--2 {
  animation-delay: 0.8s;
  background: rgba(0,194,168,0.2);
}

.map-marker__label {
  position: absolute;
  top: -15px;
  left: 100%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,194,168,0.3);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}

@keyframes markerPulse {
  0%   { transform: scale(1);  opacity: 1; }
  100% { transform: scale(4);  opacity: 0; }
}

/* Popup styles */
.nts-popup .leaflet-popup-content-wrapper {
  background: var(--color-midnight);
  border: 1px solid rgba(0,194,168,0.25);
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  padding: 0;
}

.nts-popup .leaflet-popup-tip {
  background: var(--color-midnight);
}

.nts-popup .leaflet-popup-content {
  margin: 0;
  padding: 0;
}

.map-popup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.map-popup__flag {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.map-popup__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-popup__info strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
}

.map-popup__info span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
}

.map-popup__info a {
  font-size: 0.76rem;
  color: var(--color-teal);
  margin-top: 2px;
}

/* Leaflet zoom controls — restyle to match theme */
.leaflet-control-zoom a {
  background: var(--color-midnight) !important;
  color: var(--color-teal) !important;
  border-color: rgba(0,194,168,0.2) !important;
  font-weight: 700;
}

.leaflet-control-zoom a:hover {
  background: var(--color-navy) !important;
}

/* Responsive */
@media (max-width: 768px) {
  #nts-map { height: 300px; }
}

