/* ==========================================================================
   SPG TRADE — Components
   Header, Navigation, Mega-menu, Buttons, Product Cards, Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}

.hdr.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(24, 60, 85, 0.04);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--d1) var(--ease);
}

.logo:hover {
  opacity: 0.85;
}

.logo__img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 2px;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d2) var(--ease);
}

.nav__link:hover {
  color: var(--accent);
  background-color: rgba(2, 132, 199, 0.06);
}

.nav__link:hover::after,
.nav__link[aria-current]::after {
  transform: scaleX(1);
}

/* Mega Menu Button & Drawer */
.has-mega {
  padding-right: 0.2rem;
}

.mega-btn {
  background: none;
  border: none;
  padding: 0.5rem 0.35rem;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--d1) var(--ease);
}

.mega-btn__arrow {
  width: 9px;
  height: 6px;
  transition: transform var(--d2) var(--ease);
}

.mega-btn[aria-expanded="true"] .mega-btn__arrow {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: 100%;
  left: -2rem;
  width: min(620px, 94vw);
  background-color: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 36px rgba(24, 60, 85, 0.08);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease), visibility var(--d2);
  pointer-events: none;
  border-radius: var(--r);
}

.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}

.mega__all {
  font-family: var(--f-sans);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  transition: all var(--d1) var(--ease);
}

.mega__all:hover {
  background: #e0f2fe;
  color: var(--accent-hover);
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mega__card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}

.mega__card:hover,
.mega__card:focus-visible {
  background-color: var(--pale);
  border-color: var(--baby);
  box-shadow: var(--shadow-subtle);
}

.mega__thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.mega__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.mega__meta {
  display: block;
  font-size: 0.725rem;
  color: var(--body);
  margin-top: 0.2rem;
}

/* Mobile Hamburger Button */
.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 101;
}

.burger__icon i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background-color: var(--ink);
  transition: transform var(--d2) var(--ease);
}

.burger__icon i:first-child {
  top: 18px;
}

.burger__icon i:last-child {
  top: 25px;
}

.burger[aria-expanded="true"] .burger__icon i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__icon i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons & Links (Advance Animated 2026 Tactile Maritime System)
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #0f2439 0%, #091929 100%);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.85rem;
  border: 1px solid #1e3f60;
  border-radius: var(--r-sm);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  outline: none;
  box-shadow: 0 4px 14px rgba(9, 25, 41, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background 0.3s ease,
              color 0.25s ease;
}

/* Background Slide Layer */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(102%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

/* Light Sweep / Crystal Reflection */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    rgba(224, 242, 254, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

/* Hover State */
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.35),
              0 0 16px rgba(2, 132, 199, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover::after {
  left: 170%;
}

/* Tactile Active State */
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 8px rgba(9, 25, 41, 0.2);
  transition-duration: 0.1s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn .btn__arrow,
.btn::selection {
  user-select: none;
}

/* Primary Accent Variant */
.btn--primary,
.btn--accent {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #0284c7;
  color: #FFFFFF;
}

.btn--primary::before,
.btn--accent::before {
  background: linear-gradient(180deg, #0369a1 0%, #075985 100%);
}

/* Compact Variant */
.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  border-radius: var(--r-sm);
}

/* Pristine White / Slate Variant */
.btn--white,
.btn--lt {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.btn--white::before,
.btn--lt::before {
  background: var(--pale);
}

.btn--white::after,
.btn--lt::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(2, 132, 199, 0.2),
    rgba(224, 242, 254, 0.35),
    transparent
  );
}

.btn--white:hover,
.btn--lt:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px -4px rgba(15, 23, 42, 0.12),
              0 0 12px rgba(2, 132, 199, 0.15);
}

/* Transparent Ghost Variant */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--ghost::before {
  background: var(--navy-deep);
}

.btn--ghost:hover {
  color: var(--white);
  border-color: var(--navy-deep);
  box-shadow: 0 6px 20px -3px rgba(9, 25, 41, 0.15);
}

.link {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding: 0.25rem 0.5rem;
  margin-inline: -0.5rem;
  border-radius: var(--r-sm);
  transition: all var(--d2) var(--ease);
}

.link::after {
  content: "\2192";
  margin-left: 0.45em;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link:hover {
  color: var(--accent-hover);
  background-color: var(--accent-wash);
  border-bottom-color: var(--accent);
}

.link:hover::after {
  transform: translateX(4px);
}

.link--light {
  color: #bae6fd;
}

.link--light:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: transparent;
}

.link--subtle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--body);
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  margin-inline: -0.65rem;
  border-radius: var(--r-sm);
  transition: all var(--d1) var(--ease);
}

.link--subtle:hover {
  color: var(--accent);
  background-color: var(--accent-wash);
  border-bottom-color: transparent;
}

.link[href^="mailto:"]::after,
.link[href^="tel:"]::after {
  display: none;
}

/* --------------------------------------------------------------------------
   Specification Badges & Technical Notes
   -------------------------------------------------------------------------- */
.spec-req-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-wash);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.02em;
}

.spec-dash {
  display: inline-block;
  color: var(--body-muted);
  font-size: 1rem;
  font-weight: 500;
}

.specnote {
  margin-top: 1.25rem;
  padding: 0.85rem 1.15rem;
  background: var(--accent-wash);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--r-sm);
  color: var(--accent-dark);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* --------------------------------------------------------------------------
   Product Cards (.pc) — Equal-Height Commercial Grid
   -------------------------------------------------------------------------- */
.pc {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.pc:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.42);
  box-shadow: 0 20px 36px -18px rgba(9, 25, 41, 0.18);
}

.pc__media {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  background-color: var(--pale);
  border-radius: calc(var(--r-card) - 4px);
  border: 1px solid var(--line);
}

.pc__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--pale);
}

.pc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc:hover .pc__img {
  transform: scale(1.06);
}

.pc__facet {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
  opacity: 0.8;
}

.pc__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 1.25rem;
  position: relative;
}

.pc__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-dark);
  background-color: var(--accent-wash);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-family: var(--f-mono);
  font-weight: 600;
  margin-bottom: 0.75rem;
  width: fit-content;
  letter-spacing: 0.04em;
}

.pc__title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.15rem + 0.45vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  min-height: calc(1.2em * 2);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
}

.pc__title-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pc__title-link:hover {
  color: var(--accent);
}

.pc__desc {
  font-size: 0.94rem;
  color: var(--body);
  line-height: 1.55;
  min-height: calc(1.55em * 3);
  margin-bottom: 1.25rem;
}

.pc__highlights {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-grow: 1;
}

.pc__highlights li {
  font-size: 0.82rem;
  color: var(--ink);
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.45;
  font-weight: 500;
}

.pc__highlights li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.pc__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.pc__actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.pc__actions .link {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pc__title,
  .pc__desc {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ftr {
  background-color: var(--ink);
  color: #c9dce8;
  padding-top: var(--sec);
  border-top: 1px solid var(--ink);
  position: relative;
  z-index: 10;
}

.ftr__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.logo--ftr {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.logo__img--ftr {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  height: 44px;
}

.ftr__desc {
  font-size: 0.925rem;
  line-height: 1.6;
  max-width: 48ch;
  color: #a4c2d6;
  margin-bottom: 1.5rem;
}

.ftr__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--baby);
  margin-bottom: 1.5rem;
}

.ftr__contact {
  font-size: 0.8rem;
  color: #d8e8f2;
  margin-bottom: 0.4rem;
}

.ftr__title {
  color: var(--baby);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(185, 223, 240, 0.2);
}

.ftr__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ftr__link {
  color: #d8e8f2;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  margin-inline: -0.65rem;
  border-radius: var(--r-sm);
  transition: color var(--d1) var(--ease), background var(--d1) var(--ease), transform var(--d1) var(--ease);
}

.ftr__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.ftr__link--emp {
  color: var(--baby);
  font-weight: 500;
}

.ftr__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(185, 223, 240, 0.15);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.75rem;
  font-size: 0.8125rem;
  color: #89a8bd;
}

.ftr__legal {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ftr__legal a {
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  margin-inline: -0.25rem;
  border-radius: var(--r-sm);
  transition: color var(--d1) var(--ease), background var(--d1) var(--ease);
}

.ftr__legal a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.ftr__top {
  font-family: var(--f-mono);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Navigation Sheet
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem var(--gut);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease), visibility var(--d2);
    z-index: 99;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item {
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav__link {
    font-size: 1.15rem;
    padding-block: 1rem;
    flex-grow: 1;
  }

  .mega {
    position: static;
    width: 100%;
    flex-basis: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 1rem;
  }

  .mega.is-open {
    display: block;
  }

  .has-mega:hover .mega:not(.is-open),
  .has-mega:focus-within .mega:not(.is-open) {
    display: none;
  }

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

  .nav__cta {
    margin-top: 2rem;
  }

  .nav__cta .btn {
    width: 100%;
  }

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