/* Rozvržení společné všem stránkám: hlavička, úvodní pás (hero), patička. */

/* ---------- Hlavička ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #fdf8ec 0%, var(--color-cream) 100%);
  border-bottom: 1px solid rgba(201, 162, 78, 0.18);
}

.site-header__inner {
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  width: clamp(110px, 12vw, 150px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.main-nav__list {
  display: flex;
  gap: clamp(16px, 2.6vw, 32px);
}

.main-nav__list a {
  position: relative;
  display: block;
  padding: 8px 2px;
  color: var(--color-green-dark);
  font-size: 1.08rem;
  text-decoration: none;
}

.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav__list a:hover::after,
.main-nav__list a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* ---------- Úvodní pás (hero) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 30vw, 320px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(253, 248, 236, 0.95) 0%, rgba(253, 248, 236, 0) 60%),
    linear-gradient(90deg, #f7f1dc 0%, #eef0d2 45%, #dfe6bf 100%);
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(56%, 620px);
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 40px var(--gutter);
}

.hero__title {
  max-width: 480px;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
}

.hero__title-second {
  display: block;
  font-size: 0.86em;
}

/* Nadpis o dvou pevných řádcích – na širších displejích se řádky nezalamují */
.hero__title--two-lines {
  max-width: none;
}

.hero__title-line {
  display: block;
}

@media (min-width: 601px) {
  .hero__title--two-lines .hero__title-line {
    white-space: nowrap;
  }
}

.hero__rule {
  width: 78px;
  height: 2px;
  margin: 18px 0 20px;
  border: 0;
  background: var(--color-gold);
}

.hero__lead {
  max-width: 420px;
  font-size: 1.12rem;
  line-height: 1.4;
}

.hero__lead--italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--color-green-dark);
}

.hero .btn {
  margin-top: 24px;
}

/* ---------- Patička – výzva k objednání ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  background: linear-gradient(90deg, #6f8a52 0%, #5f7a45 45%, #6c8650 100%);
  color: #fffaf0;
}

.cta-banner__leaves {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 34%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
  opacity: 0.9;
}

.cta-banner__inner {
  position: relative;
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 22px var(--gutter) 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.cta-banner__text {
  grid-column: 2;
  text-align: center;
}

.cta-banner__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.cta-banner__ornament::before,
.cta-banner__ornament::after {
  content: "";
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light));
}

.cta-banner__ornament::after {
  background: linear-gradient(90deg, var(--color-gold-light), transparent);
}

.cta-banner__ornament img {
  width: 52px;
}

.cta-banner__text p {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.cta-banner__action {
  justify-self: stretch;
  /* upozornění pod tlačítkem má být na úrovni textu „Dopřejte si čas…“ uprostřed */
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.cta-banner__disclaimer,
.cta-banner__legal {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.cta-banner__disclaimer {
  opacity: 0.85;
}

.cta-banner__legal a {
  white-space: nowrap;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-banner__legal a:hover {
  color: var(--color-gold-light);
}

.cta-banner__info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px var(--gutter) 14px;
}

.cta-banner__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.98rem;
}

.cta-banner__address img {
  width: 18px;
  height: 18px;
}

.cta-banner__copyright {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ---------- Mobil a tablet ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-cream-light);
    cursor: pointer;
  }

  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-green-dark);
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .nav-toggle__bar {
    position: relative;
  }

  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bar::before {
    top: -7px;
  }

  .nav-toggle__bar::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    background: transparent;
  }

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

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 24px rgba(60, 60, 30, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .main-nav__list a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 1.15rem;
  }

  .main-nav__list a::after {
    right: auto;
    width: 48px;
    bottom: -1px;
  }

  .main-nav__cta {
    align-self: flex-start;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero__image {
    position: relative;
    order: 2;
    width: 100%;
    height: 220px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    margin-top: -12px;
  }

  .hero__content {
    padding-block: 32px 8px;
  }

  .cta-banner__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 28px;
  }

  .cta-banner__text {
    grid-column: 1;
  }

  .cta-banner__action {
    justify-self: center;
    margin-top: 0;
    align-items: center;
    text-align: center;
  }

  .cta-banner__leaves {
    max-width: 60%;
    opacity: 0.45;
  }
}

@media (max-width: 480px) {
  .cta-banner__ornament::before,
  .cta-banner__ornament::after {
    width: 70px;
  }
}
