/* ============================================================
   ARDENS WRLD — GLOBAL STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Unbounded:wght@600;700;800;900&family=Share+Tech+Mono&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #000000;
  --white:  #ffffff;
  --red:    #C1121F;
  --chrome: linear-gradient(135deg, #a8a8a8 0%, #e8e8e8 40%, #c0c0c0 60%, #888 100%);
  --chrome-solid: #b8b8b8;
  --display: 'Unbounded', sans-serif;
  --mono:    'Space Mono', monospace;
  --kartel:  'Share Tech Mono', monospace;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   LOADING SCREEN — on every page, fires on exit
   ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  will-change: opacity;
}
#loading-screen.active {
  opacity: 1;
  pointer-events: all;
}
.ls-globe {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--chrome-solid);
  border-radius: 50%;
  position: relative;
  animation: globe-spin 2.5s linear infinite;
}
.ls-globe::before {
  content: '';
  position: absolute;
  top: 50%; left: -3px; right: -3px;
  height: 1px;
  background: rgba(184,184,184,0.4);
}
.ls-globe::after {
  content: '';
  position: absolute;
  left: 50%; top: -3px; bottom: -3px;
  width: 1px;
  background: rgba(184,184,184,0.4);
}
.ls-ring {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184,184,184,0.25);
  border-radius: 50%;
}
.ls-ring2 {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(184,184,184,0.12);
  border-radius: 50%;
}
.ls-quote {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--chrome-solid);
  text-align: center;
  max-width: 320px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  text-transform: uppercase;
  padding: 0 20px;
}
.ls-lang {
  font-family: var(--kartel);
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
@keyframes globe-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  touch-action: manipulation;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  background: var(--chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.current { color: var(--white); }
.nav-bag {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-bag:hover { color: var(--white); }
.bag-dot {
  position: absolute;
  top: -7px; right: -10px;
  width: 15px; height: 15px;
  background: var(--red);
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--white);
}

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.btn-white {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.btn-white:hover {
  background: var(--red);
  color: var(--white);
}
.btn-outline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-outline:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-enter {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 18px 44px;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.btn-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
.btn-enter:hover {
  border-color: var(--red);
  box-shadow: 0 0 24px rgba(193,18,31,0.25);
}
.btn-enter:hover::before { transform: translateX(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  background: var(--chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.08em;
}
.footer-kartel {
  font-family: var(--kartel);
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============================================================
   BACK BUTTON
   ============================================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 40px;
}
.back-btn:hover { color: var(--white); }

/* ============================================================
   PRODUCT CARD (shared across home + shop)
   ============================================================ */
.product-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  display: block;
}
.card-img {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.card-front, .card-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.card-front {
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 25px,
    rgba(255,255,255,0.018) 25px,
    rgba(255,255,255,0.018) 26px
  );
}
.card-back {
  opacity: 0;
  background: rgba(193,18,31,0.04);
}
.product-card:hover .card-front { opacity: 0; }
.product-card:hover .card-back  { opacity: 1; }
.card-label {
  font-family: var(--kartel);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
}
.card-info {
  padding: 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.card-tag {
  font-family: var(--kartel);
  font-size: 8px;
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--white);
}
.card-price {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.on { opacity: 1; transform: translateY(0); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 24px;
  z-index: 9998;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
  flex-shrink: 0;
  touch-action: manipulation;
  position: relative;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hamburger discoverability hint ── */
.nav-hamburger-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  animation: hb-pulse 1.7s ease-out infinite;
}
@keyframes hb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(193,18,31,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(193,18,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(193,18,31,0); }
}
@keyframes hb-shake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-16deg); }
  30% { transform: rotate(14deg); }
  45% { transform: rotate(-12deg); }
  60% { transform: rotate(10deg); }
  75% { transform: rotate(-6deg); }
}
.nav-hamburger.hb-shake { animation: hb-shake 0.6s ease-in-out 3; }

/* ============================================================
   MOBILE DROPDOWN DRAWER
   ============================================================ */
.nav-drawer {
  display: none;
  position: fixed;
  top: 53px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 198;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 0 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}
.nav-drawer ul li a {
  display: block;
  width: 100%;
  padding: 13px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  touch-action: manipulation;
}
.nav-drawer ul li a.current { color: var(--white); }
.nav-drawer-bag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
  touch-action: manipulation;
}
.nav-drawer-tag { display: none; }

/* ============================================================
   RESPONSIVE + MOBILE PERFORMANCE
   ============================================================ */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 14px 20px;
    backdrop-filter: none;          /* remove blur — kills scroll perf on mobile */
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.98);   /* solid enough without blur */
  }
  .nav-links    { display: none; }
  .nav-bag      { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer   { display: flex; }

  /* Kill heavy repeating gradients on mobile — not worth the GPU cost */
  .hero,
  .story-media,
  .about-hero {
    background-image: none !important;
  }
  /* Strip only the stripe pattern from card-front, not actual product images */
  .card-front:not([style*="background-image"]) {
    background: none;
  }

  /* Footer */
  .footer { padding: 48px 20px 32px; }
  .footer-inner { flex-direction: column; gap: 28px; }

  /* Buttons — faster tap response */
  .btn-white, .btn-outline, .btn-enter,
  .checkout-btn, .atc-btn, .kartel-btn {
    touch-action: manipulation;
  }
}
