/* ==========================================================================
   Pan tonalita — design tokens (per brand-manual_4.html)
   Paper (warm apricot cream) / Ink (twilight blue) / Orange (accent) / Raspberry (secondary)
   Display: Fraunces · Body/UI: Inter
   Visual language: sharp geometry, one diagonal accent, no gradients, no shadows
   ========================================================================== */

:root {
  --orange: #FF5233;
  --orange-dark: #C23A1E;
  --ink: #2E4F7A;
  --ink-deep: #24405f;
  --raspberry: #EF5A72;
  --paper: #FFEFE0;
  --card: #ffffff;
  --gray: #8A7A72;
  --line: #F5D9BF;
  --border: var(--line);

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

  --container: 1120px;
  --radius-card: 10px;
  --radius-badge: 6px;
  --radius-btn: 100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.eyebrow-light { color: var(--orange); }

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
  max-width: 20ch;
}
#proc h2,
#jak-pomuzu h2 {
  max-width: none;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--orange-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--ink); }
/* On dark ink sections the orange diagonal accent already carries the brand
   color, so the button itself stays a calm neutral — orange only appears
   on hover, kept as a sparing accent rather than a loud fill. */
.hero .btn-primary,
.section-dark .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.hero .btn-primary:hover,
.section-dark .btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
}
.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost-dark:hover { border-color: var(--orange); color: var(--orange); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 239, 224, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--orange-dark); }
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.primary-nav a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}
.primary-nav a:hover { color: var(--orange-dark); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-btn);
}
.nav-cta:hover { background: var(--orange-dark) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ==========================================================================
   Hero — flush ink panel, single diagonal accent, no gradients/shadows
   ========================================================================== */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 260px;
  height: 260px;
  background: var(--orange);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  min-height: 4.8em;
  color: #fff;
}
@media (min-width: 700px) {
  .hero-headline { min-height: 2.5em; }
}
.typewriter { color: #fff; }
.cursor {
  display: inline-block;
  width: 0.08em;
  background: var(--orange);
  margin-left: 0.06em;
  height: 0.85em;
  transform: translateY(0.08em);
  animation: blink 0.9s step-end infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 1; }
}
@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.rule-accent {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--orange);
  margin: 1.7rem 0 1.9rem;
}

.perex {
  font-size: 1.1rem;
  color: #C9D1D6;
  max-width: 56ch;
}
.perex strong {
  color: var(--orange);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

/* ---- Proč tonalita — card grid ---- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.reason-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.9rem 1.7rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.reason-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.reason-card-top { margin-bottom: 1.2rem; }
.reason-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-badge);
  background: var(--paper);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.reason-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}
.reason-card-text {
  color: var(--gray);
  font-size: 0.98rem;
  margin: 0;
}
.reason-card-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Jak pomůžu — numbered rows ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.7rem 1.9rem;
}
.step-index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: var(--ink);
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-badge);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.step-body p {
  color: var(--gray);
  margin: 0;
}

/* ---- O mně ---- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo img {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}
.about-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--orange-dark);
  padding: 0.4em 0.85em;
  border-radius: var(--radius-btn);
  margin-bottom: 1.1rem;
}
.about-text h2 { margin-bottom: 1.3rem; }
.about-text p { color: var(--ink); }

/* ---- Ceník — flush dark section ---- */
.section-dark {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.pricing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.section-dark h2 { color: #fff; margin: 0 auto 1.3rem; }
.price {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 1rem;
}
.price-number {
  font-size: clamp(3rem, 8.5vw, 5rem);
  color: var(--orange);
  letter-spacing: -0.01em;
}
.price-currency {
  font-size: 1.5rem;
  margin-left: 0.4rem;
  color: #fff;
  font-weight: 600;
}
.price-desc {
  color: #C9D1D6;
  font-size: 1.02rem;
  margin-bottom: 2rem;
}
.price-includes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  margin: 0 0 2.3rem;
  padding: 0;
  list-style: none;
}
.price-includes li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.5em 0.9em;
  border-radius: var(--radius-btn);
}
.price-includes .icon { color: var(--orange); }

/* ---- FAQ — two-column grid ---- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.faq-item {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-badge);
  background: var(--paper);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item[open] .faq-marker {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
}
.faq-item p {
  color: var(--gray);
  margin: 0.85rem 0 0;
}

/* ---- Kontakt ---- */
.kontakt-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2.4rem;
  max-width: 560px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.form-row label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-badge);
  padding: 0.8em 1em;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0.9rem 0 0;
}
.form-status {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--orange-dark);
  margin: 0.9rem 0 0;
  min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 2.6rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo-footer { font-size: 1.05rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray);
}
.footer-nav a:hover { color: var(--orange-dark); }
.footer-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
  width: 100%;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.footer-meta a { color: var(--gray); text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .reasons-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .primary-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    padding: 0.8rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 0.8rem;
    text-align: center;
    border-bottom: none !important;
  }
  .hero-inner { padding-top: 3.2rem; padding-bottom: 3.5rem; }
  .hero::after { width: 90px; height: 90px; right: -30px; top: -30px; }
  .hero-headline { max-width: 76%; }
  .section { padding: 3.2rem 0; }
  .step { flex-direction: column; gap: 0.8rem; padding: 1.5rem; }
  .kontakt-form-card { padding: 1.7rem; }
  .price-includes { justify-content: flex-start; }
}
