/* ═══════════════════════════════════════════════════════════════════════════
   SOKOL LUŠTĚNICE — Premium Club Theme
   Palette: #5B7FBF (primary blue) · #0F1626 (deep navy) · #E8C547 (gold accent)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  --c-blue: #5B7FBF;
  --c-blue-dark: #3D5A8A;
  --c-blue-deep: #2C4570;
  --c-blue-light: #8FAAD6;
  --c-blue-subtle: #B8CCE6;
  --c-blue-glow: rgba(91, 127, 191, 0.35);
  --c-gold: #E8C547;
  --c-gold-dark: #C9A833;
  --c-navy: #0F1626;
  --c-navy-mid: #162038;
  --c-navy-light: #1E2D4F;
  --c-white: #ffffff;
  --c-off-white: #F7F8FC;
  --c-text: #1A1A2E;
  --c-text-mid: #4A4A6A;
  --c-text-muted: #8A8AA0;
  --c-border: #E2E6EF;
  --pad: clamp(20px, 4vw, 40px);
  --pad-section: clamp(56px, 10vw, 100px);
  --max-w: 1140px;
  --edge: var(--pad);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 2px 8px rgba(15, 22, 38, 0.06), 0 8px 32px rgba(15, 22, 38, 0.04);
  --shadow-card-hover: 0 8px 32px rgba(91, 127, 191, 0.18), 0 2px 8px rgba(15, 22, 38, 0.08);
  --shadow-glow: 0 0 60px rgba(91, 127, 191, 0.2);
  --site-bg-dark: var(--c-navy);
  --site-fg-dark: var(--c-white);
  --site-bg-light: var(--c-off-white);
  --site-fg-light: var(--c-text);
}

/* ── Site-wide section content constraint ─────────────────────────────── */
/* All section body inners are centered with consistent max-width + padding
   so every page has uniform alignment regardless of content.                */
.ui-section-body__inner {
  max-width: var(--max-w, 1140px);
  margin-inline: auto;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--c-navy);
}

h1, h2, h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */
.ui-layout__cell[data-area="header"] {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ui-navbar__wrap {
  background: rgba(14, 23, 46, 0.92) !important;
  border-bottom: 1px solid rgba(91, 127, 191, 0.06);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.ui-navbar__inner {
  padding: 12px clamp(24px, 4vw, 48px);
}

.ui-navbar__logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s var(--ease);
}

.ui-navbar__logo:hover {
  transform: scale(1.06);
}

.ui-navbar__link {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s var(--ease);
  position: relative;
}

.ui-navbar__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--c-gold);
  transition: all 0.3s var(--ease);
  transform: translateX(-50%);
  border-radius: 1px;
}

.ui-navbar__link:hover,
.ui-navbar__link--active {
  color: var(--c-white) !important;
}

.ui-navbar__link:hover::after,
.ui-navbar__link--active::after {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION — immersive, cinematic
   ══════════════════════════════════════════════════════════════════════════ */
.module-wrapper--hero-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 80%, var(--c-blue-glow) 0%, transparent 70%),
    radial-gradient(circle at 20% 20%, rgba(91, 127, 191, 0.10) 0%, transparent 50%),
    linear-gradient(175deg, #0C1528 0%, #101C32 20%, var(--c-navy) 45%, var(--c-navy-mid) 72%, var(--c-blue-deep) 100%);
  color: var(--c-white);
  text-align: center;
  padding: clamp(80px, 14vw, 160px) var(--pad) clamp(100px, 14vw, 160px);
  position: relative;
  overflow: hidden;
}

/* Diagonal mesh pattern */
.module-wrapper--hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0,
      transparent 60px,
      rgba(91, 127, 191, 0.02) 60px,
      rgba(91, 127, 191, 0.02) 61px
    ),
    repeating-linear-gradient(
      60deg,
      transparent 0,
      transparent 60px,
      rgba(91, 127, 191, 0.02) 60px,
      rgba(91, 127, 191, 0.02) 61px
    );
  pointer-events: none;
}

/* Bottom fade — gradient dissolve into next section */
.module-wrapper--hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, var(--c-navy) 100%);
  pointer-events: none;
}

/* Logo — large, glowing halo */
.module-wrapper--hero-logo figure.ui-image {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.module-wrapper--hero-logo figure.ui-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91, 127, 191, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: haloBreath 4s ease-in-out infinite;
}

.module-wrapper--hero-logo figure.ui-image img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
  animation: heroLogoIn 0.9s ease-out both;
  position: relative;
  z-index: 1;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(24px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes haloBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Hero h1 */
.module-wrapper--hero-section h1 {
  color: var(--c-white);
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Hero subtitle */
.module-wrapper--hero-section p {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════════════════
   TEAMS OVERVIEW — dark showcase section
   ══════════════════════════════════════════════════════════════════════════ */
.module-wrapper--teams-overview-section {
  background: var(--c-navy);
  padding: var(--pad-section) var(--pad);
  position: relative;
}

/* Top glow separator line */
.module-wrapper--teams-overview-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c-blue) 30%, var(--c-gold) 50%, var(--c-blue) 70%, transparent 100%);
  opacity: 0.4;
}

/* Top glow bloom behind the line */
.module-wrapper--teams-overview-section::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 20%;
  right: 20%;
  height: 40px;
  background: radial-gradient(ellipse at 50% 100%, rgba(91, 127, 191, 0.1) 0%, transparent 80%);
  pointer-events: none;
}

.module-wrapper--teams-overview-section h2 {
  color: var(--c-white);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 900;
}

/* ── Team Cards — Dark, Bold ─────────────────────────────────────────── */
.module-wrapper--teams-overview-section .ui-service-block {
  background: var(--c-navy-mid);
  border: 1px solid rgba(91, 127, 191, 0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent line at top */
.module-wrapper--teams-overview-section .ui-service-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-gold));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.module-wrapper--teams-overview-section .ui-service-block:hover {
  background: var(--c-navy-light);
  border-color: rgba(91, 127, 191, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.module-wrapper--teams-overview-section .ui-service-block:hover::before {
  opacity: 1;
}

.module-wrapper--teams-overview-section .ui-service-block__icon {
  color: var(--c-blue-light);
  margin-bottom: 4px;
}

.module-wrapper--teams-overview-section .ui-service-block__title {
  color: var(--c-white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.module-wrapper--teams-overview-section .ui-service-block__title a {
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.module-wrapper--teams-overview-section .ui-service-block__title a:hover {
  color: var(--c-gold);
}

.module-wrapper--teams-overview-section .ui-service-block__description {
  color: var(--c-text-muted);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   CLUB INFO SECTION — Split with accent
   ══════════════════════════════════════════════════════════════════════════ */
.module-wrapper--club-info-section {
  background:
    radial-gradient(ellipse 70% 50% at 70% 50%, rgba(91, 127, 191, 0.06) 0%, transparent 70%),
    linear-gradient(175deg, var(--c-navy-mid) 0%, var(--c-navy) 100%);
  padding: var(--pad-section) var(--pad) calc(var(--pad-section) + 40px);
  position: relative;
}

/* Subtle top edge */
.module-wrapper--club-info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-gold), var(--c-blue));
}

/* Bottom fade back to dark */
.module-wrapper--club-info-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, var(--c-navy) 100%);
  pointer-events: none;
}

.module-wrapper--club-info-section h2 {
  color: var(--c-white);
  font-weight: 900;
}

.module-wrapper--club-info-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Club info cards — dark glass */
.module-wrapper--club-info-section .ui-service-block {
  background: linear-gradient(135deg, rgba(30, 45, 79, 0.8), rgba(22, 32, 56, 0.9));
  border: 1px solid rgba(91, 127, 191, 0.12);
  border-left: 4px solid var(--c-blue);
  border-radius: var(--radius-sm);
  padding: 24px 24px 24px 28px;
  transition: all 0.35s var(--ease);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.module-wrapper--club-info-section .ui-service-block:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(91, 127, 191, 0.18);
  border-left-color: var(--c-gold);
}

.module-wrapper--club-info-section .ui-service-block::before {
  display: none;
}

.module-wrapper--club-info-section .ui-service-block__icon {
  color: var(--c-blue-light);
}

.module-wrapper--club-info-section .ui-service-block__title {
  font-weight: 700;
  color: var(--c-white);
}

.module-wrapper--club-info-section .ui-service-block__description {
  color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.ui-section-footer {
  background: var(--c-navy) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  border-top: 1px solid rgba(91, 127, 191, 0.08);
  font-size: 0.85rem;
}
