/* ═══════════════════════════════════════════════════════════════════
   BeerPongHR WordPress Theme — main.css
   Design System + Layout + Components + Animations
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ──────────────────────────────────────────────── */
/* Loaded via wp_enqueue_style in functions.php */

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Colors (dark-first — matches original Lovable design) */
  --bg:              #0f0f0f;
  --fg:              #f9f9f9;
  --card:            #1a1a1a;
  --muted:           #2a2a2a;
  --muted-fg:        #9e9e9e;
  --border:          #383838;
  --primary:         #f9f9f9;
  --primary-fg:      #0f0f0f;
  --accent:          #f9f9f9;

  /* Typography */
  --font-display:    'Orbitron', 'Anton', system-ui, sans-serif;
  --font-body:       'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-y:       clamp(5rem, 10vw, 11rem);
  --container:       80rem;
  --px:              clamp(1.5rem, 4vw, 2.5rem);

  /* Motion */
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
ul, ol { list-style: none; }
::selection { background: var(--primary); color: var(--primary-fg); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Utility ───────────────────────────────────────────────────── */
.bphr-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
}

.bphr-section {
  padding-block: var(--section-y);
  padding-inline: var(--px);
  position: relative;
  overflow: hidden;
}

.bphr-accent  { color: var(--primary); }
.bphr-muted   { color: var(--muted-fg); }

.bphr-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.bphr-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
}

.bphr-section-desc {
  color: var(--muted-fg);
  max-width: 28rem;
  line-height: 1.75;
}

/* Watermarks */
.bphr-section-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.04;
  width: clamp(300px, 40vw, 560px);
}
.bphr-section-watermark--br { right: -6rem; bottom: -6rem; }
.bphr-section-watermark--left { left: -8rem; top: 50%; transform: translateY(-50%); }

/* ─── Scroll Reveal ─────────────────────────────────────────────── */
.bphr-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

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

/* ─── Grain texture ─────────────────────────────────────────────── */
.bphr-hero-grain {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 3px 3px;
}

/* ─── Navbar ────────────────────────────────────────────────────── */
.bphr-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.bphr-navbar.is-scrolled {
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.bphr-nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .bphr-nav-inner { height: 5rem; }
}

.bphr-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bphr-logo-mark { height: 2rem; width: auto; }
@media (min-width: 768px) { .bphr-logo-mark { height: 2.5rem; } }

.bphr-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 768px) { .bphr-logo-text { font-size: 1.4rem; } }

.bphr-logo-muted { color: var(--muted-fg); }

.bphr-nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) { .bphr-nav-links { display: flex; } }

.bphr-nav-links a {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-fg);
  transition: color 0.2s ease;
}

.bphr-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}

.bphr-nav-links a:hover { color: var(--fg); }
.bphr-nav-links a:hover::after { transform: scaleX(1); }

/* Mobile hamburger toggle */
.bphr-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) { .bphr-nav-toggle { display: none; } }

.bphr-nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.bphr-nav-toggle[aria-expanded="true"] .bphr-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bphr-nav-toggle[aria-expanded="true"] .bphr-nav-toggle-bar:nth-child(2) { opacity: 0; }
.bphr-nav-toggle[aria-expanded="true"] .bphr-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown panel */
.bphr-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s var(--ease-out-expo), opacity 0.25s ease, visibility 0.25s;
}

.bphr-mobile-panel.is-open {
  max-height: 80vh;
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) { .bphr-mobile-panel { display: none; } }

.bphr-mobile-panel a {
  padding: 1.1rem var(--px);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg);
  border-top: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease;
}

.bphr-mobile-panel a:first-child { border-top: 0; }
.bphr-mobile-panel a:hover,
.bphr-mobile-panel a:active { background: rgba(255, 255, 255, 0.05); color: var(--primary); }

/* ─── Hero ──────────────────────────────────────────────────────── */
.bphr-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Gradient blobs */
.bphr-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bphr-hero-bg-base {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.bphr-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.bphr-hero-blob--1 {
  top: -10rem;
  left: -10rem;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(249,249,249,0.08), transparent 60%);
  animation: blobFloat1 18s ease-in-out infinite;
}

.bphr-hero-blob--2 {
  bottom: -15%;
  right: -8%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(150,130,80,0.08), transparent 60%);
  animation: blobFloat2 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -30px); }
}

.bphr-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.bphr-hero-watermark {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 80vw;
  max-width: 900px;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 768px) { .bphr-hero-watermark { width: 55vw; } }

.bphr-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-top: 8rem;
  padding-bottom: 5rem;
  width: 100%;
}

.bphr-hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2rem;
}

.bphr-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
}

.bphr-hero-word {
  display: block;
}

.bphr-hero-word--accent { color: var(--primary); }

.bphr-hero-actions {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bphr-hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
}

.bphr-hero-desc {
  max-width: 26rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.75;
}

/* Scroll indicator */
.bphr-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
  z-index: 2;
}

.bphr-scroll-label {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.bphr-scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6) translateY(4px); opacity: 0.5; }
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.bphr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1rem 2rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.bphr-btn:hover { transform: translateY(-1px); }
.bphr-btn:active { transform: translateY(0); }

.bphr-btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.bphr-btn--primary:hover {
  background: rgba(249,249,249,0.9);
}

.bphr-btn--outline {
  border-color: var(--fg);
  color: var(--fg);
}

.bphr-btn--outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

.bphr-btn-icon {
  transition: transform 0.2s ease;
}

.bphr-btn:hover .bphr-btn-icon {
  transform: translate(2px, -2px);
}

/* ─── Kalendar ──────────────────────────────────────────────────── */
.bphr-kalendar .bphr-container {
  padding-inline: var(--px);
}

.bphr-kalendar-grid {
  display: grid;
  gap: 3rem 5rem;
}

@media (min-width: 1024px) {
  .bphr-kalendar-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.bphr-kalendar-intro .bphr-section-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
}

.bphr-turnir-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bphr-turnir-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.bphr-turnir-item:last-child { border-bottom: none; }

@media (min-width: 640px) {
  .bphr-turnir-item {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.bphr-turnir-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.bphr-turnir-item:hover .bphr-turnir-name { color: var(--primary); }

.bphr-turnir-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
}

.bphr-turnir-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.bphr-turnir-spots {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(249,249,249,0.6);
}

.bphr-turnir-status {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.bphr-turnir-status--done { opacity: 0.5; }
.bphr-turnir-status--full { color: rgba(220,80,60,0.8); border-color: rgba(220,80,60,0.3); }

.bphr-empty-state {
  color: var(--muted-fg);
  font-size: 0.9rem;
  padding: 2rem 0;
  line-height: 1.75;
}

.bphr-empty-hint {
  color: var(--muted-fg);
  font-size: 0.75rem;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* ─── Galerija ──────────────────────────────────────────────────── */
.bphr-galerija-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.bphr-galerija-desc {
  max-width: 22rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.bphr-galerija-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .bphr-galerija-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1rem;
  }
}

.bphr-galerija-item {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .bphr-galerija-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bphr-galerija-item--wide {
    grid-column: span 2;
  }
}

.bphr-galerija-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease, transform 0.7s ease;
}

.bphr-galerija-item:hover .bphr-galerija-img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.bphr-galerija-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--card) 0%, var(--muted) 100%);
  transition: opacity 0.3s ease;
}

.bphr-galerija-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.8) 0%, transparent 60%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bphr-galerija-item:hover .bphr-galerija-overlay { opacity: 0.3; }

.bphr-galerija-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(249,249,249,0.7);
  z-index: 2;
}

/* ─── Galerija Lightbox ─────────────────────────────────────────── */
.bphr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  cursor: zoom-out;
  transition: opacity 0.25s ease;
}

.bphr-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.bphr-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: bphr-lightbox-in 0.3s var(--ease-out-expo);
}

@keyframes bphr-lightbox-in {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.bphr-lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 1.6rem);
  right: clamp(1rem, 3vw, 1.8rem);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bphr-lightbox-close:hover {
  background: var(--primary);
  color: var(--primary-fg);
  transform: rotate(90deg);
}

/* ─── O Nama ────────────────────────────────────────────────────── */
.bphr-onama { position: relative; }

.bphr-onama-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.bphr-onama-watermark-img {
  width: 80vw;
  max-width: 900px;
  opacity: 0.05;
}

@media (min-width: 768px) { .bphr-onama-watermark-img { width: 55vw; } }

.bphr-onama .bphr-container { position: relative; z-index: 1; }

.bphr-section-title--xl {
  font-size: clamp(2.5rem, 7vw, 6rem);
  margin-bottom: 3rem;
  max-width: 56rem;
}

.bphr-onama-tekst {
  display: grid;
  gap: 2rem;
  max-width: 60rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .bphr-onama-tekst { grid-template-columns: 1fr 1fr; margin-bottom: 7rem; }
}

.bphr-onama-tekst p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--muted-fg);
  line-height: 1.85;
}

/* Statistike */
.bphr-stats {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .bphr-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bphr-stat {
  padding: 2.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .bphr-stat {
    padding: 3.5rem 2rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .bphr-stat:last-child { border-right: none; }
}

.bphr-stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.bphr-stat-label {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* ─── Kontakt ───────────────────────────────────────────────────── */
.bphr-kontakt {
  background: rgba(26,26,26,0.3);
}

.bphr-kontakt-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .bphr-kontakt-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.bphr-kontakt-info .bphr-section-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: 2.5rem;
}

.bphr-kontakt-links { display: flex; flex-direction: column; gap: 1.5rem; }

.bphr-kontakt-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--fg);
  transition: color 0.2s ease;
}

.bphr-kontakt-link:hover { color: var(--primary); }

.bphr-kontakt-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bphr-kontakt-link:hover .bphr-kontakt-icon {
  border-color: var(--primary);
  color: var(--primary);
}

/* Form */
.bphr-form { display: flex; flex-direction: column; gap: 0; }

.bphr-form-field {
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
  transition: border-color 0.2s ease;
}

.bphr-form-field:focus-within { border-bottom-color: var(--primary); }

.bphr-form-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

.bphr-form-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1.5;
}

.bphr-form-input::placeholder { color: rgba(158,158,158,0.4); }

.bphr-form-textarea { resize: none; }

.bphr-form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.bphr-btn-loading { display: none; }

#bphr-submit.is-loading .bphr-btn-label { display: none; }
#bphr-submit.is-loading .bphr-btn-loading { display: inline; }
#bphr-submit.is-loading { opacity: 0.7; pointer-events: none; }

.bphr-form-message {
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 1.5em;
}

.bphr-form-message.is-success { color: #6ee7a0; }
.bphr-form-message.is-error   { color: #f87171; }

/* ─── Podrzavaju / Marquee ───────────────────────────────────────── */
.bphr-podrzavaju {
  border-top: 1px solid var(--border);
}

.bphr-partneri-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.bphr-marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.bphr-marquee,
.bphr-marquee-placeholder {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

@media (min-width: 768px) {
  .bphr-marquee,
  .bphr-marquee-placeholder {
    gap: 6rem;
  }
}

.bphr-marquee-wrap:hover .bphr-marquee,
.bphr-marquee-wrap:hover .bphr-marquee-placeholder {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.bphr-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  padding-inline: 2rem;
}

@media (min-width: 768px) { .bphr-marquee-item { height: 6rem; } }

.bphr-marquee-item img {
  max-height: 100%;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) { .bphr-marquee-item img { max-width: 200px; } }

.bphr-marquee-item img:hover { opacity: 1; }

.bphr-sponsor-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* ─── Footer ────────────────────────────────────────────────────── */
.bphr-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  padding-inline: var(--px);
}

.bphr-footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .bphr-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.bphr-footer-logo { height: 1.75rem; width: auto; }

.bphr-footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bphr-footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.bphr-footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bphr-footer-social a {
  color: var(--muted-fg);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.bphr-footer-social a:hover { color: var(--primary); }

/* ─── Skip to content ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip-link:focus { top: 1rem; }

/* ─── Responsive utilities ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bphr-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Hall of Fame ──────────────────────────────────────────────── */
.bphr-hof {
  position: relative;
}

.bphr-hof-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.bphr-hof-desc {
  max-width: 28rem;
  text-align: right;
}

.bphr-hof-meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  opacity: 0.6;
}

.bphr-hof-hint {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Table wrapper with horizontal scroll on mobile */
.bphr-hof-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.bphr-hof-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

/* Header row */
.bphr-hof-th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}

.bphr-hof-th--rank {
  width: 3.5rem;
  text-align: center;
}

.bphr-hof-th--stat {
  width: 4.5rem;
  text-align: center;
}

.bphr-hof-th--total {
  color: var(--fg);
  opacity: 0.5;
}

/* Body rows */
.bphr-hof-row {
  border-bottom: 1px solid rgba(56,56,56,0.5);
  transition: background 0.15s ease;
}

.bphr-hof-row:last-child {
  border-bottom: none;
}

.bphr-hof-row:hover {
  background: rgba(255,255,255,0.03);
}

/* Top 3 highlight */
.bphr-hof-row--top3 {
  background: rgba(255,255,255,0.025);
}

.bphr-hof-row--gold {
  background: rgba(220,180,60,0.06);
}

.bphr-hof-row--gold:hover {
  background: rgba(220,180,60,0.10);
}

/* Cells */
.bphr-hof-td {
  padding: 1rem 1.25rem;
  color: var(--fg);
  vertical-align: middle;
}

.bphr-hof-td--rank {
  width: 3.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted-fg);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bphr-hof-row--top3 .bphr-hof-td--rank {
  color: var(--fg);
}

.bphr-hof-td--name {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bphr-hof-row--gold .bphr-hof-td--name {
  color: var(--primary);
}

.bphr-hof-td--stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--muted-fg);
}

.bphr-hof-td--total {
  font-weight: 600;
  color: var(--fg);
  opacity: 0.7;
}

.bphr-hof-crown {
  display: inline-block;
  margin-right: 0.25rem;
  font-size: 0.85rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 640px) {
  .bphr-hof-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bphr-hof-desc {
    text-align: left;
    max-width: 100%;
  }
  .bphr-hof-td,
  .bphr-hof-th {
    padding: 0.75rem 0.75rem;
  }
}

/* ─── Shop (zasebna stranica) ───────────────────────────────────── */
.bphr-shop-page { padding-top: clamp(6rem, 12vw, 9rem); }

.bphr-shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.bphr-shop-desc {
  max-width: 24rem;
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.bphr-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .bphr-shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bphr-shop-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.bphr-shop-item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bphr-shop-item:hover {
  border-color: var(--fg);
  transform: translateY(-4px);
}

.bphr-shop-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card) 0%, var(--muted) 100%);
}

.bphr-shop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.bphr-shop-item:hover .bphr-shop-img { transform: scale(1.06); }

.bphr-shop-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--card) 0%, var(--muted) 100%);
}

.bphr-shop-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  background: var(--primary);
  color: var(--primary-fg);
}

.bphr-shop-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  flex: 1;
}

.bphr-shop-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.bphr-shop-excerpt {
  font-size: 0.85rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.bphr-shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.bphr-shop-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

.bphr-shop-buy { padding: 0.7rem 1.3rem; }

@media (max-width: 640px) {
  .bphr-shop-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bphr-shop-desc { max-width: 100%; }
}

/* ── Mobilno: centrirani naslovi sekcija (Galerija, Hall of Fame, Partneri) ── */
@media (max-width: 767px) {
  .bphr-galerija-header,
  .bphr-hof-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .bphr-galerija-header > div,
  .bphr-hof-header > div {
    width: 100%;
  }
  .bphr-galerija-desc,
  .bphr-hof-desc {
    max-width: 100%;
    text-align: center;
  }
  .bphr-podrzavaju .bphr-container {
    text-align: center;
  }
  .bphr-partneri-title {
    text-align: center;
  }
}

/* ── Watermark čaše — čuva omjer i drži se unutar ekrana na mobitelu ── */
.bphr-hero-watermark,
.bphr-onama-watermark-img,
.bphr-section-watermark {
  height: auto;                /* uvijek čuvaj originalni omjer slike */
  max-width: 100%;
}
@media (max-width: 640px) {
  .bphr-hero-watermark { width: 92vw; right: -14%; }
  .bphr-onama-watermark-img { width: 88vw; }
  .bphr-section-watermark { width: clamp(240px, 70vw, 420px); }
}

/* ── Navigacija: nešto uži razmak (više stavki u izborniku) ── */
.bphr-nav-links { gap: 1.7rem; }
@media (min-width: 768px) and (max-width: 940px) {
  .bphr-nav-links { gap: 1.05rem; }
  .bphr-nav-links a { letter-spacing: 0.1em; }
}

/* ─── Stranica: Proslave / Team building / Rođendani ─────────────── */
.bphr-proslave-page { padding-top: clamp(6rem, 12vw, 9rem); }

.bphr-proslave-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
@media (min-width: 900px) { .bphr-proslave-grid { grid-template-columns: 1.05fr 0.95fr; } }

.bphr-proslave-lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--fg);
  line-height: 1.5;
  margin: 1.5rem 0 1.25rem;
  max-width: 40rem;
}
.bphr-proslave-body {
  color: var(--muted-fg);
  line-height: 1.7;
  max-width: 42rem;
}
.bphr-proslave-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.bphr-proslave-tags li {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}
.bphr-proslave-media { position: relative; }
.bphr-proslave-img {
  display: block;
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.bphr-proslave-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(249, 249, 249, 0.02);
}
@media (min-width: 900px) {
  .bphr-proslave-cta {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}
.bphr-proslave-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}
.bphr-proslave-cta-desc {
  color: var(--muted-fg);
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* ─── Stranica: Loyalty program ──────────────────────────────────── */
.bphr-loyalty-page { padding-top: clamp(6rem, 12vw, 9rem); }
.bphr-loyalty-head { max-width: 46rem; }
.bphr-loyalty-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted-fg);
  line-height: 1.6;
  margin-top: 1.5rem;
}

.bphr-loyalty-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: clamp(2.5rem, 6vw, 4rem) 0;
}
@media (max-width: 520px) { .bphr-loyalty-card { grid-template-columns: repeat(2, 1fr); } }

.bphr-loyalty-stamp {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(249, 249, 249, 0.02);
}
.bphr-loyalty-stamp-icon { width: 46%; height: auto; opacity: 0.4; }
.bphr-loyalty-stamp-num {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: var(--muted-fg);
}
.bphr-loyalty-stamp.is-free {
  border-color: var(--fg);
  background: rgba(249, 249, 249, 0.08);
}
.bphr-loyalty-stamp.is-free .bphr-loyalty-stamp-icon { opacity: 1; }
.bphr-loyalty-stamp.is-free .bphr-loyalty-stamp-num { color: var(--fg); }

.bphr-loyalty-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) { .bphr-loyalty-steps { grid-template-columns: repeat(3, 1fr); } }
.bphr-loyalty-step { border-top: 2px solid var(--fg); padding-top: 1.25rem; }
.bphr-loyalty-step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted-fg);
}
.bphr-loyalty-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0.5rem 0;
}
.bphr-loyalty-step p { color: var(--muted-fg); line-height: 1.6; }
.bphr-loyalty-note { color: var(--muted-fg); font-size: 0.95rem; }

/* ─── Shop: galerija slika po proizvodu (carousel) ──────────────── */
.bphr-shop-carousel { position: absolute; inset: 0; }
.bphr-shop-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bphr-shop-track::-webkit-scrollbar { display: none; }
.bphr-shop-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
}
.bphr-shop-slide .bphr-shop-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bphr-shop-item:hover .bphr-shop-carousel .bphr-shop-img { transform: none; }

.bphr-shop-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.55);
  color: #fff;
  border: 1px solid var(--border);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bphr-shop-nav--prev { left: 0.6rem; }
.bphr-shop-nav--next { right: 0.6rem; }
.bphr-shop-item:hover .bphr-shop-nav,
.bphr-shop-carousel:focus-within .bphr-shop-nav { opacity: 1; }
.bphr-shop-nav:hover { background: rgba(15, 15, 15, 0.85); }

.bphr-shop-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
  pointer-events: none;
}
.bphr-shop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.bphr-shop-dot.is-active { background: #fff; transform: scale(1.3); }

/* Na touch uređajima skrij strelice — koristi se swipe */
@media (hover: none) {
  .bphr-shop-nav { display: none; }
}
