/* ============ BRAND FONT ============ */
/* Drop your "astronomous" font into assets/fonts/ named astronomous.woff2
   (or .ttf / .otf). Whichever format is present will be used; the others 404
   harmlessly. Falls back to Helvetica Neue until the file is added. */
@font-face {
  font-family: "Astronomous";
  src: url("assets/fonts/astronomous.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --yellow: #f5cf30;
  --ink: #121212;
  --white: #ffffff;
  --footer-bg: #000000;
  --footer-ink: #ffffff;
  --font-display: "Wix Madefor Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Wix Madefor Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-nav: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-brand: "Astronomous", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 62px;
  --maxw: 1265px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--yellow); color: #000; padding: 10px 16px; font-weight: 600; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ============ HEADER ============ */
/* Solid yellow accent strip pinned to the very top (44px desktop / 14px mobile). */
/* Yellow strip across the very top (full width, behind the logo block). */
.top-strip {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: var(--yellow); z-index: 100;
}

/* Solid yellow logo block, full header height, pinned flush to the top-left.
   The black band butts up against its right edge. */
.logo-block {
  position: fixed; top: 0; left: 0; z-index: 102;
  width: 150px; height: 160px;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.logo-block img { width: auto; height: 134px; object-fit: contain; }

/* Solid black nav band beneath the yellow strip, flush to the right of the logo. */
.site-header {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 101;
  display: flex; align-items: center;
  background: #000;
}
.header-inner {
  position: relative;
  width: 100%;
  padding: 0 40px 0 174px;            /* clear the 150px yellow logo block on the left */
  min-height: 96px;
  display: flex; align-items: center; gap: 24px;
}

/* Two-tone wordmark: SUPA white, SAFETY yellow */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-brand); font-weight: 400; font-size: 24px;
  letter-spacing: 1px; line-height: 1; white-space: nowrap;
}
.wm-supa { color: var(--white); }
.wm-safety { color: var(--yellow); }

/* Main nav — centered between the logo and the actions */
.main-nav { margin: 18px auto 0; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 40px; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  font-family: var(--font-brand);
  font-size: 16px; font-weight: 400; color: var(--white);
  letter-spacing: normal; line-height: 1;
  padding: 22px 0; display: inline-block;
  transition: color .3s var(--ease);
}
.nav-link:hover,
.nav-item.has-mega:hover > .nav-link { color: var(--yellow); }
.nav-link.is-active { color: var(--yellow); }

/* Full-width white mega panel (matches the original flyout) */
.mega-menu {
  position: fixed; left: 0; right: 0; top: 160px;
  background: #ffffff; color: #000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  /* Hiding is DELAYED so the cursor can travel from the link down to the panel
     without the menu vanishing; showing is immediate. */
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .35s;
}
.nav-item.has-mega:hover .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
/* Invisible bridge below each menu item so moving straight down keeps the hover. */
.nav-item.has-mega::after {
  content: ""; position: absolute; left: -30px; right: -30px; top: 100%; height: 40px;
}
.mega-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 34px 200px 40px;
  display: flex; gap: 90px; flex-wrap: wrap;
}
.mega-col { display: flex; flex-direction: column; gap: 12px; min-width: 130px; }
.mega-head {
  font-family: var(--font-nav); font-weight: 700; font-size: 13.5px;
  letter-spacing: .67px; color: #000; margin-bottom: 2px;
  transition: color .2s var(--ease);
}
.mega-head:hover { color: var(--yellow); }
.mega-sub {
  font-family: var(--font-nav); font-size: 10.5px; font-weight: 400; letter-spacing: .52px; color: #222;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.mega-sub:hover { color: var(--yellow); transform: translateX(3px); }

/* header actions */
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--white); font-size: 12px; font-weight: 400;
  font-family: var(--font-nav); padding: 4px; transition: color .3s var(--ease);
}
.icon-btn:hover { color: var(--yellow); }
.cart-btn { position: relative; color: var(--yellow); }
.cart-btn:hover { color: #fff; }
.cart-count { display: none; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 6px; background: none; border: 0; padding: 6px; width: 40px; height: 40px; }
.hamburger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s var(--ease); }

/* ============ MOBILE NAV ============ */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background: #141414; color: #fff; z-index: 200;
  transform: translateX(100%); transition: transform .38s var(--ease);
  padding: 76px 24px 32px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-close {
  position: absolute; top: 18px; right: 20px; background: none; border: 0;
  color: #fff; font-size: 34px; line-height: 1; padding: 0 8px;
}
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-list a, .m-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  color: #fff; background: none; border: 0; text-align: left;
  font-family: var(--font-brand); font-size: 17px; font-weight: 500;
  padding: 15px 2px;
}
.mobile-list a.is-active { color: var(--yellow); }
.m-toggle .chev { font-size: 22px; font-weight: 300; transition: transform .25s var(--ease); }
.m-toggle[aria-expanded="true"] .chev { transform: rotate(45deg); }
.m-sub { list-style: none; margin: 0; padding: 0 0 8px 12px; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.m-sub.open { max-height: 800px; }
.m-sub a { font-family: var(--font-text); font-size: 13px; font-weight: 400; letter-spacing: .5px; color: #cfcfcf; padding: 9px 2px; }
.m-sub a:hover { color: var(--yellow); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; opacity: 0; transition: opacity .3s var(--ease); }
.mobile-overlay.show { opacity: 1; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--white);
  max-width: 780px; padding: 0 24px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.45rem);
  line-height: 1.2; letter-spacing: -.5px; margin: 0 0 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero-text {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.6;
  margin: 0 auto; max-width: 640px; text-shadow: 0 1px 14px rgba(0,0,0,.45);
}

/* reveal animation */
.hero-title, .hero-text { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero-title { animation-delay: .15s; }
.hero-text { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============ FOOTER ============ */
/* Black footer with a yellow logo block flush in the bottom-left corner. */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-ink); min-height: 170px; }
.footer-logo-block {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 150px; background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-block img { width: auto; height: 128px; object-fit: contain; }

.footer-content { padding: 30px 40px 24px 190px; }
.footer-cols {
  display: flex; justify-content: space-between; gap: 40px; align-items: flex-start;
}
.footer-col { text-align: center; flex: 1; }
.footer-col p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: #ffffff; }
.footer-col a { color: #ffffff; }
.footer-col a:hover { color: var(--yellow); }
.footer-copy { text-align: center; margin: 22px 0 0; font-size: 15px; color: #ffffff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .nav-list { gap: 30px; }
  .header-inner { padding: 0 28px 0 174px; }
  .mega-inner { padding: 34px 80px 40px; gap: 60px; }
}
/* Collapses to the hamburger below ~1000px */
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .footer-cols { flex-wrap: wrap; justify-content: center; row-gap: 22px; }
  .footer-col { flex: 0 0 45%; }
}
@media (max-width: 700px) {
  .footer-content { padding: 26px 20px 22px 130px; }
  .footer-logo-block { width: 110px; }
  .footer-logo-block img { height: 92px; }
  .footer-col { flex: 0 0 100%; }
}
@media (max-width: 560px) {
  .top-strip { height: 40px; }
  .logo-block { width: 96px; height: 110px; }
  .logo-block img { height: 84px; }
  .site-header { top: 40px; }
  .header-inner { padding: 0 12px 0 108px; gap: 8px; min-height: 70px; }
  .brand-name { font-size: 18px; }
  .header-actions { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .hero-title, .hero-text { opacity: 1; transform: none; }
}
