/*
Theme Name: KS Dalin — Zapisy Siatkówka
Description: Landing page zapisów na sezon dla sekcji siatkówki KS Dalin Myślenice.
Author: KS Dalin Myślenice
Version: 3.0.1
Text Domain: dalin-zapisy-siatkowka
*/

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --green: #008136;
  --green-deep: #0b4423;
  --green-ink: #06170e;
  --paper: #ffffff;
  --paper-tint: #f4f7f4;
  --line: #e3e8e3;
  --red: #e30613;
  /* siatkówka: złoto jako kolor wiodący sekcji, zieleń jako akcent — jak w sekcja-siatkowka */
  --section: #d6b469;
  --section-deep: #93712f;
  --gold: #008136;
  --on-gold: #ffffff;
  --font: 'Rubik', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { margin: 0; padding: 0; width: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--green-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--section); color: #fff;
  padding: 10px 16px; font-weight: 700; z-index: 50;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- leaf motif ---------- */
.leaf {
  display: inline-block; width: 1em; height: 1em; flex: none;
  background: url('assets/img/listek_PNG.png') center / contain no-repeat;
}
.leaf-watermark {
  position: absolute; width: 380px; height: 380px;
  background: url('assets/img/listek_PNG.png') center / contain no-repeat;
  opacity: .2; pointer-events: none; z-index: 0;
}
.leaf-rule { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 14px 0; }
.leaf-rule .leaf { width: 15px; height: 15px; }
.leaf-rule .leaf:nth-child(2) { width: 22px; height: 22px; }

.container { max-width: 980px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--section-deep);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.gold:hover { background: #009a41; }
.btn.outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,.14); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- nav ---------- */
.site-nav {
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.nav-utility {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 8px clamp(18px, 4vw, 40px); background: var(--paper-tint); border-bottom: 1px solid var(--line);
}
.nav-tag { font-size: 12.5px; font-weight: 600; color: var(--green-ink); opacity: .85; display: flex; align-items: center; gap: 6px; }
.nav-tag b { font-weight: 700; }
.nav-tag .thin { font-weight: 300; }
.nav-main { display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(18px, 4vw, 40px); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-ink); }
.brand img { height: 48px; width: auto; }
.brand span { font-weight: 800; font-size: 16px; line-height: 1.2; }
.brand:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.back-link { font-size: 13.5px; font-weight: 700; color: var(--section-deep); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--green); }
@media (max-width: 560px) {
  .nav-utility { justify-content: center; }
  .brand span { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--section), var(--section-deep));
  color: #fff; padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 9vw, 100px);
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px);
}
.hero .leaf-watermark { top: -60px; right: -50px; transform: rotate(18deg); opacity: .16; }
.hero .leaf-watermark.lw2 { top: auto; right: auto; bottom: -70px; left: -60px; transform: rotate(-25deg); opacity: .12; width: 300px; height: 300px; }
.hero .container { position: relative; z-index: 1; }
.hero .cat-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero .cat-tag .leaf { width: 13px; height: 13px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; margin: 0 0 16px; line-height: 1.1; }
.hero .lead { font-size: clamp(15px, 1.8vw, 18px); color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 28px; }
.deadline-chip {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: rgba(6,23,14,.28); border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px; padding: 14px 22px; font-size: 14px; font-weight: 700;
}
.deadline-chip strong { font-weight: 800; }
.deadline-chip .sep { opacity: .5; }

/* ---------- season info card ---------- */
.info-wrap { margin-top: -44px; position: relative; z-index: 5; }
.info-card {
  background: var(--paper); border-radius: 18px; box-shadow: 0 18px 44px rgba(6,23,14,.16);
  padding: clamp(26px, 4vw, 44px);
}
.info-card h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin: 4px 0 6px; text-align: center; }
.info-card > p.sub { text-align: center; color: #56685c; max-width: 60ch; margin: 0 auto 30px; font-size: 14.5px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid.single { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
.info-item { background: var(--paper-tint); border-radius: 14px; padding: 20px; text-align: center; }
.info-item .ii-icon {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(214,180,105,.22); color: var(--section-deep);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.info-item .ii-icon svg { width: 22px; height: 22px; }
.info-item h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.info-item p { margin: 0; font-size: 13px; color: #56685c; }
.placeholder-note {
  font-size: 12.5px; color: var(--section-deep); font-style: italic; margin: 22px 0 0;
  text-align: center; background: rgba(214,180,105,.14); border: 1px dashed rgba(147,113,47,.4);
  border-radius: 10px; padding: 12px 16px;
}

/* ---------- form section ---------- */
.form-section { padding: 64px 0 80px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 8px 0 8px; }
.section-head p { max-width: 56ch; margin: 0 auto; color: #56685c; font-size: 14.5px; }

.signup-card {
  max-width: 620px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 14px 36px rgba(6,23,14,.08);
}
.gate-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.gate-row .field { flex: 1 1 240px; margin-bottom: 0; }
.gate-row .btn {
  flex: none; border-radius: 10px; padding: 0 22px; height: 46px;
  font-size: 14.5px;
}
@media (max-width: 480px) { .gate-row .btn { align-self: stretch; width: 100%; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--green-ink); margin-bottom: 6px; }
.field .hint { display: block; font-size: 12px; font-weight: 500; color: #8a978d; margin-top: 5px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 14.5px; color: var(--green-ink); background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: none; border-color: var(--section-deep);
  box-shadow: 0 0 0 3px rgba(214,180,105,.25);
}
.field input[readonly] { background: var(--paper-tint); color: #56685c; }
.field input.invalid { border-color: var(--red); }

.gate-status { font-size: 13px; line-height: 1.55; margin-top: 14px; }
.gate-status:empty { margin-top: 0; }
.gate-status.ok { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; }
.gate-status .leaf { width: 14px; height: 14px; }
.gate-status.err { color: var(--red); font-weight: 600; }
.gate-status.err a { color: var(--red); font-weight: 700; text-decoration: underline; }

.help-note { text-align: center; font-size: 13px; color: #56685c; margin-top: 22px; }
.help-note a { color: var(--section-deep); font-weight: 700; text-decoration: none; }
.help-note a:hover { text-decoration: underline; }

.reveal-fields { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s ease, opacity .4s ease .05s; }
.reveal-fields.open { max-height: 1400px; opacity: 1; }
.reveal-fields .divider {
  display: flex; align-items: center; gap: 12px; margin: 26px 0 24px;
}
.reveal-fields .divider::before, .reveal-fields .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.reveal-fields .divider .leaf { width: 18px; height: 18px; flex: none; }

.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.check-row input[type="checkbox"] { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--section-deep); }
.check-row label { font-size: 13px; color: #33422f; line-height: 1.5; font-weight: 500; }
.check-row a { color: var(--section-deep); font-weight: 700; text-decoration: underline; }

.submit-row { margin-top: 6px; text-align: center; }
.submit-row .btn { width: 100%; justify-content: center; }
.submit-error {
  display: none; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--red);
  background: rgba(227,6,19,.08); border-radius: 10px; padding: 12px 14px; text-align: left;
}
.submit-error.show { display: block; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 20px;
  font-size: 12px; color: #8a978d; background: var(--paper-tint); border-radius: 10px; padding: 12px 14px;
}
.form-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--section-deep); }

.success-panel { display: none; text-align: center; padding: 30px 10px 10px; }
.success-panel.show { display: block; }
.success-panel .si {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(0,129,54,.12); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.success-panel .si svg { width: 28px; height: 28px; }
.success-panel h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.success-panel p { margin: 0; color: #56685c; font-size: 14px; max-width: 42ch; margin: 0 auto; }

/* ---------- footer ---------- */
.site-foot { background: var(--green-ink); color: rgba(255,255,255,.7); padding: 34px 0 20px; position: relative; overflow: hidden; }
.site-foot .leaf-watermark { opacity: .1; width: 260px; height: 260px; left: -60px; bottom: -80px; transform: rotate(-20deg); }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; position: relative; z-index: 1; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.foot-brand img { height: 28px; }
.foot-tag { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; }
.foot-tag b { font-weight: 700; }
.foot-tag .thin { font-weight: 300; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12px; text-align: center; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; position: relative; z-index: 1; }
.foot-legal .sep { opacity: .35; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .reveal-fields { transition: none; }
}
