/* ============================================================
   CELL OPERATIONS — global stylesheet
   Matches the dcv.supply (Squarespace) aesthetic so the app
   reads as one continuous world with the store.

   Type system (from live site Computed values):
     Body / nav / labels .... Gruppo            (Google)
     Section / FAQ headers .. Syne 700          (Google)
     Hero display ........... RS RAINE           (self-hosted woff)
     H3 (mint) .............. Disposabledroid BB (self-hosted woff)
     H4 / ascii headers ..... Gust               (self-hosted woff)

   Color:
     magenta  #ED1779   (rgb 237,23,121) display / accent / buttons
     mint     #66DDAF   secondary accent / H3
     black    #000000   background
     white    #FFFFFF   body text
   ============================================================ */

/* ---------- Adobe Typekit (licensed): DIN 2014, subway-berlin-sc, etc. ---------- */
@import url("https://use.typekit.net/haa5ird.css");

/* ---------- Self-hosted display fonts ----------
   Download these three .woff files from the URLs in the
   Squarespace Custom CSS and drop them in /assets/fonts/.
   Filenames below must match what you save. */
@font-face {
  font-family: 'Disposabledroid BB';
  src: url('/assets/fonts/DisposableDroidBB-Bold.woff') format('woff');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: 'Gust';
  src: url('/assets/fonts/Gust-Regular.woff') format('woff');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: 'OCR Ateka';
  src: url('/assets/fonts/OCR-Ateka-Regular.woff') format('woff');
  font-display: swap;
  font-weight: 100 900;
}

/* ---------- Design tokens ---------- */
:root {
  /* ============================================================
     TIER 1 — RAW VALUES (the actual hex codes / font names)
     Change a brand color here and it updates everywhere it's used.
     ============================================================ */
  --magenta: #ED1779;
  --mint:    #66DDAF;
  --black:   #000000;
  --white:   #FFFFFF;
  --grey:    #9a9a9a;

  --font-body:      'Gruppo', sans-serif;
  --font-section:   'Syne', sans-serif;
  --font-disposable:'Disposabledroid BB', sans-serif;  /* mint, boxy */
  --font-gust:      'OCR Ateka', sans-serif;            /* OCR Ateka */

  /* ============================================================
     TIER 2 — SEMANTIC ROLE TOKENS  ◄◄◄ EDIT THESE TO RE-SKIN
     One line controls the color of every element of that type,
     site-wide. e.g. to make all DIN sub-headers magenta instead
     of white, change --din-color to var(--magenta).
     ============================================================ */
  --din-color:   var(--mint);        /* Disposabledroid sub-headers — mint green */
  --din-glow:    102,221,175;        /* Disposabledroid glow (mint r,g,b) */
  --ocr-color:   var(--magenta);     /* OCR Ateka page titles */
  --ocr-glow:    237,23,121;         /* OCR glow (r,g,b) */

  --maxw: 1200px;
  --gutter: 6vw;
  --nav-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Type roles ----------
   Font/color binding is fixed by brand:
     Disposabledroid BB  -> ALWAYS mint  (#66DDAF), boxy/blocky font
     Gust                -> ALWAYS magenta(#ED1779), wide/long-character font
*/
.hero-display {            /* boxy mint Disposabledroid — ..YOU FOUND US.. */
  font-family: var(--font-disposable);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 92px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--din-color);
  margin: 0;
  text-align: center;
}
h1, .h-mint, h3, .h3,
.disposable {              /* boxy mint Disposabledroid */
  font-family: var(--font-disposable);
  color: var(--din-color);
  line-height: 0.9;
  margin: 0;
}
/* mint glow on the Disposabledroid display classes */
.hero-display, .h-mint, .disposable {
  text-shadow: 0 0 7px rgba(var(--din-glow),0.8), 0 0 16px rgba(var(--din-glow),0.5), 0 0 32px rgba(var(--din-glow),0.28);
}
.gust, h4, .h4 {           /* OCR Ateka display */
  font-family: var(--font-gust);
  color: var(--ocr-color);
  line-height: 0.9;
  margin: 0;
}
.section-head {
  font-family: var(--font-section);
  font-weight: 700;
  color: var(--magenta);
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  margin: 0;
}
.gust-display {          /* OCR Ateka — big page-title headers */
  font-family: var(--font-gust);
  color: var(--ocr-color);
  font-size: clamp(30px, 6vw, 92px);
  line-height: 0.95;
  margin: 0;
}
p { margin: 0 0 16px; }
.body-lg { font-size: 19px; }
.muted { color: var(--grey); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 80px 0; }      /* vertical rhythm lives ONLY here to avoid selector cancel-out */
.stack > * + * { margin-top: 24px; }

/* ============================================================
   HEADER / NAV  — mirrors the store's top-right layout
   logo left, nav right with folder dropdowns
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}
.site-header .logo { display: flex; align-items: center; gap: 12px; }
.site-header .logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.17px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0;
  background: none; border: 0;
}
.nav-link:hover { color: var(--mint); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav-caret { font-size: 11px; opacity: 0.8; }

/* dropdown */
.nav-folder > .dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 140px;
  background: #0a0a0a;
  border: 1px solid #1c1c1c;
  padding: 4px 0;
  display: none;
  flex-direction: column;
}
.nav-folder:hover > .dropdown,
.nav-folder:focus-within > .dropdown { display: flex; }
.dropdown a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  padding: 7px 16px;
  white-space: nowrap;
}
.dropdown a:hover { color: var(--mint); background: #141414; }

/* the Back row is mobile-only; never show it on desktop */
.nav-back { display: none; }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  /* the panel */
  .nav { display: none; position: absolute; top: var(--nav-h); right: 0; left: 0;
         flex-direction: column; align-items: stretch; gap: 0;
         background: #050505; padding: 8px 0 16px; }
  .nav.open { display: flex; }

  .nav-item { width: 100%; }

  /* top-level folder buttons: full width, Gruppo, store-like */
  .nav-link {
    width: 100%; justify-content: space-between;
    font-size: 19px; padding: 16px var(--gutter);
    border-bottom: 1px solid #141414;
  }
  .nav-caret { font-size: 13px; opacity: 0.7; }

  /* dropdowns hidden by default on mobile (no more always-open) */
  .nav-folder > .dropdown {
    position: static; display: none; border: 0; padding: 0; min-width: 0;
    background: transparent;
  }
  /* kill the desktop hover/focus reveal on mobile — tap focus was
     dropping the menu inline and fighting the drill-in. drill-in (JS)
     is the only thing that opens a submenu on mobile now. */
  .nav-folder:hover > .dropdown,
  .nav-folder:focus-within > .dropdown { display: none; }
  .dropdown a {
    font-size: 18px; padding: 16px var(--gutter);
    border-bottom: 1px solid #141414; white-space: normal;
  }

  /* a back row injected by nav.js at the top of each dropdown */
  .nav-back {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-size: 16px; color: var(--mint);
    padding: 16px var(--gutter); border-bottom: 1px solid #141414;
    background: none; border-left: 0; border-right: 0; border-top: 0;
    width: 100%; cursor: pointer; text-align: left;
  }
  .nav-back::before { content: "\25C1"; font-size: 13px; }

  /* DRILLED state: only the active folder's dropdown shows, top buttons hide */
  .nav.drilled .nav-folder > .nav-link { display: none; }
  .nav.drilled .nav-folder.active > .dropdown { display: flex; flex-direction: column; }
  .nav.drilled .nav-folder:not(.active) { display: none; }

  .nav-toggle { display: block; }
}

/* ============================================================
   FOOTER — mirrors the store footer exactly
   magenta links left · logo center · socials right
   ============================================================ */
.site-footer {
  border-top: 1px solid #111;
  padding: 64px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-links { display: flex; flex-direction: column; gap: 18px; }
.footer-links a {
  color: var(--magenta);
  font-family: var(--font-body);
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
  width: max-content;
}
.footer-links a:hover { color: var(--mint); }
.footer-copy { font-size: 11px; letter-spacing: 1px; margin-top: 8px; }
.footer-cookie { color: var(--mint); font-size: 13px; cursor: pointer; margin-top: 22px; background:none; border:0; padding:0; font-family: var(--font-body); }
.footer-logo { justify-self: center; }
.footer-logo img { height: 120px; width: auto; }
.footer-socials { justify-self: end; display: flex; gap: 16px; }
.footer-socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
}
.footer-socials a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-socials a:hover { filter: brightness(1.15); }
/* legacy inline-SVG icons (if any remain) */
.footer-socials svg { width: 20px; height: 20px; fill: var(--white); }
.footer-socials a:hover svg { fill: var(--mint); }

@media (max-width: 860px) {
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .footer-logo, .footer-socials { justify-self: start; }
}

/* ============================================================
   FORMS — matches the store's Join / Contact treatment
   mint header · Gruppo labels · white-bordered inputs · magenta submit
   ============================================================ */
.form-field { margin-bottom: 26px; }
.form-field label { display: block; font-family: var(--font-body); font-size: 18px; margin-bottom: 10px; }
.form-field .req { color: var(--magenta); }
.form-field .hint { color: var(--grey); font-size: 15px; margin: 4px 0 10px; }
.input, .textarea {
  width: 100%;
  background: #000;
  border: 1px solid #555;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  padding: 14px 14px;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--mint); }
.textarea { min-height: 160px; resize: vertical; }
.btn {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--white);
  background: var(--magenta);
  border: 0;
  padding: 16px 40px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: none; border: 1px solid var(--magenta); color: var(--magenta); }
.btn-ghost:hover { background: var(--magenta); color: var(--white); filter: none; }

/* ============================================================
   SCROLL FADE-IN  (ports the store's footer IntersectionObserver)
   ============================================================ */
.reveal { opacity: 0; transform: scale(0.97); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* visible keyboard focus for accessibility */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
