/* papajanovsky.cz – statická verze (věrná kopie WordPress šablony Twenty Twenty-Four) */

/* ---------- Fonty (lokálně) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: fallback;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/cardo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("../fonts/cardo-700.woff2") format("woff2");
}

/* ---------- Proměnné ---------- */
:root {
  --c-base: #f9f9f9;
  --c-white: #ffffff;
  --c-contrast: #111111;
  --c-contrast-2: #636363;
  --c-blue: #cadeff;
  --c-pink: #ce0f68;

  --f-body: "Inter", sans-serif;
  --f-heading: "Cardo";

  --fs-small: 0.9rem;
  --fs-medium: 1.05rem;
  --fs-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
  --fs-x-large: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
  --fs-xx-large: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 1.283), 3.27rem);

  --s-10: 1rem;
  --s-20: min(1.5rem, 2vw);
  --s-30: min(2.5rem, 3vw);
  --s-40: min(4rem, 5vw);
  --s-50: min(6.5rem, 8vw);
  --s-60: min(10.5rem, 13vw);

  --gap: 1.2rem;
  --content: 620px;
  --wide: 1280px;
  --pad-x: var(--s-50);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--c-base);
  color: var(--c-contrast);
  font-family: var(--f-body);
  font-size: var(--fs-medium);
  font-weight: 400;
  line-height: 1.55;
}

p, h1, h2, figure { margin: 0; }

/* štítky sekcí jsou nadpisy h2, ale vypadají jako běžný text */
.label { font-size: inherit; font-weight: inherit; line-height: inherit; }

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

img { display: block; box-sizing: border-box; max-width: 100%; height: auto; }

:focus { outline-width: 2px; outline-style: solid; }

.skip-link {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); border: 0;
  word-wrap: normal !important;
}
.skip-link:focus {
  top: 5px; left: 5px; z-index: 100000;
  display: block; width: auto; height: auto;
  padding: 15px 23px 14px;
  clip-path: none;
  background-color: #eee; color: #444;
  font-size: 1em; line-height: normal; text-decoration: none;
}

/* mezery mezi bloky stránky */
.site > * + * { margin-top: var(--gap); }
.site > main.flush { margin-top: 0; }

/* ---------- Rozvržení ---------- */
/* boční odsazení stránky */
.pad { padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* „constrained“: děti mají max. šířku obsahu a jsou vycentrované */
.wrap > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.wrap > .wide { max-width: var(--wide); }
.wrap > .full { max-width: none; }

/* svislý tok s mezerou 1.2rem */
.flow > * + * { margin-top: var(--gap); }
.wrap.flow > * + * { margin-top: var(--gap); }
.wrap > * + * { margin-top: var(--gap); }

/* plná šířka uvnitř odsazeného obalu */
.pad > .full { margin-left: calc(var(--pad-x) * -1); margin-right: calc(var(--pad-x) * -1); }

/* barevné sekce */
.section { padding: var(--s-50); }
.section > .full { margin-left: calc(var(--s-50) * -1); margin-right: calc(var(--s-50) * -1); }
.section.wrap > * + * { margin-top: var(--gap); }
.wrap > .section { margin-top: 0; margin-bottom: 0; }
.bg-blue { background-color: var(--c-blue); }
.bg-pink { background-color: var(--c-pink); color: var(--c-white); }
.bg-pink a, .bg-dark a { color: var(--c-white); }
.bg-base { background-color: var(--c-base); }
.bg-white { background-color: var(--c-white); }
.bg-dark { background-color: var(--c-contrast); color: var(--c-white); }

/* sloupce */
.cols { display: flex; flex-wrap: wrap; align-items: normal; gap: var(--gap); }
.col { flex-grow: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 782px) {
  .cols { flex-wrap: nowrap; }
  .cols > .col { flex-basis: 0; flex-grow: 1; }
  .cols > .col[class*="b-"] { flex-grow: 0; }
  .cols > .b-20 { flex-basis: 20%; }
  .cols > .b-30 { flex-basis: 30%; }
  .cols > .b-33 { flex-basis: 33.33%; }
  .cols > .b-40 { flex-basis: 40%; }
  .cols > .b-50 { flex-basis: 50%; }
  .cols > .b-60 { flex-basis: 60%; }
  .cols > .b-66 { flex-basis: 66.66%; }
}
@media (max-width: 781px) {
  .cols > .col { flex-basis: 100% !important; }
}
.cols-main { gap: var(--s-40) var(--s-30); }
.cols-text { gap: var(--s-30) var(--s-30); }
.cols-personal { gap: var(--s-50) var(--s-60); }

/* sloupec s většími mezerami mezi bloky */
.stack-40 > * + * { margin-top: var(--s-40); }

/* úzký štítek sekce (max. 260 px, zarovnán vlevo) */
.wrap.label-col > * { max-width: 260px; margin-left: 0; margin-right: auto; }

/* mezery (spacer bloky) */
.spacer { clear: both; }
.h-0 { height: 0; }
.h-20 { height: var(--s-20); }
.h-40 { height: var(--s-40); }
.h-50 { height: var(--s-50); }
.h-100 { height: 100px; }
.h-30 { height: var(--s-30); }
.h-20px { height: 20px; }
.m-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.h-500 { height: 500px; }
.pr-0 { padding-right: 0; }

/* ---------- Typografie ---------- */
.lead {
  font-family: var(--f-heading);
  font-size: var(--fs-x-large);
  line-height: 1.2;
}
.lead-center { text-align: center; font-style: normal; font-weight: 400; }
.large { font-size: var(--fs-large); font-style: normal; font-weight: 500; line-height: 1.2; }
.medium { font-size: var(--fs-medium); }
.small { font-size: var(--fs-small); }

/* ---------- Obrázky ---------- */
.rounded img { border-radius: var(--s-20); }
.img-wide img { width: 100%; }
.portrait img { aspect-ratio: 9 / 16; object-fit: cover; }
figcaption {
  margin-top: 0.5em;
  margin-bottom: 1em;
  color: var(--c-contrast-2);
  font-family: var(--f-body);
  font-size: 0.8rem;
}

/* ---------- Záhlaví ---------- */
.site-header { padding-top: 20px; padding-bottom: 20px; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.site-title {
  font-family: var(--f-body);
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.542), 1.2rem);
  font-style: normal;
  font-weight: 600;
}
.site-title a { color: inherit; text-decoration: none; }

/* navigace */
.nav { position: relative; font-weight: 500; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; gap: var(--s-20); }
.nav li { display: flex; align-items: center; position: relative; }
.nav a { display: block; color: inherit; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.site-header .nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-20); }
.site-header .nav ul { justify-content: flex-end; }

.menu-open, .menu-close {
  margin: 0; padding: 0;
  border: none; background: transparent;
  color: currentColor; cursor: pointer;
  font: inherit; vertical-align: middle;
}
.menu-open svg, .menu-close svg { display: block; width: 24px; height: 24px; fill: currentColor; pointer-events: none; }

.menu-panel { display: none; }
.menu-close { display: none; }

/* mobilní menu (< 600 px) */
@media (max-width: 599px) {
  .menu-open { display: flex; }
  .menu-panel.is-open {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; flex-direction: column;
    overflow: auto;
    padding: 1rem clamp(1rem, var(--pad-x), 20rem);
    background-color: #fff; color: #000;
    animation: menu-fade .1s ease-out forwards;
  }
  .menu-panel.is-open .menu-dialog { position: relative; width: 100%; }
  .menu-panel.is-open .menu-close { display: block; position: absolute; top: 0; right: 0; z-index: 2; }
  .menu-panel.is-open .menu-content { padding-top: calc(2rem + 24px); display: flex; flex-direction: column; align-items: flex-end; }
  .menu-panel.is-open ul { flex-direction: column; align-items: flex-end; gap: var(--s-20); }
  html.menu-is-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .menu-panel.is-open { animation: none; } }
@keyframes menu-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 600px) {
  .menu-open { display: none; }
  .menu-panel { display: block; position: relative; width: 100%; }
}

/* ---------- Cover (fotografie s parallaxou) ---------- */
.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--s-50);
  overflow: hidden;
  overflow: clip;
  color: #000;
}
.cover-bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--c-base);
  background-image: url("../img/ceska-kamenice-2560x1707.jpg");
  background-image: image-set(url("../img/ceska-kamenice-2560x1707.webp") type("image/webp"), url("../img/ceska-kamenice-2560x1707.jpg") type("image/jpeg"));
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
@media (max-width: 1440px) {
  .cover-bg {
    background-image: url("../img/ceska-kamenice-1920x1280.jpg");
    background-image: image-set(url("../img/ceska-kamenice-1920x1280.webp") type("image/webp"), url("../img/ceska-kamenice-1920x1280.jpg") type("image/jpeg"));
  }
}
@media (max-width: 800px) {
  .cover-bg {
    background-image: url("../img/ceska-kamenice-1280x853.jpg");
    background-image: image-set(url("../img/ceska-kamenice-1280x853.webp") type("image/webp"), url("../img/ceska-kamenice-1280x853.jpg") type("image/jpeg"));
  }
}
@media (prefers-reduced-motion: reduce) { .cover-bg { background-attachment: scroll; } }
@supports (-webkit-touch-callout: inherit) { .cover-bg { background-attachment: scroll; } }
.cover-inner { position: relative; z-index: 1; width: 100%; }

/* ---------- Kontakt ---------- */
.section-contact { padding: var(--s-60); }

/* ---------- Osobní ---------- */
.v-stretch { align-self: stretch; }
.vstack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 100%;
}
.vstack > * { margin: 0; }
.spacer-basis { flex-basis: min(4rem, 5vw); }

/* ---------- Zápatí ---------- */
.site-footer { padding-top: var(--s-50); padding-bottom: var(--s-50); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); }
.site-logo { line-height: 0; border-radius: 9999px; }
.site-logo a { display: inline-block; line-height: 0; border-radius: inherit; }
.site-logo picture { display: contents; }
.site-logo img { width: 90px; height: auto; border-radius: 9999px; }
.footer-brand .site-title { font-size: var(--fs-medium); }
.tagline { color: var(--c-contrast-2); font-size: var(--fs-small); }
.footer-nav-wrap { display: flex; justify-content: flex-end; align-items: flex-start; gap: var(--gap); }
.footer-nav-wrap .nav { font-size: var(--fs-small); font-weight: 400; }
.footer-nav-wrap .nav ul { flex-direction: column; align-items: flex-start; gap: var(--s-10); }

/* ---------- Podstránka ---------- */
.page-title {
  font-family: var(--f-heading);
  font-size: var(--fs-xx-large);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
}
.embed iframe { border: 0; }
