/* ============================================================
   tracasa.cz — styles
   ----------------------------------------------------------
   1. Design tokens
   2. Base / reset
   3. Layout primitives
   4. Skip link
   5. Header
   6. Hero + trust strip
   7. Blok „dostali jste dopis"
   8. Kroky
   9. Cena (tmavý blok)
   10. Kupujeme / nekupujeme
   11. O nás
   12. Formulář
   13. FAQ
   14. Patička
   15. Textové stránky (dopis, GDPR, děkujeme)
   16. Reveal + responsive + reduced motion
   ============================================================ */

/* 1. Design tokens
   ----------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f7;
  --surface: #ffffff;
  --border: #e1e6ea;
  --border-strong: #c9d2d8;
  --text: #14202b;
  --text-2: #55636f;
  --text-3: #7c8894;
  --accent: #1d4d5e;
  --accent-dark: #133845;
  --accent-soft: #e9f1f3;
  --paper: #fdf8ef;
  --paper-border: #ead9bd;
  --paper-ink: #6b5326;
  --shadow: 0 18px 48px rgba(20, 32, 43, 0.07);
  --shadow-sm: 0 6px 18px rgba(20, 32, 43, 0.05);
  --container: 1060px;
  --narrow: 700px;
  --radius: 10px;
  --radius-lg: 16px;
}

/* 2. Base / reset
   ----------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 3. Layout primitives
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: var(--narrow); }

.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }

.section__lead {
  font-size: 1.08rem;
  color: var(--text-2);
  max-width: 62ch;
}

.eyebrow {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--light { background: #fff; color: var(--accent-dark); }
.btn--light:hover { background: var(--accent-soft); }

/* 4. Skip link
   ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 5. Header
   ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__suffix {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-2);
}
.site-nav a:hover { color: var(--accent); }

.site-nav .header-tel {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* 6. Hero
   ----------------------------------------------------------- */
.hero {
  padding: 84px 0 64px;
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, rgba(233, 241, 243, 0) 62%),
    var(--bg);
}

.hero__inner { max-width: 760px; }

.hero h1 { margin-bottom: 20px; }

.hero__lead {
  font-size: 1.16rem;
  color: var(--text-2);
  max-width: 60ch;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-3);
}

/* Trust strip */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust__item {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
}
.trust__item:last-child { border-right: 0; }
.trust__item:first-child { padding-left: 0; }

.trust__value {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust__label {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* 7. Blok „dostali jste dopis"
   ----------------------------------------------------------- */
.letter {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.letter h2 { margin-bottom: 18px; }

.letter p { color: #4a4132; }

.letter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.letter .btn--ghost { border-color: var(--paper-border); }
.letter .btn--ghost:hover { border-color: var(--paper-ink); color: var(--paper-ink); }

/* 8. Kroky
   ----------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step {
  background: var(--surface);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 56px 1fr 190px;
  gap: 20px;
  align-items: start;
}

.step__num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.step__body h3 { margin-bottom: 6px; }
.step__body p { color: var(--text-2); font-size: 0.97rem; }

.step__meta {
  font-size: 0.88rem;
  color: var(--text-3);
  border-left: 2px solid var(--accent-soft);
  padding-left: 16px;
}

/* 9. Cena (tmavý blok)
   ----------------------------------------------------------- */
.price {
  background: var(--accent-dark);
  color: #e8eef0;
}

.price h2 { color: #fff; }
.price .eyebrow { color: #8fb8c4; }
.price p { color: #c5d4d9; }

.price__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.price__box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.price__box h3 { color: #fff; font-size: 1.08rem; }

.price__box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price__box li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.97rem;
  color: #c5d4d9;
}
.price__box li:last-child { margin-bottom: 0; }

.price__box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fa3b2;
}

/* 10. Kupujeme / nekupujeme
   ----------------------------------------------------------- */
.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 18px; }

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  font-size: 0.98rem;
  color: var(--text-2);
}
.list li:last-child { margin-bottom: 0; }

.list--yes li::before,
.list--no li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1rem;
}

.list--yes li::before { content: "+"; color: var(--accent); }
.list--no li::before { content: "\2212"; color: var(--text-3); }

/* 11. O nás
   ----------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.about__photo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.about__caption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-3);
}

.facts {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  padding-right: 20px;
}

.facts dt {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}

.facts dd { margin: 0; font-size: 0.98rem; }

/* 12. Formulář
   ----------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .opt {
  font-weight: 400;
  color: var(--text-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea { min-height: 96px; resize: vertical; }

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { width: 100%; margin-top: 6px; }

.form__note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.5;
}

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

.form-error {
  background: #fdecec;
  border: 1px solid #f3c6c6;
  color: #8c2b2b;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.contact__aside .tel-big {
  display: inline-block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin: 6px 0 4px;
}

.contact__aside .hours {
  font-size: 0.94rem;
  color: var(--text-2);
  margin-bottom: 26px;
}

/* 13. FAQ
   ----------------------------------------------------------- */
.faq { margin-top: 36px; border-top: 1px solid var(--border); }

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 1.03rem;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after { content: "\2212"; }

.faq__answer {
  padding: 0 40px 22px 0;
  color: var(--text-2);
  font-size: 0.98rem;
}

/* 14. Patička
   ----------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
  font-size: 0.93rem;
  color: var(--text-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
  font-weight: 600;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.footer__legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* 15. Textové stránky
   ----------------------------------------------------------- */
.page-head {
  padding: 60px 0 30px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.prose { padding: 48px 0 76px; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--text-2); }
.prose a { color: var(--accent); }

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p { color: var(--text); }

.thanks {
  padding: 100px 0;
  text-align: center;
}

.thanks .check {
  width: 62px;
  height: 62px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
}

/* 16. Reveal + responsive + reduced motion
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .price__grid,
  .scope,
  .contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { max-width: 240px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item { border-bottom: 1px solid var(--border); padding-left: 0; padding-right: 24px; }
  .trust__item:nth-child(2n) { border-right: 0; }
  .trust__item:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 44px; }
  .site-nav a:not(.header-tel) { display: none; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; padding: 24px 22px; }
  .step__meta {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
  .letter { padding: 28px 22px; }
  .form { padding: 24px 20px; }
  .field--row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
