/*
 Theme Name: YoPrague Child
 Theme URI: https://yoprague.cz
 Description: YoPrague Child Theme — postaveno na Divi od Elegant Themes
 Author: YoPrague Studio
 Author URI: https://yoprague.cz
 Template: Divi
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: yoprague-child
*/

/* ============================================================
   YOPRAGUE — CUSTOM CSS
   Verze: 1.0
   Poslední úprava: 2025
   
   STRUKTURA:
   1. Google Fonts import
   2. CSS proměnné (barvy, fonty)
   3. Loading animace (bindu)
   4. Header & navigace
   5. Globální typografie
   6. Tlačítka
   7. Sekce a layout
   8. Footer
   9. Responzivita (mobil)
   ============================================================ */

/* ── 1. GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

/* ── 2. CSS PROMĚNNÉ ── */
:root {
  --gold: #BC8D40;
  --gold-light: rgba(188, 141, 64, 0.18);
  --cream: #f5f0e8;
  --dark: #1e1a12;
  --muted: rgba(30, 26, 18, 0.45);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', sans-serif;
}

/* ── 3. LOADING ANIMACE (BINDU) ── */
#yoprague-loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 99999;
  transition: opacity 0.5s ease 0.1s;
}
#yoprague-loader.out {
  opacity: 0;
  pointer-events: none;
}
#yoprague-loader .bindu-wrap {
  position: relative;
  width: 64px;
  height: 64px;
}
#yoprague-loader .bindu-ring {
  width: 64px;
  height: 64px;
  stroke: var(--gold);
  stroke-width: 0.8;
  fill: none;
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  animation: yp-ring 1s cubic-bezier(.6,0,.4,1) forwards;
  transform-origin: 32px 32px;
  transform: rotate(-90deg);
}
#yoprague-loader .bindu-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: yp-fadein 0.3s ease 0.88s forwards;
}
#yoprague-loader .bindu-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: yp-fadein 0.4s ease 0.92s forwards;
}

@keyframes yp-ring {
  to { stroke-dashoffset: 0; }
}
@keyframes yp-fadein {
  to { opacity: 1; }
}

/* ── 4. HEADER & NAVIGACE ── */
#main-header {
  background: transparent !important;
  border-bottom: 0.5px solid transparent !important;
  transition: background 0.4s ease, border-color 0.4s ease !important;
}
#main-header.et-fixed-header,
#main-header.scrolled {
  background: rgba(245, 240, 232, 0.97) !important;
  border-bottom-color: rgba(188, 141, 64, 0.18) !important;
}

/* Logo přizpůsobení */
#main-header .logo_container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Nav položky */
#main-header .nav li a {
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
  font-weight: 300 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(245, 240, 232, 0.85) !important;
  transition: color 0.25s !important;
}
#main-header.et-fixed-header .nav li a,
#main-header.scrolled .nav li a {
  color: rgba(30, 26, 18, 0.65) !important;
}
#main-header .nav li a:hover {
  color: var(--gold) !important;
}

/* Rozvrh CTA tlačítko */
#main-header .nav li.rozvrh-cta a {
  color: var(--gold) !important;
  border: 0.5px solid rgba(188, 141, 64, 0.55) !important;
  padding: 7px 15px !important;
  transition: background 0.25s, color 0.25s !important;
}
#main-header .nav li.rozvrh-cta a:hover {
  background: var(--gold) !important;
  color: var(--cream) !important;
}

/* ── 5. GLOBÁLNÍ TYPOGRAFIE ── */
body {
  font-family: var(--font-sans) !important;
  background-color: var(--cream) !important;
  color: var(--dark) !important;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
  letter-spacing: 0.04em !important;
}

h1 { font-size: clamp(40px, 6.5vw, 72px) !important; line-height: 1.2 !important; }
h2 { font-size: clamp(28px, 4vw, 48px) !important; line-height: 1.3 !important; }
h3 { font-size: clamp(20px, 2.5vw, 28px) !important; line-height: 1.4 !important; }

p {
  font-family: var(--font-sans) !important;
  font-weight: 300 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.85 !important;
  color: var(--muted) !important;
}

em { color: var(--gold) !important; font-style: italic !important; }

/* ── 6. TLAČÍTKA ── */
.et_pb_button {
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
  font-weight: 300 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  background: transparent !important;
  border: 0.5px solid rgba(188, 141, 64, 0.6) !important;
  border-radius: 0 !important;
  padding: 13px 28px !important;
  transition: background 0.3s, color 0.3s !important;
}
.et_pb_button:hover {
  background: var(--gold) !important;
  color: var(--cream) !important;
  border-color: var(--gold) !important;
}

/* ── 7. SEKCE A LAYOUT ── */
.et_pb_section {
  padding: 80px 0 !important;
}

/* Zlatý oddělovač */
.yp-rule {
  width: 28px;
  height: 0.5px;
  background: rgba(188, 141, 64, 0.45);
  margin: 28px auto;
}

/* Section label (malý zlatý popisek nad nadpisem) */
.yp-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 16px;
  display: block;
}

/* Karta lekce */
.yp-card {
  padding: 36px 28px;
  background: var(--cream);
  border: 0.5px solid rgba(188, 141, 64, 0.15);
  transition: background 0.3s;
}
.yp-card:hover {
  background: #ede8de;
}

/* ── 8. FOOTER ── */
#main-footer {
  background: var(--cream) !important;
  border-top: 0.5px solid rgba(188, 141, 64, 0.2) !important;
}
#main-footer .footer-widget {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  letter-spacing: 0.06em !important;
  color: var(--muted) !important;
}

/* ── 9. RESPONZIVITA ── */
@media (max-width: 980px) {
  #main-header .logo_container {
    position: relative;
    left: auto;
    transform: none;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .et_pb_section { padding: 60px 0 !important; }
}
