/* ═══════════════════════════════════════════════════════════
   Poděbradský pivovar — podstránky
   Historie / Prohlídky / Kontakt
   Doplněk k styles.css (načítá se až po něm)
   ═══════════════════════════════════════════════════════════ */

/* ─── Kompaktní hero podstránky ─── */
.page-hero {
  padding: clamp(1.75rem, 5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.page-hero-inner {
  max-width: 780px;
}

.page-hero--center .page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.1rem;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 640px;
}

.page-hero--center .page-lead {
  margin-left: auto;
  margin-right: auto;
}

.page-lead strong {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

/* Vycentrovaný nadpis sekce */
.section-head {
  max-width: 680px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-head .section-title {
  margin-bottom: 0.75rem;
}

.section-head .text-muted {
  font-size: 0.95rem;
}

/* ─── Řádek s čísly ─── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-tile {
  padding: 1.4rem 1.25rem;
  text-align: center;
  border-radius: var(--radius);
}

.stat-tile-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-end) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.stat-tile-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ─── Časová osa (Historie) ─── */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(69, 212, 232, 0.05) 0%,
    rgba(69, 212, 232, 0.55) 12%,
    rgba(69, 212, 232, 0.55) 88%,
    rgba(69, 212, 232, 0.05) 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2.75rem + 0.4rem);
  top: 1.6rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-end), var(--accent));
  box-shadow: 0 0 0 4px rgba(69, 212, 232, 0.16);
}

.timeline-item--gold::before {
  background: linear-gradient(135deg, var(--gold-end), var(--gold));
  box-shadow: 0 0 0 4px rgba(244, 201, 74, 0.18);
}

.timeline-card {
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.11);
}

.timeline-year {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--accent-end) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-item--gold .timeline-year {
  background: linear-gradient(135deg, var(--gold-end) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.timeline-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Karty prohlídek ─── */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tour-card--featured {
  border-color: rgba(69, 212, 232, 0.42);
  box-shadow: inset 0 0 0 1px rgba(69, 212, 232, 0.22);
}

.tour-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: #08333d;
  background: linear-gradient(135deg, var(--accent-end), var(--accent));
  box-shadow: 0 6px 18px rgba(42, 159, 212, 0.4);
}

.tour-duration {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.5rem;
}

.tour-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.85rem;
}

.tour-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.tour-price-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.05rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-end) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tour-price-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tour-list {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.tour-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.55rem;
}

.tour-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-end), var(--accent));
}

.tour-card .btn {
  align-self: flex-start;
}

/* ─── Číslované kroky ─── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 1.7rem 1.6rem 1.5rem;
  border-radius: var(--radius);
  counter-increment: step;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Kulatý číselný odznak (01–06) */
.step-card::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #08333d;
  background: linear-gradient(135deg, var(--accent-end) 0%, var(--accent) 100%);
  box-shadow: 0 6px 16px rgba(42, 159, 212, 0.32);
}

/* Jemná světelná linka nahoře, naskočí při hoveru */
.step-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-end), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
  border-color: rgba(69, 212, 232, 0.4);
}

.step-card:hover::after {
  transform: scaleX(1);
}

/* Zvýrazněné kroky (Degustace, Studna) — zlatý odznak */
.step-card--accent::before {
  color: #3a2c05;
  background: linear-gradient(135deg, var(--gold-end) 0%, var(--gold) 100%);
  box-shadow: 0 6px 16px rgba(244, 201, 74, 0.35);
}

.step-card--accent::after {
  background: linear-gradient(90deg, var(--gold-end), var(--gold));
}

.step-card--accent {
  border-color: rgba(244, 201, 74, 0.28);
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* ─── Kontaktní karty ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  padding: 1.75rem 1.7rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.11);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  margin-bottom: 1rem;
  color: #08333d;
  background: linear-gradient(135deg, var(--accent-end), var(--accent));
  box-shadow: 0 8px 20px rgba(42, 159, 212, 0.32);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.contact-card p,
.contact-card address {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: normal;
}

.contact-card a {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(69, 212, 232, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.contact-card a:hover {
  color: var(--accent-end);
  border-color: var(--accent-end);
}

.contact-role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

/* Fakturační údaje */
.detail-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.detail-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-key {
  color: var(--text-muted);
}

.detail-val {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  text-align: right;
}

/* ─── Široký CTA panel ─── */
.cta-panel {
  width: 100%;
  padding: 2.6rem 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-panel h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.85rem;
}

.cta-panel .copy-stack {
  max-width: 620px;
  margin: 0 auto 1.6rem;
}

/* ─── Portrétní / čtvercová fotka — bez ořezu, vycentrovaná ─── */
/* Výchozí .feature-media-frame má poměr 4/3 a object-fit: cover, což
   u téměř čtvercové fotky ukrojí ~13 % nahoře i dole (hlava, půllitr).
   Tento modifikátor srovná rám s fotkou a vystředí ho ve sloupci. */
.feature-media--portrait {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.feature-media--portrait .feature-media-frame {
  aspect-ratio: 1 / 1;
  max-height: none;
}

.feature-media--portrait .feature-media-frame img {
  object-position: center;
}

/* ─── Zajímavost / tajemství — zvýrazněný panel bez fotky ─── */
.secret-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(69, 212, 232, 0.28);
}

/* Jemná záře zdola — evokuje světlo z hloubky studny */
.secret-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(680px, 105%);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 212, 232, 0.24) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.secret-panel > * {
  position: relative;
  z-index: 1;
}

.secret-panel .page-eyebrow {
  margin-bottom: 1rem;
}

.secret-panel .copy-stack p {
  margin-bottom: 0.85rem;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ─── Mapa na podstránce ─── */
.page-map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.page-map-frame iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 420px;
}

/* ─── Responzivita ─── */
@media (max-width: 900px) {
  .timeline {
    padding-left: 2.1rem;
  }

  .timeline::before {
    left: 0.42rem;
  }

  .timeline-item::before {
    left: calc(-2.1rem + 0.15rem);
    top: 1.45rem;
  }

  .timeline-card {
    padding: 1.15rem 1.25rem;
  }

  .cta-panel {
    padding: 1.9rem 1.5rem;
  }

  .page-map-frame iframe {
    height: 340px;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding-top: 1.25rem;
  }

  .tour-card,
  .contact-card,
  .step-card {
    padding: 1.4rem 1.3rem;
  }

  .detail-list li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .detail-val {
    text-align: left;
  }
}

/* ─── Stírací los (studna) ─── */
.scratch {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #123f49 0%, #0b2e35 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Fotka pod stírací vrstvou */
.scratch-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Placeholder, dokud fotka není doplněná (zobrazí se pod canvasem) */
.scratch::before {
  content: "Foto studny";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

/* Stírací vrstva */
.scratch-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.6s ease;
}

.scratch-cover:active { cursor: grabbing; }

/* Po setření dostatečné plochy zbytek zmizí */
.scratch.is-revealed .scratch-cover {
  opacity: 0;
  pointer-events: none;
}

.scratch-note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.85rem;
  transition: opacity 0.4s ease;
}

.scratch.is-revealed + .scratch-note,
.content-row-media:has(.scratch.is-revealed) .scratch-note {
  opacity: 0;
}

/* Studna — mírně větší stírací fotka */
/* minmax(0, …) rozbije zpětnou vazbu, kdy intrinsická šířka <canvas> tlačí sloupec */
#studna .content-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

#studna .content-row-media {
  min-width: 0;
}

.scratch {
  aspect-ratio: 5 / 4;
  min-width: 0;
}

.scratch-cover {
  display: block;
  min-width: 0;
}

/* Studna — na mobilu zpět do jednoho sloupce (id override porazí obecné pravidlo) */
@media (max-width: 900px) {
  #studna .content-row {
    grid-template-columns: 1fr;
  }
}

/* Šest kroků prohlídky — vyvážené 3 sloupce (3+3 místo 4+2) */
.step-grid--fresh {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .step-grid--fresh {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .step-grid--fresh {
    grid-template-columns: 1fr;
  }
}
