/* =========================================================
   Sofi Květiny — hlavní styly
   Paleta: krémová + pudrově růžová + tlumená zeleň
   ========================================================= */

:root {
  /* Barvy */
  --c-bg:        #FCF8F5;
  --c-bg-warm:   #F8EDE9;
  --c-bg-deep:   #F2DDD8;
  --c-rose:      #C4757F;
  --c-rose-dark: #9E5563;
  --c-rose-soft: #E8B9BC;
  --c-leaf:      #8B9C82;
  --c-ink:       #3B2E2E;
  --c-muted:     #7C6A67;
  --c-line:      #E8D8D3;
  --c-white:     #FFFFFF;

  /* Typografie */
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans:  "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rozměry */
  --wrap: 1180px;
  --radius: 4px;
  --shadow-s: 0 2px 12px rgba(59, 46, 46, .06);
  --shadow-m: 0 10px 40px rgba(59, 46, 46, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(64px, 9vw, 118px); }
.section--warm { background: var(--c-bg-warm); }

.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-rose);
  font-weight: 400;
  margin-bottom: 14px;
}

.lead { font-size: 1.09rem; color: var(--c-muted); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--c-rose);
  border-radius: 100px;
  background: var(--c-rose);
  color: #fff;
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--c-rose-dark); border-color: var(--c-rose-dark); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--c-rose); }
.btn--ghost:hover { background: var(--c-rose); color: #fff; }

.btn--light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--c-rose-dark); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo__mark { width: 42px; height: 42px; flex: none; color: var(--c-rose); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  letter-spacing: .02em;
}
.logo__tag {
  font-size: .58rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 5px;
}

/* ---------- Hlavička ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 248, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: var(--shadow-s); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.nav { display: flex; align-items: center; gap: 34px; }

.nav__link {
  position: relative;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding-block: 6px;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--c-rose);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--c-rose); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--c-rose); }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .05em;
  color: var(--c-rose-dark);
  white-space: nowrap;
}
.header__phone svg { width: 17px; height: 17px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 5px auto;
  background: var(--c-ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(59,46,46,.68) 0%, rgba(59,46,46,.34) 55%, rgba(59,46,46,.12) 100%);
}
.hero__inner { position: relative; z-index: 2; color: #fff; max-width: 640px; padding-block: 90px; }
.hero__inner .eyebrow { color: var(--c-rose-soft); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__text { font-size: 1.12rem; color: rgba(255,255,255,.9); margin-bottom: 2em; max-width: 500px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Malý hero pro podstránky */
.pagehead {
  position: relative;
  padding-block: clamp(70px, 10vw, 130px);
  background: var(--c-bg-warm);
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.pagehead p { color: var(--c-muted); max-width: 560px; margin-inline: auto; }

/* Drobenka */
.crumb {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 18px;
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--c-rose); }

/* ---------- Split (text + obrázek) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--c-rose-soft);
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- Karty služeb ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 26px 26px 30px; }
.card__body h3 { margin-bottom: .35em; }
.card__body p { font-size: .95rem; color: var(--c-muted); margin: 0; }

/* ---------- Pás s informacemi ---------- */
.strip {
  background: var(--c-rose);
  color: #fff;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-block: 62px;
  text-align: center;
}
.strip__item h3 { color: #fff; font-size: 1.35rem; margin-bottom: .2em; }
.strip__item p { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0; }
.strip__icon { width: 30px; height: 30px; margin: 0 auto 16px; color: var(--c-rose-soft); }

/* ---------- Galerie ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter {
  border: 1px solid var(--c-line);
  background: transparent;
  border-radius: 100px;
  padding: 9px 22px;
  font-family: var(--f-sans);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--c-rose-soft); color: var(--c-rose); }
.filter.is-active { background: var(--c-rose); border-color: var(--c-rose); color: #fff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--c-bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: attr(data-label);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(59,46,46,.7), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item.is-hidden { display: none; }

.gallery { grid-template-columns: repeat(4, 1fr); }
.gallery--home { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .gallery, .gallery--home { grid-template-columns: repeat(3, 1fr); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(40, 30, 30, .93);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__caption {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lightbox__btn {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Sortiment — položky ---------- */
.offer { display: grid; gap: clamp(48px, 7vw, 96px); }
.offer__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.offer__row:nth-child(even) .offer__media { order: 2; }
.offer__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.offer__list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.offer__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: .97rem;
  color: var(--c-muted);
}
.offer__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--c-rose);
}
.price-note {
  font-size: .9rem;
  color: var(--c-rose-dark);
  letter-spacing: .04em;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}
.info-list { list-style: none; margin: 0 0 34px; padding: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--c-line);
}
.info-list li:first-child { border-top: 1px solid var(--c-line); }
.info-list svg { width: 19px; height: 19px; color: var(--c-rose); flex: none; margin-top: 6px; }
.info-list strong {
  display: block;
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--c-rose); }

.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--c-line); font-weight: 300; }
.hours th { color: var(--c-muted); }
.hours td { text-align: right; }
.hours tr.is-today td, .hours tr.is-today th { color: var(--c-rose-dark); }

/* Formulář */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  font-family: var(--f-sans);
  font-size: .98rem;
  font-weight: 300;
  color: var(--c-ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-rose);
  box-shadow: 0 0 0 3px rgba(196,117,127,.13);
}
.field.has-error input, .field.has-error textarea { border-color: #C2444A; }
.field__error { font-size: .78rem; color: #C2444A; display: none; }
.field.has-error .field__error { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: .82rem; color: var(--c-muted); }
.form__status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--c-bg-deep);
  color: var(--c-rose-dark);
  font-size: .93rem;
}
.form__status.is-visible { display: block; }

/* Mapa — laděná do pudrové */
.map-wrap {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-deep);
}
.map-wrap__frame { position: relative; aspect-ratio: 16 / 7; }
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.5) brightness(1.04);
}
/* růžový nádech přes mapu — nechává detaily čitelné */
.map-wrap__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(196,117,127,.58), rgba(232,185,188,.44));
  mix-blend-mode: multiply;
}
.map-wrap__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-line);
  font-size: .95rem;
}
.map-wrap__bar strong { font-weight: 400; }
.map-wrap__bar a {
  text-decoration: none;
  color: var(--c-rose-dark);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.map-wrap__bar a:hover { border-bottom-color: var(--c-rose); }

@media (max-width: 640px) {
  .map-wrap__frame { aspect-ratio: 4 / 3; }
}

/* ---------- CTA pás ---------- */
.cta {
  text-align: center;
  background: var(--c-bg-deep);
}
.cta p { max-width: 520px; margin-inline: auto; color: var(--c-muted); }

/* ---------- Patička ---------- */
.footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  padding-block: 66px 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer .logo { color: #fff; }
.footer .logo__mark { color: var(--c-rose-soft); }
.footer .logo__tag { color: rgba(255,255,255,.5); }
.footer h4 {
  font-family: var(--f-sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { text-decoration: none; transition: color .25s var(--ease); }
.footer a:hover { color: var(--c-rose-soft); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transition: all .25s var(--ease);
}
.social a:hover { background: var(--c-rose); border-color: var(--c-rose); color: #fff; }
.social svg { width: 17px; height: 17px; }

/* ---------- Animace při scrollu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Postupné nabíhání položek v mřížce */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .22s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .34s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .40s; }
.reveal-stagger.is-visible > *:nth-child(n+8) { transition-delay: .46s; }

/* ---------- Přechod mezi stránkami ---------- */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--c-bg);
  pointer-events: none;
  opacity: 0;
  animation: curtain-out .55s var(--ease) both;
}
@keyframes curtain-out {
  from { opacity: 1; }
  99%  { opacity: .01; visibility: visible; }
  to   { opacity: 0; visibility: hidden; }
}

/* Jemné nabíhání obsahu po načtení stránky */
main { animation: page-in .65s var(--ease) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.header { animation: fade-in .7s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .page-fade { display: none; }
  main, .header { animation: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 900px) {
  .split, .offer__row, .contact-grid { grid-template-columns: 1fr; }
  .offer__row:nth-child(even) .offer__media { order: 0; }
  .split__media::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .burger { display: block; }
  .header__phone { display: none; }
  .nav {
    position: fixed;
    inset: 84px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    padding: 8px 24px 28px;
    box-shadow: var(--shadow-m);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding-block: 15px; border-bottom: 1px solid var(--c-line); font-size: .9rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery, .gallery--home { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__name { font-size: 1.28rem; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
