/* ==========================================================================
   Marcela Cihlářová – svatební příběhy
   ========================================================================== */

:root {
  --black: #000;
  --ink: #111;
  --text: #000;
  --muted: rgba(0, 0, 0, 0.5);
  --grey-bg: #f7f7f7;
  --section-bg: #fdfdfd;
  --line: rgba(0, 0, 0, 0.07);
  --link: #0099ff;
  --ph: #e9e9e9;
  --container: 1000px;
  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-inter: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-jakarta: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 600; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Media placeholder (dokud nejsou fotky) ---------- */
.media { position: relative; background: var(--ph); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.missing img { visibility: hidden; }
.media.missing::after {
  content: attr(data-file);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center;
  font-size: 12px; line-height: 1.4; color: rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, Menlo, monospace;
}

/* ---------- Navigace ---------- */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px); max-width: 980px; height: 60px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 10px 0 15px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav__social { display: flex; align-items: center; gap: 13px; padding-right: 20px; border-right: 1px solid var(--line); height: 24px; }
.nav__social a { display: flex; width: 20px; height: 20px; color: #000; opacity: 0.85; transition: opacity .2s; }
.nav__social a:hover { opacity: 1; }
.nav__social svg { width: 20px; height: 20px; }
.nav__back { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; padding-right: 4px; }
.nav__back svg { width: 15px; height: 15px; }
.nav__links { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav__links a { font-size: 14px; font-weight: 500; line-height: 1.9; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav__links a:hover { color: #000; }
.nav__links a.is-active { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.nav__cta { margin-left: auto; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; width: 40px; height: 40px; }
.nav__toggle span { display: block; height: 2px; background: #000; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 20px;
  border-radius: 6px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  transition: transform .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn svg { width: 12px; height: 12px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { opacity: .88; }
.btn--light { background: #fff; color: #000; border-color: rgba(0, 0, 0, 0.12); }
.btn--small { height: 32px; padding: 0 13px; font-size: 12px; gap: 8px; }
.btn--small svg { width: 11px; height: 11px; }
.btn--nav { height: 37px; padding: 0 15px; font-size: 14px; border-radius: 6px; }
.btn--nav svg { width: 13px; height: 13px; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Sekce ---------- */
.section { padding: 35px 0; }
.section--tinted { background: var(--section-bg); border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2,
.section-head h3 { font-size: 40px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.section-head p { max-width: 450px; margin: 5px auto 0; font-size: 16px; line-height: 1.8; }

/* ---------- Hero ---------- */
.hero { padding: 79px 0 0; min-height: 708px; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 480px 490px; justify-content: space-between; align-items: center; gap: 30px; }
.hero h1 { font-size: 32px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.hero h1 strong { font-weight: 700; }
.hero__text { margin-top: 10px; font-size: 16px; line-height: 2; }
.hero__buttons { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__photo { aspect-ratio: 1686 / 1703; border-radius: 50%; }
.hero__photo.media:not(.missing) { background: transparent; }
.hero__photo img { object-fit: contain; }

/* ---------- Služby ---------- */
.services { display: grid; grid-template-columns: 370px 1fr; gap: 30px; align-items: start; }
.services__tabs { display: flex; flex-direction: column; gap: 15px; }
.tab { background: var(--grey-bg); border-radius: 10px; color: #000; transition: background .3s, color .3s; }
.tab__head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: inherit; text-align: left;
  padding: 15px 15px 15px 15px;
}
.tab__head svg { width: 18px; height: 18px; flex: none; }
.tab__head h3 { font-size: 18px; line-height: 1.4; font-weight: 500; }
.tab__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.tab__inner { overflow: hidden; }
.tab__content { padding: 0 15px 15px; font-size: 14px; line-height: 1.5; }
.tab__content p + p { margin-top: 0; }
.tab__content .gap { height: 21px; }
.tab__content .btn { margin-top: 10px; }
.tab.is-active { background: #000; color: #fff; }
.tab.is-active .tab__body { grid-template-rows: 1fr; }
.services__image { border-radius: 11px; aspect-ratio: 600 / 364; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08); }
.services__image .media { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.services__image .media.is-active { opacity: 1; }
.services__image { position: relative; overflow: hidden; background: var(--ph); }

/* ---------- Svatební příběhy ---------- */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 26px; }
.story { position: relative; display: block; height: 340px; border-radius: 10px; overflow: hidden; }
.story .media { position: absolute; inset: 0; }
.story img { transition: transform .6s ease; }
.story:hover img { transform: scale(1.04); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 45%); pointer-events: none; }
.story h2 {
  position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 1;
  font-family: var(--font-jakarta); font-size: 25px; line-height: 1.4; font-weight: 600; color: #fff;
}

/* ---------- Recenze ---------- */
.reviews { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 50px; }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; align-items: center; gap: 15px; transition: transform .5s ease; }
.review {
  flex: 0 0 calc((100% - 15px) / 2);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 30px;
}
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.review__avatar { width: 45px; height: 45px; border-radius: 50%; flex: none; }
.review__name { font-size: 20px; line-height: 1.3; font-weight: 500; color: #333; }
.review__place { font-size: 12px; line-height: 1.6; letter-spacing: -0.1px; color: rgba(0, 0, 0, 0.51); }
.review__text { font-size: 16px; line-height: 1.8; letter-spacing: 0.8px; text-align: justify; }
.review__stars { display: flex; gap: 3px; margin-top: 25px; }
.review__stars svg { width: 14px; height: 14px; }
.reviews__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: #000; color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.reviews__arrow svg { width: 14px; height: 14px; }
.reviews__arrow--prev { left: 0; }
.reviews__arrow--next { right: 0; }
.reviews__arrow[disabled] { opacity: 0; pointer-events: none; }
.reviews__dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.reviews__dots button { width: 4px; height: 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.25); }
.reviews__dots button.is-active { background: #000; }

/* ---------- Kontakt ---------- */
.contact { padding: 60px 0 70px; }
.contact__grid { display: grid; grid-template-columns: 400px 1fr; gap: 39px; align-items: start; }
.contact__photo { aspect-ratio: 400 / 535; border-radius: 10px; }
.contact__body { padding-top: 14px; }
.contact h2 { font-size: 40px; line-height: 1.4; font-weight: 500; letter-spacing: 1px; color: var(--ink); }
.contact__intro { font-size: 16px; line-height: 1.8; }
.contact__intro a { color: var(--link); text-decoration: underline; }
.contact__social { display: flex; gap: 13px; margin-top: 15px; }
.contact__social a { width: 20px; height: 20px; display: flex; }
.contact__social svg { width: 20px; height: 20px; }
.form { margin-top: 75px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form--tight { margin-top: 30px; }
.form input,
.form textarea {
  width: 100%; border: 0; border-radius: 9px;
  background: rgba(0, 0, 0, 0.04);
  padding: 15px; font: inherit; font-size: 14px; line-height: 1.4; color: #000;
  outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s;
}
.form input { height: 51px; }
.form input::placeholder,
.form textarea::placeholder { color: rgba(0, 0, 0, 0.4); }
.form input:focus,
.form textarea:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.form textarea { grid-column: 1 / -1; height: 158px; resize: vertical; }
.form button {
  grid-column: 1 / -1; height: 51px; border: 0; border-radius: 9px;
  background: #000; color: #fff; font-size: 14px; font-weight: 600;
  transition: opacity .2s;
}
.form button:hover { opacity: .85; }
.form__hp { display: none !important; }
.form__msg { grid-column: 1 / -1; font-size: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 0 0 50px; }
.footer p { font-size: 15px; line-height: 1.8; }

/* ---------- Detail svatby ---------- */
.wedding { padding: 140px 0 80px; }
.wedding__cover { aspect-ratio: 1000 / 478; border-radius: 20px; }
.wedding__info { display: grid; grid-template-columns: 415px 272px; justify-content: space-between; margin-top: 30px; }
.wedding__info h1 { font-size: 25px; line-height: 1.4; font-weight: 500; }
.wedding__info p { margin-top: 5px; font-size: 15px; line-height: 1.8; color: rgba(0, 0, 0, 0.8); }
.wedding__meta { align-self: center; }
.wedding__label { font-size: 11px; line-height: 1.8; font-weight: 500; text-transform: uppercase; color: rgba(0, 0, 0, 0.5); }
.wedding__value { font-size: 16px; line-height: 1.8; }
.gallery { display: flex; flex-direction: column; gap: 80px; margin-top: 160px; }
.gallery .media { height: 600px; border-radius: 20px; background: transparent; }
.gallery .media.missing { background: var(--ph); }
.gallery img { object-fit: contain; border-radius: 0; }

/* ---------- Půjčovna ---------- */
.rental { padding: 148px 20px 0; text-align: center; font-family: var(--font-inter); }
.rental h1 { font-size: 45px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.rental__sub { margin-top: 20px; font-size: 20px; line-height: 1.4; font-weight: 500; color: #999; }
.rental__steps { margin-top: 80px; font-size: 20px; line-height: 1; }
.rental__steps p { margin-top: 0; }
.rental__steps p:first-child { line-height: 2.7; }
.rental__catalog { display: inline-block; margin: 40px 0 0; font-size: 20px; text-decoration: underline; text-underline-offset: 3px; }
.rental__photo { max-width: 950px; margin: 100px auto 0; aspect-ratio: 800 / 1200; max-height: 1293px; border-radius: 40px; }

/* ---------- O mně ---------- */
.about { padding: 160px 20px 0; text-align: center; }
.about h1 { font-family: var(--font-inter); font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; margin-bottom: 40px; }
.about__text p { font-size: 15px; line-height: 2.1; }
.about__photo { max-width: 960px; height: 600px; margin: 100px auto 0; border-radius: 20px; }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 13px; }
}

@media (max-width: 1023px) {
  .nav { height: 60px; }
  .nav__social { border-right: 0; padding-right: 0; }
  .nav__toggle { display: block; order: 1; }
  .nav__links { order: 2; }
  .nav__cta { order: 3; }
  .nav__links,
  .nav__cta { display: none; }
  .nav.is-open { height: auto; flex-wrap: wrap; align-content: flex-start; padding-bottom: 20px; }
  .nav.is-open .nav__social,
  .nav.is-open .nav__back,
  .nav.is-open .nav__toggle { height: 58px; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 0 0 100%; padding: 6px 5px 10px; }
  .nav.is-open .nav__links a { font-size: 16px; }
  .nav.is-open .nav__cta { display: inline-flex; margin-left: 5px; }

  .hero__grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr 1.4fr; }
  .wedding__info { grid-template-columns: 1fr auto; gap: 40px; }
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 767px) {
  .section { padding: 50px 0; }
  .section-head h2,
  .section-head h3 { font-size: 32px; }

  .hero { min-height: 0; padding: 140px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { font-size: 32px; }
  .hero__photo { max-width: 400px; width: 100%; margin: 0 auto; }

  .services { grid-template-columns: 1fr; }
  .services__image { order: -1; }

  .stories { grid-template-columns: 1fr; }
  .story { height: 260px; }

  .reviews { padding: 0; }
  .review { flex-basis: 100%; padding: 20px; }
  .reviews__arrow { display: none; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__photo { max-width: 400px; }
  .contact h2 { font-size: 32px; }
  .form { grid-template-columns: 1fr; margin-top: 40px; }

  .wedding { padding-top: 110px; }
  .wedding__cover { aspect-ratio: 4 / 3; }
  .wedding__info { grid-template-columns: 1fr; gap: 20px; }
  .gallery { margin-top: 60px; gap: 30px; }
  .gallery .media { height: auto; aspect-ratio: 3 / 2; }

  .rental { padding-top: 120px; }
  .rental h1 { font-size: 34px; line-height: 1.15; }
  .rental__steps { font-size: 17px; line-height: 1.4; }
  .rental__steps p + p { margin-top: 10px; }
  .rental__steps p:first-child { line-height: 1.4; }
  .rental__catalog { font-size: 17px; }
  .rental__photo { margin-top: 60px; border-radius: 24px; }

  .about { padding-top: 120px; }
  .about h1 { font-size: 34px; }
  .about__photo { height: auto; aspect-ratio: 4 / 3; margin-top: 60px; }
}

/* malé avatary bez popisku */
.review__avatar.missing::after { content: ""; }

/* ---------- 404 ---------- */
.notfound { min-height: 805px; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; }
.notfound__card {
  width: 100%; max-width: 500px; padding: 60px 40px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
  transform: rotate(-4deg);
  text-align: center;
}
.notfound__label { font-size: 15px; line-height: 1.2; font-weight: 500; color: rgba(0, 0, 0, 0.7); }
.notfound h1 { margin-top: 12px; font-size: 32px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.notfound__text { margin-top: 10px; font-size: 16px; line-height: 2; color: rgba(0, 0, 0, 0.6); }
.notfound__btn { width: 100%; justify-content: center; margin-top: 18px; }
@media (max-width: 767px) {
  .notfound { min-height: 80vh; }
  .notfound__card { padding: 40px 24px; transform: rotate(-3deg); }
  .notfound h1 { font-size: 26px; }
  .notfound__btn { white-space: normal; height: auto; min-height: 42px; padding: 10px 16px; }
}
