/*
Theme Name:   Péče o hroby
Theme URI:    https://www.pece-o-hroby.cz/
Author:       Tomáš Vaněk
Description:  Vlastní jednoduchá šablona pro web Péče o hroby. Bez Gutenbergu,
              obsah jednotlivých stránek se plní přes ACF pole (volná verze)
              a přes vlastní typy obsahu Reference a Dekorace.
Version:      1.0.0
Requires PHP: 7.4
License:      Soukromé užití
Text Domain:  pece-o-hroby
*/

/* ============================================================
   RESET / ZÁKLAD
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* Respektuje uživatelské nastavení omezeného pohybu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Viditelné zaměření pro klávesnici (přístupnost) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--main-dark);
  outline-offset: 2px;
}

/* Skip-link pro čtečky obrazovky a klávesnici */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ============================================================
   BAREVNÝ A TYPOGRAFICKÝ SYSTÉM
   Jedna hlavní barva (terakota) na grafické prvky (ikony, tečky,
   tlačítka) + neutrální škála šedé na pozadí. Fraunces na nadpisy,
   Inter na vše ostatní.
   ============================================================ */
:root{
  --main-tint:#F0E4D8;
  --main-light:#E3BE95;
  --main:#D4A373;
  --main-dark:#A9713F;
  --main-darker:#7C5029;

  --gray-tint:#F7F6F5;
  --paper:#FCFBFA;
  --paper-alt:#F7F6F5;
  --card:#FFFFFF;
  --ink:#242422;
  --ink-soft:#605F5A;

  --line:rgba(36,36,34,0.09);
  --line-soft:rgba(36,36,34,0.05);
  --radius:12px;
  --shadow:0 8px 24px rgba(36,36,34,0.06);
  --max-width:1120px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--main-darker);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow.center { justify-content: center; }
.eyebrow .ring { width: 9px; height: 9px; border-radius: 50%; background: var(--main); flex: none; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   HLAVIČKA / NAVIGACE
   ============================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .name { font-family: 'Fraunces', serif; font-size: 1.375rem; font-weight: 700; color: var(--ink); }
.logo-text .by { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-soft); margin-top: 2px; }

.navlinks-scroll { display: flex; align-items: center; gap: 32px; }
nav.site-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
nav.site-nav ul a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); transition: color .2s ease; }
nav.site-nav ul a:hover { color: var(--main-darker); }
nav.site-nav ul li.current-menu-item > a,
nav.site-nav ul li.current_page_item > a,
nav.site-nav ul li.current-menu-parent > a {
  color: var(--ink); position: relative;
}
nav.site-nav ul li.current-menu-item > a::after,
nav.site-nav ul li.current_page_item > a::after,
nav.site-nav ul li.current-menu-parent > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px; background: var(--main);
}

/* Text viditelný jen pro čtečky obrazovky (skrytý vizuálně) */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.btn-nav {
  background: var(--main-dark); color: #fff; padding: 10px 20px; font-size: 0.9062rem; font-weight: 600;
  text-decoration: none; border-radius: 8px; transition: all .2s ease; white-space: nowrap;
}
.btn-nav:hover { background: var(--main-darker); color: #fff; }

/* Mobilní menu — přepínač je čisté HTML/CSS + minimum JS jen na
   otevření/zavření a nastavení aria-expanded (viz assets/js/nav.js) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex: none;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle svg path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* ============================================================
   TLAČÍTKA
   ============================================================ */
.btn-primary {
  background: var(--main-dark); color: #fff; padding: 15px 28px; text-decoration: none; font-size: 1rem; font-weight: 600;
  border-radius: 9px; display: inline-block; transition: all .2s ease; box-shadow: 0 6px 18px rgba(169,113,63,0.3);
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--main-darker); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  border: 1.6px solid var(--ink); padding: 13.5px 26px; text-decoration: none; color: var(--ink); font-size: 1rem;
  font-weight: 600; border-radius: 9px; transition: all .2s ease; display: inline-block; background: none;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   HERO (jen na úvodní stránce)
   ============================================================ */
.hero { padding: 84px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 3.0625rem; font-weight: 600; max-width: 600px; }
.hero h1 em { font-style: italic; color: var(--main-darker); font-weight: 600; }
.hero p.lead { margin-top: 24px; font-size: 1.1562rem; color: var(--ink-soft); max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; height: auto; }

.trust-strip { background: var(--ink); padding: 20px 0; }
.trust-strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 40px; font-size: 0.8438rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.trust-strip strong { color: #fff; font-weight: 700; }

/* ============================================================
   HLAVIČKA STRÁNKY (podstránky bez hero)
   ============================================================ */
.page-head { padding-top: 64px; padding-bottom: 8px; text-align: center; }
.page-head h1 { font-size: 2.625rem; max-width: 700px; margin: 0 auto; }
.page-head p.lead { margin: 20px auto 0; max-width: 620px; color: var(--ink-soft); font-size: 1.0938rem; }

/* ============================================================
   OBECNÉ SEKCE
   ============================================================ */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 1.875rem; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.0312rem; }
.band-tint { background: var(--paper-alt); }

/* ============================================================
   KARTY S IKONOU (mřížka 3 sloupce — služby, důvody, kroky)
   ============================================================ */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line-soft); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38,36,29,0.12); }
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 9px; }
.card p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.icon-fill { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex: none; }
.icon-fill svg { width: 30px; height: 30px; }
.icon-fill.main { background: var(--main-dark); }
.icon-fill.shade { background: var(--main-darker); }
.icon-fill.accent { background: var(--main); }

/* ============================================================
   "PROČ OSLOVIT MĚ" — odlišný vzhled od mřížky služeb (ne karty
   s ikonou, ale seznam s odrážkami + menší fotka)
   ============================================================ */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.reason-card { padding: 30px 28px; }
.reason-bullet { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--main); margin-bottom: 16px; }
.reason-card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.reason-card p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }

/* ============================================================
   MAPA OBLASTI PŮSOBENÍ
   ============================================================ */
.area-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.map-diagram { display: flex; align-items: center; justify-content: center; }
.map-diagram svg { width: 100%; max-width: 510px; height: auto; }
.area-list { margin-top: 24px; }
.area-list dt { font-size: 0.7812rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--main-darker); margin-top: 20px; }
.area-list dd { margin: 6px 0 0; font-size: 0.9375rem; color: var(--ink-soft); font-weight: 400; }
.map-legend { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.map-legend span { display: flex; align-items: center; gap: 8px; font-size: 0.8438rem; color: var(--ink-soft); font-weight: 600; }
.swatch { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.swatch.main { background: var(--main-dark); }
.swatch.accent { background: var(--main-tint); border: 1.6px dashed var(--main-darker); }

/* ============================================================
   CENÍKOVÉ TABULKY
   ============================================================ */
table.price { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.price th, table.price td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
table.price th { font-size: 0.75rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; font-weight: 700; background: var(--main-dark); }
table.price td:not(:first-child), table.price th:not(:first-child) { text-align: right; white-space: nowrap; }
table.price tr:last-child td { border-bottom: none; }
table.price tr:nth-child(even) td { background: var(--gray-tint); }
.table-note { font-size: 0.8438rem; color: var(--ink-soft); margin-top: 14px; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

/* ============================================================
   ÚROVNĚ PÉČE — SEZNAM SE ZATRŽÍTKY
   ============================================================ */
.card .tag { font-size: 0.7812rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--main-darker); margin-bottom: 10px; display: block; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9062rem; color: var(--ink-soft); line-height: 1.5; }
.checklist li svg { flex: none; margin-top: 2.5px; width: 16px; height: 16px; }
.checklist li svg path { fill: none; stroke: var(--main-dark); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.checklist li.optional { font-style: italic; }
.checklist li.optional svg path { stroke: var(--main-light); }

/* ============================================================
   MŘÍŽKA DEKORACÍ (ceník i poptávkový formulář)
   ============================================================ */
.deco-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.deco-card { background: var(--card); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.deco-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38,36,29,0.12); }
.deco-card .icon-fill { width: 50px; height: 50px; margin-bottom: 14px; }
.deco-card .icon-fill svg { width: 24px; height: 24px; }
.deco-card .variant { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--main-darker); display: block; margin-bottom: 10px; }
.deco-card h4 { font-size: 1.0625rem; margin: 0 0 3px; }
.deco-card p { font-size: 0.8438rem; color: var(--ink-soft); margin: 0; flex: 1; line-height: 1.5; }
.deco-card .price { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: 'Fraunces', serif; font-size: 1.1875rem; font-weight: 600; color: var(--ink); }
.deco-note { font-size: 0.8438rem; color: var(--ink-soft); margin-top: 20px; max-width: 720px; }

/* ============================================================
   ZVÝRAZNĚNÉ BOXY (doporučení, upozornění, výjimky)
   ============================================================ */
.callout { background: var(--main-tint); border-radius: var(--radius); padding: 28px 30px; display: flex; gap: 20px; align-items: flex-start; }
.callout .icon-fill { flex: none; margin-bottom: 0; background: var(--main-dark); }
.callout h3 { font-size: 1.125rem; margin-bottom: 8px; }
.callout p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }

.callout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.callout-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-left: 4px solid var(--main-dark); display: flex; gap: 18px; align-items: flex-start; }
.callout-card h3 { font-size: 1.0938rem; margin-bottom: 6px; }
.callout-card p { margin: 0; color: var(--ink-soft); font-size: 0.9062rem; line-height: 1.6; }

.alert-box { background: var(--card); border: 1.5px dashed var(--main-light); border-radius: var(--radius); padding: 30px 32px; display: flex; gap: 22px; align-items: flex-start; }
.alert-box .icon-fill { flex: none; margin-bottom: 0; }
.alert-box h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.alert-box p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.9375rem; }
.alert-box ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.85; columns: 2; column-gap: 32px; }

/* ============================================================
   ČASOVÁ OSA KROKŮ (jednoduchá i bohatší varianta)
   ============================================================ */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--main-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 0.875rem; font-weight: 700; flex: none; }
.step h3 { font-size: 1.1875rem; margin-bottom: 5px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.9688rem; max-width: 680px; }

.steps-rich { display: flex; flex-direction: column; }
.step-rich { display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding: 34px 0; border-top: 1px solid var(--line); }
.step-rich:last-child { border-bottom: 1px solid var(--line); }
.step-rich .step-num { width: 44px; height: 44px; font-size: 1.0625rem; }
.step-rich h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.step-rich p { margin: 0; color: var(--ink-soft); font-size: 0.9688rem; max-width: 680px; line-height: 1.65; }
.step-rich p + p { margin-top: 10px; }
.step-note { margin-top: 14px; padding: 14px 18px; background: var(--main-tint); border-radius: 9px; max-width: 680px; font-size: 0.875rem; color: var(--main-darker); font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.step-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.step-note svg path { fill: none; stroke: var(--main-darker); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step-note span { font-weight: 500; }

/* ============================================================
   REFERENCE / CITACE
   ============================================================ */
.stat-line { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat-line .stat { text-align: center; }
.stat-line .stat b { display: block; font-family: 'Fraunces', serif; font-size: 1.75rem; font-weight: 600; color: var(--main-darker); }
.stat-line .stat span { font-size: 0.8125rem; color: var(--ink-soft); font-weight: 500; }

.quote-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote-masonry { column-count: 3; column-gap: 22px; }
blockquote {
  break-inside: avoid; margin: 0 0 22px; display: inline-block; width: 100%;
  background: var(--card); padding: 28px 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 4px solid var(--main); font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: 1.0312rem; line-height: 1.55; color: var(--ink);
}
/* Poznámka: úvodní uvozovka byla záměrně odstraněna — jako ::before
   na blockquote se totiž zalamovala na samostatný řádek před textem
   citace (ten je uvnitř vnořeného <p> z the_content()). */
blockquote .attribution {
  display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-family: 'Inter', sans-serif; font-style: normal; font-weight: 600; font-size: 0.75rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft);
}
blockquote .attribution svg { flex: none; width: 12px; height: 12px; }
blockquote .attribution svg path { fill: var(--main-dark); }

/* ============================================================
   FORMULÁŘ (poptávka — obal kolem Forminatoru; detailní styly
   pro samotná pole Forminatoru viz assets/css/forminator.css)
   ============================================================ */
.intro-card { background: var(--card); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.intro-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.intro-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.55; padding: 14px 0; }
.intro-list li + li { border-top: 1px solid var(--line-soft); }
.intro-list li .check-badge { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--main-dark); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.intro-list li .check-badge svg { width: 12px; height: 12px; }
.intro-list li .check-badge svg path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.intro-list strong { color: var(--ink); }

.form-card { background: var(--card); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); margin-top: 24px; }
.poptavka-form-card { background: var(--card); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }

/* ============================================================
   CTA PÁS + PATIČKA
   ============================================================ */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 88px 0; }
.cta-band .ring-flame { margin: 0 auto 26px; }
.cta-band h2 { color: #fff; font-size: 1.875rem; max-width: 560px; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 16px; max-width: 460px; margin-left: auto; margin-right: auto; font-size: 1.0625rem; }
.cta-band .btn-primary { margin-top: 30px; background: var(--main); box-shadow: 0 6px 18px rgba(0,0,0,0.2); color: #241a08; }
.cta-band .btn-primary:hover { background: var(--main-darker); color: #fff; }
.cta-secondary { margin-top: 18px; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.cta-secondary a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.cta-secondary a:hover { color: #fff; }

footer.site-footer { padding: 56px 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.footer-main { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { max-width: 340px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-tagline { margin: 0; font-size: 0.8438rem; color: var(--ink-soft); line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.footer-nav a { text-decoration: underline; text-underline-offset: 3px; font-size: 0.9062rem; font-weight: 500; color: var(--ink); }
.footer-nav a:hover { color: var(--main-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 24px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* ============================================================
   FOTOGALERIE (page-galerie.php)
   Sloupcová mozaika (stejný princip jako .quote-masonry u referencí)
   — každá fotka si nechá svůj přirozený poměr stran místo
   nuceného ořezu do čtverce.
   ============================================================ */
.photo-grid {
  column-count: 4;
  column-gap: 14px;
}
.photo-grid__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.photo-grid__item:hover, .photo-grid__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(38,36,29,0.14);
}
.photo-grid__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   404 STRÁNKA
   ============================================================ */
.not-found { text-align: center; padding: 96px 0; }
.not-found h1 { font-size: 2.5rem; }
.not-found p { color: var(--ink-soft); margin-top: 16px; font-size: 1.0625rem; }

/* ============================================================
   OBECNÝ OBSAH STRÁNKY (page.php — Kontakt, Ochrana os. údajů…)
   ============================================================ */
.page-content { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.page-content h2 { font-size: 1.625rem; margin-top: 40px; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--ink-soft); font-size: 1.0312rem; }
.page-content a { color: var(--main-dark); font-weight: 600; text-decoration: underline; }
.page-content ul, .page-content ol { color: var(--ink-soft); font-size: 1.0312rem; line-height: 1.7; }

/* ============================================================
   POMOCNÉ TŘÍDY
   Drobné, opakovaně použitelné modifikátory — aby v šablonách
   nebylo potřeba psát inline style="" pro běžné výjimky.
   ============================================================ */
.muted-note { color: var(--ink-soft); }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-cta { margin-top: 28px; }
.mb-sm { margin-bottom: 24px; }
.mb-md { margin-bottom: 36px; }
.mb-lg { margin-bottom: 40px; }
.no-pad-top { padding-top: 0; }

.sep { border: none; border-top: 1px solid var(--line-soft); margin: 28px 0; }

.link-accent { color: var(--main-dark); font-weight: 600; }

.card--flat { box-shadow: none; border: 1px solid var(--line-soft); }
.card--compact { padding: 22px 24px; }
.card--row { display: flex; flex-direction: row; align-items: center; gap: 18px; }
.card.mb { margin-bottom: 22px; }

.icon-fill.inline { margin-bottom: 0; }
.tag--tight { margin-bottom: 2px; }

.stack-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-name { font-size: 1.125rem; margin-bottom: 0; }
.contact-meta { margin: 10px 0 0; font-size: 0.9375rem; color: var(--ink-soft); }
.contact-meta strong { color: var(--ink); }

.price-narrow { max-width: 480px; }
.tier-note { color: var(--ink-soft); font-size: 0.9062rem; margin-top: 6px; }
.lead-center { max-width: 640px; margin-left: auto; margin-right: auto; }

.form-card.flush { margin-top: 0; }
.email-value { margin: 0; font-size: 1.0312rem; }
.area-note { color: var(--ink-soft); font-size: 0.9688rem; margin: 0; }
.contact-photo { width: 152px; height: 192px; border-radius: 8px; overflow: hidden; flex: none; border: 1px solid var(--line-soft); }
.card--photo-right { justify-content: space-between; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-photo .photo-placeholder-sm { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--main-tint); }
.contact-photo .photo-placeholder-sm svg { width: 40%; height: 40%; }

/* ============================================================
   FAQ (page-caste-dotazy.php) — nativní <details>/<summary>,
   žádný JS potřeba, funguje s klávesnicí i čtečkou obrazovky.
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 4px 22px; box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 18px 30px 18px 0; cursor: pointer; font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 1.0625rem; color: var(--ink); position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px; font-family: 'Inter', sans-serif;
  font-size: 1.5rem; font-weight: 400; color: var(--main-dark); line-height: 1; transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2.5px solid var(--main-dark); outline-offset: 3px; border-radius: 4px; }
.faq-item p { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.9688rem; line-height: 1.65; }

/* ============================================================
   FORMULÁŘ FORMINATOR (Basic Styles) — písmo, barvy a základní
   rozměry polí/tlačítka/výzdoby. Bez přestylování vzhledu
   samotných radio/checkbox koleček — ty zůstávají nativní.
   ============================================================ */
.forminator-custom-form-1020 {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}
.forminator-custom-form-1020 .forminator-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 !important;
}
.forminator-custom-form-1020 .forminator-field-section {
  padding-top: 12px !important;
}
.forminator-custom-form-1020 #section-1 {
  padding-top: 0 !important;
}
.forminator-custom-form-1020 .forminator-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 3px !important;
}
.forminator-custom-form-1020 .forminator-required {
  color: var(--main-dark);
}
.forminator-custom-form-1020 .forminator-subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  margin-top: 9px;
}
.forminator-custom-form-1020 .forminator-description {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.forminator-custom-form-1020 a {
  color: var(--main-dark);
}
.forminator-custom-form-1020 .forminator-consent__label,
.forminator-custom-form-1020 .forminator-consent__label p {
  font-size: 1rem;
}
.forminator-custom-form-1020 .forminator-radio-label {
  margin-left: 7px;
}

/* textová pole, e-mail, telefon, datum, textarea — standardní výška a odsazení */
.forminator-custom-form-1020 input[type="text"],
.forminator-custom-form-1020 input[type="email"],
.forminator-custom-form-1020 input[type="tel"],
.forminator-custom-form-1020 input.forminator-datepicker,
.forminator-custom-form-1020 textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1.6px solid rgba(36,36,34,0.25);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9688rem;
  color: var(--ink);
  background: var(--paper);
}
.forminator-custom-form-1020 textarea {
  resize: vertical;
}
.forminator-custom-form-1020 input:focus,
.forminator-custom-form-1020 textarea:focus {
  outline: none;
  border-color: var(--main-dark);
}

/* radio a checkbox řádky — trochu vzduchu a zarovnání s textem */
.forminator-custom-form-1020 .forminator-radio,
.forminator-custom-form-1020 .forminator-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
}
.forminator-custom-form-1020 .forminator-radio input,
.forminator-custom-form-1020 .forminator-checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--main-dark);
  cursor: pointer;
  flex: none;
}

/* výzdoba — řádkové zobrazení se sjednocenou velikostí náhledu */
.forminator-custom-form-1020 .forminator-checkbox-image {
  display: inline-block !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--line-soft);
}
.forminator-custom-form-1020 .forminator-checkbox-image span {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.forminator-custom-form-1020 .forminator-checkbox-label {
  font-weight: 500;
}

/* tlačítko odeslat — větší, sladěné s tlačítky na webu */
.forminator-custom-form-1020 .forminator-button-submit {
  display: inline-block;
  background: var(--main-dark);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.forminator-custom-form-1020 .forminator-button-submit:hover {
  background: var(--main-darker);
}

/* ============================================================
   RESPONZIVITA
   Jeden sjednocený breakpoint pro "dva vedle sebe" (860px) a jeden
   pro "jeden pod druhým" (560px) — platí stejně pro všechny mřížky
   karet napříč webem (služby, důvody, reference, dekorace), aby se
   web na zužujícím se okně choval všude stejně.
   ============================================================ */
@media (max-width: 860px) {
  /* dvousloupcové layouty -> jeden sloupec */
  .hero-grid, .area-grid, .two-col, .callout-row { grid-template-columns: 1fr; }
  /* trojsloupcové mřížky karet -> dva sloupce (stejně jako dekorace) */
  .grid3, .quote-row, .deco-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-masonry { column-count: 2; }
  .photo-grid { column-count: 3; }

  .area-grid .map-diagram { order: 2; margin-top: 8px; }
  .area-grid .area-text { order: 1; }
  .about-photo { margin: 24px auto 0; }
  .hero-art { order: -1; margin-bottom: 12px; }

  .hero h1 { font-size: 2.1875rem; }
  .page-head h1 { font-size: 1.875rem; }
  section { padding: 52px 0; }
  .alert-box { flex-direction: column; }
  .alert-box ul { columns: 1; }
  .step-rich, .step { grid-template-columns: 1fr; gap: 12px; }
  .form-card { padding: 26px 22px; }
  .poptavka-form-card { padding: 26px 22px; }
  .footer-main { flex-direction: column; gap: 28px; }

  /* mobilní menu */
  .nav-toggle { display: block; }
  .navlinks-scroll {
    position: fixed; inset: 0; top: 68px; z-index: 60; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .2s ease;
    border-top: 1px solid var(--line-soft);
  }
  .navlinks-scroll.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  nav.site-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  nav.site-nav ul li.current-menu-item > a::after,
  nav.site-nav ul li.current_page_item > a::after,
  nav.site-nav ul li.current-menu-parent > a::after { display: none; }
  .btn-nav { margin-top: 16px; text-align: center; }

  /* ceníkové tabulky -> řádkové zobrazení místo vodorovného scrollování */
  table.price, table.price tbody, table.price tr, table.price td { display: block; width: 100%; }
  table.price thead { display: none; }
  table.price tr { border-bottom: 1px solid var(--line-soft); padding: 12px 18px; }
  table.price tr:last-child { border-bottom: none; }
  table.price tr:nth-child(even) { background: var(--gray-tint); }
  table.price tr:nth-child(even) td { background: none; }
  table.price td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 5px 0; border-bottom: none; text-align: right; white-space: nowrap;
  }
  table.price td::before {
    content: attr(data-label); font-size: 0.7188rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--ink-soft); text-align: left; flex: none;
  }
  table.price td:first-child { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.0312rem; color: var(--ink); text-align: left; justify-content: flex-start; white-space: normal; }
  table.price td:first-child::before { content: none; }
}
@media (max-width: 560px) {
  .quote-masonry { column-count: 1; }
  .stat-line { gap: 24px; }
  .grid3, .quote-row, .deco-grid, .grid2 { grid-template-columns: 1fr; }
  .photo-grid { column-count: 2; }
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
}
