/*
Theme Name: Astra Child
Template: astra
Version: 1.0.3
Description: Child theme for Pivoteka Prerov
Author: Pivoteka Prerov
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Playfair+Display:wght@400;700&display=swap');

/* =========================================================
   BASE
   ========================================================= */

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

/* =========================================================
   NAVIGATION
   ========================================================= */

.piv-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e8dece !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 60px !important;
  padding: 0 40px !important;
}

.piv-nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.piv-nav-links {
  display: flex;
  gap: 28px;
}

.piv-nav-links a {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #9a8060;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

.piv-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #8b5e1a;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.piv-nav-links a:hover {
  color: #8b5e1a;
}

.piv-nav-links a:hover::after {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */

.piv-hero {
  position: relative !important;
  height: 420px !important;
  overflow: hidden !important;
}

.piv-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.piv-hero-overlay {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background: rgba(250, 247, 242, 0.72) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 32px !important;
}

.piv-hero-tag {
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #8b5e1a;
  margin-bottom: 14px;
}

.piv-hero-overlay h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  color: #2c1f0e !important;
  line-height: 1.15 !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 14px !important;
}

.piv-hero-overlay p {
  font-size: 14px;
  color: #7a6a48;
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.95;
}

.piv-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
  background: #8b5e1a;
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  background: #7a5218;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #8b5e1a;
  border: 1px solid #8b5e1a;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
  background: #fdf6ec;
  border-color: #7a5218;
}

/* =========================================================
   INFO STRIP
   ========================================================= */

.piv-strip {
  background: #ffffff !important;
  border-bottom: 1px solid #e8dece !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.piv-strip-cell {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid #f0e8d8;
}

.piv-strip-cell:last-child {
  border-right: none;
}

.piv-strip-label {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9a8060;
  margin-bottom: 6px;
}

.piv-strip-value {
  font-size: 12px;
  color: #7a6a48;
  line-height: 1.6;
}

.piv-strip-muted {
  color: #b8a888;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.piv-section {
  padding: 60px 40px;
  border-bottom: 1px solid #e8dece;
  background: #faf7f2;
}

.piv-sec-label {
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8b5e1a;
  margin-bottom: 8px;
}

.piv-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #2c1f0e;
  margin-bottom: 14px;
  line-height: 1.2;
}

.piv-section .piv-sub {
  font-size: 13px;
  color: #7a6a48;
  line-height: 1.95;
  margin-bottom: 24px;
}

.piv-section p {
  font-size: 13px;
  color: #7a6a48;
  line-height: 1.95;
  margin-bottom: 12px;
}

/* =========================================================
   TWO-COLUMN LAYOUT (Co u nás / O pivotéce)
   ========================================================= */

.piv-two-col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 44px !important;
  align-items: center !important;
}

.piv-two-col img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   BULLET LIST (Co u nás najdete)
   ========================================================= */

.piv-bullets {
  list-style: none;
  columns: 2;
  column-gap: 24px;
  margin: 16px 0 24px;
}

.piv-bullets li {
  font-size: 12px;
  color: #7a6a48;
  padding: 6px 0;
  border-bottom: 1px solid #f5f0e8;
  display: flex;
  align-items: center;
  gap: 10px;
  break-inside: avoid;
  line-height: 1.4;
}

.piv-bullets li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #8b5e1a;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================================
   SEARCH INPUT
   ========================================================= */

.piv-search {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e8dece;
  color: #2c1f0e;
  padding: 10px 14px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.piv-search:focus {
  border-color: #8b5e1a;
}

.piv-search::placeholder {
  color: #d8c8b0;
}

/* =========================================================
   FILTER PILLS
   ========================================================= */

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pill {
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border: 1px solid #e8dece;
  color: #b8a888;
  cursor: pointer;
  background: transparent;
  user-select: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease,
              box-shadow 0.2s ease;
}

.pill:hover {
  color: #8b5e1a;
  border-color: #c8a870;
}

.pill.on {
  border-color: #8b5e1a;
  color: #8b5e1a;
  background: #fdf6ec;
  box-shadow: inset 0 0 0 1px #8b5e1a;
}

/* =========================================================
   RESULT COUNT
   ========================================================= */

.result-ct {
  font-size: 9px;
  color: #b8a888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* =========================================================
   BEER GRID
   ========================================================= */

.beer-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

.pivo-card {
  background: #ffffff;
  border: 1px solid #e8dece;
  border-left: 3px solid transparent;
  padding: 18px;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-left-color 0.25s ease;
}

.pivo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139, 94, 26, 0.10);
  border-left-color: #8b5e1a;
}

.pivo-card.is-hidden {
  display: none;
}

.pivo-card.is-collapsed {
  display: none;
}

.pivo-card__brewery {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b5e1a;
  margin-bottom: 4px;
}

.pivo-card__name,
.pivo-nazev {
  font-size: 13px;
  color: #2c1f0e;
  margin-bottom: 4px;
  line-height: 1.25;
}

.pivo-card__style-tag {
  font-size: 9px;
  color: #b8a888;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  display: block;
}

.pivo-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f5f0e8;
}

.pivo-card__volume {
  font-size: 9px;
  color: #d8c8b0;
  letter-spacing: 0.5px;
}

.pivo-card__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: #8b5e1a;
  line-height: 1;
}

.pivo-card__badge {
  font-size: 8px;
  background: #fdf6ec;
  border: 1px solid #e8dece;
  color: #9a8060;
  padding: 2px 6px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

/* =========================================================
   EXPAND BUTTON (beer list)
   ========================================================= */

.piv-expand-btn {
  display: block;
  margin: 20px auto 0;
  background: transparent;
  border: 1px solid #e8dece;
  color: #9a8060;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 10px 28px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.piv-expand-btn:hover {
  border-color: #8b5e1a;
  color: #8b5e1a;
}

/* =========================================================
   VOUCHER CARDS
   ========================================================= */

.piv-voucher-row {
  display: flex;
  gap: 16px;
}

.piv-voucher-card {
  background: #ffffff;
  border: 1px solid #e8dece;
  border-top: 2px solid #8b5e1a;
  padding: 28px 18px;
  text-align: center;
  flex: 1;
  transition: box-shadow 0.25s ease;
}

.piv-voucher-card:hover {
  box-shadow: 0 8px 24px rgba(139, 94, 26, 0.08);
}

.piv-voucher-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  color: #8b5e1a;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
}

.piv-voucher-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8b898;
  margin-top: 6px;
}

.piv-voucher-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.piv-voucher-note {
  font-size: 11px;
  color: #b8a888;
  line-height: 1.6;
}

/* =========================================================
   HONZA SIGNATURE
   ========================================================= */

#opivotece p em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 300;
  color: #8b5e1a;
  line-height: 1.4;
}

/* =========================================================
   HOURS TABLE (Kontakt)
   ========================================================= */

.piv-hours {
  margin-top: 14px;
}

.piv-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #f0e8d8;
}

.piv-hours-day {
  color: #b8a888;
  letter-spacing: 0.3px;
}

.piv-hours-open {
  color: #8b5e1a;
}

.piv-hours-closed {
  color: #d8c8b0;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.piv-kontakt-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 44px !important;
  align-items: start !important;
}

.piv-contact-detail {
  font-size: 12px;
  color: #7a6a48;
  margin-bottom: 8px;
  line-height: 1.6;
}

.piv-contact-detail a {
  color: #7a6a48;
  text-decoration: none;
  transition: color 0.2s ease;
}

.piv-contact-detail a:hover {
  color: #8b5e1a;
}

.piv-social-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* =========================================================
   NAV BURGER
   ========================================================= */

.piv-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.piv-nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #7a6a48;
  transition: background 0.2s ease;
}

.piv-nav-burger:hover span {
  background: #8b5e1a;
}

/* =========================================================
   DIVIDERS
   ========================================================= */

.piv-divider {
  text-align: center;
  padding: 18px;
  color: #d8c8b0;
  font-size: 13px;
  letter-spacing: 12px;
  border-bottom: 1px solid #f0e8d8;
  background: #faf7f2;
}

/* =========================================================
   FOOTER
   ========================================================= */

.piv-footer {
  background: #ffffff;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e8dece;
}

.piv-footer-copy {
  font-size: 9px;
  letter-spacing: 1px;
  color: #d8c8b0;
}

.piv-footer-links {
  display: flex;
  gap: 20px;
}

.piv-footer-links a {
  font-size: 9px;
  letter-spacing: 1px;
  color: #c8b898;
  text-decoration: none;
  transition: color 0.2s ease;
}

.piv-footer-links a:hover {
  color: #8b5e1a;
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   HERO LOAD ANIMATION
   ========================================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .piv-nav {
    padding: 0 20px !important;
    height: 56px !important;
  }

  /* Show burger, hide inline nav links */
  .piv-nav-burger {
    display: flex;
  }

  .piv-nav-links {
    display: none !important;
    position: absolute !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e8dece !important;
    padding: 8px 0 !important;
    z-index: 99 !important;
    box-shadow: 0 4px 16px rgba(44, 31, 14, 0.06) !important;
  }

  .piv-nav-links.open {
    display: flex !important;
  }

  .piv-nav-links a {
    padding: 13px 24px;
    font-size: 10px;
    letter-spacing: 2px;
    border-bottom: 1px solid #f5f0e8;
  }

  .piv-nav-links a:last-child {
    border-bottom: none;
  }

  .piv-nav-links a::after {
    display: none;
  }

  .piv-section {
    padding: 44px 20px;
  }

  .piv-two-col {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .piv-two-col .piv-two-col-text {
    order: 2;
  }

  .piv-two-col .piv-two-col-photo {
    order: 1;
  }

  .beer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .piv-kontakt-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .piv-bullets {
    columns: 1;
  }

  .piv-hero {
    height: 320px !important;
  }

  .piv-hero-overlay h1 {
    font-size: 34px !important;
  }

  .piv-footer {
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .beer-grid {
    grid-template-columns: 1fr !important;
  }

  .piv-hero {
    height: 280px !important;
  }

  .piv-hero-overlay h1 {
    font-size: 28px !important;
  }

  .piv-voucher-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
