/* ═══════════════════════════════════════════════════════════════════
   NMS — Who We Are
   Premium "Who We Are" section with glassmorphism tabs.
   All selectors scoped under .nmsh-wwa to prevent global leaks.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Full-width breakout ── */
.elementor-widget-nmsh_who_we_are:has(.nmsh-wwa--full-width) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: hidden !important;
}
.nmsh-wwa.nmsh-wwa--full-width {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.nmsh-wwa--full-width .nmsh-wwa-inner {
  max-width: 1440px;
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
}
.nmsh-wwa.nmsh-wwa--transparent {
  background: transparent;
}
.nmsh-wwa.nmsh-wwa--transparent::before {
  display: none;
}

/* ── Base ── */
.nmsh-wwa {
  --wwa-navy: #032F41;
  --wwa-accent: #057485;
  --wwa-accent-2: #046F82;
  --wwa-ink: #191919;
  --wwa-gray: #5c6b7a;
  --wwa-bg: #f4f7f9;
  --wwa-surface: #ffffff;
  --wwa-border: #e4ebf0;
  --wwa-ind: var(--wwa-accent);
  --wwa-blur: 18px;
  --wwa-speed: 320ms;
  --wwa-ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  box-sizing: border-box;
  background: var(--wwa-bg);
  color: var(--wwa-ink);
  font-family: var(--nms-font-sans, 'Nunito Sans', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.nmsh-wwa *, .nmsh-wwa *::before, .nmsh-wwa *::after {
  box-sizing: border-box;
}
.nmsh-wwa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 88% 8%, rgba(5, 116, 133, .07), transparent 60%),
              radial-gradient(50% 50% at 4% 96%, rgba(3, 47, 65, .05), transparent 60%);
  pointer-events: none;
}

/* ── Layout ── */
.nmsh-wwa-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.nmsh-wwa-grid {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}
.nmsh-wwa-left {
  flex: 0 0 45%;
  max-width: 45%;
  min-width: 0;
}
.nmsh-wwa-right {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Eyebrow Label ── */
.nmsh-wwa-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  margin: 0 0 22px;
  border-radius: 100px;
  background: rgba(5, 116, 133, .09);
  border: 1px solid rgba(5, 116, 133, .16);
  color: var(--wwa-accent-2);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
}
.nmsh-wwa-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wwa-accent);
  box-shadow: 0 0 0 4px rgba(5, 116, 133, .16);
}

/* ── Heading ── */
.nmsh-wwa-heading {
  font-family: var(--nms-font-display, 'Spartan', system-ui, sans-serif);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.nmsh-wwa-h-lead {
  color: var(--wwa-navy);
  display: block;
}
.nmsh-wwa-h-hl {
  color: var(--wwa-accent);
  display: block;
}
.nmsh-wwa-intro {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--wwa-gray);
  margin: 0 0 16px;
  max-width: 46ch;
}

/* ── Buttons ── */
.nmsh-wwa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}
.nmsh-wwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--wwa-speed) var(--wwa-ease),
              box-shadow var(--wwa-speed) var(--wwa-ease),
              background var(--wwa-speed) var(--wwa-ease),
              color var(--wwa-speed) var(--wwa-ease);
  will-change: transform;
}
.nmsh-wwa-btn--primary {
  background: var(--wwa-navy);
  color: #fff;
  box-shadow: 0 10px 26px rgba(3, 47, 65, .22);
}
.nmsh-wwa-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(3, 47, 65, .30);
}
.nmsh-wwa-btn--secondary {
  background: transparent;
  color: var(--wwa-navy);
  border-color: rgba(3, 47, 65, .22);
}
.nmsh-wwa-btn--secondary:hover {
  border-color: var(--wwa-navy);
  background: rgba(3, 47, 65, .04);
  transform: translateY(-2px);
}

/* ── Authority Badges ── */
.nmsh-wwa-auth {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 34px 0 0;
  padding: 20px 8px;
  border-radius: 18px;
  background: var(--wwa-surface);
  border: 1px solid var(--wwa-border);
  box-shadow: 0 8px 30px rgba(3, 47, 65, .05);
}
.nmsh-wwa-auth-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 6px 12px;
  position: relative;
  transition: transform var(--wwa-speed) var(--wwa-ease);
}
.nmsh-wwa-auth-item+.nmsh-wwa-auth-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  width: 1px;
  background: var(--wwa-border);
}
.nmsh-wwa--hover .nmsh-wwa-auth-item:hover {
  transform: translateY(-3px);
}
.nmsh-wwa-auth-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--wwa-accent);
  font-size: 22px;
}
.nmsh-wwa-auth-ic img {
  max-width: 40px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.nmsh-wwa-auth-lbl {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wwa-navy);
}

/* ── Statistics ── */
.nmsh-wwa-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 24px 0 0;
  padding: 22px 8px;
  border-radius: 18px;
  background: var(--wwa-surface);
  border: 1px solid var(--wwa-border);
  box-shadow: 0 8px 30px rgba(3, 47, 65, .05);
}
.nmsh-wwa-stat {
  position: relative;
  padding: 4px 14px;
  min-width: 0;
}
.nmsh-wwa-stat+.nmsh-wwa-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 52px;
  width: 1px;
  background: var(--wwa-border);
}
.nmsh-wwa-stat-ic {
  display: inline-flex;
  align-items: center;
  color: var(--wwa-accent);
  font-size: 18px;
  margin-bottom: 8px;
}
.nmsh-wwa-stat-num {
  display: block;
  font-family: var(--nms-font-display, 'Spartan', system-ui, sans-serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1;
  color: var(--wwa-navy);
  font-variant-numeric: tabular-nums;
}
.nmsh-wwa-stat-lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--wwa-ink);
  margin-top: 8px;
}
.nmsh-wwa-stat-sub {
  display: block;
  font-size: 11.5px;
  color: var(--wwa-gray);
  margin-top: 3px;
}

/* ── Glass Card ── */
.nmsh-wwa-card {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px rgba(3, 47, 65, .10);
  -webkit-backdrop-filter: blur(var(--wwa-blur));
  backdrop-filter: blur(var(--wwa-blur));
  overflow: hidden;
  min-height: 420px;
}

/* ── Tabs ── */
.nmsh-wwa-tabs {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--wwa-border);
}
.nmsh-wwa-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid var(--wwa-border);
  border-radius: 14px;
  background: var(--wwa-surface);
  color: var(--wwa-gray);
  font-family: var(--nms-font-sans, 'Nunito Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--wwa-speed) var(--wwa-ease),
              color var(--wwa-speed) var(--wwa-ease),
              border-color var(--wwa-speed) var(--wwa-ease),
              transform var(--wwa-speed) var(--wwa-ease),
              box-shadow var(--wwa-speed) var(--wwa-ease);
  will-change: transform;
}
.nmsh-wwa-tab:hover:not(.is-active) {
  border-color: rgba(5, 116, 133, .4);
  color: var(--wwa-accent-2);
  transform: translateY(-2px);
}
.nmsh-wwa-tab.is-active {
  background: var(--wwa-accent);
  color: #fff;
  border-color: var(--wwa-accent);
  box-shadow: 0 12px 26px rgba(5, 116, 133, .28);
}
.nmsh-wwa-tab-ic {
  font-size: 20px;
  line-height: 1;
}
.nmsh-wwa-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: var(--wwa-ind-w, calc((100% - (var(--wwa-tab-count, 3) - 1) * 10px)/ var(--wwa-tab-count, 3)));
  border-radius: 3px;
  background: var(--wwa-ind);
  transform: translateX(var(--wwa-ind-x, 0));
  transition: transform var(--wwa-speed) var(--wwa-ease),
              width var(--wwa-speed) var(--wwa-ease);
}

/* ── Panels ── */
.nmsh-wwa-panels {
  position: relative;
  padding-top: 24px;
}
.nmsh-wwa-panel {
  display: none;
}
.nmsh-wwa-panel.is-active {
  display: block;
  animation: nmshWwaFade var(--wwa-speed) var(--wwa-ease) both;
}
@keyframes nmshWwaFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.nmsh-wwa-panel-rule {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--wwa-accent);
  margin-bottom: 20px;
}
.nmsh-wwa-panel-title {
  font-family: var(--nms-font-display, 'Spartan', system-ui, sans-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  color: var(--wwa-navy);
  margin: 0 0 14px;
  line-height: 1.15;
}
.nmsh-wwa-panel-text {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--wwa-gray);
  margin: 0 0 22px;
}

/* ── Feature List ── */
.nmsh-wwa-feat {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.nmsh-wwa-feat li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wwa-ink);
}
.nmsh-wwa-feat-ic {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--wwa-accent);
  margin-top: 1px;
}
.nmsh-wwa-feat-ic svg {
  width: 20px;
  height: 20px;
}

/* ── Highlight Callout ── */
.nmsh-wwa-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(5, 116, 133, .08), rgba(3, 47, 65, .05));
  border: 1px solid rgba(5, 116, 133, .16);
}
.nmsh-wwa-callout-ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wwa-surface);
  color: var(--wwa-accent);
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(5, 116, 133, .18);
}
.nmsh-wwa-callout-txt {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--wwa-navy);
}

/* ── Skyline Background ── */
.nmsh-wwa-skyline {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  border-radius: inherit;
}

/* ── Scroll Reveal ── */
.nmsh-wwa--reveal[data-r] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--wwa-ease), transform .6s var(--wwa-ease);
}
.nmsh-wwa--reveal[data-r].is-in {
  opacity: 1;
  transform: none;
}
.no-js.nmsh-wwa--reveal[data-r] {
  opacity: 1;
  transform: none;
}
.elementor-editor-active .nmsh-wwa--reveal [data-r] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤992px)
   ═══════════════════════════════════════════════════════════════════ */
@media(max-width:992px) {
  .nmsh-wwa-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .nmsh-wwa-left, .nmsh-wwa-right {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .nmsh-wwa-right {
    order: 2;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ═══════════════════════════════════════════════════════════════════ */
@media(max-width:768px) {
  .nmsh-wwa-inner {
    padding: 0 20px;
  }
  .nmsh-wwa-grid {
    gap: 32px;
  }
  .nmsh-wwa-heading {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .nmsh-wwa-intro {
    font-size: 15px;
    line-height: 1.6;
    max-width: none;
  }
  .nmsh-wwa-actions {
    margin-top: 24px;
    gap: 12px;
  }
  .nmsh-wwa-btn {
    padding: 14px 22px;
    font-size: 14px;
  }

  /* Authority badges → 2×2 grid */
  .nmsh-wwa-auth {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 0;
    padding: 16px 12px;
    margin-top: 24px;
  }
  .nmsh-wwa-auth-item {
    padding: 8px 6px;
  }
  .nmsh-wwa-auth-item + .nmsh-wwa-auth-item::before {
    display: none;
  }
  .nmsh-wwa-auth-ic {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .nmsh-wwa-auth-lbl {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Stats → 2×2 grid */
  .nmsh-wwa-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 0;
    padding: 16px 12px;
    margin-top: 20px;
  }
  .nmsh-wwa-stat {
    padding: 8px 10px;
  }
  .nmsh-wwa-stat + .nmsh-wwa-stat::before {
    display: none;
  }
  .nmsh-wwa-stat-num {
    font-size: clamp(20px, 5vw, 26px);
  }
  .nmsh-wwa-stat-lbl {
    font-size: 12px;
    margin-top: 6px;
  }
  .nmsh-wwa-stat-sub {
    font-size: 11px;
  }

  /* Card */
  .nmsh-wwa-card {
    padding: 24px 20px;
    min-height: auto;
    border-radius: 20px;
  }

  /* Tabs */
  .nmsh-wwa-tabs {
    gap: 6px;
    padding-bottom: 12px;
  }
  .nmsh-wwa-tab {
    padding: 12px 8px;
    font-size: 12px;
    border-radius: 10px;
  }
  .nmsh-wwa-tab-ic {
    font-size: 16px;
  }

  /* Panels */
  .nmsh-wwa-panels {
    padding-top: 16px;
  }
  .nmsh-wwa-panel-title {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 10px;
  }
  .nmsh-wwa-panel-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .nmsh-wwa-feat {
    gap: 10px;
    margin-bottom: 16px;
  }
  .nmsh-wwa-feat li {
    font-size: 14px;
    gap: 10px;
  }
  .nmsh-wwa-feat-ic svg {
    width: 18px;
    height: 18px;
  }

  /* Callout */
  .nmsh-wwa-callout {
    padding: 16px 18px;
    gap: 12px;
    border-radius: 12px;
  }
  .nmsh-wwa-callout-ic {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .nmsh-wwa-callout-txt {
    font-size: 13px;
  }

  /* Label */
  .nmsh-wwa-label {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤480px)
   ═══════════════════════════════════════════════════════════════════ */
@media(max-width:480px) {
  .nmsh-wwa-inner {
    padding: 0 16px;
  }
  .nmsh-wwa-grid {
    gap: 28px;
  }
  .nmsh-wwa-heading {
    font-size: clamp(22px, 7vw, 28px);
  }
  .nmsh-wwa-intro {
    font-size: 14px;
  }

  /* Buttons stack full-width */
  .nmsh-wwa-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nmsh-wwa-btn {
    justify-content: center;
    padding: 13px 20px;
    font-size: 13px;
  }

  /* Tabs tighter */
  .nmsh-wwa-tabs {
    gap: 4px;
  }
  .nmsh-wwa-tab {
    padding: 10px 6px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .nmsh-wwa-tab-ic {
    font-size: 14px;
  }

  /* Authority badges */
  .nmsh-wwa-auth {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
    padding: 14px 10px;
  }
  .nmsh-wwa-auth-ic {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .nmsh-wwa-auth-lbl {
    font-size: 10px;
  }

  /* Stats */
  .nmsh-wwa-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
    padding: 14px 10px;
  }
  .nmsh-wwa-stat {
    padding: 6px 8px;
  }
  .nmsh-wwa-stat-num {
    font-size: clamp(18px, 5vw, 22px);
  }
  .nmsh-wwa-stat-lbl {
    font-size: 11px;
    margin-top: 4px;
  }

  /* Card */
  .nmsh-wwa-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  /* Callout */
  .nmsh-wwa-callout {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }
  .nmsh-wwa-callout-ic {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .nmsh-wwa-callout-txt {
    font-size: 12px;
  }

  /* Panel */
  .nmsh-wwa-panel-title {
    font-size: clamp(16px, 5vw, 20px);
  }
  .nmsh-wwa-panel-text {
    font-size: 13px;
  }
  .nmsh-wwa-feat li {
    font-size: 13px;
    gap: 8px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Very Small (≤360px)
   ═══════════════════════════════════════════════════════════════════ */
@media(max-width:360px) {
  .nmsh-wwa-inner {
    padding: 0 14px;
  }
  .nmsh-wwa-heading {
    font-size: 22px;
  }
  .nmsh-wwa-intro {
    font-size: 13px;
  }
  .nmsh-wwa-auth {
    grid-template-columns: 1fr 1fr;
    gap: 8px 0;
    padding: 12px 8px;
  }
  .nmsh-wwa-auth-ic {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .nmsh-wwa-auth-lbl {
    font-size: 9px;
  }
  .nmsh-wwa-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px 0;
    padding: 12px 8px;
  }
  .nmsh-wwa-stat-num {
    font-size: 18px;
  }
  .nmsh-wwa-stat-lbl {
    font-size: 10px;
  }
  .nmsh-wwa-stat-sub {
    font-size: 10px;
  }
  .nmsh-wwa-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .nmsh-wwa-tab {
    padding: 8px 4px;
    font-size: 10px;
  }
  .nmsh-wwa-tab-ic {
    font-size: 12px;
  }
  .nmsh-wwa-btn {
    padding: 12px 16px;
    font-size: 12px;
  }
  .nmsh-wwa-feat li {
    font-size: 12px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   ACCESSIBILITY — Reduced Motion
   ═══════════════════════════════════════════════════════════════════ */
@media(prefers-reduced-motion:reduce) {
  .nmsh-wwa *, .nmsh-wwa *::before, .nmsh-wwa *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .nmsh-wwa--reveal [data-r] {
    opacity: 1 !important;
    transform: none !important;
  }
}
