/* ============================================================
   ORBC — GLOBAL STYLES
   Ongata Rongai Boxing Club
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:wght@300;400;500;600&family=Bebas+Neue&display=swap');

/* ── CSS Variables ── */
:root {
  --black:        #0a0a0a;
  --black-mid:    #111111;
  --black-card:   #161616;
  --black-border: #1f1f1f;
  --red:          #c8102e;
  --red-dark:     #a00d24;
  --red-glow:     rgba(200, 16, 46, 0.15);
  --white:        #f5f0eb;
  --white-dim:    #b0a89e;
  --white-muted:  #6b6560;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-h: 72px;
  --section-pad: clamp(64px, 8vw, 120px);
  --container: 1200px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Grain overlay (global texture) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ── Section spacing ── */
.section { padding-block: var(--section-pad); }
.section--dark  { background-color: var(--black); }
.section--mid   { background-color: var(--black-mid); }
.section--card  { background-color: var(--black-card); }

/* ── Section labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Typography ── */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-title span { color: var(--red); }

.body-text {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.75;
}

/* ── Red accent line ── */
.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-block: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 16, 46, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(245, 240, 235, 0.3);
}
.btn--outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 12px 28px;
}
.btn--ghost:hover {
  background: var(--red);
  color: var(--white);
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--black-border);
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  transform: translateX(-32px);
}
.reveal--left.revealed {
  transform: translateX(0);
}
.reveal--right {
  transform: translateX(32px);
}
.reveal--right.revealed {
  transform: translateX(0);
}

/* stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── Page hero banner (inner pages) ── */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 56px;
  overflow: hidden;
  margin-top: var(--nav-h);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--black-mid);
  background-size: cover;
  background-position: center;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(10,10,10,0.6) 60%, rgba(10,10,10,0.3) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Cards ── */
.card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card__body {
  padding: 24px;
}

/* ── Red stripe decoration ── */
.stripe {
  display: inline-block;
  width: 4px;
  height: 100%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Lazy loading blur-up ── */
img[data-src] {
  filter: blur(8px);
  transition: filter 0.4s;
}
img.loaded {
  filter: blur(0);
}

/* ── Responsive utilities ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
