/* ==========================================================================
   Main Stylesheet - Volleyball Colditz
   Combined global styles for the static PHP site
   ========================================================================== */

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-primary: #1A8E1A;
  --color-primary-dark: #0E5E0E;
  --color-accent: #F4C542;
  --color-muted: #4A5568;
  --color-border: rgba(26, 142, 26, 0.15);
  --color-dark: #16311d;
  --color-surface: #f7faf7;
  --color-surface-alt: #eef5ef;
  --shadow-soft: 0 18px 50px rgba(18, 49, 29, 0.07);
  --shadow-card: 0 10px 30px rgba(18, 49, 29, 0.06);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;

  --max-width: 1280px;
  --gutter: 2rem;
}

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

/* ─── Base ───────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 18%, #f7faf7 100%);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
}

a {
  color: inherit;
}

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

/* ─── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 6rem;
}

.page-hero {
  padding: 8rem 2rem 4rem;
  min-height: 552px;
  background: linear-gradient(135deg, #183621 0%, #1a5e28 50%, #1A8E1A 100%);
  color: #fff;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.page-hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #fff;
}

.page-hero-content p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 58ch;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 7rem 1.25rem 3rem;
    min-height: 420px;
  }
}

/* ─── Surface Variants ───────────────────────────────────── */
.surface-soft {
  background: var(--color-surface);
}

.surface-alt {
  background: var(--color-surface-alt);
}

/* ─── Card Styles ────────────────────────────────────────── */
.card-soft {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(26, 142, 26, 0.14);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
}

/* ─── Flexbox Utilities ──────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ─── Grid Utilities ─────────────────────────────────────── */
.grid   { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Text Utilities ─────────────────────────────────────── */
.text-center  { text-align: center; }
.text-sm      { font-size: 0.875rem; }
.text-lg      { font-size: 1.125rem; }
.text-muted   { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase    { text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Spacing Utilities ──────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ─── Display Utilities ──────────────────────────────────── */
.hidden       { display: none; }
.block        { display: block; }
.inline-block { display: inline-block; }

/* ─── Width Utilities ────────────────────────────────────── */
.w-full       { width: 100%; }
.max-w-prose  { max-width: 65ch; }

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* ─── Scroll Reveal Animation ────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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