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

:root {
  --green:       #2a7a4b;
  --green-light: #e8f5ee;
  --green-mid:   #c6e8d4;
  --green-dark:  #1a5233;
  --ink:         #111b14;
  --ink-soft:    #4a5e52;
  --white:       #ffffff;
  --off-white:   #f7fbf8;
  --radius:      16px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(42,122,75,.12);
  --shadow-lg:   0 12px 40px rgba(42,122,75,.18);
  --font:        'Open Sans', system-ui, sans-serif;
  --font-serif:  'Raleway', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  border-radius: 100px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green-light); }
.btn--sm { padding: 8px 18px; font-size: .875rem; }
.btn--full { width: 100%; justify-content: center; }

.pill {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill--dark { background: var(--green); color: var(--white); }
.pill--sm { padding: 3px 10px; font-size: .75rem; }

.section {
  padding: 96px 0;
}
.section__header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink);
}
.section__sub {
  color: var(--ink-soft);
  max-width: 520px;
  font-size: 1.0625rem;
}

/* ── Nav ───────────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-mid);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.nav__logo-img {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.hero__logo {
  height: 120px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}
.nav__logo-img--footer {
  height: 48px;
  filter: brightness(0) invert(1);
}
.nav__logo-text {
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}
.section__logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav__links a {
  padding: 8px 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--green); background: var(--green-light); }
.nav__links a.active { color: var(--green); }
.nav__links .btn { color: var(--white) !important; }
.nav__links .btn:hover { color: var(--ink) !important; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: var(--off-white);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
}
.hero__highlight {
  color: var(--green);
}
.hero__sub {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}

/* ── O nás ─────────────────────────────────────────── */
.o-nas { background: var(--white); padding-top: 48px; }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--green-mid);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--icon {
  text-align: center;
  align-items: center;
}
.card--icon .card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin: 0 auto 20px;
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.card p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.65; }

/* ── Akce ──────────────────────────────────────────── */
.akce { background: var(--off-white); }
.events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--green-mid);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: transform .2s, box-shadow .2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card--featured {
  grid-column: span 2;
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.event-card--featured .event-card__body p,
.event-card--featured .event-card__date .event-card__month {
  color: rgba(255,255,255,.75);
}
.event-card--featured h3 { color: var(--white); }
.event-card--featured .pill--sm {
  background: rgba(255,255,255,.2);
  color: var(--white);
}
.event-card--featured .btn--sm {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.event-card--featured .btn--sm:hover { background: var(--green-light); }

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  gap: 2px;
}
.event-card__day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}
.event-card--featured .event-card__day { color: var(--white); }
.event-card__month {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.event-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  align-items: flex-start;
}
.event-card__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.event-card__body p {
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

/* ── Historie akcí ─────────────────────────────────── */
.events-history {
  margin-top: 48px;
}
.events-history__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--green-mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--green-mid);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: var(--green-light); }
.history-item:hover .history-item__arrow { opacity: 1; transform: translateX(0); }
.history-item__arrow {
  margin-left: auto;
  color: var(--green);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .15s, transform .15s;
}
.history-item__date {
  font-size: .9375rem;
  color: var(--ink-soft);
  min-width: 110px;
}
.history-item__type {
  font-size: .8125rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green-dark);
  white-space: nowrap;
}
.history-item__type--online {
  background: #e8f0fe;
  color: #1a56a4;
}
.history-item__name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}

/* ── Gallery ───────────────────────────────────────── */
.gallery-strip {
  background: var(--off-white);
  padding: 96px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 0;
}
.gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform .3s, box-shadow .3s;
  cursor: zoom-in;
}
.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  position: relative;
}
.gallery-img:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-img:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

/* ── Kontakt ───────────────────────────────────────── */
.kontakt { background: var(--white); }
.kontakt__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.kontakt__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kontakt__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}
.kontakt__text p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  transition: color .2s;
}
.social-link:hover { color: var(--green-dark); }

.kontakt__form {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--green-mid);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kontakt__form h3 {
  font-size: 1.125rem;
  font-weight: 700;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.form-group input {
  padding: 11px 16px;
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,122,75,.12);
}
.form-group input::placeholder { color: #a0b4a8; }
.form-group--checkbox { margin-top: 4px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.checkbox-label a { color: var(--green); }
.form-note {
  font-size: .8125rem;
  color: var(--ink-soft);
  text-align: center;
  min-height: 1.2em;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .nav__logo { color: var(--white); }
.footer .logo-dot { background: var(--green); }
.footer__copy {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}
.footer__copy a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer__copy a:hover { color: var(--white); }
.footer__social a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__social a:hover { color: var(--white); }

/* ── Founder strip ─────────────────────────────────── */
.founder-strip {
  background: var(--green-light);
  padding: 28px 0;
  border-top: 1px solid var(--green-mid);
  border-bottom: 1px solid var(--green-mid);
}
.founder-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.founder__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--green-mid);
}
.founder__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.founder__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.founder__role {
  font-size: .875rem;
  color: var(--ink-soft);
}
.founder__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1.5px solid var(--green);
  border-radius: 100px;
  color: var(--green);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.founder__linkedin:hover {
  background: var(--green);
  color: var(--white);
}

/* ── Archiv ────────────────────────────────────────── */
.archiv-hero {
  background: var(--off-white);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--green-mid);
}
.archiv-hero .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.archiv-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}
.archiv-hero p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.back-link {
  color: var(--green);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.back-link:hover { color: var(--green-dark); }

.archiv-nav {
  position: sticky;
  top: 80px;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--green-mid);
  padding: 0;
}
.archiv-nav__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.archiv-nav__inner::-webkit-scrollbar { display: none; }
.archiv-nav__inner a {
  padding: 14px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.archiv-nav__inner a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.archiv-event {
  padding: 80px 0;
}
.archiv-event:nth-child(even) { background: var(--off-white); }
.archiv-event__header {
  margin-bottom: 40px;
}
.archiv-event__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.archiv-event__meta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}
.archiv-event__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.archiv-event__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.archiv-event__text p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.archiv-event__gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.archiv-img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.archiv-img--main {
  aspect-ratio: 16/10;
}
.archiv-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.archiv-img-grid .archiv-img {
  aspect-ratio: 4/3;
}
.archiv-divider {
  height: 1px;
  background: var(--green-mid);
}

@media (max-width: 900px) {
  .archiv-event__body { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .blob { flex-direction: row; flex-wrap: wrap; gap: 20px; padding: 28px 24px; }
  .blob__num { font-size: 2rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .event-card--featured { grid-column: span 1; }
  .kontakt__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--green-mid);
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 16px; }
  .nav-wrapper { position: relative; }
  .gallery-strip__item { width: 160px; height: 110px; }
  .kontakt__form { padding: 24px 20px; }
}

/* ── Ecomail widget override ───────────────────────── */

/* Skryj vlastní rámeček a pozadí widgetu */
#f-1-43c2cd496486bcc27217c3e790fb4088 .ecm-form,
#f-1-43c2cd496486bcc27217c3e790fb4088 form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Skryj nadpis uvnitř widgetu (máme vlastní) */
#f-1-43c2cd496486bcc27217c3e790fb4088 h1,
#f-1-43c2cd496486bcc27217c3e790fb4088 h2,
#f-1-43c2cd496486bcc27217c3e790fb4088 h3,
#f-1-43c2cd496486bcc27217c3e790fb4088 h4,
#f-1-43c2cd496486bcc27217c3e790fb4088 .ecm-title,
#f-1-43c2cd496486bcc27217c3e790fb4088 .ecm-form__title {
  display: none !important;
}

/* Pole – styl shodný s formuláři webu */
#f-1-43c2cd496486bcc27217c3e790fb4088 input[type="text"],
#f-1-43c2cd496486bcc27217c3e790fb4088 input[type="email"] {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1.5px solid var(--green-mid) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font) !important;
  font-size: 0.9375rem !important;
  color: var(--ink) !important;
  background: var(--white) !important;
  outline: none !important;
  box-shadow: none !important;
  margin-bottom: 12px !important;
}

#f-1-43c2cd496486bcc27217c3e790fb4088 input[type="text"]:focus,
#f-1-43c2cd496486bcc27217c3e790fb4088 input[type="email"]:focus {
  border-color: var(--green) !important;
}

/* Tlačítko – zelené, pill tvar */
#f-1-43c2cd496486bcc27217c3e790fb4088 input[type="submit"],
#f-1-43c2cd496486bcc27217c3e790fb4088 button[type="submit"] {
  width: 100% !important;
  padding: 14px 24px !important;
  background: var(--green) !important;
  color: var(--white) !important;
  border: 2px solid var(--green) !important;
  border-radius: 100px !important;
  font-family: var(--font) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  letter-spacing: 0.01em !important;
  transition: background .2s, border-color .2s !important;
  margin-top: 4px !important;
}

#f-1-43c2cd496486bcc27217c3e790fb4088 input[type="submit"]:hover,
#f-1-43c2cd496486bcc27217c3e790fb4088 button[type="submit"]:hover {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
}

/* Checkbox řádek */
#f-1-43c2cd496486bcc27217c3e790fb4088 input[type="checkbox"] {
  accent-color: var(--green) !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

#f-1-43c2cd496486bcc27217c3e790fb4088 label {
  font-family: var(--font) !important;
  font-size: 0.875rem !important;
  color: var(--ink-soft) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  line-height: 1.5 !important;
}

/* Chybové a úspěšné hlášky */
#f-1-43c2cd496486bcc27217c3e790fb4088 .ecm-success,
#f-1-43c2cd496486bcc27217c3e790fb4088 .ecm-message {
  font-family: var(--font) !important;
  font-size: 0.9375rem !important;
  color: var(--green) !important;
  margin-top: 12px !important;
}
