/* ==========================================================================
   Pivovar Jindra — rebuilt static site
   Fonts: headings = Montserrat (substitute for Lulo Clean W01), body = Roboto
   ========================================================================== */

:root {
  --yellow:  #f4c13c;
  --orange:  #f4831f;
  --orange-2:#ef5a24;
  --teal:    #34cdc4;
  --purple:  #7d5bc0;
  --dark:    #242122;
  --text:    #3d3a3b;
  --muted:   #6c696a;
  --white:   #ffffff;
  --maxw: 1180px;
  --head: 'Montserrat', 'Arial Narrow', sans-serif;
  --body: 'Roboto', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Headings — Lulo Clean look: geometric, all-caps, wide tracking */
h1, h2, h3, .h {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.15;
  margin: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-decoration: none;
  padding: 14px 30px;
  border: 2px solid currentColor;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .18s ease;
}
.btn:hover { background: var(--text); color: #fff; }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--dark);
  color: #fff;
  text-align: center;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 16px;
}
.topbar span { font-weight: 400; text-transform: none; letter-spacing: .02em; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.nav__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 92px;
}
.nav__menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-family: var(--head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--text); padding: 6px 0; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: border-color .15s;
}
.nav__menu a:hover, .nav__menu a.active { border-color: var(--orange); }

.nav__logo { justify-self: center; }
.nav__logo img { height: 56px; width: auto; }

.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.nav__social { display: flex; gap: 10px; }
.nav__social img { width: 26px; height: 26px; }
.nav__sep { width: 1px; height: 34px; background: #ddd; }
.nav__partners { display: flex; align-items: center; gap: 16px; }
.nav__partners img { height: 30px; width: auto; opacity: .9; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--text); margin: 5px 0; }

/* ==========================================================================
   Page-title banner (sub pages)
   ========================================================================== */
.pagehead {
  position: relative;
  min-height: 230px;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  text-align: center;
}
.pagehead--orange  { background-image: url('../img/banner-orange.jpg'); }
.pagehead--orange2 { background-image: url('../img/banner-orange2.jpg'); }
.pagehead--teal    { background-image: url('../img/banner-teal.jpg'); }
.pagehead--purple  { background-image: url('../img/banner-purple.jpg'); }
.pagehead__title {
  position: relative;
  display: inline-block;
  padding: 26px 60px;
  background: #fff;
  /* torn-brush look approximated with a soft mask */
  clip-path: polygon(2% 18%, 8% 6%, 22% 14%, 40% 4%, 60% 12%, 78% 3%, 92% 13%, 99% 30%, 97% 62%, 99% 84%, 88% 95%, 70% 88%, 52% 97%, 34% 89%, 16% 96%, 5% 84%, 1% 60%);
}
.pagehead__title h1 { color: var(--dark); font-size: 30px; }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 76px 0; }
.section--tight { padding: 54px 0; }

/* coloured band heading (e.g. NAŠE PIVA) */
.band {
  text-align: center; padding: 26px 16px;
  background-size: cover; background-position: center;
}
.band--orange { background-image: url('../img/banner-orange2.jpg'); }
.band--teal   { background-image: url('../img/banner-teal.jpg'); }
.band h2 { color: #fff; font-size: 34px; }

/* split: image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; }
.split__media { min-height: clamp(440px, 57vw, 740px); background-size: cover; background-position: center; }
.split__body { padding: 60px clamp(24px, 6vw, 90px); }
.split__body h2 { font-size: 22px; margin-bottom: 22px; color: var(--dark); }
.split__body p { margin: 0 0 18px; color: var(--muted); }
.split--rev .split__media { order: 2; }

.eyebrow {
  font-family: var(--head); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 13px; color: var(--text);
  margin: 0 0 18px;
}
.lead { font-size: 19px; color: var(--text); }

/* promo card (home split sections): centred, all-caps display font */
.split__body--promo {
  text-align: center; padding-top: 80px; padding-bottom: 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.split__body--promo h2 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 26px; letter-spacing: 0.12em; }
.split__body--promo p {
  font-family: var(--head); text-transform: uppercase; font-weight: 600;
  letter-spacing: 0.09em; font-size: 13px; line-height: 1.95; color: var(--muted);
  margin: 0 0 16px;
}
.split__body--promo .btn { margin-top: 12px; }

/* center text block */
.prose { max-width: 760px; margin: 0 auto; text-align: center; }
.prose p { color: var(--muted); margin: 0 0 20px; }
.prose a { color: var(--orange-2); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  background: url('../img/banner-yellow.jpg') center/cover;
  min-height: clamp(540px, 66vw, 900px);
  overflow: hidden;
}
.hero h1 {
  position: absolute; z-index: 3;
  left: 50%; top: clamp(56px, 11%, 150px); transform: translateX(-50%);
  width: 92%;
  color: #fff; font-size: clamp(34px, 5.4vw, 70px);
  text-align: center; letter-spacing: 0.16em;
  text-shadow: 0 3px 22px rgba(120, 80, 0, .26);
}
.hero__can {
  position: absolute; z-index: 1;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.22));
  pointer-events: none;
}
.hero__can--l  { left: 0%;  top: 33%; width: clamp(155px, 32vw, 420px); transform: rotate(-9deg); }
.hero__can--r  { left: 67%; top: 16%; width: clamp(140px, 31vw, 410px); transform: rotate(11deg); }
.hero__can--r2 { left: 55%; top: 50%; width: clamp(135px, 30vw, 395px); transform: rotate(-5deg); }

/* ==========================================================================
   Beer grid (Naše piva)
   ========================================================================== */
.beers { background: url('../img/banner-orange.jpg') center/cover; color: #fff; text-align: center; padding: clamp(70px, 16vw, 200px) 0; }
.beers h2 { color: #fff; font-size: 40px; margin-bottom: 70px; }
.beers__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
  align-items: end; margin-bottom: 70px; max-width: 960px; margin-left: auto; margin-right: auto;
}
.beers__grid img { margin: 0 auto; max-height: 520px; width: auto; filter: drop-shadow(0 16px 26px rgba(0,0,0,.18)); }
.beers .btn { color: #fff; border-color: #fff; }
.beers .btn:hover { background: #fff; color: var(--orange-2); }

/* gallery (sub pages) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 300px; object-fit: cover; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }

.figure-wide { width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover; }

/* logos inside body (Smetana / Kapitán) */
.bodylogo { text-align: center; margin: 30px 0; }
.bodylogo img { display: inline-block; height: 64px; width: auto; }

/* ==========================================================================
   Instagram band (home)
   ========================================================================== */
.insta { background: var(--teal); position: relative; overflow: hidden; text-align: center; }
.insta__inner { display: block; text-decoration: none; color: inherit; cursor: pointer; padding-top: 58px; }
.insta__text h2 {
  color: #fff; font-size: clamp(28px, 5.2vw, 58px);
  letter-spacing: 0.05em; overflow-wrap: normal; word-break: keep-all; margin-bottom: 6px;
}
.insta__img { margin-top: 6px; }
.insta__img img { max-height: 520px; width: auto; margin: 0 auto; display: block; }

/* Instagram feed bar */
.insta__feed { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.insta__tile {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background-size: cover; background-position: center; overflow: hidden;
}
.insta__tile::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(36,33,34,0) url('../logo/ig-white.png') center / 40px no-repeat;
  opacity: 0; transition: opacity .2s ease;
}
.insta__tile:hover::after { background-color: rgba(36,33,34,.45); opacity: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--dark); color: #cfcccd; padding: 64px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 { font-family: var(--head); color: #fff; font-size: 14px; letter-spacing: .12em; margin: 0 0 16px; }
.footer p, .footer a { font-size: 14px; line-height: 1.9; color: #cfcccd; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__news label { display: block; font-family: var(--head); font-size: 12px; letter-spacing: .12em; color: #fff; margin: 0 0 10px; }
.footer__news input[type=email] { width: 100%; padding: 12px; border: 1px solid #555; background: #2e2b2c; color: #fff; margin-bottom: 12px; }
.footer__news .consent { display: flex; gap: 8px; font-size: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid #3a3738; }
.footer__social { display: flex; gap: 14px; }
.footer__social img { width: 26px; height: 26px; }
.copyright { font-size: 13px; color: #8a8788; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav__inner { grid-template-columns: auto 1fr auto; }
  .nav__partners, .nav__sep { display: none; }
  .nav__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 18px;
    border-bottom: 1px solid #eee; box-shadow: 0 10px 20px rgba(0,0,0,.06);
  }
  .nav.open .nav__menu { display: flex; }
  .nav__menu a { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
  .nav__toggle { display: block; order: -1; }
  .split, .insta__inner { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media { min-height: 300px; }
  .beers__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery, .gallery--2 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .insta__feed { grid-template-columns: repeat(3, 1fr); }
  .insta__img img { max-height: 380px; }
}
@media (max-width: 600px) {
  .beers__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery, .gallery--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 18px; }
  /* hero: text up top, two cans flanking below, third hidden */
  .hero { min-height: 470px; }
  .hero h1 { top: 42px; font-size: 30px; }
  .hero__can--l  { left: -7%; top: 40%; width: 155px; transform: rotate(-10deg); }
  .hero__can--r  { left: 56%; top: 32%; width: 150px; transform: rotate(11deg); }
  .hero__can--r2 { display: none; }
}
