/* ═══════════════════════════════════════════════════════════════
   SenseAbility - Main Stylesheet
   Shared styles for all pages
══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   RESET & VARIABLES
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0b2a6b;
  --blue: #1a5cbf;
  --blue-light: #2e7de8;
  --blue-pale: #e8f0fd;
  --orange: #f47c20;
  --orange-dk: #d4650f;
  --orange-lt: #ffb366;
  --white: #ffffff;
  --off-white: #f6f8fc;
  --grey: #64748b;
  --grey-lt: #e2e8f0;
  --dark: #0f172a;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(11, 42, 107, .10);
  --shadow-lg: 0 12px 48px rgba(11, 42, 107, .16);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ─────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

p {
  line-height: 1.7;
  color: var(--grey);
}

.accent {
  color: var(--orange);
}

.lead {
  font-size: 1.1rem;
  color: var(--grey);
  line-height: 1.8;
  max-width: 640px;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all .25s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 124, 32, .35);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-lt);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 92, 191, .35);
}

.btn-sm {
  padding: .5rem 1rem;
  font-size: .85rem;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.text-center .lead {
  margin: 0 auto;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 {
  gap: 1rem;
}

.gap-sm {
  gap: .5rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 42, 107, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .3s;
}

#navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, .3);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-logo-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
}

.nav-logo-name span {
  color: var(--orange);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-link {
  color: rgba(255, 255, 255, .82);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: 8px;
  transition: all .2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  transition: all .2s;
}

.nav-cta:hover {
  background: var(--orange-dk) !important;
  transform: translateY(-1px);
}

/* Dropdown */
.nav-drop {
  position: relative;
}

.nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: rgba(255, 255, 255, .82);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: 8px;
  transition: all .2s;
  background: none;
  border: none;
}

.nav-drop-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-drop-toggle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform .25s;
}

.nav-drop:hover .nav-drop-toggle svg,
.nav-drop.open .nav-drop-toggle svg {
  transform: rotate(180deg);
}

.drop-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(11, 42, 107, .18);
  min-width: 560px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  transform: translateX(-50%) translateY(8px);
}

.nav-drop:hover .drop-panel,
.nav-drop.open .drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  transition: background .2s;
}

.drop-item:hover {
  background: var(--blue-pale);
}

.drop-ico {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.drop-info strong {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: var(--navy);
}

.drop-info span {
  font-size: .75rem;
  color: var(--grey);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: .3rem;
}

.mobile-nav {
  display: none;
  background: var(--navy);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: rgba(255, 255, 255, .85);
  padding: .65rem .5rem;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--orange);
}

/* ─────────────────────────────────────────────
   PAGE HERO
───────────────────────────────────────────── */
.page-hero {
  padding-top: 68px;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1042a8 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--orange-lt);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, .75);
}

.page-hero-breadcrumbs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

.page-hero-breadcrumbs a {
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}

.page-hero-breadcrumbs a:hover {
  color: var(--orange-lt);
}

/* ─────────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────────── */
.prod-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  display: block;
  color: inherit;
  position: relative;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.prod-card-top {
  height: 4px;
  width: 100%;
}

.prod-card-body {
  padding: 1.6rem;
}

.prod-ico-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.prod-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .2rem;
}

.prod-sub {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: .75rem;
}

.prod-desc {
  font-size: .875rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}

.prod-tag {
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 50px;
}

.prod-arrow {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
  transition: color .2s;
}

.prod-card:hover .prod-arrow {
  color: var(--orange);
}

/* Product color themes */
.c-blue-ice {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.c-plum {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.c-teal {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}

.c-green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.c-amber {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.c-rose {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
}

.c-indigo {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.c-sky {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

/* ─────────────────────────────────────────────
   SECTOR TABS
───────────────────────────────────────────── */
.sector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}

.stab {
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  border: 2px solid var(--grey-lt);
  background: #fff;
  color: var(--grey);
  cursor: pointer;
  transition: all .2s;
}

.stab:hover,
.stab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.sector-pane {
  display: none;
}

.sector-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.sector-text h3 {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.sector-text p {
  font-size: .925rem;
  margin-bottom: 1rem;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.25rem;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--dark);
}

.benefit-dot {
  width: 22px;
  height: 22px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.benefit-dot svg {
  width: 10px;
  height: 10px;
}

.sector-vis {
  background: linear-gradient(155deg, var(--navy), var(--blue));
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.sector-vis-bg {
  position: absolute;
  inset: 0;
  font-size: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .07;
  pointer-events: none;
  overflow: hidden;
}

.sector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  position: relative;
  z-index: 1;
}

.sector-pill {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 50px;
}

.sector-vis p.slabel {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .85rem;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: #070f1d;
  color: rgba(255, 255, 255, .55);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.foot-brand p {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .45);
  margin: 1rem 0 1.5rem;
}

.foot-social {
  display: flex;
  gap: .6rem;
}

.fsoc {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .07);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  font-size: .9rem;
  transition: all .2s;
}

.fsoc:hover {
  background: var(--orange);
  color: #fff;
}

.foot-col h5 {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.foot-links a {
  color: rgba(255, 255, 255, .45);
  font-size: .84rem;
  transition: color .2s;
}

.foot-links a:hover {
  color: var(--orange);
}

.foot-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .83rem;
  margin-bottom: .65rem;
}

.foot-contact-item svg {
  width: 14px;
  height: 14px;
  fill: var(--orange);
  flex-shrink: 0;
  margin-top: .2rem;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-bottom p {
  font-size: .8rem;
}

.foot-legal {
  display: flex;
  gap: 1.5rem;
}

.foot-legal a {
  color: rgba(255, 255, 255, .35);
  font-size: .8rem;
  transition: color .2s;
}

.foot-legal a:hover {
  color: var(--orange);
}

/* ─────────────────────────────────────────────
   FADE-IN ANIMATION
───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

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

.d1 {
  transition-delay: .1s;
}

.d2 {
  transition-delay: .2s;
}

.d3 {
  transition-delay: .3s;
}

.d4 {
  transition-delay: .4s;
}

.d5 {
  transition-delay: .5s;
}

.d6 {
  transition-delay: .6s;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .grid-2,
  .sector-pane.active {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .foot-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .drop-panel {
    min-width: 90vw;
    left: 0;
    transform: none;
  }

  .nav-drop:hover .drop-panel {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.6rem;
  }
}
