/* ============================================================
   BOYS 2 MEN — MAIN.CSS
   Variables · Reset · Typography · Utilities · Buttons · Loader
   ============================================================ */

/* ---- 1. CUSTOM PROPERTIES ---- */
:root {
  --black:          #0B0B0B;
  --charcoal:       #151515;
  --charcoal-mid:   #1A1A1A;
  --charcoal-light: #252525;
  --gold:           #C9A86A;
  --gold-light:     #D9BF8A;
  --gold-dim:       rgba(201, 168, 106, 0.15);
  --offwhite:       #F7F5F2;
  --white:          #FFFFFF;
  --sage:           #6E7A5F;
  --concrete:       #8A8780;
  --error:          #E05A5A;

  --ff-display: 'Bebas Neue', sans-serif;
  --ff-body:    'Inter', sans-serif;
  --ff-label:   'Montserrat', sans-serif;

  --nav-h:     80px;
  --pad-x:     clamp(20px, 5vw, 80px);
  --pad-y:     clamp(64px, 10vw, 128px);
  --max-w:     1400px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --t-fast:    0.2s ease;
  --t-base:    0.4s ease;
  --t-slow:    0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- 2. RESET ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---- 3. LOADER ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 36px;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__brand {
  font-family: var(--ff-display);
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.35em;
  color: var(--offwhite);
  animation: lFadeUp 0.6s var(--ease-out) 0.2s both;
}

.loader__sub {
  font-family: var(--ff-label);
  font-size: 9px;
  letter-spacing: 0.45em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: -28px;
  animation: lFadeUp 0.6s var(--ease-out) 0.45s both;
}

.loader__bar-wrap {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.loader__bar-fill {
  height: 100%;
  background: var(--gold);
  width: 0;
  animation: lFill 1.4s var(--ease-out) 0.3s forwards;
}

@keyframes lFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lFill { to { width: 100%; } }

/* ---- 4. TYPOGRAPHY ---- */
.t-xl {
  font-family: var(--ff-display);
  font-size: clamp(72px, 14vw, 210px);
  line-height: 0.87;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.t-lg {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.t-md {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 72px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-sm {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.t-label {
  font-family: var(--ff-label);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.t-body {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.8;
}

.t-gold    { color: var(--gold); }
.t-offwhite{ color: var(--offwhite); }
.t-dim     { color: var(--concrete); }

/* ---- 5. LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: var(--pad-y) 0; }

/* ---- 6. BUTTONS ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 46px;
  font-family: var(--ff-label);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn__text { position: relative; z-index: 2; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
  z-index: 1;
}

.btn:hover::after { transform: scaleX(1); }

.btn--gold {
  background: var(--gold);
  color: var(--black);
}
.btn--gold::after { background: var(--offwhite); }

.btn--outline {
  background: transparent;
  color: var(--offwhite);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--outline::after { background: var(--gold); }
.btn--outline:hover  { color: var(--black); border-color: var(--gold); }

.btn--ghost {
  background: transparent;
  color: var(--offwhite);
  border: 1px solid var(--gold);
}
.btn--ghost::after { background: var(--gold); }
.btn--ghost:hover  { color: var(--black); }

.btn--sm { padding: 13px 32px; font-size: 9.5px; }

/* ---- 7. UTILITIES ---- */
.gold-bar {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-family: var(--ff-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.overflow-h { overflow: hidden; }

/* ---- 8. PAGE TRANSITION ---- */
.page-veil {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 8888;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: top;
}

/* ---- 9. HEX PATTERN ---- */
.hex-pattern {
  position: relative;
}
.hex-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='60'%3E%3Cpolygon points='35,2 68,20 68,56 35,74 2,56 2,20' fill='none' stroke='%23C9A86A' stroke-width='0.4' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 70px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- 10. RESPONSIVE BASE ---- */
@media (max-width: 768px) {
  :root {
    --nav-h: 68px;
    --pad-x: 20px;
  }
}
