/*
Theme Name: PG Hnízdo
Description: Lehká šablona PG Hnízdo / PG NEST bez page builderu. Barvy z loga a dárkových poukazů. Kurzy vykresluje plugin pgh-kurzy.
Version: 0.1.8
Author: infovize.eu
Author URI: https://infovize.eu
Requires PHP: 8.1
Text Domain: pghnizdo
*/

/* ================= Základ ================= */
:root {
  --pgh-turq: #1a9aab;
  --pgh-turq-dark: #11707e;
  --pgh-yellow: #f2cb3b;
  --pgh-ink: #1c1c1a;
  --pgh-muted: #6b6b66;
  --pgh-line: #e3e1d8;
  --pgh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--pgh-font); font-size: 16px; line-height: 1.6; color: var(--pgh-ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--pgh-turq-dark); }
h1, h2, h3, h4 { line-height: 1.2; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }

/* ================= Hlavička ================= */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--pgh-line); }
.admin-bar .site-header { top: 32px; }
.site-header__in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pgh-ink); flex-shrink: 0; }
.site-brand img { width: 48px; height: 48px; display: block; }
.site-brand__name { font-weight: 800; font-size: 18px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.1; }
.site-brand__name small { display: block; font-weight: 500; font-size: 11px; letter-spacing: 1.5px; color: var(--pgh-muted); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--pgh-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: #fffaeb; color: var(--pgh-turq-dark); }
.site-nav .menu-cta > a { background: var(--pgh-yellow); }
.site-nav .menu-cta > a:hover { background: #f5d65f; color: var(--pgh-ink); }
.site-nav .sub-menu { display: none; }
.site-cart { position: relative; color: var(--pgh-ink); display: flex; padding: 6px; }
.site-cart svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.site-cart__count { position: absolute; top: -2px; right: -4px; background: var(--pgh-turq); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pgh-ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--pgh-line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 12px 16px; }
  .site-nav a { padding: 12px; font-size: 17px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ================= Obsah stránek ================= */
.pgh-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.page-content { max-width: 820px; margin: 0 auto; padding: 40px 20px 64px; }
.page-content--wide { max-width: 1140px; }
.page-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 24px; }
.entry { font-size: 17px; }
.entry h2 { font-size: 24px; margin: 36px 0 12px; }
.entry h3 { font-size: 19px; margin: 28px 0 10px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border-bottom: 1px solid var(--pgh-line); padding: 8px; text-align: left; }
.entry blockquote { margin: 20px 0; padding: 12px 20px; border-left: 4px solid var(--pgh-yellow); background: #fffdf5; }
.entry .wp-block-button__link, .entry .button { background: var(--pgh-turq); color: #fff; border-radius: 6px; padding: 10px 20px; text-decoration: none; display: inline-block; }

/* ================= Patička ================= */
.site-footer { background: var(--pgh-ink); color: #cfcfc8; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pgh-yellow); }
.site-footer__in { max-width: 1140px; margin: 0 auto; padding: 48px 20px 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer__brand img { width: 64px; height: 64px; }
.site-footer__motto { font-style: italic; color: var(--pgh-yellow); margin: 10px 0 0; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--pgh-yellow); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer__bottom { max-width: 1140px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid #3a3a36; font-size: 13px; color: #8f8f86; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .site-footer__in { grid-template-columns: 1fr; } }

/* ================= Titulka ================= */
.pgh { color: var(--pgh-ink); }
.pgh a { text-decoration: none; }

/* Hero: fotka + žlutý box akcí, šikmý zlom mezi nimi */
.pgh-hero { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); background: var(--pgh-yellow); }
.pgh-hero__photo {
  position: relative; z-index: 1; margin-right: -64px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
  background:
    linear-gradient(100deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.15) 100%),
    var(--pgh-hero-img) center / cover no-repeat;
  min-height: 500px; display: flex; flex-direction: column; justify-content: center;
  padding: 56px 112px 56px max(48px, calc((100vw - 1140px) / 2 + 20px));
}
.pgh-hero__kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--pgh-yellow); font-weight: 600; margin-bottom: 14px; }
.pgh-hero__title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; line-height: 1.08; color: #fff; max-width: 560px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 16px; }
.pgh-hero__sub { font-size: 17px; color: #dceef5; max-width: 470px; margin: 0 0 28px; }
.pgh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pgh-eventsbox { padding: 40px max(24px, calc((100vw - 1140px) / 2 + 20px)) 40px 96px; }
.pgh-eventsbox__label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid rgba(28,28,26,.25); margin: 0 0 14px; }
.pgh-hero__stripe { height: 6px; background: var(--pgh-yellow); }

.pgh-btn { display: inline-block; text-align: center; padding: 13px 24px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .2s; border: 2px solid transparent; }
.pgh-btn:hover { opacity: .88; }
.pgh-btn--primary { background: var(--pgh-turq); color: #fff !important; }
.pgh-btn--yellow { background: var(--pgh-yellow); color: var(--pgh-ink) !important; }
.pgh-btn--light { border-color: #fff; color: #fff !important; }
.pgh-btn--outline { border-color: var(--pgh-ink); color: var(--pgh-ink) !important; }

.pgh-sec { padding: 64px 0 8px; }
.pgh-sec__title { text-align: center; font-size: 28px; font-weight: 700; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .5px; }
.pgh-sec__sub { text-align: center; font-size: 16px; color: var(--pgh-muted); margin: 0 0 34px; }
.pgh-grid { display: grid; gap: 22px; }
.pgh-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pgh-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pgh-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.pgh-card { background: #fff; border: 1px solid var(--pgh-line); border-radius: 10px; padding: 26px; position: relative; display: flex; flex-direction: column; }
.pgh-card--feat { background: #fffdf5; border: 2px solid var(--pgh-yellow); }
.pgh-card__badge { position: absolute; top: -13px; left: 24px; background: var(--pgh-yellow); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; }
.pgh-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pgh-card__title { font-weight: 700; font-size: 19px; }
.pgh-card__desc { font-size: 15px; color: var(--pgh-muted); margin: 0 0 18px; }
.pgh-card__prices { display: flex; flex-direction: column; gap: 4px; }
.pgh-card__pricerow { display: flex; align-items: baseline; gap: 10px; }
.pgh-card__price { font-size: 26px; font-weight: 700; }
.pgh-card__price--alt { font-size: 20px; color: var(--pgh-muted); }
.pgh-card__pricetag { font-size: 13px; color: var(--pgh-muted); text-transform: uppercase; letter-spacing: .5px; }
.pgh-card__note { font-size: 12px; color: var(--pgh-muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--pgh-line); }
.pgh-card__meta { font-size: 13px; color: var(--pgh-muted); margin-top: 10px; }
.pgh-card__foot { margin-top: auto; padding-top: 18px; }
.pgh-card--sm .pgh-card__price { font-size: 21px; }
.pgh-card--sm .pgh-card__price--alt { font-size: 18px; }
.pgh-ico { width: 26px; height: 26px; flex-shrink: 0; stroke: var(--pgh-turq); fill: none; stroke-width: 1.8; }

.pgh-guarantee { padding: 44px 0 8px; }
.pgh-guarantee__inner { background: #fffaeb; border: 2px solid var(--pgh-yellow); border-radius: 12px; padding: 32px 36px; display: flex; gap: 26px; align-items: flex-start; }
.pgh-guarantee__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--pgh-yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pgh-guarantee__icon svg { width: 30px; height: 30px; stroke: var(--pgh-ink); fill: none; stroke-width: 1.8; }
.pgh-guarantee__title { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.pgh-guarantee__text { font-size: 15px; color: #5a5348; margin: 0 0 10px; }

.pgh-vouch { margin: 56px 0 8px; background: var(--pgh-yellow); border-radius: 12px; padding: 36px 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pgh-vouch__text { flex: 1; min-width: 260px; }
.pgh-vouch__title { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
.pgh-vouch__desc { font-size: 15px; color: #5a4f1e; margin: 0; max-width: 480px; }
.pgh-vouch__card { background: #fff; border-radius: 8px; padding: 20px 24px; min-width: 220px; }
.pgh-vouch__label { font-size: 11px; color: var(--pgh-muted); text-transform: uppercase; letter-spacing: 1px; }
.pgh-vouch__name { font-size: 16px; font-weight: 700; margin: 4px 0 14px; }

.pgh-comp { background: var(--pgh-turq-dark); padding: 60px 0; margin-top: 56px; }
.pgh-comp__tag { text-align: center; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--pgh-yellow); font-weight: 600; margin-bottom: 10px; }
.pgh-comp__title { text-align: center; font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.pgh-comp__sub { text-align: center; font-size: 16px; color: #cfeaee; max-width: 580px; margin: 0 auto 34px; }
.pgh-comp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 760px; margin: 0 auto; }
.pgh-comp__card { background: rgba(255,255,255,.08); border: 1px solid rgba(242,203,59,.4); border-radius: 10px; padding: 26px; }
.pgh-comp__card .pgh-ico { stroke: var(--pgh-yellow); width: 30px; height: 30px; }
.pgh-comp__cardtitle { font-size: 18px; font-weight: 700; color: #fff; margin: 12px 0 6px; }
.pgh-comp__carddesc { font-size: 15px; color: #cfeaee; margin: 0; }
.pgh-comp__more { text-align: center; margin-top: 28px; }

.pgh-feat { padding: 20px 0 56px; }
.pgh-feat__item { text-align: center; }
.pgh-feat__circle { width: 56px; height: 56px; border-radius: 50%; background: #fbf1cf; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.pgh-feat__title { font-size: 15px; font-weight: 700; }
.pgh-feat__desc { font-size: 14px; color: var(--pgh-muted); }

.pgh-contact { background: var(--pgh-turq); padding: 60px 0; }
.pgh-contact .pgh-sec__title { color: #fff; }
.pgh-contact .pgh-sec__sub { color: #cfeaee; }
.pgh-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.pgh-contact__card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 28px 24px; text-align: center; display: block; transition: background .2s; }
a.pgh-contact__card:hover { background: rgba(255,255,255,.2); }
.pgh-contact__card .pgh-ico { stroke: var(--pgh-yellow); width: 30px; height: 30px; margin-bottom: 10px; }
.pgh-contact__label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #cfeaee; margin-bottom: 6px; }
.pgh-contact__value { font-size: 19px; font-weight: 700; color: #fff; }
.pgh-contact__hint { font-size: 13px; color: var(--pgh-yellow); margin-top: 10px; }

.pgh-inst { background: var(--pgh-yellow); padding: 52px 0 56px; }
.pgh-inst .pgh-sec__sub { color: #5a4f1e; }
.pgh-inst__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.pgh-inst__card { background: rgba(255,255,255,.55); border-radius: 10px; padding: 26px 20px; text-align: center; display: block; color: inherit; transition: background .2s, transform .2s; }
a.pgh-inst__card:hover { background: rgba(255,255,255,.85); transform: translateY(-2px); }
.pgh-inst__avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--pgh-turq) center / cover; color: #fff; font-weight: 700; font-size: 20px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.pgh-inst__name { font-size: 18px; font-weight: 700; }
.pgh-inst__role { font-size: 14px; color: #5a4f1e; margin-top: 4px; }
.pgh-inst__note { font-size: 13px; color: #7a6c2e; margin-top: 6px; }

@media (max-width: 900px) {
  .pgh-hero { grid-template-columns: 1fr; }
  .pgh-hero__photo { margin-right: 0; clip-path: none; min-height: 380px; padding: 44px 24px; }
  .pgh-eventsbox { padding: 28px 24px 32px; }
  .pgh-sec { padding: 44px 0 8px; }
  .pgh-guarantee__inner { flex-direction: column; gap: 16px; padding: 26px 24px; }
}

/* ================= WooCommerce (drobnosti) ================= */
.woocommerce .page-content { max-width: 1140px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--pgh-turq); color: #fff; border-radius: 6px; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--pgh-turq-dark); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--pgh-yellow); color: var(--pgh-ink); }
.woocommerce span.onsale { background: var(--pgh-yellow); color: var(--pgh-ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--pgh-ink); font-weight: 700; }
