/* ============================================================
   Sunshine Budokan Karate Dojos — static styles
   Tailwind utilities come from the CDN; this file holds the
   custom fonts, animations and component looks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&display=swap');

:root {
  --red: #e10600;
  --red-deep: #b10400;
  --gold: #ffc400;
  --ink: #0a0a0f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background-color: var(--ink);
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.font-impact { font-family: "Bebas Neue", "Oswald", sans-serif; letter-spacing: 0.02em; }
.font-oswald { font-family: "Oswald", sans-serif; }
.poppins     { font-family: "Poppins", sans-serif; }

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

/* ===================== ANIMATIONS ===================== */
@keyframes punchIn {
  0%   { transform: scale(2.4) rotate(-6deg); opacity: 0; filter: blur(6px); }
  60%  { transform: scale(0.94) rotate(1deg); opacity: 1; filter: blur(0); }
  80%  { transform: scale(1.04) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.animate-punch { animation: punchIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes fadeUp {
  0%   { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 14px rgba(225,6,0,.55), 0 0 30px rgba(225,6,0,.25); }
  50%      { text-shadow: 0 0 26px rgba(225,6,0,.95), 0 0 60px rgba(225,6,0,.5); }
}
.animate-glow { animation: glowPulse 2.4s ease-in-out infinite; }

@keyframes kickShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-1deg); }
  40% { transform: translateX(3px) rotate(1deg); }
  60% { transform: translateX(-2px) rotate(-.5deg); }
  80% { transform: translateX(2px) rotate(.5deg); }
}
.hover-kick:hover { animation: kickShake 0.4s ease-in-out; }

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-sweep { background-size: 200% auto; animation: gradientShift 5s ease infinite; }

/* Continuous gallery marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll reveal (toggled by JS) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== BACKDROP ===================== */
.hero-dojo {
  background:
    radial-gradient(circle at 50% 18%, rgba(225,6,0,.28) 0%, transparent 55%),
    radial-gradient(circle at 82% 80%, rgba(255,196,0,.12) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #14141c 60%, #1d1d27 100%);
}
.section-dark { background: linear-gradient(180deg, #14141c 0%, #1d1d27 100%); }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(225,6,0,.25);
}
.nav a.navlink {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .12em;
  font-size: .95rem; color: #e8e8ef; padding: .4rem .2rem; position: relative; transition: color .2s;
}
.nav a.navlink:hover { color: #fff; }
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .25s;
}
.nav a.navlink:hover::after { width: 100%; }

#mobileMenu { transition: max-height .35s ease, opacity .3s ease; max-height: 0; opacity: 0; overflow: hidden; }
#mobileMenu.open { max-height: 420px; opacity: 1; }

/* ===================== BUTTONS ===================== */
.btn-punch {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--red) 0%, #ff5722 100%);
  padding: .85rem 2.2rem; border-radius: 9999px; box-shadow: 0 10px 30px rgba(225,6,0,.45);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease; overflow: hidden; cursor: pointer; border: none;
}
.btn-punch:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 44px rgba(225,6,0,.65); }
.btn-punch:active { transform: scale(.93); }
.btn-ghost {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .15em; color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 9999px; padding: .8rem 1.8rem; transition: all .2s; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--red); color: #ff5722; }

/* ===================== HEADINGS ===================== */
.eyebrow { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .4em; font-size: .85rem; }
.heading { font-family: "Bebas Neue", "Oswald", sans-serif; line-height: .95; }

/* ===================== CARDS ===================== */
.quote-card {
  background: linear-gradient(160deg, rgba(34,40,49,.9) 0%, rgba(16,16,22,.95) 100%);
  border: 1px solid rgba(225,6,0,.25);
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s;
}
.quote-card:hover { transform: translateY(-6px); border-color: rgba(225,6,0,.8); box-shadow: 0 20px 50px rgba(225,6,0,.25); }

.club-card {
  background: #fff; border-radius: 1rem; overflow: hidden; color: #1a1a1a;
  box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.club-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(225,6,0,.35); }
.club-card .thumb { height: 13rem; width: 100%; object-fit: cover; }

.member-card {
  display: flex; align-items: center; gap: 1rem; background: #fff; color: #1a1a1a;
  border: 1px solid #f0f0f3; border-radius: .9rem; padding: 1rem 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(225,6,0,.25); }
.member-card img { width: 84px; height: 84px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; box-shadow: 0 6px 16px rgba(0,0,0,.25); }

.icon-card img { border: 1px solid rgba(0,0,0,.08); border-radius: .75rem; transition: transform .25s; }
.icon-card:hover img { transform: scale(1.04); }

/* ============================================================
   PRELOADER — two karateka trading a strike, faint logo behind
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: #0a0a0f;
  background-image: radial-gradient(circle at 50% 42%, rgba(225,6,0,.14) 0%, transparent 55%),
                    radial-gradient(circle at 50% 42%, #17171f 0%, #0a0a0f 72%);
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
#preloader .pl-logo {
  position: absolute; width: 460px; max-width: 80vw;
  opacity: .06; filter: grayscale(1) brightness(2.4);
  pointer-events: none;
}
/* Two karateka (real silhouettes) trading strikes */
.pl-arena {
  position: relative; z-index: 2;
  width: min(560px, 92vw); height: clamp(170px, 42vw, 240px);
  display: flex; align-items: flex-end; justify-content: center;
}
.pl-fighter { position: absolute; bottom: 0; will-change: transform; transition: transform .14s ease-out; }
.pl-fighter img {
  height: clamp(140px, 34vw, 220px); width: auto; display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)) drop-shadow(0 0 22px rgba(225,6,0,.25));
}
#plLwrap { left: 6%; }
#plRwrap { right: 6%; }
.pl-burst {
  position: absolute; bottom: 46%; left: 50%; width: clamp(90px, 22vw, 150px); aspect-ratio: 1;
  transform: translate(-50%, 50%) scale(0); opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,211,77,.95) 0%, rgba(255,87,34,.75) 38%, transparent 70%);
  border-radius: 50%; filter: blur(1px);
}
.pl-burst.flash { animation: plFlash .32s ease-out; }
@keyframes plFlash {
  0%   { opacity: 0; transform: translate(-50%,50%) scale(.2); }
  40%  { opacity: 1; transform: translate(-50%,50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,50%) scale(1.7); }
}
.pl-title { font-family: "Bebas Neue", sans-serif; letter-spacing: .32em; color: #fff; margin-top: 18px; font-size: 1.7rem; z-index: 2; }
.pl-title b { color: var(--red); font-weight: 400; }
.pl-osu { font-family: "Oswald", sans-serif; color: var(--gold); letter-spacing: .55em; text-transform: uppercase; font-size: .75rem; margin-top: 8px; z-index: 2; animation: osuPulse 1s ease-in-out infinite; }
@keyframes osuPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ============================================================
   SECTION NAVIGATION TRANSITION — a karateka strikes across the
   screen when a section link is clicked; logo flashes faintly.
   ============================================================ */
#navfx {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden;
  opacity: 0; visibility: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(20,20,28,.97), rgba(8,8,12,.99));
}
#navfx.go { animation: navfxShow .8s ease forwards; }
@keyframes navfxShow { 0% { opacity: 0; visibility: visible; } 12% { opacity: 1; } 68% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
#navfx .nf-logo {
  position: absolute; top: 50%; left: 50%; width: 360px; max-width: 64vw;
  transform: translate(-50%,-50%); opacity: 0; filter: brightness(3) grayscale(1);
}
#navfx.go .nf-logo { animation: nfLogo .8s ease forwards; }
@keyframes nfLogo { 0% { opacity: 0; } 38% { opacity: .13; } 70% { opacity: .04; } 100% { opacity: 0; } }
#navfx .nf-streak {
  position: absolute; top: 0; bottom: 0; left: -60%; width: 55%;
  background: linear-gradient(100deg, transparent 0%, rgba(225,6,0,0) 8%, var(--red) 46%, #ff5722 56%, rgba(255,196,0,.5) 64%, transparent 92%);
  transform: skewX(-14deg); opacity: 0; filter: blur(2px);
}
#navfx.go .nf-streak { animation: nfStreak .8s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes nfStreak { 0% { left: -60%; opacity: 0; } 16% { opacity: .9; } 100% { left: 130%; opacity: 0; } }
#navfx .nf-striker {
  position: absolute; top: 50%; left: -45vw; height: min(62vh, 440px);
  transform: translateY(-50%); opacity: 0;
  filter: drop-shadow(0 0 26px rgba(225,6,0,.55)) brightness(1.05);
}
#navfx.go .nf-striker { animation: nfStrike .8s cubic-bezier(.5,0,.35,1) forwards; }
@keyframes nfStrike {
  0%   { left: -45vw; opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: 122vw; opacity: 0; }
}

/* ============================================================
   KARATE-POSE HAMBURGER — idle guard stance → high kick on open
   ============================================================ */
.kfighter { position: relative; width: 42px; height: 42px; background: none; border: none; cursor: pointer; padding: 0; }
.kfighter .ki {
  position: absolute; top: 50%; left: 50%; height: 36px; width: auto;
  transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.kfighter .ki-closed { opacity: 1; transform: translate(-50%,-50%) scale(.92); }
.kfighter .ki-open   { opacity: 0; transform: translate(-50%,-50%) scale(.55) rotate(-8deg); }
.kfighter.active .ki-closed { opacity: 0; transform: translate(-50%,-50%) scale(.55) rotate(8deg); }
.kfighter.active .ki-open   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.kfighter:hover .ki { filter: drop-shadow(0 0 7px rgba(225,6,0,.65)); }

/* ============================================================
   COOKIE CONSENT BAR + POLICY MODAL
   ============================================================ */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  background: rgba(12,12,18,.96); backdrop-filter: blur(10px);
  border-top: 2px solid var(--red);
  box-shadow: 0 -12px 40px rgba(0,0,0,.5);
  transform: translateY(110%); transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; justify-content: center;
}
.cookie-icon { font-size: 1.8rem; line-height: 1; }
.cookie-text { flex: 1 1 320px; min-width: 260px; color: #d8d8e0; font-family: "Poppins", sans-serif; font-size: 14.5px; line-height: 1.5; margin: 0; }
.cookie-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.cookie-link:hover { color: #fff; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn { padding-top: .6rem !important; padding-bottom: .6rem !important; }

.cookie-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,8,.8); backdrop-filter: blur(4px); animation: fadeIn .3s ease; }
.cookie-modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(160deg, #1a1a24 0%, #101016 100%);
  border: 1px solid rgba(225,6,0,.4); border-radius: 1rem; padding: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: modalPop .35s cubic-bezier(.16,1,.3,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.cookie-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none; cursor: pointer;
  color: #aaa; font-size: 2rem; line-height: 1; transition: color .2s;
}
.cookie-close:hover { color: var(--red); }
.cookie-policy-body { margin-top: 18px; color: #cfcfd6; font-family: "Poppins", sans-serif; font-size: 14.5px; line-height: 1.65; }
.cookie-policy-body p { margin: 0 0 12px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .animate-punch, .animate-glow, .gradient-sweep, .hover-kick:hover, .reveal,
  .pl-burst, .pl-osu, #navfx, #navfx .nf-striker, #navfx .nf-streak, #navfx .nf-logo {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
  }
  #navfx { display: none !important; }
  html { scroll-behavior: auto; }
}
