/* ==========================================================================
   Pinktober.cz – styly (mobile-first)
   Podle grafického manuálu „Pinktober – Srdce“ (srdce ze stužky, Z lásky k sobě).
   ========================================================================== */

:root {
  /* Barvy z manuálu */
  --magenta: #E6007E;       /* hlavní barva: logo, velké plochy. Text na ní jen krémový od 24 px */
  --fuchsia-deep: #B0005E;  /* odkazy, tlačítka, růžový text na cream */
  --blush: #FFD6E8;         /* měkké plochy sekcí a karet, text plum */
  --cream: #FFF7F2;         /* pozadí stránky */
  --plum: #3A0F2B;          /* hlavní text, tmavé plochy s čísly */
  --plum-soft: #653352;     /* popisky a vedlejší text – ztmaveno z #7A4A66 kvůli čitelnosti (≥ 7:1 na cream, white i blush) */
  --line: #F2C9DB;          /* tenké oddělovače, okraje karet */
  --fuchsia-on-blush: #8F004C; /* odkazy na ploše blush (7:1) */
  --magenta-on-dark: #FF6BB3;  /* růžová na tmavé ploše plum (6,2:1) */
  --plum-soft-on-dark: #D9AFC4;
  --line-on-dark: #5A2448;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --space-2: 8px;
  --space-4: 16px;
  --space-8: 32px;
  --space-16: 64px;

  --gutter: 20px;
  --max: 1160px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17 px */
  line-height: 1.6;
  color: var(--plum);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: 0;
  /* optická velikost automaticky podle velikosti písma = silnější vlasové tahy */
}
h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
h3 { font-size: 1.45rem; font-weight: 500; }
p { margin: 0 0 1em; }

a { color: var(--fuchsia-deep); text-underline-offset: 3px; }
a:hover { color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--fuchsia-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--plum);
  color: var(--cream);
  border-radius: 10px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.noscript {
  margin: 0;
  padding: 16px var(--gutter);
  background: var(--blush);
  text-align: center;
}

.muted { color: var(--plum-soft); font-size: .95rem; }

/* ---------- Značka: srdce ze stužky ---------- */
.mark path {
  fill: none;
  stroke: var(--magenta);
  stroke-width: 6;           /* stroke-ribbon: 6 px při výšce značky 108 */
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 14px 28px;
  border: 1.5px solid var(--fuchsia-deep);
  border-radius: var(--radius-pill);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--fuchsia-deep); color: var(--cream); }
.btn-primary:hover { background: var(--plum); border-color: var(--plum); color: var(--cream); }

.btn-ghost { background: transparent; color: var(--fuchsia-deep); }
.btn-ghost:hover { background: var(--fuchsia-deep); color: var(--cream); }

.btn-light { background: var(--cream); color: var(--fuchsia-deep); border-color: var(--cream); }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--plum); }
.btn-light:focus-visible { outline-color: var(--cream); }

.btn-small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

.text-link {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.text-link::after { content: " →"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 242, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

/* Logo s nápisem: výška malých písmen ≈ 40 % výšky značky, mezera = šířka smyčky */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--plum);
  text-decoration: none;
  font-variation-settings: "opsz" 144;
}
.brand:hover { color: var(--plum); }
.brand:hover .mark path { stroke: var(--fuchsia-deep); }
.brand-mark { width: 27px; height: 36px; }
.brand-mark path { stroke-width: 8; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--blush);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 12px var(--gutter) 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-nav.is-open { display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: 12px 4px;
  color: var(--plum);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-list a:hover { color: var(--fuchsia-deep); }
.site-nav .btn { align-self: flex-start; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav-list { display: flex; gap: 24px; }
  .nav-list a { padding: 6px 0; border: 0; font-size: .97rem; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--blush); }
.section-dark { background: var(--plum); color: var(--cream); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-intro { color: var(--plum-soft); font-size: 1.1rem; margin: 0; }
.section-tint .section-intro { color: var(--plum); }
.section-dark .section-intro { color: var(--plum-soft-on-dark); }

/* Štítek (label): verzálky s prostrkáním */
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--blush);
  color: var(--plum);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-tint .eyebrow { background: var(--cream); }
.section-dark .eyebrow { background: var(--line-on-dark); color: var(--cream); }

@media (min-width: 768px) {
  .section { padding: 104px 0; }
  .section-head { margin-bottom: 56px; }
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--magenta); }
.section:not(.section-tint) .card { background: #FFFFFF; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--plum-soft); margin: 0; }
.card p + p, .card .tags, .card .text-link { margin-top: 14px; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--blush);
  color: var(--fuchsia-deep);
}
.icon svg,
.warning svg,
.reminder-icon svg,
.social svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon svg { width: 30px; height: 30px; }
.icon svg.icon-mark { width: 26px; height: 34px; }
.icon svg.icon-mark path { stroke-width: 7; stroke: var(--plum); } /* magenta na blush manuál nepovoluje */
.icon svg .fill, .reminder-icon svg .fill { fill: currentColor; stroke: none; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--blush);
  color: var(--plum);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .02em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
  background: var(--cream);
}
.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
.hero-text { order: 2; text-align: center; }
.hero-visual { --disc: min(60vw, 380px); order: 1; position: relative; display: flex; justify-content: center; align-items: center; min-height: var(--disc); }
.hero-title { font-size: clamp(2.6rem, 10vw, 4.5rem); line-height: 1.04; margin-bottom: .4em; }
.hero-title > span { display: block; }
.hero-title .highlight { font-style: italic; color: var(--fuchsia-deep); }
.lead { font-size: 1.1875rem; line-height: 1.58; color: var(--plum-soft); max-width: 540px; margin: 0 auto 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 112px; }
  .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .hero-text { order: 1; text-align: left; }
  .hero-visual { order: 2; }
  .lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
}

/* Inverzní varianta: krémová značka na plné ploše magenta (žádné přechody) */
.hero-disc {
  position: absolute;
  width: var(--disc);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--magenta);
}
.hero-mark {
  position: relative;
  width: calc(var(--disc) * .45);
  height: auto;
  overflow: visible;
  animation: float 6s ease-in-out 2.2s infinite;
}
.hero-mark path { stroke: var(--cream); }
.hero-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2s cubic-bezier(.65, 0, .35, 1) .2s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Stats (tmavá plocha plum pro čísla a fakta) ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.stat {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-on-dark);
  text-align: center;
}
.stat-value {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  line-height: 1;
  color: var(--magenta-on-dark);
  font-variant-numeric: tabular-nums;
  
}
.stat-label { margin: 0; color: var(--cream); }
.stat-source {
  margin: 14px 0 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum-soft-on-dark);
}
.stat-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--magenta-on-dark);
  color: var(--plum-soft-on-dark);
  font-size: .78rem;
  font-weight: 500;
}

/* ---------- Prevention steps ---------- */
.steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--line);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--fuchsia-deep);
}
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; color: var(--plum-soft); font-size: .98rem; }

.prevention-info { margin-bottom: 24px; }
.info-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--blush);
}
.info-card p { color: var(--plum); }
.info-card a, .section-tint .section-head a { color: var(--fuchsia-on-blush); }
.info-card .muted { color: var(--plum); opacity: 1; }

.warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--plum);
  color: var(--cream);
}
.warning svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--magenta-on-dark); }
.warning strong { font-weight: 500; }

/* ---------- Reminder ---------- */
.reminder {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--fuchsia-deep);
  color: var(--cream);
}
.reminder > * { position: relative; }
.reminder h2 { color: var(--cream); }
.reminder p { color: var(--cream); max-width: 560px; }
.reminder .eyebrow { background: var(--blush); color: var(--plum); }
.reminder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: var(--cream);
  color: var(--fuchsia-deep);
}
.reminder-icon svg { width: 46px; height: 46px; }
.reminder .btn { margin-top: 8px; }
.reminder-status { min-height: 1.6em; margin: 14px 0 0; font-weight: 500; }
.reminder-privacy { margin: 4px 0 0; font-size: .88rem; }

/* Linka stužky jako ornament: vychází z okraje, udělá smyčku srdce a odchází */
.reminder-ornament {
  display: none;
  position: absolute;
  right: -10px;
  top: 0;
  width: 260px;
  height: auto;
  pointer-events: none;
}
.reminder-ornament path { stroke: var(--magenta); stroke-width: 3; }

@media (min-width: 768px) {
  .reminder { grid-template-columns: auto 1fr; gap: 40px; padding: 56px; align-items: center; }
  .reminder-icon { width: 120px; height: 120px; }
  .reminder-icon svg { width: 60px; height: 60px; }
  .reminder-ornament { display: block; width: 340px; }
}

/* ---------- Organizations ---------- */
.org {
  display: flex;
  flex-direction: column;
}
.org-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1.5px dashed var(--fuchsia-deep);
  color: var(--fuchsia-deep);
  font-size: .85rem;
  font-weight: 500;
}
.org h3 { font-size: 1.2rem; }
.org .text-link { margin-top: auto; padding-top: 14px; border: 0; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 32px;
  background: var(--plum);
  color: var(--cream);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.brand-footer, .brand-footer:hover { color: var(--cream); }
.brand-footer .mark path { stroke: var(--magenta-on-dark); }
.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream);
}
.footer-title {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum-soft-on-dark);
}
.footer-link, .site-footer a { color: var(--cream); }
.footer-link:hover, .site-footer a:hover { color: var(--magenta-on-dark); }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--line-on-dark);
  transition: background-color .2s;
}
.social a:hover { background: var(--fuchsia-deep); color: var(--cream); }
.social svg { width: 22px; height: 22px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: .88rem;
  color: var(--plum-soft-on-dark);
}
.footer-bottom p { margin: 0 0 8px; }

/* ---------- Scroll reveal (třídu .js přidává JavaScript) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.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;
}

/* ---------- Omezení animací ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero-mark path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
