/* ===========================================================
   Klidné Tělo — styles.css
   Premium calm wellness design — pure CSS
   =========================================================== */

/* Ensure native [hidden] always wins over display rules */
[hidden] { display: none !important; }

:root {
  /* Color system: 1 brand (sage green) + neutrals + 1 accent (warm clay) */
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #efeee7;
  --ink: #2c322c;
  --ink-soft: #5c6259;
  --muted: #8a8f84;
  --brand: #6f8466;        /* calm sage */
  --brand-dark: #586b50;
  --brand-soft: #e6ece1;
  --accent: #c08a64;       /* warm clay */
  --accent-soft: #f1e4d8;
  --border: #e3e1d8;
  --shadow: 0 1px 2px rgba(44, 50, 44, 0.04), 0 8px 24px rgba(44, 50, 44, 0.06);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; color: var(--ink); }

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

.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; z-index: 1000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s ease; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-dark); margin-bottom: 14px;
}

.section { padding: 84px 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .editorial-text h2, .usage-text h2, .trust-text h2, .contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand), var(--brand-dark));
  box-shadow: inset 0 0 0 3px var(--brand-soft);
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--brand-dark); text-decoration: none; }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.mobile-nav ul { list-style: none; padding: 12px 20px 20px; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 14px 4px; color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.85rem; color: var(--muted); }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 9/10; }

/* ---------- Disclaimer ---------- */
.disclaimer { padding: 0 0 10px; }
.disclaimer-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid #e8d4c2;
  border-radius: var(--radius); padding: 22px 26px;
}
.disclaimer-box p { color: #6b5340; font-size: 0.96rem; }
.disclaimer-icon {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-style: italic;
}

/* ---------- Editorial ---------- */
.editorial { background: var(--surface); }
.editorial-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.editorial-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 7/8; }
.editorial-text p { color: var(--ink-soft); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23586b50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Product ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 13/14; }
.product-info { display: grid; gap: 22px; }
.product-point { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.product-point h3 { font-size: 1.2rem; margin-bottom: 6px; }
.product-point p { color: var(--ink-soft); font-size: 0.98rem; }
.product-info .btn { justify-self: start; margin-top: 4px; }

/* ---------- Feature cards ---------- */
.features { background: var(--brand-soft); }
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.feature-card.accent { background: var(--ink); }
.feature-card.accent h3, .feature-card.accent p { color: #f1f0e9; }
.feature-card.accent .feature-num { color: var(--accent); }
.feature-num { font-family: var(--font-head); font-size: 1.6rem; color: var(--brand); display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Usage ---------- */
.usage { background: var(--surface); }
.usage-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.usage-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 14/15; position: sticky; top: 90px; }
.steps { list-style: none; display: grid; gap: 16px; margin: 24px 0 32px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); font-size: 1.02rem; }
.steps li span {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem;
}
.caution { background: var(--surface-soft); border-radius: var(--radius); padding: 24px 26px; border-left: 4px solid var(--accent); }
.caution h3 { font-size: 1.15rem; margin-bottom: 12px; }
.caution ul { list-style: none; display: grid; gap: 10px; }
.caution li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 0.95rem; }
.caution li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* ---------- Tips ---------- */
.tips-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.tips-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.tips-deco { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; opacity: 0.9; flex-shrink: 0; }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tip h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tip p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Trust ---------- */
.trust { background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.trust-text p { color: var(--ink-soft); }
.trust-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trust-card { background: var(--surface-soft); border-radius: var(--radius); padding: 22px; }
.trust-card strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; color: var(--ink); }
.trust-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--brand-soft); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-details { list-style: none; display: grid; gap: 14px; }
.contact-details li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 0.98rem; }
.contact-details li span:first-child { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.contact-form { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--bg); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.checkbox-field { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.checkbox-field input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.checkbox-field label { font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); }
.error { color: #b4513a; font-size: 0.82rem; min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: #c66; }
.form-success { background: var(--brand-soft); color: var(--brand-dark); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-note { font-size: 0.82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7d9d2; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-name { color: #fff; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand > span:first-child + .brand-name { }
.footer-brand .brand-mark { display: inline-block; }
.footer-brand p { color: #9ea29a; font-size: 0.92rem; margin-top: 4px; }
.footer-nav h3, .footer-contact h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a { color: #b8bbb3; font-size: 0.93rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { color: #9ea29a; font-size: 0.92rem; line-height: 1.7; }
.footer-bottom { padding-top: 24px; display: grid; gap: 14px; }
.footer-disclaimer { font-size: 0.82rem; color: #8b8f87; max-width: 760px; }
.copyright { font-size: 0.85rem; color: #767a72; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(44,50,44,0.18); max-width: 880px; margin: 0 auto;
}
.cookie-banner-inner { display: flex; align-items: center; gap: 24px; padding: 22px 26px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1 1 340px; }
.cookie-banner-text h2 { font-size: 1.15rem; margin-bottom: 6px; }
.cookie-banner-text p { font-size: 0.9rem; color: var(--ink-soft); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cookie modal ---------- */
.cookie-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal-overlay { position: absolute; inset: 0; background: rgba(44,50,44,0.5); }
.cookie-modal-box {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 30px;
  max-width: 540px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cookie-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cookie-modal-head h2 { font-size: 1.5rem; }
.modal-close { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.modal-close:hover { color: var(--ink); }
.cookie-modal-intro { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.cookie-category { padding: 16px 0; border-top: 1px solid var(--border); }
.cookie-category-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cookie-category-head strong { font-family: var(--font-head); font-size: 1.1rem; }
.cookie-category p { font-size: 0.9rem; color: var(--ink-soft); }
.toggle-fixed { font-size: 0.82rem; color: var(--brand-dark); font-weight: 600; background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }
.cookie-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

/* Switch */
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { width: 46px; height: 26px; background: var(--border); border-radius: 999px; transition: 0.2s; position: relative; }
.slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 60px 0 80px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal-page h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal-page p, .legal-page li { color: var(--ink-soft); margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 12px; }
.legal-page li { margin-bottom: 8px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-weight: 500; }
.legal-note { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; color: #6b5340; font-size: 0.95rem; margin: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .editorial-grid, .product-grid, .usage-grid, .trust-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .editorial-media { order: -1; }
  .usage-media img { position: static; }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .tips-deco { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .feature-cards, .tips-grid, .trust-cards, .footer-inner { grid-template-columns: 1fr; }
  .contact-details li { grid-template-columns: 1fr; gap: 2px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
