/* ===========================
   PALACKÝ — EDICE WEB
   Design: Dark green & gold,
   editorial / classical luxury
   =========================== */

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

:root {
  --green-deep: #1E2A22;
  --green-dark: #162019;
  --green-mid: #2a3a2e;
  --green-light: #3d5240;
  --gold: #A68A3A;
  --gold-light: #c8a84b;
  --gold-pale: #e8d5a0;
  --cream: #F3EDE2;
  --cream-dark: #e8dfd0;
  --text-dark: #111111;
  --text-mid: #3a3228;
  --text-light: #f0e8d8;
  --text-pale: #b8a880;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'EB Garamond', 'Georgia', serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 7rem;

  --radius: 2px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--green-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-tree {
  width: 24px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--gold);
  padding: 0.5rem 1.4rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
  background: var(--gold-light);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(166,138,58,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(30,42,34,0.9) 0%, transparent 50%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.ornament { color: var(--gold); }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
}

.hero-edition {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-title-main {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-title-sub {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-pale);
  margin-top: 0.3rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.divider-fleur {
  color: var(--gold);
  font-size: 1rem;
}

.hero-book {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gold-pale);
  margin-bottom: 0.3rem;
}

.hero-chapter {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.hero-author {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-pale);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.btn-primary {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green-deep);
  background: var(--gold);
  padding: 0.9rem 2.4rem;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-pale);
  border: 1px solid rgba(166,138,58,0.4);
  padding: 0.9rem 2.4rem;
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Book mockup */
.hero-book-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-mockup {
  position: relative;
}

.book-front {
  width: 100%;
  max-width: 360px;
  display: block;
  filter: drop-shadow(-20px 20px 60px rgba(0,0,0,0.7));
  transform: perspective(800px) rotateY(-8deg);
  transition: transform 0.5s ease;
}

.book-front:hover {
  transform: perspective(800px) rotateY(-2deg);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  z-index: 2;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== QUOTE BAND ===== */
.quote-band {
  background: var(--gold);
  padding: 2.5rem;
  text-align: center;
}

.quote-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.quote-mark {
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(0,0,0,0.1);
  line-height: 1;
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.quote-band cite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  font-style: normal;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--spacing-xl) 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header.light .section-title { color: var(--cream); }
.section-header.light .section-subtitle { color: var(--text-pale); }

.section-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 1rem;
}

.section-ornament.gold { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-mid);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle.light { color: var(--text-pale); }

.dark-section {
  background: var(--green-deep);
  color: var(--cream);
}

.dark-section .section-title { color: var(--cream); }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: start;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.85;
}

.about-text em { color: var(--green-deep); }

.image-frame {
  position: relative;
  border: 1px solid rgba(166,138,58,0.3);
  padding: 1rem;
  background: var(--cream-dark);
}

.image-frame img {
  width: 100%;
  display: block;
}

.image-caption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.image-caption span { color: var(--gold); }

/* ===== CONTENTS ===== */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.content-item {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(166,138,58,0.15);
  background: rgba(255,255,255,0.03);
  transition: background var(--transition);
}

.content-item:hover {
  background: rgba(166,138,58,0.06);
}

.content-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.content-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.content-item p {
  font-size: 0.95rem;
  color: var(--text-pale);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== EDITION ===== */
.edition-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 5rem;
  align-items: center;
}

.edition-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.edition-text .section-ornament {
  text-align: left;
}

.edition-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
}

.edition-values {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.edition-value {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(166,138,58,0.2);
}

.edition-value:last-child { border-bottom: none; }

.value-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 90px;
}

.value-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-mid);
}

.edition-info-img {
  width: 100%;
  display: block;
  border: 1px solid rgba(166,138,58,0.2);
}

/* ===== AUDIENCE ===== */
.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 800px;
  margin: 0 auto;
}

.audience-item {
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-pale);
  border: 1px solid rgba(166,138,58,0.12);
  position: relative;
  transition: background var(--transition);
}

.audience-item::before {
  content: '✦';
  color: var(--gold);
  margin-right: 0.8rem;
  font-size: 0.7rem;
  vertical-align: middle;
}

.audience-item:hover {
  background: rgba(166,138,58,0.06);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid rgba(166,138,58,0.2);
  min-height: 320px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

/* foto-ruka: vysoká, levý sloupec přes 2 řádky */
.gallery-main {
  grid-row: 1 / 3;
  grid-column: 1;
  min-height: 640px;
}

/* foto-uvnitr: celá šíře pravého sloupce dole */
.gallery-wide {
  grid-column: 2;
  grid-row: 2;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(22,32,25,0.85);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  text-align: center;
}

.gallery-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-style: italic;
}

/* ===== SPECS ===== */
.specs-inner {
  max-width: 700px;
  margin: 0 auto;
}

.specs-inner .section-header { margin-bottom: 2.5rem; }

.specs-table {
  border: 1px solid rgba(166,138,58,0.2);
}

.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid rgba(166,138,58,0.12);
}

.spec-row:last-child { border-bottom: none; }

.spec-key {
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(166,138,58,0.05);
  border-right: 1px solid rgba(166,138,58,0.12);
}

.spec-val {
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
}

/* ===== ORDER FORM ===== */
.order-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 5rem;
  align-items: start;
}

.order-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-pale);
  margin-bottom: 1.5rem;
}

.order-benefits {
  list-style: none;
  margin-bottom: 2.5rem;
}

.order-benefits li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(166,138,58,0.12);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-pale);
}

.order-benefits li::before {
  content: '✦';
  color: var(--gold);
  margin-right: 0.8rem;
  font-size: 0.65rem;
}

.order-quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

.order-quote p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-pale);
  margin-bottom: 0.5rem;
}

.order-quote cite {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: normal;
}

/* Form */
.order-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(166,138,58,0.2);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(166,138,58,0.25);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  border-radius: var(--radius);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240,232,216,0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A68A3A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--green-deep);
  color: var(--cream);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-check label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-pale);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit:hover { background: var(--gold-light); }

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(166,138,58,0.15);
  border: 1px solid var(--gold);
  text-align: center;
}

.form-success.visible { display: flex; gap: 1rem; align-items: center; }

.success-icon {
  font-size: 1.5rem;
  color: var(--gold);
}

.form-success p {
  color: var(--gold-pale);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.form-error {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(180,50,50,0.15);
  border: 1px solid rgba(180,50,50,0.4);
}

.form-error.visible { display: block; }
.form-error p { color: #d4957a; font-size: 0.9rem; margin-bottom: 0; }

/* ===== FINAL QUOTE ===== */
.final-quote {
  background: var(--green-deep);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(166,138,58,0.06) 0%, transparent 70%);
}

.fq-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.fq-tree {
  width: 64px;
  height: 76px;
  color: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.fq-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.fq-cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  font-style: normal;
}

.fq-edition {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-pale);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(166,138,58,0.15);
}

.footer-inner p {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-pale);
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-style: italic;
  opacity: 0.7;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-book-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .edition-inner { grid-template-columns: 1fr; }
  .order-inner { grid-template-columns: 1fr; }
  .contents-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-main { grid-row: auto; grid-column: auto; }
  .gallery-wide { grid-column: auto; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .nav-brand span { display: none; }
  .contents-grid { grid-template-columns: 1fr; }
  .audience-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .order-form { padding: 1.5rem; }
  .spec-row { grid-template-columns: 120px 1fr; }
}

/* ===== PRICE ===== */
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.hero-price-note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-pale);
  font-style: italic;
}

.order-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(166,138,58,0.35);
  background: rgba(166,138,58,0.07);
  margin-bottom: 2rem;
}

.order-price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.order-price-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-pale);
}
