/*
Theme Name: Orzeł Pawłowice Zaślepka
Theme URI: https://orzelpawlowice.pl
Author: OKS Orzeł Pawłowice Wrocław
Description: Strona-zaślepka klubu OKS Orzeł Pawłowice Wrocław — „Trwa rozgrzewka”.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: orzel-pawlowice
*/

:root{
  --pitch-dark:   #123420;
  --pitch-mid:    #16432A;
  --pitch-line:   #2C6B44;
  --cream:        #F4F2E9;
  --ink:          #10150F;
  --gold-hint:    #E8D9A8;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--pitch-dark);
}

body{
  font-family: 'Barlow', sans-serif;
  color: var(--cream);
  overflow-x: hidden;
}

/* ---- Pitch backdrop: mowed-grass stripes + halfway line + centre circle ---- */
.pitch{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(
      170deg,
      var(--pitch-mid) 0px,
      var(--pitch-mid) 120px,
      var(--pitch-dark) 120px,
      var(--pitch-dark) 240px
    );
  overflow: hidden;
}

.pitch::before{
  /* halfway line */
  content: "";
  position: absolute;
  left: 50%;
  top: -5%;
  width: 2px;
  height: 78%;
  background: rgba(244,242,233,0.16);
  transform: translateX(-50%);
}

.pitch::after{
  /* centre circle */
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  border: 2px solid rgba(244,242,233,0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.floodlight{
  position: absolute;
  left: 50%;
  top: 30%;
  width: 900px;
  height: 900px;
  max-width: 140vw;
  max-height: 140vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,217,168,0.16) 0%, rgba(232,217,168,0.05) 32%, rgba(18,52,32,0) 62%);
  pointer-events: none;
}

/* ---- Main content ---- */
.pitch > main{
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 64px;
}

.crest{
  width: 176px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease-out 0.1s forwards;
}

.eyebrow-name{
  margin: 28px 0 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--gold-hint);
  opacity: 0;
  animation: rise 0.9s ease-out 0.28s forwards;
}

.pitch h1{
  margin: 10px 0 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--cream);
  opacity: 0;
  animation: rise 0.9s ease-out 0.42s forwards;
}

p.lede{
  max-width: 46ch;
  margin: 22px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(244,242,233,0.82);
  opacity: 0;
  animation: rise 0.9s ease-out 0.56s forwards;
}

.cta{
  margin-top: 36px;
  opacity: 0;
  animation: rise 0.9s ease-out 0.7s forwards;
}

.cta a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--pitch-dark);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta a:hover{
  background: var(--gold-hint);
  transform: translateY(-2px);
}

.cta a:focus-visible{
  outline: 3px solid var(--gold-hint);
  outline-offset: 3px;
}

.cta svg{ width: 20px; height: 20px; flex-shrink: 0; }

@keyframes rise{
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .crest, .eyebrow-name, .pitch h1, p.lede, .cta{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---- Sponsor band ---- */
.sponsors{
  position: relative;
  z-index: 2;
  background: var(--pitch-mid);
  border-top: 1px solid rgba(244,242,233,0.14);
  padding: 30px 20px 36px;
}

.sponsors h2{
  margin: 0 0 22px;
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(244,242,233,0.6);
}

.sponsor-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
}

.sponsor-row img{
  height: 30px;
  width: auto;
  opacity: 0.92;
}

.sponsor-row img[data-tall="1"]{ height: 40px; }
.sponsor-row img[data-tall="2"]{ height: 22px; }

@media (max-width: 640px){
  /* Allow the page to grow so every sponsor row stays visible */
  .pitch{
    min-height: 100svh;
    min-height: 100dvh;
    overflow: visible;
  }

  .pitch > main{
    flex: 0 0 auto;
    padding: 56px 20px 28px;
  }

  .sponsors{
    margin-top: auto;
    padding: 20px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .sponsors h2{
    margin: 0 0 14px;
  }

  .sponsor-row{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 100%;
  }

  .sponsor-row img{
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 28px;
    object-fit: contain;
  }

  .sponsor-row img[data-tall="1"]{ max-height: 34px; }
  .sponsor-row img[data-tall="2"]{ max-height: 22px; }
}

@media (max-width: 380px){
  .sponsor-row{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
}
