/* =================================================
   BUTTONS
================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 12px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--dark);

  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;

  transition:
    background-color .15s ease,
    color .15s ease,
    transform .1s ease,
    box-shadow .15s ease;
}

.btn:hover {
  background: var(--dark);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn--small {
  padding: 8px 14px;
  font-size: .9rem;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--dark);
}

/* CTA */
.btn--cta {
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(226,178,58,.35);
}

.btn--cta:hover {
  box-shadow: 0 12px 28px rgba(226,178,58,.45);
}


/* =================================================
   HERO / INTRO
================================================= */

.intro {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.intro-text {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.intro h1 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
}

.intro .lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.cta {
  text-align: center;
  margin-top: 24px;
}


/* =================================================
   HERO MODULES (SLUŽBY / PŘEBYTKY / PŮJČOVNA)
================================================= */

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .modules {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);

  background: linear-gradient(
    135deg,
    #ffffff,
    #fff6d9
  );

  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* žlutý akcent */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--primary);
  border-radius: 6px 0 0 6px;
}

/* text */
.hero-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-card p {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}


/* =================================================
   FILTER BAR
================================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.filter-bar select,
.filter-bar input {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 16px;
  min-height: 40px;
  font-size: .9rem;
  border-radius: 12px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(226,178,58,.25);
  background: #fff;
}

@media (max-width: 600px) {
  .filter-bar {
    flex-direction: column;
  }
  .filter-bar > * {
    width: 100%;
  }
}


/* =================================================
   AUTH PAGES
================================================= */

.auth {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  font-size: .85rem;
  font-weight: 600;
}

.auth-form input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: .95rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: .85rem;
}

.auth-links a {
  color: var(--primary);
  display: block;
  margin-top: 6px;
}


/* =================================================
   ANIMATIONS
================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro,
.hero-card {
  animation: fadeUp .45s ease both;
}

.hero-card:nth-child(1) { animation-delay: .05s; }
.hero-card:nth-child(2) { animation-delay: .12s; }
.hero-card:nth-child(3) { animation-delay: .18s; }

/* ================= LIGHTBOX ================= */

.lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lb.hidden {
  display: none;
}

.lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

#lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* close */
.lb-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 2;
}

/* arrows */
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  background: rgba(0,0,0,.4);
  border: none;
  color: white;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 999px;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* mobile */
@media (max-width: 600px) {
  .lb-prev,
  .lb-next {
    display: none;
  }
}

/* ===============================
   WHY / PROC CO ZATO
================================ */

.why-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 16px;
}

.why-hero {
  margin-bottom: 40px;
}

.why-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.why-hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.why-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--dark);
}

.why-content p {
  margin-bottom: 18px;
}

.why-content h2 {
  margin: 36px 0 14px;
  font-size: 1.25rem;
}

.examples p {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.why-cta {
  margin-top: 48px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #fff6d9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.why-cta p {
  margin-bottom: 16px;
  font-weight: 600;
}

/* mobile */
@media (max-width: 480px) {
  .why-page {
    padding: 28px 14px;
  }
}


/* =========================
   ADD NABÍDKA – HERO STYLE
   ========================= */

.add-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* základ karty – stejný look jako hero */
.add-card {
  position: relative;
  background: #fffaf0;
  border-radius: 14px;
  padding: 22px 22px 22px 26px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* levý barevný pruh */
.add-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 6px;
  background: #e0b100; /* fallback */
}

/* hover */
.add-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* text */
.add-card h2 {
  font-size: 1.25rem;
  margin: 0 0 6px;
}

.add-card p {
  margin: 0;
  color: #E2B23A;
  font-size: 0.95rem;
}

/* =========================
   BAREVNÉ VARIANTY
   ========================= */

.add-card.sluzby::before {
  background: #E2B23A;
}

.add-card.prebytky::before {
  background: #E2B23A;
}

.add-card.pujcovna::before {
  background: #E2B23A;
}
