/* ==========================================================================
   Barbora Karásková — one page (elegantní minimalismus: grafit + zlatá)
   ========================================================================== */

:root {
  --ink: #141414;
  --ink-soft: #211f1c;
  --ink-line: rgba(247, 245, 241, 0.14);

  --paper: #f7f5f1;
  --paper-alt: #edeae2;

  --gold: #c9a15d;
  --gold-soft: #e3c793;
  --gold-deep: #9c7a3f;

  --text-on-dark: #f3efe7;
  --text-on-dark-muted: #cfc7b8;
  --text-on-light: #201d18;
  --text-on-light-muted: #6b6459;

  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--text-on-light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a { color: inherit; }

.overline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

section[data-theme="dark"] .overline { color: var(--gold-soft); }

h1, h2, h3 { font-weight: 300; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-head p { color: var(--text-on-light-muted); font-size: 1.05rem; }

section[data-theme="dark"] .section-head p { color: var(--text-on-dark-muted); }

/* --------------------------- Scroll progress bar -------------------------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* --------------------------------- Navigace -------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 26px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-nav.is-scrolled {
  padding: 14px 0;
  background: rgba(20, 20, 20, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-on-dark);
}

.nav-links a.is-active::after,
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-soft) !important;
  padding: 9px 22px !important;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-on-dark);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.mobile-menu a:hover { color: var(--gold); }

body.menu-open { overflow: hidden; }

/* ---------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }

.btn--gold {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--gold:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.btn--block { width: 100%; justify-content: center; }

/* ----------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: -60px 0 0 0;
  z-index: 0;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: calc(100% + 60px);
  object-fit: cover;
  opacity: 0.42;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.75) 60%, var(--ink) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 80px;
}

.hero h1 {
  color: var(--text-on-dark);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero .btn { border-color: rgba(243,239,231,0.5); color: var(--text-on-dark); }
.hero .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.55); opacity: 1; }
}

/* -------------------------------- Reveal utils ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--fade { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none !important; }
  .scroll-cue .line { animation: none; }
}

/* ------------------------------------ Sekce ---------------------------------- */
section { padding: 130px 0; position: relative; }
section[id] { scroll-margin-top: 88px; }

section[data-theme="dark"] {
  background: var(--ink);
  color: var(--text-on-dark);
}

section[data-theme="light"] { background: var(--paper); }
section[data-theme="alt"] { background: var(--paper-alt); }

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 90px;
}

/* --------------------------------- O mně sekce -------------------------------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(15%);
}

.about-img::before {
  content: "";
  position: absolute;
  top: -20px; left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
}

.about-text p { margin-bottom: 20px; color: var(--text-on-light-muted); font-size: 1.05rem; }

.about-stats {
  display: flex;
  gap: 46px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #ddd7ca;
  flex-wrap: wrap;
}

.about-stats .stat strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
  font-weight: 700;
}

.about-stats .stat span { color: var(--text-on-light-muted); font-size: 0.92rem; }

/* -------------------------------- Služby (zig-zag) ---------------------------- */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 70px 0;
}

.service:not(:last-child) { border-bottom: 1px solid var(--ink-line); }

section[data-theme="light"] .service:not(:last-child),
section[data-theme="alt"] .service:not(:last-child) { border-bottom: 1px solid #ddd7ca; }

.service--reverse .service-media { order: 2; }
.service--reverse .service-copy { order: 1; }

.service-media { position: relative; }

.service-num {
  position: absolute;
  top: -46px; left: -10px;
  font-size: 6.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
  z-index: -1;
  user-select: none;
}

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 300;
  margin-bottom: 16px;
}

.service-copy p { color: var(--text-on-light-muted); margin-bottom: 14px; }
section[data-theme="dark"] .service-copy p { color: var(--text-on-dark-muted); }

.service-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 26px;
}

.service-price strong {
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--gold-deep);
  white-space: nowrap;
}

section[data-theme="dark"] .service-price strong { color: var(--gold); }

.service-price span { color: var(--text-on-light-muted); font-size: 0.9rem; }
section[data-theme="dark"] .service-price span { color: var(--text-on-dark-muted); }

.plan-tiers {
  display: flex;
  gap: 24px;
  margin: 22px 0 26px;
  flex-wrap: wrap;
}

.plan-tiers .tier {
  border: 1px solid var(--ink-line);
  padding: 18px 22px;
  flex: 1;
  min-width: 180px;
}

.plan-tiers .tier strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 4px;
  white-space: nowrap;
}

.plan-tiers .tier span { font-size: 0.85rem; color: var(--text-on-dark-muted); }

/* ---------------------------------- Ebook sekce -------------------------------- */
.ebook-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.ebook-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius, 4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.ebook-copy p { color: var(--text-on-dark-muted); margin-bottom: 18px; font-size: 1.05rem; }

/* ---------------------------------- Kontakt ------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.contact-info p { color: var(--text-on-light-muted); margin-bottom: 26px; }

.contact-detail { margin-bottom: 18px; }
.contact-detail strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.contact-detail a,
.contact-detail span {
  font-size: 1rem;
  color: var(--text-on-light-muted);
}
.contact-detail a { text-decoration: none; }
.contact-detail a:hover { color: var(--gold-deep); }

.contact-map {
  width: 100%;
  max-width: 340px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--ink-line, rgba(0,0,0,0.12));
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.3s ease;
}
.contact-map iframe:hover { filter: grayscale(0.2) contrast(1.05); }
.contact-map a {
  display: block;
  padding: 10px 14px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-light-muted);
  border-top: 1px solid var(--ink-line, rgba(0,0,0,0.12));
}
.contact-map a:hover { color: var(--gold-deep); }

.contact-form {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 46px;
}

.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 22px;
  background: transparent;
  border: 1px solid rgba(243,239,231,0.25);
  color: var(--text-on-dark);
  font: inherit;
  font-size: 1rem;
  border-radius: 2px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(243,239,231,0.35); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

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

.form-status {
  font-size: 0.85rem;
  margin-top: 14px;
  margin-bottom: 0;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--gold-soft); }
.form-status.is-error { color: #d98a7b; }

/* ----------------------------------- Patička ------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding: 46px 0;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--ink-line);
}

.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.site-footer p + p { margin-top: 8px; }

/* ------------------------------- Sociální sítě ------------------------------ */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(243, 239, 231, 0.25);
  color: var(--text-on-dark-muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 161, 93, 0.1);
  transform: translateY(-2px);
}

.social-links--footer {
  justify-content: center;
  margin-top: 20px;
}

.social-links--menu {
  margin-top: 6px;
}

.social-links--contact {
  margin-top: 26px;
}

.social-links--contact .social-link {
  border-color: #ddd7ca;
  color: var(--text-on-light-muted);
}

.social-links--contact .social-link:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: rgba(156, 122, 63, 0.08);
}

/* ------------------------------------ Responzivita -------------------------------- */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; margin: 0 auto; }
  .ebook-wrap { grid-template-columns: 1fr; text-align: center; }
  .ebook-cover { max-width: 320px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .service, .service--reverse .service-media, .service--reverse .service-copy {
    order: initial;
  }
  .service {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 46px 0;
  }
  .service-num { top: -34px; font-size: 4.5rem; }
  section { padding: 90px 0; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .scroll-cue { display: none; }
  .plan-tiers { flex-direction: column; }
  .contact-form { padding: 30px 22px; }
  .about-stats { gap: 28px; }
  .divider { margin-bottom: 60px; }
}
