:root {
  /* BHT CLUB logo palette – dark base + red accent */
  --bg-1: #191919;
  --bg-2: #121212;
  --bg-3: #1a1a1a;

  /* Accent – logo red #E53935 */
  --accent: #E53935;
  --accent-dark: #B71C1C;
  --accent-glow: rgba(229, 57, 53, 0.4);

  /* Text */
  --text-main: #ffffff;
  --text-muted: #a0a0a8;

  /* Tokens */
  --line: rgba(255, 255, 255, 0.06);
  --line-accent: rgba(229, 57, 53, 0.3);
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-base: 0 20px 40px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 0 1px rgba(229, 57, 53, 0.35), 0 0 28px rgba(229, 57, 53, 0.15);
}

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

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

body {
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(229, 57, 53, 0.06), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(229, 57, 53, 0.04), transparent 45%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
}

.hero h1 {
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p, li {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.narrow {
  width: min(810px, 92%);
  margin: 0 auto;
}

.section {
  padding: clamp(2.5rem, 5vw, 5.8rem) 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.bg-soft {
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.03) 0%, transparent 15%), linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(18, 18, 18, 0.98));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Navbar */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(25, 25, 25, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(229, 57, 53, 0.06);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.navbar {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Skip to main content - accessibility */
.skip-link {
  position: absolute;
  top: -3.5rem;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #191919;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.logo img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a:focus-visible {
  color: var(--accent);
  background: rgba(229, 57, 53, 0.08);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
  left: 10%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-accent);
  background: var(--bg-3);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.35rem;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero / page title */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 20% 30%, rgba(229, 57, 53, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 85% 60%, rgba(229, 57, 53, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  min-width: 0;
  padding-right: 0.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.1);
}

.hero-title {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(165deg, #ffffff 0%, #f0f0f0 35%, rgba(229, 57, 53, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 20px rgba(229, 57, 53, 0.2));
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 58ch;
  margin-bottom: 1.25rem;
}

.hero-content .hero-lead + p {
  margin-bottom: 0.85rem;
}

.hero p {
  max-width: 65ch;
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.hero-banner-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 4px;
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.5) 0%, rgba(183, 28, 28, 0.3) 50%, rgba(229, 57, 53, 0.25) 100%);
  box-shadow:
    0 0 0 1px rgba(229, 57, 53, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(229, 57, 53, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-banner-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(229, 57, 53, 0.35),
    0 28px 56px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(229, 57, 53, 0.2);
}

.hero-banner-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
  object-fit: contain;
}

.hero-logo-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(229, 57, 53, 0.2));
}

/* Hero reveal stagger */
.hero .hero-badge.reveal { transition-delay: 0.05s; }
.hero .hero-title.reveal { transition-delay: 0.1s; }
.hero .hero-lead.reveal { transition-delay: 0.18s; }
.hero .hero-content p.reveal:nth-of-type(2) { transition-delay: 0.26s; }
.hero .hero-content p.reveal:nth-of-type(3) { transition-delay: 0.34s; }
.hero .hero-content p.reveal:nth-of-type(4) { transition-delay: 0.42s; }
.hero .hero-image-wrap.reveal { transition-delay: 0.15s; }

/* Guide sections: content + image layout */
.guide-section .container {
  max-width: min(1100px, 92%);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.guide-grid--image-left {
  grid-template-columns: minmax(240px, 320px) 1fr;
}

.guide-grid--image-left .guide-image-wrap {
  order: 1;
}

.guide-grid--image-left .guide-content {
  order: 2;
}

.guide-content {
  min-width: 0;
}

.guide-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base), 0 0 30px rgba(229, 57, 53, 0.1);
}

@media (max-width: 760px) {
  .guide-grid,
  .guide-grid--image-left {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guide-grid--image-left .guide-content {
    order: 1;
  }

  .guide-grid--image-left .guide-image-wrap {
    order: 2;
  }

  .guide-img {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* Content typography */
.content-block h2 {
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--accent-glow);
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  margin-top: 1.2rem;
  color: var(--text-main);
}

.content-block ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.content-block li {
  margin-bottom: 0.35rem;
}

.content-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.content-block a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--accent-glow);
}

.content-block a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.content-block {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Footer */
.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line-accent);
  background: linear-gradient(180deg, var(--bg-2), #0c0c0c);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.footer-grid {
  padding: clamp(2rem, 4vw, 3rem) 0;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 1.5rem;
}

.footer h3,
.footer h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 0.4rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .guide-grid,
  .guide-grid--image-left {
    grid-template-columns: 1fr minmax(200px, 280px);
    gap: 2rem;
  }

  .guide-grid--image-left {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 2rem, 600px);
    margin-left: auto;
    margin-right: auto;
  }

  .narrow {
    width: min(100% - 2rem, 600px);
  }

  .section {
    padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  }

  /* Navbar */
  .navbar {
    min-height: 56px;
    padding: 0 0.25rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo img {
    height: 36px;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--line);
    background: rgba(25, 25, 25, 0.98);
    backdrop-filter: blur(14px);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero */
  .hero {
    padding-top: clamp(1.25rem, 4vw, 2rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-image-wrap {
    padding: 0.5rem 0;
  }

  .hero-banner-frame {
    max-width: min(320px, 100%);
    margin: 0 auto;
  }

  .hero-logo-img,
  .hero-banner-img {
    max-width: min(280px, 100%);
    margin: 0 auto;
  }

  /* Guide sections */
  .guide-grid,
  .guide-grid--image-left {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guide-grid--image-left .guide-content {
    order: 1;
  }

  .guide-grid--image-left .guide-image-wrap {
    order: 2;
  }

  .guide-section .container {
    max-width: min(100% - 2rem, 600px);
  }

  .guide-img {
    max-width: 260px;
    margin: 0 auto;
  }

  .content-block h2 {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .content-block h3 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .content-block ul,
  .content-block ol {
    padding-left: 1.1rem;
    margin: 0.5rem 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .footer h3 {
    font-size: 1.1rem;
  }

  .footer-bottom {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.5rem);
    margin-left: auto;
    margin-right: auto;
  }

  .narrow {
    width: calc(100% - 1.5rem);
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-banner-frame,
  .hero-banner-img {
    max-width: 100%;
  }

  .guide-img {
    max-width: 240px;
  }

  .content-block h2 {
    font-size: 1.3rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}
