body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #132030;
  background: #f3f7fa;
}

a {
  text-decoration: none;
}

.site-topbar {
  background: linear-gradient(90deg, #08213b, #0f4a80, #1696d6);
  color: #d8e5f8;
  font-size: 0.92rem;
}

.topbar-call {
  color: #ffffff;
  font-weight: 700;
}

.topbar-call:hover {
  color: #bfe9ff;
}

.shop-hero {
  background:
    linear-gradient(125deg, rgba(6, 26, 49, 0.86), rgba(15, 75, 126, 0.78) 58%, rgba(27, 162, 222, 0.72)),
    url("/images/brand/spiff-gallery-09.jpg") center/cover no-repeat;
}

.shop-cat-fab {
  position: fixed;
  left: 0.9rem;
  bottom: 1.1rem;
  z-index: 1080;
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.82rem 0.52rem 0.58rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #0a3e6e, #1485c0);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 45, 76, 0.28);
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-cat-fab-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.shop-cat-fab-icon svg {
  width: 1rem;
  height: 1rem;
}

.shop-cat-tip {
  position: fixed;
  left: 0.95rem;
  bottom: 4.35rem;
  z-index: 1080;
  max-width: 220px;
  padding: 0.5rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  color: #dff3ff;
  background: rgba(3, 26, 49, 0.88);
  border: 1px solid rgba(57, 169, 230, 0.34);
  box-shadow: 0 10px 26px rgba(5, 28, 46, 0.32);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.shop-cat-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-cat-offcanvas .offcanvas-header {
  background: linear-gradient(130deg, #0a3d6d, #1486c1);
  color: #fff;
}

.shop-cat-offcanvas .offcanvas-title {
  font-weight: 700;
}

.about-hero {
  background:
    linear-gradient(125deg, rgba(6, 26, 49, 0.86), rgba(14, 62, 104, 0.78) 56%, rgba(21, 146, 206, 0.72)),
    url("/images/brand/spiff-gallery-01.jpg") center/cover no-repeat;
}

.contact-hero {
  background:
    linear-gradient(125deg, rgba(6, 26, 49, 0.88), rgba(14, 62, 104, 0.8) 56%, rgba(21, 146, 206, 0.72)),
    url("/images/brand/spiff-gallery-05.jpg") center/cover no-repeat;
}

.contact-list .section-kicker {
  color: #3378a5;
}

.contact-dept-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 0.9rem;
}

.map-shell {
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(8, 46, 76, 0.18);
  box-shadow: 0 20px 40px rgba(8, 38, 64, 0.18);
}

.map-shell iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.about-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 1rem;
}

.about-media-main {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 18px 42px rgba(10, 28, 45, 0.18);
}

.about-media-stack {
  display: grid;
  gap: 1rem;
}

.about-media-stack img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  border-radius: 1.3rem;
  box-shadow: 0 14px 30px rgba(10, 28, 45, 0.15);
}

.about-badge-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.about-pill {
  border-radius: 999px;
  padding: 0.38rem 0.74rem;
  font-size: 0.82rem;
  color: #0f3252;
  background: rgba(21, 146, 206, 0.14);
  border: 1px solid rgba(17, 117, 170, 0.26);
}

.about-dept-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 1rem;
}

.about-strip {
  border-radius: 1.4rem;
  padding: 1rem;
  background: linear-gradient(115deg, #062848, #0f4c80 55%, #1492cf);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  box-shadow: 0 22px 44px rgba(10, 35, 57, 0.22);
}

.about-strip-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.94);
}

.about-strip-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.78;
}

.about-strip-item span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
}

.about-mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.about-mini-gallery img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  border-radius: 0.95rem;
  box-shadow: 0 12px 28px rgba(12, 34, 57, 0.18);
}

.main-nav {
  box-shadow: 0 8px 18px rgba(10, 23, 39, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  top: 0 !important;
  z-index: 1045;
}

.main-nav .container {
  min-width: 0;
}

.main-nav .nav-link.active {
  color: #e52139 !important;
  font-weight: 700;
}

.main-nav .nav-link {
  white-space: nowrap;
}

.main-nav .nav-link .badge {
  margin-left: 0.15rem;
  min-width: 1.35rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.05;
  padding: 0.28em 0.45em;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 999px;
  padding: 0.1rem;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(12, 52, 89, 0.25);
  border: 2px solid rgba(22, 150, 214, 0.2);
  animation: logoBob 4.2s ease-in-out infinite;
}

.navbar-brand span {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #0a2744;
}

.brand-wordmark {
  height: 46px;
  width: auto;
  max-width: 240px;
  padding: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 999px;
  border: 2px solid rgba(22, 150, 214, 0.2);
  background: #fff;
}

.brand-combined {
  height: 70px;
  width: auto;
  max-width: min(48vw, 320px);
  object-fit: contain;
}

.main-nav .offcanvas-header {
  border-bottom: 1px solid rgba(12, 45, 76, 0.08);
  background: linear-gradient(180deg, #f6fbff, #edf6fd);
}

.main-nav .offcanvas-body {
  background: #ffffff;
}

.main-nav .offcanvas .nav-link {
  padding-block: 0.8rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(135deg, #051428 0%, #0a3c6c 42%, #1da9e9 100%);
  color: #fff;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.hero-shell::before {
  width: 240px;
  height: 240px;
  right: -40px;
  top: 70px;
  background: rgba(255, 255, 255, 0.14);
  animation: drift 9s ease-in-out infinite;
}

.hero-shell::after {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: 20px;
  background: rgba(18, 168, 224, 0.32);
  animation: drift 7s ease-in-out infinite reverse;
}

.hero-card,
.feature-card,
.story-card,
.product-card,
.testimonial-card,
.article-card,
.newsletter-panel,
.account-panel {
  border-radius: 1.7rem;
  border: 1px solid rgba(12, 23, 34, 0.08);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.hero-media {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
}

.hero-showcase {
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 44px rgba(5, 20, 40, 0.28);
  background: rgba(255, 255, 255, 0.08);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.hero-showcase.is-grabbing {
  cursor: grabbing;
}

.hero-showcase .carousel-item img {
  height: 460px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero-showcase .carousel-indicators {
  margin-bottom: 0.9rem;
  gap: 0.35rem;
}

.hero-showcase .carousel-indicators [data-bs-target] {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.62);
}

.hero-showcase .carousel-indicators .active {
  background-color: #ffffff;
  transform: scale(1.18);
}

.hero-showcase .carousel-control-prev,
.hero-showcase .carousel-control-next {
  width: 12%;
  opacity: 1;
}

.hero-showcase .carousel-control-prev-icon,
.hero-showcase .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background-color: rgba(7, 23, 42, 0.58);
  background-size: 55% 55%;
  backdrop-filter: blur(2px);
}

.wa-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.wa-fab {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  box-shadow: 0 16px 32px rgba(17, 118, 69, 0.34);
  animation: waPulse 2.1s ease-in-out infinite;
}

.wa-panel {
  width: min(92vw, 320px);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(6, 45, 32, 0.2);
  background: #fff;
  box-shadow: 0 22px 40px rgba(7, 33, 22, 0.24);
}

.wa-panel-header {
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #0f8a46, #25d366);
  color: #fff;
}

.wa-panel-body {
  padding: 0.85rem;
}

@keyframes waPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-slide-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(7, 23, 42, 0.72);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-brand {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  display: block;
  border-radius: 999px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.24);
}

.hero-symbol-only {
  background: #fff;
  padding: 0.4rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.hero-mini-card {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-mini-card img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: contain;
  background: #000;
}

.profile-carousel img {
  height: 420px;
  object-fit: cover;
}

.video-shell {
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(12, 56, 94, 0.16);
  box-shadow: 0 20px 40px rgba(11, 57, 94, 0.18);
}

.profile-video-shell {
  height: 420px;
}

.profile-video {
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-mini-card strong {
  color: #101b2b;
}

.hero-main-image {
  min-height: 560px;
  object-fit: cover;
  border-radius: 2rem;
}

.floating-stat {
  position: absolute;
  right: 5%;
  bottom: 10%;
  max-width: 240px;
  animation: float 5s ease-in-out infinite;
}

.section-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.05;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(18, 168, 224, 0.14);
  color: var(--primary-color);
  font-weight: 700;
}

.metric-card {
  border-radius: 1.5rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, #f6fbff 0%, #eaf4fc 100%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.product-card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.empty-catalog {
  border: 1px dashed rgba(16, 42, 66, 0.26);
  background: linear-gradient(180deg, #f9fbfd, #f2f8fd);
  border-radius: 1.3rem;
  padding: 2rem;
}

.shop-sidebar {
  position: sticky;
  top: 110px;
}

.shop-filter-link {
  display: block;
  padding: 0.52rem 0.65rem;
  border-radius: 0.7rem;
  color: #1d2d41;
  font-size: 0.95rem;
}

.shop-filter-link:hover {
  background: #edf5fc;
}

.shop-filter-link.active {
  background: rgba(18, 168, 224, 0.14);
  color: #0a4a72;
  font-weight: 700;
}

.shop-filter-sub {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.quote-panel {
  background:
    linear-gradient(135deg, rgba(46, 159, 120, 0.1), rgba(7, 17, 31, 0.08)),
    #fff;
}

.footer-shell {
  background: linear-gradient(120deg, #061c34, #0d4c80 45%, #147ab7);
  color: rgba(255, 255, 255, 0.75);
}

.footer-shell a {
  color: rgba(255, 255, 255, 0.82);
}


.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-success,
.bg-success {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-dark:hover,
.btn-dark {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.product-card,
.feature-card,
.metric-card {
  animation: cardPulse 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(14px, -16px, 0);
  }
}

@keyframes logoBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes cardPulse {
  0%, 100% {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  }
  50% {
    box-shadow: 0 22px 50px rgba(12, 66, 105, 0.14);
  }
}

@media (max-width: 1199px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .main-nav .offcanvas {
    --bs-offcanvas-width: 82vw;
    max-width: 360px;
  }

  .site-topbar {
    display: none;
  }

  .main-nav {
    padding-top: calc(0.3rem + env(safe-area-inset-top));
    padding-bottom: 0.3rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0 !important;
    left: 0;
    right: 0;
  }

  .brand-combined {
    height: 56px;
    max-width: 100%;
  }

  .main-nav .navbar-brand {
    max-width: calc(100% - 56px);
    min-width: 0;
  }

  .shop-sidebar {
    position: static;
  }

  .about-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-media-main {
    min-height: 340px;
  }

  .about-media-stack img {
    height: 210px;
  }

  .contact-dept-img {
    height: 210px;
  }

  .map-shell iframe {
    min-height: 340px;
  }

  .about-dept-img {
    height: 230px;
  }

  .about-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .navbar-toggler {
    border: 1px solid rgba(12, 62, 99, 0.2);
    border-radius: 0.7rem;
    padding: 0.4rem 0.55rem;
  }

  .floating-stat {
    position: static;
    margin-top: 1rem;
  }

  .hero-main-image {
    min-height: 360px;
  }

  .metric-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .profile-carousel img {
    height: 320px;
  }

  .hero-showcase .carousel-item img {
    height: 340px;
  }

  .profile-video-shell {
    height: 320px;
  }

  .footer-shell,
  .footer-shell span,
  .footer-shell a,
  .site-topbar,
  .site-topbar div {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (min-width: 1200px) {
  .main-nav .navbar-brand {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 0.75rem;
  }

  .main-nav .offcanvas-xl {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .main-nav .offcanvas-body {
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
  }

  .main-nav .navbar-nav {
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-end;
    gap: 0.35rem !important;
  }

  .main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding-inline: 0.45rem;
  }

  .main-nav .nav-item {
    flex: 0 0 auto;
  }

  .brand-combined {
    max-width: min(42vw, 280px);
  }
}

@media (min-width: 1200px) and (max-width: 1450px) {
  .brand-combined {
    height: 60px;
    max-width: 230px;
  }

  .main-nav .navbar-nav {
    gap: 0.2rem !important;
  }

  .main-nav .nav-link {
    padding-inline: 0.35rem;
    font-size: 0.98rem;
  }

  .main-nav .btn {
    padding-inline: 0.65rem;
    font-size: 0.94rem;
    white-space: nowrap;
  }
}
