/* =============================================
   SK Hroubovice – Club Colors: Blue & White
   ============================================= */

:root {
  --blue:       #2980e8;
  --blue-dark:  #1a5fb4;
  --blue-light: #d6e8fb;
  --white:      #ffffff;
  --gray-light: #f5f7fa;
  --gray:       #666;
  --text:       #222;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(41, 128, 232, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── Navigation ── */
header {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  position: relative;
}

.navbar .logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.navbar .logo-wrap img {
  height: 54px;
  width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.navbar .brand {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  white-space: nowrap;
}

nav ul a:hover {
  background: rgba(255,255,255,0.18);
}

nav ul a.active {
  background: rgba(255,255,255,0.28);
  font-weight: 700;
}

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.hero img.hero-logo {
  height: 140px;
  width: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.hero p.subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* ── Sections ── */
section {
  padding: 4rem 1.5rem;
}

section:not(.hero):nth-child(even) {
  background: var(--gray-light);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

h2.section-title {
  font-size: 1.9rem;
  color: var(--blue-dark);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

/* ── About cards ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text);
  font-size: 0.97rem;
}

/* ── Contact form ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Mobile navigation ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: none;
  }

  nav.nav-open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0;
  }

  nav ul li {
    width: 100%;
  }

  nav ul a {
    display: block;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
  }

  nav ul a:hover,
  nav ul a.active {
    background: rgba(255,255,255,0.18);
  }

  .navbar .brand {
    font-size: 0.95rem;
  }

  .navbar .logo-wrap img {
    height: 44px;
  }
}

/* ── General responsive layout ── */
@media (max-width: 700px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p.subtitle {
    font-size: 1rem;
  }

  .hero img.hero-logo {
    height: 100px;
  }

  section {
    padding: 2.5rem 1rem;
  }

  h2.section-title {
    font-size: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .btn-submit {
    width: 100%;
    text-align: center;
  }

  footer {
    padding: 1.25rem 1rem;
    line-height: 1.8;
  }

  footer p {
    font-size: 0.82rem;
  }

  .poster-img {
    border-radius: 4px;
  }

  .schedule-list .time {
    min-width: 65px;
  }
}

.contact-info h3 {
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.contact-info p {
  font-size: 0.97rem;
  margin-bottom: 0.5rem;
  color: var(--gray);
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #c5d8f5;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fafcff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--blue-dark); }

.form-msg {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
  display: none;
}

.form-msg.success { background: #d4edda; color: #155724; display: block; }
.form-msg.error   { background: #f8d7da; color: #721c24; display: block; }

/* ── Footer ── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.88rem;
}

footer strong { color: var(--white); }

/* ── Poster ── */
.poster-wrap {
  display: flex;
  justify-content: center;
}

.poster-img {
  max-width: 600px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(41, 128, 232, 0.18);
}

/* ── Schedule list ── */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.25rem 0;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--blue-light);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list .time {
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  min-width: 80px;
  font-size: 0.85rem;
}

/* ── Category select ── */
.form-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #c5d8f5;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fafcff;
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--blue);
  outline: none;
  background: var(--white);
}

/* ── Honeypot field – visually hidden ── */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Back button link ── */
.btn-back {
  display: inline-block;
  color: var(--blue);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-back:hover {
  text-decoration: underline;
}
