/* ===========================
   Creperie — Café Français
   Editorial luxury theme (AP-inspired)
   =========================== */

@font-face {
  font-family: 'Tiempos Headline';
  src: url('../fonts/TiemposHeadline-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tiempos Headline';
  src: url('../fonts/TiemposHeadline-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #14171a;
  --ink-soft: #55584f;
  --paper: #ffffff;
  --paper-soft: #f6f5f1;
  --green: #1c3934;
  --green-deep: #0f2420;
  --green-line: rgba(255, 255, 255, 0.14);
  --line: rgba(20, 23, 26, 0.12);
  --cream: #f3efe6;
  --gold: #a9824a;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --headline: 'Tiempos Headline', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; background: var(--green-deep);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-mark { text-align: center; opacity: 0; animation: preloaderFade 1.4s ease forwards; }
.preloader-title { display: block; font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0.1em; color: var(--cream); }
.preloader-sub { display: block; font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--gold); letter-spacing: 0.05em; margin-top: 0.3rem; }
@keyframes preloaderFade {
  0% { opacity: 0; letter-spacing: 0.25em; }
  100% { opacity: 1; letter-spacing: 0.1em; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}
.site-header.hide { transform: translateY(-100%); }
.header-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 1.4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-nav { display: flex; gap: 2.2rem; }
.header-nav a {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: #fff; padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.header-nav a:hover, .header-nav a.active { border-color: currentColor; }
.site-header.scrolled .header-nav a { color: var(--ink); }
.header-logo { text-align: center; display: flex; justify-content: center; }
.header-logo .logo-img {
  height: 22px; width: auto; display: block;
  filter: none;
  transition: filter 0.4s ease;
}
.site-header.scrolled .header-logo .logo-img { filter: brightness(0); }
.header-icons { display: flex; gap: 1.4rem; justify-content: flex-end; align-items: center; }
.header-icons a { display: flex; align-items: center; }
.header-icons svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.4; transition: stroke 0.4s ease; }
.site-header.scrolled .header-icons svg { stroke: var(--ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; justify-self: end; }
.nav-toggle span { width: 22px; height: 1px; background: #fff; transition: background 0.4s ease; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Chapter (full-bleed editorial block) ---------- */
.chapter {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.chapter--page { min-height: 60vh; }
.chapter-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.chapter-video { object-fit: cover; width: 100%; height: 100%; }
.chapter-media::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
.chapter-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,14,11,0) 42%, rgba(6,14,11,0.45) 72%, rgba(6,14,11,0.72) 100%);
}
.chapter--page .chapter-overlay { background: linear-gradient(180deg, rgba(6,14,11,0.1) 0%, rgba(6,14,11,0.6) 100%); }
.chapter-copy {
  position: relative; z-index: 2;
  max-width: 620px;
  padding: 0 clamp(1.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
  color: #fff;
}
.chapter--page .chapter-copy { max-width: 720px; }
.chapter-title {
  font-family: var(--headline); font-weight: 500; font-style: normal; text-transform: uppercase;
  font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: 0;
}
.chapter-title em {
  display: block; font-family: var(--headline); font-style: italic; font-weight: 400;
  text-transform: uppercase; font-size: 1em; color: #fff; margin-top: 0.06em;
}
.chapter-text { margin: 1.3rem 0 1.6rem; max-width: 40ch; color: rgba(255,255,255,0.88); font-size: 1rem; }
.discover-link {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  transition: gap 0.3s ease;
}
.discover-link::before { content: ""; width: 28px; height: 1px; background: #fff; transition: width 0.3s ease; }
.discover-link:hover { gap: 1.2rem; }
.discover-link:hover::before { width: 40px; }

.video-toggle {
  position: absolute; z-index: 3; bottom: clamp(1.2rem, 4vh, 2.2rem); right: clamp(1.2rem, 4vw, 2.5rem);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(2px); transition: background 0.3s ease;
}
.video-toggle:hover { background: rgba(255,255,255,0.22); }
.video-toggle svg { width: 14px; height: 14px; fill: #fff; }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-pause { display: none; }
.video-toggle.is-paused .icon-play { display: block; }

/* Simulated photography (swap for real photos/video later) */
.media--breakfast { background: linear-gradient(135deg, #cbb99a 0%, #8a7355 38%, #3c3226 75%, #1c1712 100%); }
.media--story { background: linear-gradient(150deg, #4a5a4e 0%, #223028 45%, #10201a 80%, #081611 100%); }
.media--menu { background: linear-gradient(140deg, #6b4d3a 0%, #3a2a20 40%, #201812 75%, #0e0b08 100%); }
.media--visit { background: linear-gradient(160deg, #35473f 0%, #1a2a24 45%, #0d1a15 80%, #060e0b 100%); }
.media--about-hero { background: linear-gradient(135deg, #7a8a6f 0%, #3d4d3f 45%, #182420 80%, #0a1310 100%); }
.media--menu-hero { background: linear-gradient(135deg, #8a6a4a 0%, #4a3728 45%, #221a13 80%, #0d0a07 100%); }
.media--visit-hero { background: linear-gradient(135deg, #4a6357 0%, #24382f 45%, #0f1e18 80%, #060f0b 100%); }

/* Real photos (temporary picks — swap freely later) */
.media--photo-turecke-vejce { background-image: url('../images/photos/turecke-vejce.jpg'); background-size: cover; background-position: center; }
.media--photo-kremova-vejce { background-image: url('../images/photos/kremova-vejce.jpg'); background-size: cover; background-position: center; }
.media--photo-jogurt-granola { background-image: url('../images/photos/jogurt-granola.jpg'); background-size: cover; background-position: center; }
.media--photo-anglicka-snidane { background-image: url('../images/photos/anglicka-snidane.jpg'); background-size: cover; background-position: center; }

/* ---------- Slider sections (Stories / Pobočky carousels) ---------- */
.slider-section { background: var(--green-deep); padding: 6rem 0 5rem; overflow: hidden; }
.slider-head { max-width: 1300px; margin: 0 auto 3rem; padding: 0 2.5rem; }
.slider-head .chapter-title { color: #fff; margin-bottom: 1.2rem; }
.slider-head .chapter-title em { color: var(--cream); }
.slider-head .discover-link { color: #fff; }
.slider-head .discover-link::before { background: #fff; }

.slider-track {
  display: flex; gap: 1.6rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 0 2.5rem; scroll-padding-left: 2.5rem; scroll-padding-right: 2.5rem;
  scrollbar-width: none; -ms-overflow-style: none; touch-action: pan-x;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-card {
  flex: 0 0 auto; width: min(78vw, 340px); scroll-snap-align: start; display: block; color: #fff;
}
.slider-card-media { aspect-ratio: 4 / 5; margin-bottom: 1.2rem; }
.slider-card h3 {
  font-family: var(--headline); font-weight: 500; text-transform: uppercase;
  font-size: 1.2rem; line-height: 1.2; color: #fff; margin-bottom: 0.5rem;
}
.slider-card p { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 0.8rem; max-width: 32ch; }
.slider-card .discover-link.small { font-size: 0.7rem; }
.slider-card.is-placeholder { opacity: 0.4; pointer-events: none; }
.slider-card.is-placeholder .slider-card-media { filter: grayscale(1); }

.slider-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 2.2rem; }
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3);
  border: none; padding: 0; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease;
}
.slider-dot.active { background: #fff; transform: scale(1.4); }

/* ---------- Band (secondary links strip, dark green) ---------- */
.band { background: var(--green); padding: 4.5rem 2.5rem; }
.band-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2.5rem;
  text-align: center;
}
.band-item a { display: block; }
.band-item .band-title { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: #fff; }
.band-item .band-sub { display: block; margin-top: 0.4rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); opacity: 0.7; }

/* ---------- Editorial sections (white bg) ---------- */
.editorial { max-width: 1300px; margin: 0 auto; padding: 7rem 2.5rem; }
.editorial-tight { padding: 5rem 2.5rem; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.editorial-grid.reverse .editorial-media { order: 2; }
.eyebrow-dark {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.7rem; color: var(--gold); margin-bottom: 1.1rem;
}
.editorial h2 {
  font-family: var(--display); text-transform: uppercase; font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--ink); line-height: 1.12; margin-bottom: 1.4rem;
}
.editorial h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
.editorial p.lead { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink); margin-bottom: 1.2rem; }
.editorial p.body-copy { color: var(--ink-soft); font-size: 1rem; max-width: 48ch; margin-bottom: 1.2rem; }
.editorial-media { aspect-ratio: 4/5; }
.center-heading { text-align: center; max-width: 720px; margin: 0 auto 4rem; }

/* ---------- Feature columns ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem; margin-top: 3rem; }
.feature { text-align: center; padding: 0 1rem; }
.feature-num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold); margin-bottom: 1rem; }
.feature h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0.02em; margin-bottom: 0.8rem; color: var(--ink); }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Stories index ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3.5rem; }
.story-card { display: block; }
.story-card-media { aspect-ratio: 4/3; margin-bottom: 1.3rem; }
.story-card-eyebrow {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); margin-bottom: 0.6rem;
}
.story-card h3 {
  font-family: var(--headline); font-weight: 500; text-transform: uppercase;
  font-size: 1.25rem; line-height: 1.2; color: var(--ink); margin-bottom: 0.7rem;
}
.story-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.9rem; }
.story-card-link {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.story-card.is-placeholder { opacity: 0.4; pointer-events: none; }
.story-card.is-placeholder .story-card-media { filter: grayscale(1); }

/* ---------- Story detail ---------- */
.story-body { max-width: 700px; margin: 0 auto; padding: 6rem 2rem; }
.story-meta {
  text-align: center; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 3rem;
}
.story-lead {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--ink); line-height: 1.5; margin-bottom: 2rem;
}
.story-body p.body-copy { max-width: none; font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.6rem; }
.story-image-break { aspect-ratio: 16/9; margin: 3.5rem 0; }
.story-back-link {
  display: inline-block; margin-top: 1rem; font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 2px;
}

/* ---------- Quote block ---------- */
.quote-block { background: var(--paper-soft); padding: 6rem 2.5rem; text-align: center; }
.quote-block blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 800px; margin: 0 auto 1.2rem; color: var(--ink); line-height: 1.4;
}
.quote-block cite { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-style: normal; }

/* ---------- Menu page ---------- */
.menu-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
.menu-col-title {
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink);
  margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.menu-item { margin-bottom: 1.6rem; }
.menu-item-row { display: flex; align-items: baseline; font-family: var(--serif); font-size: 1.15rem; gap: 0.5rem; color: var(--ink); }
.menu-item-row .dots { flex: 1; border-bottom: 1px dotted rgba(20,23,26,0.25); margin-bottom: 5px; }
.price { color: var(--gold); white-space: nowrap; }
.menu-item-desc { color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.3rem; }
.menu-note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin: -2rem auto 4rem; max-width: 50ch; }

/* ---------- Hours / contact ---------- */
.hours-list { max-width: 560px; margin: 0 auto; }
.hours-row { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--serif); font-size: 1.2rem; padding: 0.9rem 0; color: var(--ink); }
.hours-row .dots { flex: 1; border-bottom: 1px dotted rgba(20,23,26,0.25); margin-bottom: 5px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.contact-list { margin: 1.5rem 0 2rem; list-style: none; }
.contact-list li { display: flex; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.contact-label { min-width: 90px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--gold); align-self: center; }
.social-links { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.social-links a { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.2rem; color: var(--ink); font-family: var(--sans); font-size: 1rem;
  outline: none; transition: border-color 0.3s ease; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }
.btn-submit {
  align-self: flex-start; margin-top: 0.3rem; padding: 0.9rem 2.2rem;
  background: var(--ink); border: 1px solid var(--ink); color: #fff;
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.76rem;
  cursor: pointer; transition: background 0.3s ease, color 0.3s ease;
}
.btn-submit:hover { background: transparent; color: var(--ink); }
.form-note { font-size: 0.85rem; color: var(--gold); min-height: 1.2em; }

.map-frame { aspect-ratio: 16/9; background: linear-gradient(135deg, #35473f, #101d18); position: relative; }
.map-frame::after {
  content: "Mapa — vloží se skutečná lokace";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--ink); padding: 4.5rem 2.5rem 2.2rem; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.footer-brand .footer-logo { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.09em; color: var(--ink); }
.footer-brand .footer-tag { display: block; font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--gold); margin-top: 0.3rem; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); opacity: 0.85; margin-bottom: 1.1rem; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--ink-soft); padding: 0.32rem 0; opacity: 0.95; }
.footer-col a:hover { opacity: 1; color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1.5rem; }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-soft); opacity: 0.9; }
.footer-legal { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.75; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2,.7,.3,1), transform 0.9s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .editorial-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .editorial-grid.reverse .editorial-media { order: 0; }
  .features-grid, .menu-columns, .stories-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .editorial, .editorial-tight { padding: 4.5rem 1.5rem; }
  .band { padding: 3rem 1.5rem; }
  .chapter-copy { max-width: 90%; }

  .header-inner { grid-template-columns: auto 1fr auto; padding: 1.1rem 1.4rem; }
  .header-nav {
    position: fixed; inset: 0; width: 100%; height: 100vh;
    background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: 0; transform: translateY(-100%); transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    z-index: 1100; overflow-y: auto;
  }
  .header-nav.open { transform: translateY(0); }
  .header-nav > a {
    color: var(--ink); font-size: 1.05rem; text-transform: none; letter-spacing: 0;
    padding: 1.15rem 1.6rem; border-bottom: 1px solid var(--line);
  }
  .nav-mobile-top {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line);
  }
  .nav-close { background: none; border: none; cursor: pointer; padding: 0.4rem; justify-self: start; }
  .nav-close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
  .nav-mobile-logo { grid-column: 2; justify-self: center; }
  .nav-mobile-logo img { height: 18px; width: auto; filter: brightness(0); }
  .nav-mobile-spacer { width: 20px; height: 20px; justify-self: end; }
  .nav-mobile-utility {
    display: flex; flex-direction: column; gap: 1.4rem;
    margin-top: auto; padding: 1.6rem 1.6rem 2.4rem; border-top: 1px solid var(--line);
  }
  .nav-mobile-utility a {
    display: flex; align-items: center; gap: 0.9rem;
    font-size: 0.92rem; color: var(--ink); text-transform: none; letter-spacing: 0; border: none; padding: 0;
  }
  .nav-mobile-utility svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
  .nav-toggle { display: flex; }
  .header-icons { display: none; }
}
@media (min-width: 901px) {
  .nav-mobile-top, .nav-mobile-utility { display: none; }
}
