/* ===========================================================
   jogasrdcem.cz
   Hodnoty odpovídají naměřeným vypočteným stylům původního webu
   (viz migration/ – probe.py).  Žádný kód z Webnode se nepoužívá,
   převzaté jsou jen SVG ikony, což jsou obyčejné obrázky.
   =========================================================== */

:root {
    /* barvy — naměřeno na originále */
    --accent: #1a881a;          /* odkazy, aktivní položka menu */
    --accent-dark: #146b14;
    --ink: #3f524c;             /* nadpisy, tlačítka, tmavý text */
    --body: #5a7b5e;            /* běžný text — zelenošedá, ne šedá */
    --line: #e2e6e2;
    --page: #f5f5f5;            /* pozadí stránky */
    --paper: #ffffff;           /* obsahový box */
    --on-dark: #ffffff;

    /* rozměry */
    --box: 1280px;              /* šířka obsahového boxu */
    --box-pad: 60px;            /* vnitřní odsazení boxu */
    --head-pad: 40px;           /* odsazení hlavičky od okraje */

    --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-display: "Roboto Flex", "Fira Sans", system-ui, Arial, sans-serif;
}

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

body {
    margin: 0;
    background: var(--page);
    color: var(--body);
    font-family: var(--font);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---------- horní kontaktní pruh ---------- */
.topbar { height: 40px; display: flex; align-items: center; }
.topbar-in {
    width: 100%; padding: 0 var(--head-pad);
    display: flex; justify-content: flex-end; gap: 26px;
}
.topbar a {
    font-size: 13px; font-weight: 500; color: var(--accent);
    text-decoration: none; border-bottom: 1px solid currentColor;
}
.topbar a:hover { color: var(--accent-dark); }

/* ---------- hlavička ---------- */
.site-head { height: 82px; display: flex; align-items: center; }
.head-in {
    width: 100%; padding: 0 var(--head-pad);
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 25px; font-weight: 300; line-height: 1.4;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo-mark { width: 29px; height: 31px; flex: none; display: block; }
/* nad fotkou je hlavička průhledná, tam se značka rozsvítí do bíla */
.has-hero .logo-mark { filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; flex-wrap: wrap; }
.nav a {
    font-size: 16px; font-weight: 600; line-height: 50px;
    color: var(--ink); text-decoration: none;
    padding: 0 10px 0 5px; position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a.on { color: var(--accent); }
.nav a + a::before {           /* oddělovač lomítkem */
    content: "/"; position: absolute; left: -6px;
    color: #b9c2ba; font-weight: 300;
}

/* hlavička položená přes úvodní fotku */
.has-hero .topbar,
.has-hero .site-head { position: relative; z-index: 2; }
.has-hero .site-head { margin-bottom: -122px; }
.has-hero .topbar a,
.has-hero .logo,
.has-hero .nav a { color: var(--on-dark); }
.has-hero .nav a.on { color: #b7ef87; }
.has-hero .nav a + a::before { color: rgba(255, 255, 255, .55); }

/* ---------- úvodní pruh ---------- */
.hero {
    position: relative;
    min-height: 626px;                 /* naměřeno na originále */
    display: flex; align-items: center; justify-content: center;
    padding: 122px 40px 260px;         /* 122 = hlavička nad fotkou, 260 = překryv obsahem */
    background-size: cover; background-position: center center;
    text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; }
.hero-green::before { background: rgba(31, 92, 45, .55); }
.hero-dark::before { background: rgba(0, 0, 0, .38); }
.hero-inner { position: relative; max-width: 1160px; }
.hero h1 {
    font-family: var(--font-display);
    font-size: 64px; font-weight: 300; line-height: 1.5;
    color: var(--on-dark); margin: 0; text-wrap: balance;
}
.hero-sub {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 300; line-height: 1.5;
    color: var(--on-dark); margin: 0; text-wrap: balance;
}

/* ---------- obsahový box ---------- */
.has-hero main { padding-top: 0; margin-top: -260px; position: relative; z-index: 1; }
main { display: block; padding: 50px 0; }   /* šedý pruh nad a pod bílým boxem */
.paper {
    max-width: var(--box); margin: 0 auto;
    background: var(--paper);
    padding: 34px var(--box-pad) 85px;
}
.paper + .paper { margin-top: 50px; }

/* ---------- sloupce v sekci ---------- */
.cols { display: grid; gap: 0 40px; align-items: start; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.col > .b + .b { margin-top: 4px; }
.col:empty { display: none; }

/* ---------- typografie ---------- */
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 {
    font-family: var(--font-display);
    font-size: 52px; font-weight: 300; line-height: 1.3;
    text-align: center; margin: 0 0 12px;
}
h2 { font-size: 32px; font-weight: 300; line-height: 1.35; margin: 24px 0 12px; }
h3 { font-size: 24px; font-weight: 300; line-height: 1.35; margin: 0;
     padding-bottom: 7px; color: var(--accent); }
p { margin: 0; padding-bottom: 14px; }
/* barvu nenastavujeme — zvýrazněný text dědí po okolí, jinak by přebil zelený nadpis */
strong { font-weight: 500; }
ul, ol { margin: 0; padding: 0 0 14px 24px; }
li { padding-bottom: 4px; }

.b-text > :last-child { padding-bottom: 0; }

/* ---------- obrázky ---------- */
/* Obrázky v originále nikdy nejdou přes celou šířku — naměřeno 323 až 476 px.
   Šířku si editor nastaví u bloku, sem přijde jako --img-max.
   Nahoře bez odsazení, aby první řádek obrázku lícoval s prvním řádkem textu vedle. */
.b-img { margin: 0; padding: 0 0 20px; text-align: center; line-height: 0; }
.b-img img {
    width: 100%; max-width: var(--img-max, 520px);
    height: auto; border-radius: 4px;
}
.col .b-img { text-align: left; }

/* ---------- tlačítka ---------- */
.b-cta { padding: 30px 20px; text-align: center; }
.btn {
    display: inline-block;
    font-size: 24px; font-weight: 400; line-height: 1.6;
    padding: 14px 32px; border: 0; border-radius: 0;
    text-decoration: none; cursor: pointer;
    transition: background .15s;
}
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: #33443f; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- karty ---------- */
.b-cards { display: grid; gap: 0; padding: 12px 0 0; }
.b-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.b-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    display: flex; align-items: flex-start; gap: 15px;
    padding: 20px; text-decoration: none; color: inherit;
}
.card-link:hover .card-body h3 { color: var(--accent); }
/* kroužek kolem ikony — naměřeno: 80px, rámeček 2px, uvnitř ikona 40px */
.card-icon-ring {
    width: 80px; height: 80px; flex: none;
    border: 2px solid var(--accent); border-radius: 50%;
    display: grid; place-items: center;
}
.card-icon-ring img { width: 40px; height: 40px; display: block; }
.card-body { flex: 1; min-width: 0; text-align: left; }
.card-body h3 { color: var(--ink); font-weight: 400; }
.card-body h3 strong { font-weight: 600; }
.card-body > :last-child { padding-bottom: 0; }

/* ---------- rozvrh ---------- */
.b-schedule { padding: 10px 0; }
.b-schedule table { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; text-align: left; }
.b-schedule td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.b-schedule tr:last-child td { border-bottom: 0; }
.b-schedule .day {
    width: 62px; color: var(--accent); font-weight: 600;
    font-size: 15px; letter-spacing: .1em;
}
.b-schedule .time { width: 140px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-schedule .what { color: var(--ink); }
.b-schedule .what .place,
.b-schedule .what .note { display: block; color: var(--body); font-size: 16px; line-height: 1.5; }

/* ---------- ceník ---------- */
.b-price { padding: 10px 0; }
.b-price table { width: 100%; max-width: 640px; margin: 0 auto; border-collapse: collapse; text-align: left; }
.b-price td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.b-price tr:last-child td { border-bottom: 0; }
.b-price .name { color: var(--ink); }
.b-price .name small { display: block; color: var(--body); font-size: 16px; line-height: 1.5; }
.b-price .price {
    text-align: right; white-space: nowrap; color: var(--accent);
    font-weight: 500; font-variant-numeric: tabular-nums;
}

/* ---------- reference ---------- */
.b-quotes { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; padding: 10px 0; }
.b-quotes blockquote { margin: 0; }
.b-quotes p { font-style: italic; padding-bottom: 8px; }
.b-quotes cite { font-style: normal; font-size: 16px; color: var(--body); opacity: .8; }

/* ---------- galerie ---------- */
.b-gallery { padding: 10px 0; }
.b-gallery .grid { display: grid; gap: 8px; }
.b-gallery .cols-3 { grid-template-columns: repeat(3, 1fr); }
.b-gallery .cols-4 { grid-template-columns: repeat(4, 1fr); }
.b-gallery .cols-5 { grid-template-columns: repeat(5, 1fr); }
.b-gallery .tile { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 1; }
.b-gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.b-gallery .tile:hover img { transform: scale(1.06); }
.b-gallery .missing { color: #b00; }

/* ---------- formulář ---------- */
.b-form { padding: 10px 0; }
.b-form form { max-width: 640px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.b-form label { display: block; font-size: 16px; color: var(--body); margin-bottom: 6px; }
.b-form .req { color: var(--accent); margin-left: 3px; }
.b-form input, .b-form select, .b-form textarea {
    width: 100%; font: inherit; font-size: 18px; color: var(--ink);
    padding: 11px 14px; border: 1px solid var(--line); border-radius: 0; background: #fff;
}
.b-form input:focus, .b-form select:focus, .b-form textarea:focus {
    outline: none; border-color: var(--accent);
}
.b-form .btn { align-self: center; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- patička ---------- */
.site-foot { padding: 50px 0; }
.foot-in {
    max-width: var(--box); margin: 0 auto; padding: 24px var(--box-pad);
    text-align: center; font-size: 13px; line-height: 1.6;
}
.foot-in p { padding: 0; margin: 0 0 4px; }
.foot-contact { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.foot-in p + p { margin-top: 2px; }
.site-foot a { color: var(--body); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-note { opacity: .75; }

/* ---------- pruh náhledu (jen v editoru) ---------- */
.preview-flag {
    background: #9a6714; color: #fff; font-size: 13px; font-weight: 500;
    padding: 7px 16px; text-align: center;
}

/* ---------- responzivita ---------- */
@media (max-width: 1000px) {
    :root { --box-pad: 26px; --head-pad: 20px; }
    .cols-2, .cols-3 { grid-template-columns: 1fr; gap: 0; }
    body { font-size: 18px; }
    h1 { font-size: 36px; }
    .hero h1 { font-size: 40px; }
    .hero-sub { font-size: 22px; }
    .hero { padding: 140px 24px 60px; }
    .b-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .b-gallery .cols-4, .b-gallery .cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
    .head-in { flex-direction: column; gap: 8px; }
    .site-head { height: auto; padding: 12px 0; }
    .has-hero .site-head { margin-bottom: 0; }
    .has-hero .hero { padding-top: 60px; }
    .b-cards.cols-2, .b-cards.cols-3 { grid-template-columns: 1fr; }
    .b-gallery .cols-3, .b-gallery .cols-4, .b-gallery .cols-5 { grid-template-columns: repeat(2, 1fr); }
    .card { flex-direction: column; }
    h1 { font-size: 30px; }
    .hero h1 { font-size: 32px; }
}

/* ---------- lightbox ---------- */
.lb{
    position: fixed; inset: 0; z-index: 50; display: none;
    align-items: center; justify-content: center;
    background: rgba(16, 20, 16, .92); padding: 40px;
}
.lb.on { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 3px; }
.lb button {
    position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
    width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer;
}
.lb button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
@media (max-width: 620px) {
    .lb { padding: 12px; }
    .lb-prev { left: 6px; } .lb-next { right: 6px; }
}

/* ---------- náhled v editoru ---------- */
/* obrys nezabírá místo, takže se rozvržení náhledu nijak neposune */
.is-preview [data-blk] { cursor: pointer; }
.is-preview [data-blk]:hover { outline: 2px dashed var(--accent); outline-offset: 4px; }
.is-preview [data-blk].pv-on { outline: 2px solid var(--accent); outline-offset: 4px; }
