/* ==========================================================================
   Údržba hrobů Praha — mikrostránka
   Design tokens navazují na hlavní web pece-o-hroby.cz
   ========================================================================== */

:root {
  --main-tint: #F0E4D8;
  --main-light: #E3BE95;
  --main: #D4A373;
  --main-dark: #A9713F;
  --main-darker: #7C5029;

  --paper: #FCFBFA;
  --paper-alt: #F7F6F5;
  --ink: #242422;
  --ink-soft: #605F5A;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max-width: 1080px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }

a { color: var(--main-darker); }
a:hover { color: var(--main-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--main-dark);
  margin: 0 0 0.9em;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7em 1.2em;
  z-index: 100;
}
a.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--main-dark);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--main-tint);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg { width: 24px; height: 24px; display: block; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-name {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 400;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--main-darker);
}

nav.main-nav a.external { color: var(--main-dark); }

/* ---------- Hero ---------- */

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--main-tint) 0%, var(--paper) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Ornamental divider (signature element) ---------- */

.ornament-divider {
  display: block;
  width: 320px;
  height: auto;
  margin: 3rem auto 0;
}

.orn-line {
  stroke: var(--main-dark);
  stroke-width: 1.5;
}

.orn-petal {
  fill: var(--main-light);
  stroke: var(--main-dark);
  stroke-width: 1;
}

.orn-center { fill: var(--main-darker); }

/* ---------- Friction points (why it's easier to delegate) ---------- */

.friction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  text-align: left;
}

.friction-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--main-tint);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
}

.friction-card .bullet {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--main-dark);
  flex-shrink: 0;
  margin-top: 5px;
}

.friction-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Icon stat cards (hero facts) ---------- */

.icon-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin: 2.2rem auto 0;
}

.icon-stat {
  background: var(--paper);
  border: 1px solid var(--main-tint);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;
}

.icon-stat svg {
  width: 26px; height: 26px;
  margin: 0 auto 0.5rem;
  color: var(--main-dark);
}

.icon-stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--main-darker);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.3em;
}

.icon-stat .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: inline-block;
}

/* ---------- Pull statement ---------- */

.pull-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 30ch;
  color: var(--ink);
}

.pull-statement .accent { color: var(--main-darker); }

.button {
  display: inline-block;
  background: var(--main-darker);
  color: var(--paper);
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.button:hover { background: var(--main-dark); color: var(--paper); }

.button.secondary {
  background: transparent;
  color: var(--main-darker);
  border: 1.5px solid var(--main-dark);
}
.button.secondary:hover { background: var(--main-tint); }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }
.section.alt { background: var(--paper-alt); }
.section.tint { background: var(--main-tint); }

.section-head { max-width: 62ch; margin-bottom: 2.2rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Stat band ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 0;
}

.stat {
  text-align: left;
  border-left: 3px solid var(--main-dark);
  padding-left: 0.9rem;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--main-darker);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Schematic diagram (signature element) ---------- */

.plan-wrap {
  background: var(--paper);
  border: 1px solid var(--main-tint);
  border-radius: 10px;
  padding: 1.5rem;
}

.plan-wrap svg { width: 100%; height: auto; }

.plan-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.8rem;
}

.plan-plot { fill: var(--main-tint); stroke: var(--paper); stroke-width: 2; }
.plan-plot.alt { fill: var(--main-light); }
.plan-street { fill: var(--paper-alt); }
.plan-outline { fill: none; stroke: var(--main-darker); stroke-width: 2; }
.plan-label { font-family: var(--font-body); font-size: 11px; fill: var(--ink-soft); }
.plan-num { font-family: var(--font-display); font-size: 13px; fill: var(--main-darker); font-weight: 600; }
.plan-gate { fill: var(--main-darker); }

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.service-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--paper);
  border: 1px solid var(--main-tint);
  border-radius: 10px;
}

.service-card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--main-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.service-card .icon-circle svg { width: 27px; height: 27px; }

.service-card h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Quotes ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

blockquote.quote {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--main-tint);
  font-size: 0.98rem;
  color: var(--ink-soft);
}

blockquote.quote p { margin: 0; }
blockquote.quote p::before { content: "\201E"; }
blockquote.quote p::after { content: "\201C"; }

/* ---------- Personalities list (Olšany page) ---------- */

.names {
  columns: 2;
  column-gap: 2rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.names li { break-inside: avoid; margin-bottom: 0.4rem; }

/* ---------- Timeline (history) ---------- */

.timeline {
  list-style: none;
  margin: 0; padding: 0;
  border-left: 2px solid var(--main-tint);
}
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.6rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6.5px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--main-dark);
}
.timeline .year {
  font-family: var(--font-display);
  color: var(--main-darker);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--paper);
  border: 1px solid var(--main-tint);
  border-radius: 10px;
  padding: 2rem;
  max-width: 42rem;
}

.contact-line {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.contact-line svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--main-dark); }

.notice-box {
  background: var(--main-tint);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: var(--paper-alt);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

footer.site-footer a { color: var(--main-light); }

footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-stat-row { grid-template-columns: repeat(2, 1fr); }
  .friction-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .names { columns: 1; }
  nav.main-nav ul { gap: 1rem 1.2rem; }
}

@media (max-width: 560px) {
  .hero-photos { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2.6rem 0; }
}

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }
@media (max-width: 700px) {

  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--main-tint);
    box-shadow: 0 8px 16px rgba(36, 36, 34, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 20;
  }

  nav.main-nav.is-open { max-height: 320px; }

  nav.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.2rem 1.5rem 1.4rem;
  }
}
