/* === Proměnné & reset === */
:root {
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-bg: #fff;
  --color-bg-alt: #f5f5f5;
  --color-border: #e0e0e0;
  --font: 'Roboto', sans-serif;
  --radius: 4px;
  --transition: 0.2s ease;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--color-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }

/* === Typografie === */
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 2rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.subsection-heading { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--color-border); }

/* === Tlačítko === */
.btn {
  display: inline-block;
  background: var(--color-text);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font);
  transition: background var(--transition);
}
.btn:hover { background: #444; text-decoration: none; }

/* === Header === */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: background var(--transition), border-color var(--transition);
}

#site-header.scrolled {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.logo { flex-shrink: 0; }
.logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
#site-header.scrolled .logo img { filter: none; }
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin-left: auto;
}
.nav-links a {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }
#site-header.scrolled .nav-links a { color: var(--color-text); }
#site-header.scrolled .nav-links a:hover { color: var(--color-muted); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  margin-left: auto;
  padding: 0.25rem;
  transition: color var(--transition);
}
#site-header.scrolled .nav-toggle { color: var(--color-text); }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('../assets/images/home-sborklan.jpg');
  background-size: cover;
  background-position: center calc(50% + 50px);
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.30) 20%,
    rgba(0, 0, 0, 0.30) 80%,
    rgba(0, 0, 0, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2.5rem) 1.25rem 3.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 7vw, 3rem);
  font-weight: 300;
  max-width: 280px;
  line-height: 1.35;
  opacity: 0.9;
}

.hero-quote { max-width: 800px; }

.hero-quote p {
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-quote cite {
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.75;
  letter-spacing: 0.05em;
}

/* === O sboru === */
.about-text {
  font-size: 1.125rem;
  line-height: 1.85;
}
.about-text + .about-text { margin-top: 1.25rem; }

/* === Galerie === */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-grid figure {
  overflow: hidden;
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item--wide img {
  max-height: 420px;
  object-fit: cover;
}

/* === Kontakt === */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.25rem; }
label { font-weight: 500; font-size: 0.9rem; }
input, textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--color-text); }
textarea { resize: vertical; }

.form-status { margin-top: 0.75rem; font-size: 0.9rem; }
.form-status--error { color: #d32f2f; }
.form-status--ok    { color: #2e7d32; }

.contact-info { font-style: normal; line-height: 1.9; }
.contact-info p { margin-bottom: 0.25rem; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* === Footer === */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a { color: var(--color-muted); }
.footer-nav a:hover { color: var(--color-text); text-decoration: none; }

.footer-contact { font-style: normal; line-height: 1.75; }
.footer-contact p { margin-bottom: 0.2rem; }
.footer-contact strong { color: var(--color-text); }

.footer-social {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  padding-top: 0.125rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-muted);
  transition: color var(--transition), border-color var(--transition);
}
.social-icon:hover { color: var(--color-text); border-color: var(--color-text); text-decoration: none; }

/* === Scroll lock (používáno nav na mobilu) === */
.h-scroll-lock { overflow: hidden; }

/* === Responzivita === */
@media (max-width: 768px) {
  .hero { background-position: center; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    margin: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: var(--color-text); }
  .nav-links.open a:hover { color: var(--color-muted); }

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

  .gallery-grid { gap: 0.5rem; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: auto; }

  .footer-inner { grid-template-columns: 1fr; }
}
