/* ==========================================================================
   BUMBAT PRODUCTION AB — Base Design System
   Colors, type, layout primitives, header, footer, buttons, forms.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; }

/* ---- Design tokens ---- */
:root{
  /* Brand colors — exact hex per brand system */
  --red: #FF1616;
  --red-dim: #BB1010;
  --red-glow: rgba(255,22,22,.35);
  --black: #0A0A0A;
  --gray-bg: #111111;
  --silver: #C0C0C0;
  --white: #FFFFFF;

  --line-on-dark: rgba(255,255,255,.14);
  --line-on-light: rgba(10,10,10,.12);
  --text-on-dark-dim: rgba(255,255,255,.62);
  --text-on-light-dim: rgba(10,10,10,.62);

  /* Type families */
  --f-display: 'Barlow Condensed', sans-serif;
  --f-sub: 'Oswald', sans-serif;
  --f-body: 'Inter', 'DM Sans', sans-serif;
  --f-accent: 'Bebas Neue', sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(3.1rem, 8vw, 6rem);
  --fs-h1: clamp(2.6rem, 6vw, 4.3rem);
  --fs-h2: clamp(1.9rem, 4.4vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.45rem);
  --fs-stat: clamp(2.75rem, 7.5vw, 4.85rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-eyebrow: .78rem;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 5vw, 2.75rem);
  --section-pad: clamp(4.25rem, 9vw, 7.5rem);
  --radius: 0px; /* sharp corners by design */

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body{
  background: var(--white);
  color: var(--black);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--f-sub);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before{
  content: '';
  width: 22px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.section-dark .eyebrow, .hero .eyebrow{ color: var(--red); }

p{ color: inherit; }
.lead{ font-size: var(--fs-lead); line-height: 1.65; }

::selection{ background: var(--red); color: var(--white); }

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---- Layout primitives ---- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ padding-block: var(--section-pad); position: relative; }
.section-light{ background: var(--white); color: var(--black); }
.section-dark{ background: var(--black); color: var(--white); }
.section-gray{ background: var(--gray-bg); color: var(--white); }
.section-tight{ padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid{ display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.section-head{ max-width: 640px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head h2{ margin-top: .6rem; }

/* reveal-on-scroll */
.js-ready .reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: none; }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 1.35rem;
  background: linear-gradient(to bottom, rgba(10,10,10,.75), rgba(10,10,10,0));
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled{
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(6px);
  padding-block: .8rem;
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.header-inner{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header-logo{ display: flex; align-items: center; flex-shrink: 0; }
.header-logo img{ height: 30px; width: auto; }
@media (min-width: 768px){ .header-logo img{ height: 34px; } }

.main-nav{ display: none; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
@media (min-width: 1100px){ .main-nav{ display: flex; } }
.nav-link{
  font-family: var(--f-sub);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-block: .25rem;
  white-space: nowrap;
}
.nav-link::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--red);
  transition: width .3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after{ width: 100%; }
.nav-link.active{ color: var(--red); }

.header-actions{ display: flex; align-items: center; gap: 1rem; }

.lang-switch{ display: none; align-items: center; gap: .35rem; font-family: var(--f-sub); }
@media (min-width: 1100px){ .lang-switch{ display: flex; } }
.lang-btn{
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  color: var(--text-on-dark-dim);
  padding: .3rem .45rem;
  border: 1px solid transparent;
}
.lang-btn:hover{ color: var(--white); }
.lang-btn.active{ color: var(--black); background: var(--white); }

.btn-header-cta{ display: none; }
@media (min-width: 900px){ .btn-header-cta{ display: inline-flex; } }

.hamburger{
  width: 30px; height: 22px; position: relative; flex-shrink: 0;
}
@media (min-width: 1100px){ .hamburger{ display: none; } }
.hamburger span{
  position: absolute; left: 0; right: 0; height: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.hamburger span:nth-child(1){ top: 0; }
.hamburger span:nth-child(2){ top: 10px; }
.hamburger span:nth-child(3){ top: 20px; }
.hamburger[aria-expanded="true"] span:nth-child(1){ top:10px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ top:10px; transform: rotate(-45deg); }

.mobile-nav-overlay{
  position: fixed; inset: 0; z-index: 99;
  background: var(--black);
  display: flex; flex-direction: column;
  padding: 6.5rem var(--gutter) 2.5rem;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
}
.mobile-nav-overlay.open{ transform: translateX(0); }
@media (min-width: 1100px){ .mobile-nav-overlay{ display: none; } }
.mobile-nav-overlay .nav-link{
  font-size: 2rem; font-family: var(--f-display); text-transform: uppercase; font-weight: 700;
  padding-block: .7rem; border-bottom: 1px solid var(--line-on-dark);
  display: block;
}
.mobile-nav-overlay .btn{ margin-top: 2rem; align-self: flex-start; }
.mobile-lang-switch{ display: flex; gap: .75rem; margin-top: 2rem; }
.mobile-lang-switch .lang-btn{ font-size: .85rem; border: 1px solid var(--line-on-dark); padding: .5rem .9rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-sub); font-weight: 600; font-size: .85rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 1rem 1.85rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover{ background: var(--red-dim); border-color: var(--red-dim); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover{ background: var(--white); color: var(--black); border-color: var(--white); }
.btn-outline-dark{ background: transparent; color: var(--black); border-color: rgba(10,10,10,.35); }
.btn-outline-dark:hover{ background: var(--black); color: var(--white); border-color: var(--black); }
.btn-block{ width: 100%; }
.btn-lg{ padding: 1.15rem 2.3rem; font-size: .9rem; }
.btn-sm{ padding: .7rem 1.2rem; font-size: .75rem; }

.btn-header-cta{
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.55);
  font-family: var(--f-sub); font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .68rem 1.3rem;
  transition: all .3s var(--ease);
}
.scrolled .btn-header-cta{ background: var(--red); border-color: var(--red); }
.btn-header-cta:hover{ background: var(--white); color: var(--black); border-color: var(--white); }

.text-link{
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-sub); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: inherit; border-bottom: 1.5px solid var(--red); padding-bottom: .15rem;
}
.text-link i, .text-link svg{ transition: transform .25s var(--ease); }
.text-link:hover i, .text-link:hover svg{ transform: translateX(5px); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field{ margin-bottom: 1.35rem; }
.field label{
  display: block; font-family: var(--f-sub); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem;
  color: var(--silver);
}
.section-light .field label, .section-white .field label{ color: rgba(10,10,10,.6); }
.field input, .field select, .field textarea{
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--line-on-dark);
  color: inherit;
  padding: .75rem .2rem;
  font-family: var(--f-body); font-size: 1rem;
  transition: border-color .25s var(--ease);
}
.section-light .field input, .section-light .field select, .section-light .field textarea{
  border-bottom-color: var(--line-on-light);
}
.field input::placeholder, .field textarea::placeholder{ color: currentColor; opacity: .4; }
.field input:focus, .field select:focus, .field textarea:focus{ border-bottom-color: var(--red); outline: none; }
.field textarea{ resize: vertical; min-height: 110px; }
.field select{ cursor: pointer; }
.section-dark .field select option, .section-gray .field select option{ color: #000; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 640px){ .form-row{ grid-template-columns: 1fr; } }

.range-field input[type="range"]{
  width: 100%; accent-color: var(--red); height: 2px; background: var(--line-on-dark);
}
.range-value{ font-family: var(--f-accent); font-size: 1.4rem; color: var(--red); letter-spacing: .02em; }

.form-success{
  display: none; align-items: flex-start; gap: .75rem;
  background: rgba(255,22,22,.08); border: 1px solid var(--red);
  padding: 1.1rem 1.3rem; margin-top: 1.25rem; font-size: .92rem;
}
.form-success.show{ display: flex; }
.form-note{ font-size: .82rem; opacity: .6; margin-top: .85rem; }

/* checkbox */
.check-field{ display: flex; align-items: flex-start; gap: .65rem; font-size: .85rem; opacity: .85; }
.check-field input{ margin-top: .3rem; accent-color: var(--red); width: 16px; height: 16px; flex-shrink:0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--black); color: var(--white); padding-block: 4.5rem 0; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; gap: 2.5rem; } }
.footer-col h4{
  font-family: var(--f-sub); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--red); margin-bottom: 1.2rem;
}
.footer-logo img{ height: 32px; margin-bottom: 1.1rem; }
.footer-tagline{ color: var(--silver); font-size: .92rem; max-width: 26ch; line-height: 1.6; }
.footer-col ul li{ margin-bottom: .65rem; }
.footer-col a{ color: var(--silver); font-size: .92rem; transition: color .2s; }
.footer-col a:hover{ color: var(--white); }
.footer-contact li{ display: flex; gap: .6rem; align-items: flex-start; color: var(--silver); font-size: .92rem; margin-bottom: .8rem; }
.footer-contact i{ color: var(--red); margin-top: .2rem; width: 14px; }
.footer-social{ display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer-social a{
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-on-dark); color: var(--white); transition: all .25s var(--ease);
}
.footer-social a:hover{ background: var(--red); border-color: var(--red); }
.footer-bottom{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.75rem; font-size: .78rem; color: rgba(255,255,255,.45);
}
.footer-bottom-links{ display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a{ color: rgba(255,255,255,.45); }
.footer-bottom-links a:hover{ color: var(--white); }
.trust-badge-org{
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem;
  color: rgba(255,255,255,.5); border: 1px solid var(--line-on-dark); padding: .4rem .8rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes bounce{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(9px);} }
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@keyframes pulseDot{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
@keyframes popIn{ from{ opacity:0; transform: translateY(16px) scale(.98);} to{ opacity:1; transform:none; } }
@keyframes eqBar{ 0%,100%{ transform: scaleY(.35);} 50%{ transform: scaleY(1);} }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-red{ color: var(--red); }
.text-silver{ color: var(--silver); }
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.desktop-only{ display: none; }
@media (min-width: 768px){ .desktop-only{ display: block; } }
.mobile-only{ display: block; }
@media (min-width: 768px){ .mobile-only{ display: none; } }

/* page hero spacer so fixed header never overlaps content on inner pages */
.page-hero{
  min-height: 62vh;
  display: flex; align-items: flex-end;
  padding-top: 10rem; padding-bottom: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  background: var(--black); color: var(--white);
  overflow: hidden;
}
.page-hero .container{ position: relative; z-index: 2; }
.page-hero-bg{
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 25% 20%, rgba(255,22,22,.22), transparent 60%),
    linear-gradient(155deg, #150505 0%, #0A0A0A 55%, #050505 100%);
}
.page-hero-bg::after{
  content:''; position:absolute; inset:0;
  background-image: repeating-linear-gradient(100deg, rgba(255,255,255,.025) 0 2px, transparent 2px 60px);
}
.page-hero .eyebrow{ margin-bottom: 1.1rem; }
.page-hero h1{ font-size: var(--fs-h1); max-width: 16ch; }
.page-hero .lead{ margin-top: 1.25rem; max-width: 52ch; color: var(--silver); }
