/* ============================================================
   REMIUM.CZ — style.css
   Mobile-first. Bold minimalism. Sage archetype.
   Logo red: #d92938 | Logo dark: #332c2c
   ============================================================ */

:root {
  --red:       #d92938;
  --red-dark:  #b5202d;
  --red-soft:  #fdf0f1;
  --ink:       #332c2c;
  --ink-60:    #6b5f5f;
  --ink-40:    #9c9090;
  --ink-10:    rgba(51,44,44,0.10);
  --ink-18:    rgba(51,44,44,0.18);
  --white:     #ffffff;
  --warm:      #f8f5f1;
  --warm-deep: #f0ebe4;

  --ff-serif: 'Iowan Old Style', 'Apple Garamond', Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --ff-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --r:    5px;
  --r-lg: 12px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- TYPE ---- */
h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { color: var(--ink-60); line-height: 1.7; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: block;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

/* ---- LAYOUT ---- */
.container { width: 100%; max-width: 740px; margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 22px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--ink-10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s var(--ease);
}

.nav.scrolled { box-shadow: 0 1px 24px rgba(51,44,44,0.07); }

.nav-logo-link { display: flex; align-items: center; }
.nav-logo-img  { height: 22px; width: auto; display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--red);
  border-radius: var(--r);
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-cta:hover { background: var(--red-dark); text-decoration: none; }
.nav-cta:active { transform: scale(0.97); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--r);
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.12s var(--ease),
              box-shadow 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 20px rgba(217,41,56,0.28);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-18);
}
.btn-outline:hover {
  border-color: var(--ink);
  text-decoration: none;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-60);
  border: 1px solid var(--ink-10);
}
.btn-ghost:hover {
  border-color: var(--ink-18);
  color: var(--ink);
  text-decoration: none;
}

.btn-submit { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 72px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-10);
}

h1.hero-h1 {
  font-size: clamp(44px, 12vw, 72px);
  margin-bottom: 24px;
  line-height: 1.05;
}

h1.hero-h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-60);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* Stats bar */
.stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  background: var(--warm);
  overflow: hidden;
  max-width: 560px;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  text-align: center;
  gap: 4px;
}

.stat-val {
  font-family: var(--ff-serif);
  font-size: clamp(15px, 3.8vw, 20px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

.stat-label {
  font-size: 11px;
  color: var(--ink-40);
  line-height: 1.3;
}

.stat-div { width: 1px; background: var(--ink-10); align-self: stretch; flex-shrink: 0; }

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-section {
  background: var(--warm);
  border-bottom: 1px solid var(--ink-10);
}

.quiz-section h2 { margin-bottom: 32px; }

.quiz-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  box-shadow: 0 2px 24px rgba(51,44,44,0.05);
}

/* Progress */
.quiz-bar {
  height: 2px;
  background: var(--ink-10);
  border-radius: 1px;
  margin-bottom: 10px;
  overflow: hidden;
}

.quiz-bar-fill {
  height: 100%;
  width: 33.33%;
  background: var(--red);
  border-radius: 1px;
  transition: width 0.4s var(--ease);
}

.quiz-label {
  font-size: 12px;
  color: var(--ink-40);
  margin-bottom: 24px;
}

/* Steps */
.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-q {
  font-size: clamp(22px, 5vw, 28px);
  margin-bottom: 10px;
  line-height: 1.2;
}

.quiz-hint {
  font-size: 14px;
  color: var(--ink-40);
  margin-bottom: 22px;
  line-height: 1.55;
}

.quiz-opts { display: flex; flex-direction: column; gap: 10px; }

.quiz-opt {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  background: var(--warm);
  border: 1px solid var(--ink-10);
  border-left: 3px solid transparent;
  border-radius: var(--r);
  font-family: var(--ff-sans);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease),
              padding-left 0.15s var(--ease), color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.quiz-opt:hover {
  border-left-color: var(--red);
  background: var(--red-soft);
  padding-left: 24px;
  color: var(--ink);
}

.quiz-opt:active {
  background: var(--red);
  color: var(--white);
  border-left-color: var(--red-dark);
}

/* Quiz results */
.quiz-result { display: none; text-align: center; padding-top: 8px; }
.quiz-result.active { display: block; }

.res-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
  font-weight: 500;
  font-family: var(--ff-sans);
}

.res-ok   { background: #e8f5ee; color: #2a6844; }
.res-warn { background: var(--warm-deep); color: var(--ink-60); border: 1px solid var(--ink-10); }
.res-no   { background: var(--red-soft); color: var(--red-dark); }

.quiz-result h3 { font-size: clamp(20px, 4vw, 24px); margin-bottom: 10px; }
.quiz-result p  { font-size: 15px; margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ============================================================
   PODMÍNKY
   ============================================================ */
.podminky { background: var(--white); border-bottom: 1px solid var(--ink-10); }
.podminky h2 { margin-bottom: 36px; }

.podminky-grid {
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.podminka {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--ink-10);
  transition: background 0.15s var(--ease);
}
.podminka:last-child { border-bottom: none; }
.podminka:hover { background: var(--warm); }

.podminka-val {
  font-family: var(--ff-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.podminka-label { font-size: 14px; color: var(--ink-60); line-height: 1.5; }

/* ============================================================
   PROČ MY
   ============================================================ */
.proc-my { background: var(--warm); border-bottom: 1px solid var(--ink-10); }
.proc-my h2 { margin-bottom: 36px; }

.duvody { border-top: 1px solid var(--ink-18); }

.duvod {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-10);
}
.duvod:last-child { border-bottom: none; }

.duvod-num {
  font-family: var(--ff-serif);
  font-size: 14px;
  color: var(--red);
  min-width: 28px;
  padding-top: 3px;
  flex-shrink: 0;
}

.duvod h3 { font-size: 18px; margin-bottom: 8px; }
.duvod p  { font-size: 15px; }

/* ============================================================
   PŘÍBĚHY
   ============================================================ */
.pribehy { background: var(--white); border-bottom: 1px solid var(--ink-10); }
.pribehy h2 { margin-bottom: 32px; }

.pribehy-grid { display: flex; flex-direction: column; gap: 16px; }

.pribeh {
  padding: 28px 24px;
  background: var(--warm);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.pribeh:hover {
  border-color: var(--ink-18);
  box-shadow: 0 4px 24px rgba(51,44,44,0.06);
}

.pribeh-meta { margin-bottom: 18px; }
.pribeh-jmeno { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.pribeh-popis { display: block; font-size: 13px; color: var(--ink-40); margin-top: 2px; }

.pribeh blockquote {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--red);
  padding-left: 18px;
  margin-bottom: 16px;
}

.pribeh-detail { font-size: 12px; color: var(--ink-40); letter-spacing: 0.02em; }

/* ============================================================
   FORMULÁŘ
   ============================================================ */
.formular-section { background: var(--warm); border-bottom: 1px solid var(--ink-10); }
.formular-section h2 { margin-bottom: 8px; }
.form-sub { font-size: 16px; margin-bottom: 40px; }

.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
}

.req { color: var(--red); }

/* font-size 16px prevents iOS zoom */
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--ink-18);
  border-radius: var(--r);
  font-family: var(--ff-sans);
  font-size: 16px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-field input::placeholder { color: var(--ink-40); }

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217,41,56,0.10);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 4.5L11 1' stroke='%239c9090' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.field-hint { font-size: 12px; color: var(--ink-40); }

/* Radio */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-sm    { flex-direction: row; gap: 10px; }

.radio-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--ink-18);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.radio-opt:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
}

.radio-opt input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.radio-sm .radio-opt { flex: 1; justify-content: center; }

/* Form states */
.form-error {
  display: none;
  padding: 14px 18px;
  background: var(--red-soft);
  border: 1px solid rgba(217,41,56,0.2);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--red-dark);
  line-height: 1.5;
}
.form-error.visible { display: block; }

.form-submit { display: flex; flex-direction: column; gap: 12px; }

.form-gdpr { font-size: 12px; color: var(--ink-40); line-height: 1.5; }
.form-gdpr a { color: var(--ink-40); text-decoration: underline; }

.form-success {
  display: none;
  padding: 32px 24px;
  background: #e8f5ee;
  border-radius: var(--r-lg);
  text-align: center;
  color: #2a6844;
}
.form-success.visible { display: block; }
.success-ico { font-size: 28px; margin-bottom: 12px; }
.form-success h3 { font-size: 22px; color: #2a6844; margin-bottom: 6px; }
.form-success p  { color: #2a6844; opacity: 0.75; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* Invert logo colors in footer - the SVG uses #d92938 which stays red, and #332c2c which we need to lighten */
.footer-logo {
  height: 24px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  /* Invert dark parts to white, keep red */
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

.footer-contact { display: flex; flex-direction: column; gap: 10px; }

.footer-contact a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.footer-contact a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: underline; }

/* ============================================================
   DESKTOP — 768px+
   ============================================================ */
@media (min-width: 768px) {
  section { padding: 100px 0; }

  .nav { padding: 0 40px; }

  /* Hero */
  .hero { padding: 100px 0 96px; }
  .stats { max-width: 580px; }
  .stat-val { font-size: 20px; }
  .hero-ctas { flex-direction: row; gap: 14px; }

  /* Quiz */
  .quiz-card { padding: 44px 40px; }
  .quiz-opts { max-width: 520px; }

  /* Podmínky 2 col */
  .podminky-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .podminka { border-right: 1px solid var(--ink-10); }
  .podminka:nth-child(2n) { border-right: none; }
  .podminka:nth-last-child(-n+2) { border-bottom: none; }

  /* Příběhy side by side */
  .pribehy-grid { flex-direction: row; }
  .pribeh { flex: 1; }

  /* Form */
  .form-row { flex-direction: row; }
  .form-row .form-field { flex: 1; }

  .radio-group { flex-direction: row; }
  .radio-group .radio-opt { flex: 1; }

  .btn-submit { width: auto; min-width: 240px; align-self: flex-start; }

  /* Footer */
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============================================================
   VOP MODAL
   ============================================================ */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 22, 0.55);
  z-index: 900;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalSlideUp 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }
  .modal-box {
    border-radius: var(--r-lg);
    max-height: 82vh;
    animation: modalFadeIn 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  @keyframes modalFadeIn {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ink-18);
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--warm);
  border-color: var(--ink-40);
}

.modal-close:active {
  transform: scale(0.93);
}

.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 48px 24px 36px;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .modal-body { padding: 52px 40px 40px; }
}

.modal-body h2 {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
  padding-right: 32px;
}

.modal-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-60);
  margin-bottom: 12px;
}

.modal-body strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-top: 20px;
  margin-bottom: 4px;
  font-size: 15px;
}

.modal-body a {
  color: var(--red);
  text-decoration: underline;
}
