/* =========================================================
   Veronika — ruční tvorba
   Jednoduchý, elegantní one-pager. Bez frameworků.
   ========================================================= */

:root {
  /* Barvy — teplá papírová paleta + boho akcenty z fotek */
  --paper:      #f5efe4;   /* teplé papírové pozadí */
  --paper-alt:  #efe7d8;   /* mírně tmavší střídavá sekce */
  --card:       #fbf7ef;   /* světlé karty */
  --ink:        #2a2420;   /* teplá téměř-černá */
  --ink-soft:   #6d6357;   /* tlumený text */
  --line:       rgba(42, 36, 32, 0.14);
  --clay:       #b85c38;   /* terakota — hlavní akcent */
  --clay-dark:  #9a4a2c;
  --indigo:     #2b3a4a;   /* denimová modř — tmavá sekce */
  --indigo-deep:#22303d;

  /* Typografie */
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 6px;
  --shadow: 0 18px 40px -24px rgba(42, 36, 32, 0.45);
}

/* ------------- Reset / základ ------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Místo pro posuvník drží stránku na místě, když lightbox zamkne scroll. */
  scrollbar-gutter: stable;
}

/* Viditelný fokus všude, kde se dá klikat — jen pro klávesnici, myš ho nevyvolá. */
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
em { font-style: italic; color: var(--clay-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clay-dark);
  margin: 0 0 1rem;
}
.kicker-light { color: #e6b8a3; }

/* ------------- Tlačítka ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.85em 1.4em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-call { background: transparent; color: var(--ink); border-color: var(--line); padding: 0.6em 1.05em; font-size: 0.9rem; }
.btn-call:hover { border-color: var(--clay); color: var(--clay-dark); }
.btn-call-ico { color: var(--clay); }

/* ================= HLAVIČKA ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-size: 0.94rem; font-weight: 500; }
.nav-menu a:hover { color: var(--clay-dark); text-decoration: none; }

.nav-toggle { display: none; }

/* ================= HERO ================= */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  margin: 0 0 1.2rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 34ch; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0; max-width: 40ch; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: var(--indigo);
  color: #f3ece0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.6em 1.1em;
  border-radius: 100px;
  box-shadow: var(--shadow);
}

/* ================= USP ================= */
.usp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1rem, 2vw, 1.6rem); border-right: 1px solid var(--line); }
.usp-item:last-child { border-right: none; }
.usp-num { font-family: var(--serif); font-size: 0.9rem; color: var(--clay); letter-spacing: 0.1em; }
.usp-item h3 { font-size: 1.28rem; margin: 0.5rem 0 0.5rem; }
.usp-item p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ================= SEKCE ================= */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-alt); }

/* Odsazení kotev pod lepící hlavičkou (68px výška + 1px linka).
   Hodnota o kousek nižší, aby se sekce zasunula pod hlavičku a neprosvítala předchozí sekce. */
.section, .contact { scroll-margin-top: 66px; }
.section-head { max-width: 640px; margin: 0 auto clamp(2.2rem, 4vw, 3.5rem); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 0.6rem; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ------------- Nabídka ------------- */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.offer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.offer-media { aspect-ratio: 16 / 11; overflow: hidden; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.offer-card:hover .offer-media img { transform: scale(1.04); }
.offer-body { padding: clamp(1.3rem, 2.5vw, 1.9rem); }
.offer-body h3 { font-size: 1.45rem; margin: 0 0 0.5rem; }
.offer-body p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.offer-price {
  margin-top: 1rem !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--clay-dark) !important;
  font-weight: 600;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em;
}

/* ------------- Postup ------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  color: var(--clay-dark);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ------------- Galerie (masonry přes CSS columns) ------------- */
.gallery { column-count: 3; column-gap: clamp(0.8rem, 1.6vw, 1.2rem); }
/* Položka je odkaz na fotku: bez JS se otevře samotný snímek, s JS ho převezme
   lightbox. Klávesnice díky tomu funguje nativně — žádné tabindex ani vlastní
   obsluha kláves. */
.gal-item {
  display: block;
  margin: 0 0 clamp(0.8rem, 1.6vw, 1.2rem);
  break-inside: avoid;
  border-radius: var(--radius);
}
.gal-item:hover { text-decoration: none; }
.gal-item img {
  width: 100%;
  height: auto;          /* drží poměr stran z width/height atributů */
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: filter .25s ease;
  background: var(--paper-alt);
}
.gal-item:hover img { filter: brightness(1.05) saturate(1.05); }

/* ------------- Reference ------------- */
/* Přizpůsobí se počtu referencí — ať jedna citace nevisí v rohu prázdné mřížky. */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.quotes:has(.quote:only-child) { max-width: 640px; margin-inline: auto; }
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--clay);
  opacity: 0.4;
  position: absolute;
  top: 0.3rem; left: 1rem;
  line-height: 1;
}
.quote p { margin: 1rem 0 1.2rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.quote cite { font-style: normal; font-size: 0.86rem; color: var(--ink-soft); letter-spacing: 0.03em; }
.quotes-note { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin: 2rem 0 0; }

/* ================= KONTAKT ================= */
.contact { background: var(--indigo); color: #f1e9dc; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: #fbf5ea; margin: 0 0 1rem; }
.contact-lead { color: #cdbfae; font-size: 1.08rem; max-width: 46ch; margin: 0 0 2rem; }
.phone-big {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 600;
  color: #fbf5ea;
}
.phone-big:hover { color: #fff; text-decoration: none; }
.phone-big span { color: var(--clay); font-size: 0.7em; }
.contact-links { list-style: none; display: flex; gap: 1.6rem; padding: 0; margin: 1.6rem 0 0; }
.contact-links a { color: #e6b8a3; font-weight: 600; letter-spacing: 0.03em; }
.contact-links a:hover { color: #fff; }

.contact-side { border-left: 1px solid rgba(255,255,255,0.16); padding-left: clamp(1.2rem, 3vw, 2.4rem); }
.contact-side h3 { color: #fbf5ea; font-size: 1.2rem; margin: 0 0 0.8rem; }
.contact-place { font-family: var(--serif); font-size: 1.35rem; color: #fbf5ea; margin: 0; }
.contact-hint { color: #9fb0bd; font-size: 0.9rem; margin: 1.2rem 0 0; }

/* ================= PATIČKA ================= */
.site-footer { background: var(--indigo-deep); color: #a9b6c1; padding: 1.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; }
.footer-brand { font-family: var(--serif); color: #e9e0d2; margin: 0; }
.footer-meta { margin: 0; }
.footer-top { color: #e6b8a3; }
.footer-top:hover { color: #fff; }

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(24, 20, 16, 0.82);
  backdrop-filter: blur(6px) saturate(115%);
  display: flex; align-items: center; justify-content: center;
  padding: max(4vmin, 56px) 4vmin;
  opacity: 0; visibility: hidden;
  transition: opacity .32s ease, visibility .32s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lb-figure {
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
  max-width: 100%; max-height: 100%;
  transform: scale(0.96); opacity: 0;
  transition: transform .34s cubic-bezier(.2,.7,.2,1), opacity .34s ease;
}
.lightbox.open .lb-figure { transform: scale(1); opacity: 1; }
.lb-img {
  max-width: min(92vw, 1100px); max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7);
  background: var(--indigo-deep);
}
.lb-caption {
  margin-top: 1rem;
  color: #e9e0d2; font-size: 0.92rem; letter-spacing: 0.02em;
  text-align: center; max-width: 60ch;
}

/* Ovládací prvky */
.lb-close, .lb-nav {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f4ede1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lb-close:hover, .lb-nav:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.lb-close:active, .lb-nav:active { transform: scale(0.94); }
.lb-close {
  top: 3vmin; right: 4vmin;
  width: 46px; height: 46px; font-size: 1.9rem; line-height: 1;
}
.lb-nav {
  top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; font-size: 2.2rem; line-height: 1; padding-bottom: 4px;
}
.lb-nav:active { transform: translateY(-50%) scale(0.94); }
.lb-prev { left: 3vmin; }
.lb-next { right: 3vmin; }
.lb-counter {
  position: absolute; bottom: 3vmin; left: 50%; transform: translateX(-50%);
  color: #cdbfae; font-size: 0.82rem; letter-spacing: 0.14em;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .lead { max-width: none; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-item:nth-child(2) { border-right: none; }
  .usp-item:nth-child(1), .usp-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { border-left: none; border-top: 1px solid rgba(255,255,255,0.16); padding-left: 0; padding-top: 1.8rem; }

  /* Mobilní navigace */
  .header-call { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    /* visibility drží zavřené odkazy mimo pořadí tabulátoru — bez něj fokus
       skáče na položky, které nejsou vidět. */
    visibility: hidden;
    transition: max-height .28s ease, visibility .28s ease;
  }
  .nav-menu.open { max-height: 340px; visibility: visible; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 1rem clamp(20px, 5vw, 48px); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  /* Čtyři karty pod sebou nadělaly hodně výšky. Nižší ořez fotky, sevřenější
     text a menší vnitřní odsazení — to zároveň srovná text karet blíž k okraji,
     aby nepůsobily užší než sekce nad nimi. */
  .offer-grid { grid-template-columns: 1fr; gap: 1rem; }
  .offer-media { aspect-ratio: 16 / 9; }
  .offer-body { padding: 1.05rem 1.1rem 1.2rem; }
  .offer-body h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
  .offer-body p { font-size: 0.93rem; line-height: 1.55; }
  .offer-price { margin-top: 0.8rem !important; padding-top: 0.7rem; font-size: 0.88rem !important; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-inner { justify-content: center; text-align: center; }

  .lb-img { max-height: 68vh; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-prev { left: 2vmin; }
  .lb-next { right: 2vmin; }
  .lb-caption { font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
