/* =========================================
   HRADIŠTAN – Hlavní stylesheet
   ========================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  border: 2px solid transparent;
}

.btn-dark {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.btn-dark:hover {
  background: #fff;
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* Sdílené tlačítko REGISTRACE v navigaci */
.btn-nav {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-nav:hover {
  background: #fff;
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* Tlačítko Registrace na propozice stránce */
.btn-registrace {
  display: inline-block;
  background: #111;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 16px 40px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-registrace:hover {
  background: #333;
}

/* GPS button */
.btn-gps {
  display: inline-block;
  background: #111;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  padding: 14px 30px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.btn-gps:hover {
  background: #333;
}

/* Submit button */
.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.btn-submit:hover {
  background: #333;
}

/* Sdílené logo fallback */
.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.nav-logo svg {
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a1a1a;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   FADE-IN ANIMACE
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: #fff;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #555;
}

/* =========================================
   SECTIONS – společné styly
   ========================================= */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.section-lead {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* =========================================
   O ZÁVODU
   ========================================= */
.section-about {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #eee;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  text-align: center;
}

/* =========================================
   PŘEKÁŽKY
   ========================================= */
.section-obstacles {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.obstacles-intro {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.obstacles-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  font-size: 1rem;
  color: #333;
}

.obstacles-list li {
  padding: 0.2rem 0;
}

/* =========================================
   OBČERSTVENÍ
   ========================================= */
.section-food {
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.food-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
  text-align: left;
  font-size: 1rem;
  color: #333;
}

.finish-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
}

/* =========================================
   INFO / REGISTRACE
   ========================================= */
.section-info {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.info-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  text-align: left;
  font-size: 1rem;
  color: #333;
}

/* =========================================
   GALERIE
   ========================================= */
.section-gallery {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e8e8;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto%;
  object-fit: unset;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Placeholder kdyz chybi obrazek */
.gallery-item.img-placeholder::after {
  content: '📷 Fotografie závodníků';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #888;
  background: #e8e8e8;
}

/* =========================================
   PROPOZICE (sekce na indexu)
   ========================================= */
.section-propozice {
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

/* =========================================
   PARTNEŘI (sekce na indexu)
   ========================================= */
.section-partners {
  padding: 5rem 0;
  border-bottom: 1px solid #eee;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.partner-placeholder {
  width: 160px;
  height: 80px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #999;
  border: 1px dashed #ccc;
}

.partner-placeholder1 {
  width: 160px;
  height: 80px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #ffffff;
  border: 1px dashed #ccc;
}

/* =========================================
   KONTAKT (sekce na indexu)
   ========================================= */
.section-contact {
  padding: 6rem 0;
  background: #fff;
}

.contact-question {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.social-icon:hover {
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.05em;
}

/* =========================================
   PROPOZICE STRÁNKA
   ========================================= */
.propozice-hero {
  padding: 100px 20px 40px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.propozice-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  line-height: 1;
}

.propozice-hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #222;
  margin: 0 0 12px;
}

.propozice-hero .poradatel {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 30px;
}

.propozice-hero .termin {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.propozice-hero .termin span {
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

/* ── Content sections ── */
.propozice-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 24px 60px;
}

.prop-section {
  margin-bottom: 40px;
  text-align: center;
}

.prop-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.prop-section p,
.prop-section li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.85;
  color: #222;
}

.prop-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prop-section .highlight {
  font-weight: 700;
}

.prop-section .note {
  font-style: italic;
  font-weight: 700;
}

/* ── Harmonogram ── */
.harmonogram-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.harmonogram-list li {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 2;
  color: #222;
}

.harmonogram-list li .cas {
  font-weight: 600;
  min-width: 55px;
  text-align: right;
}

/* ── Kategorie ── */
.kategorie-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Prohlaseni GDPR ── */
.prohlaseni {
  font-size: 0.78rem !important;
  text-align: justify;
  color: #444 !important;
}

/* ── GDPR section ── */
.gdpr-section {
  text-align: center;
  padding: 50px 24px;
  border-top: 1px solid #eee;
}

.gdpr-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  margin-bottom: 6px;
}

.gdpr-section p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Contact CTA ── */
.contact-cta {
  text-align: center;
  padding: 70px 24px 80px;
  border-top: 1px solid #eee;
}

.contact-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.contact-cta p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 28px;
}

.divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0;
}

/* ── Registrace sekce ── */
.registrace-section {
  text-align: center;
  margin-bottom: 36px;
}

.registrace-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.registrace-section p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.85;
  color: #222;
  margin-bottom: 18px;
}

/* =========================================
   PARTNEŘI STRÁNKA
   ========================================= */
.partners-hero {
  padding: 120px 20px 60px;
  text-align: center;
  background: #fff;
}

.partners-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.partners-hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
}

.partners-section {
  padding: 60px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.partner-card .partner-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.partner-logo-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-logo-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partner-logo-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.partner-card.placeholder .partner-logo-wrap {
  background: #f5f5f5;
  flex-direction: column;
  gap: 10px;
}

.partner-card.placeholder .partner-logo-wrap svg {
  width: 70px;
  height: 70px;
  opacity: 0.4;
}

.partner-card.placeholder .placeholder-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.partner-card.placeholder .partner-name {
  color: #aaa;
}

/* =========================================
   KONTAKT STRÁNKA
   ========================================= */
.page-hero {
  padding: 120px 40px 60px;
  text-align: center;
  background: #fff;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 0;
}

.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.contact-form-col h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 12px;
}

.contact-form-col p {
  color: #666;
  margin: 0 0 36px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #111;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
}

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

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 16px 20px;
  border-radius: 4px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.contact-info-col {
  padding-top: 8px;
}

.contact-info-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 16px;
}

.contact-info-col a {
  display: block;
  color: #555;
  text-decoration: underline;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-info-col a:hover {
  color: #111;
}

.contact-info-col .phone {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 6px;
  text-decoration: none;
  display: block;
}

.team-section {
  padding: 80px 40px;
  text-align: center;
  background: #fff;
}

.team-section .section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.team-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin: 0 0 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.team-member {
  text-align: center;
}

.team-member h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.team-member .role {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.team-member .photo {
  width: 100%;
  max-width: 310px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0 auto 20px;
}

.team-member .photo-placeholder {
  width: 100%;
  max-width: 310px;
  aspect-ratio: 3/4;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
  margin: 0 auto 20px;
}

.team-member a.member-email {
  display: block;
  color: #555;
  text-decoration: underline;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.team-member .member-phone {
  color: #555;
  font-size: 0.9rem;
}

.team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo img {
  width: 200px;
}

.team-logo-placeholder {
  width: 200px;
  height: 200px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.cta-section {
  padding: 80px 40px;
  text-align: center;
  background: #fff;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cta-section p {
  color: #666;
  margin: 0 0 36px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

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

  .obstacles-list,
  .food-list,
  .info-list {
    text-align: center;
  }

  .hero {
    padding-top: 7rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  /* Kontakt stránka */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Team sekce */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-logo {
    order: -1;
  }

  /* Partneři stránka */
  .partners-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .btn {
    padding: 0.75rem 1.8rem;
    font-size: 0.8rem;
  }

  .partners-page-grid {
    grid-template-columns: 1fr;
  }
}
