/*
Theme Name: FEJK Restaurant & TeaHouse – Final
Theme URI: https://pc-marko.cz/
Author: PC-MarKo.cz
Author URI: https://pc-marko.cz/
Description: One-page theme where EVERYTHING is editable in Admin (Customizer): texts, cards, gallery, colors, fonts, background relief (beer left / tea right) + subtle steam animation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fejk-teahouse-final
Tags: custom-logo, one-column, custom-background, custom-colors
*/

:root{
  --bg: #0F1113;
  --panel: rgba(20,23,26,0.86);
  --text: #EDEDED;
  --muted: #B0B0B0;
  --line: rgba(255,255,255,0.10);
  --shadow: rgba(0,0,0,0.55);

  --red: #9C1D1D;
  --green: #2E7D32;

  --radius: 18px;
  --maxw: 1100px;

  --font-head: ui-serif, Georgia, "Times New Roman", Times, serif;
  --font-body: ui-serif, Georgia, "Times New Roman", Times, serif;

  --bg-left: url('assets/img/bg_left.png');
  --bg-right: url('assets/img/bg_right.png');
  --bg-size: 33%;
  --bg-dim: 0.55;

  --steam-on: 1;
  --steam-opacity: 0.18;
  --steam-speed: 14s;
}

html, body{ height: 100%; }
body{
  margin:0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;

  /* Background relief left/right + base */
  background:
    linear-gradient(180deg, rgba(0,0,0,var(--bg-dim)), rgba(0,0,0,0.85)),
    var(--bg-left) left top / var(--bg-size) auto no-repeat,
    var(--bg-right) right top / var(--bg-size) auto no-repeat,
    radial-gradient(circle at top, #1A1D20, var(--bg));
  background-blend-mode: normal, multiply, multiply, normal;
  background-attachment: fixed, scroll, scroll, fixed;
}

a{ color: var(--text); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{ width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; }

.site-header{
  padding: 28px 0 12px;
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(15,17,19,0.92), rgba(15,17,19,0.60));
  border-bottom: 1px solid var(--line);
}

.brand-row{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap: 10px;
}
.brand-left,.brand-right{
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  opacity: 0.95;
  white-space: nowrap;
}
.brand-left{ justify-self:start; }
.brand-right{ justify-self:end; }
.brand-left span{ display:inline-block; padding-bottom:6px; border-bottom:2px solid var(--red); }
.brand-right span{ display:inline-block; padding-bottom:6px; border-bottom:2px solid var(--green); }

.site-logo{ display:flex; align-items:center; justify-content:center; }
.site-logo img{
  width: 190px;
  height:auto;
  display:block;
  filter: drop-shadow(0 10px 18px var(--shadow));
}
.site-title{
  margin: 10px 0 0;
  text-align:center;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px){
  .brand-row{ grid-template-columns: 1fr; gap: 10px; }
  .brand-left,.brand-right{ justify-self:center; text-align:center; }
  .site-logo img{ width: 155px; }
}

.site-main{ padding: 26px 0 50px; position: relative; }

/* Steam overlay */
.site-main::before{
  content:"";
  position: fixed;
  inset: -20% -20%;
  pointer-events:none;
  z-index: 0;
  opacity: calc(var(--steam-opacity) * var(--steam-on));
  background:
    radial-gradient(closest-side at 30% 40%, rgba(255,255,255,0.14), rgba(255,255,255,0) 65%),
    radial-gradient(closest-side at 55% 55%, rgba(255,255,255,0.10), rgba(255,255,255,0) 70%),
    radial-gradient(closest-side at 75% 35%, rgba(255,255,255,0.08), rgba(255,255,255,0) 70%);
  filter: blur(18px);
  transform: translate3d(0,0,0);
  animation: steamDrift var(--steam-speed) ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes steamDrift{
  0%   { transform: translate3d(-2%, 1%, 0) scale(1.02); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, -2%, 0) scale(1.03); }
}

.hero, .section, .summary{
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.hero h1{
  font-family: var(--font-head);
  margin:0 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.02em;
}
.lead{ margin-top: 8px; font-size: 1.05rem; color: var(--muted); max-width: 80ch; }

.section{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.visible{ opacity:1; transform: translateY(0); }
.section h2{
  font-family: var(--font-head);
  margin:0 0 10px;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.02em;
}

.section-restaurant{ border-left: 6px solid var(--red); }
.section-teahouse{ border-left: 6px solid var(--green); }
.section-story{ border-left: 6px solid rgba(255,255,255,0.25); }

.grid{ margin-top: 14px; display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: linear-gradient(180deg, rgba(20,23,26,0.75), rgba(16,18,21,0.75));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  padding: 16px;
}
.card h3{ font-family: var(--font-head); margin:0 0 8px; font-size: 16px; letter-spacing: 0.02em; }
.card ul{ margin:0; padding-left: 18px; color: var(--muted); }
.card li{ margin: 6px 0; }

.summary{ background: rgba(16,18,21,0.88); }
.summary-grid{ margin-top: 12px; display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px){ .summary-grid{ grid-template-columns: 1fr; } }
.pill{
  display:inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill.red{ border-color: rgba(156,29,29,0.65); }
.pill.green{ border-color: rgba(46,125,50,0.65); }

/* Gallery + Lightbox */
.gallery-grid{ margin-top: 14px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .gallery-grid{ grid-template-columns: 1fr; } }
.gallery-grid a{
  display:block;
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}
.gallery-grid img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display:block;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.92;
}
.gallery-grid a:hover img{ transform: scale(1.02); opacity: 1; }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 18px;
}
.lightbox.open{ display:flex; }
.lightbox-inner{ width: min(1000px, 100%); }
.lightbox-img{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.lightbox-cap{ margin-top: 10px; color: var(--muted); font-size: 0.95rem; text-align:center; }
.lightbox-close{
  position:absolute; top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.lightbox-close:hover{ background: rgba(0,0,0,0.40); }

.site-footer{
  margin-top: 34px;
  padding: 22px 0 28px;
  text-align:center;
  color: #777;
  font-size: 0.90rem;
}
.site-footer .fineprint{
  margin-top: 10px;
  color: #8a8a8a;
  font-size: 0.85rem;
  line-height: 1.5;
}
