/* ═══════════════════════════════════════════════════
   OBJEKTIFF.CZ — Hlavní stylesheet (sdílený)
   ═══════════════════════════════════════════════════ */

:root {
  --white:      #ffffff;
  --off:        #f8f6f3;
  --ink:        #1a1a18;
  --mid:        #5c5c59;
  --light:      #a8a6a1;
  --rule:       #e2deda;
  --accent:     #b89c7a;
  --accent-dk:  #9a815f;

  --sans:   'Jost', sans-serif;
  --serif:  'Cormorant Garamond', Georgia, serif;

  --max:    1200px;
  --nav-h:  66px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── UTILITY ──────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Jméno — accent barva příjmení (bez mixování fontů) */
.name-accent { color: var(--accent); }

.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-title .name-accent { color: var(--accent); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 1.8rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover           { background: var(--ink); color: var(--white); }
.btn.btn-accent      { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.btn-accent:hover{ background: var(--accent-dk); border-color: var(--accent-dk); }
.btn.btn-white       { border-color: rgba(255,255,255,0.6); color: rgba(255,255,255,0.85); }
.btn.btn-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── NAVIGACE ─────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#nav.scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo — jen bezpatkový font, accent barva pro příjmení */
.nav-logo {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--mid);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  border: 1px solid var(--rule);
  padding: 0.45rem 1rem;
  color: var(--ink);
  transition: all 0.2s;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover  { background: var(--ink); color: var(--white); border-color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 199;
  flex-direction: column;
  padding: 2rem;
  border-top: 1px solid var(--rule);
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-drawer a:hover { color: var(--accent); padding-left: 0.5rem; }
.nav-drawer a:last-child { border-bottom: none; }

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  padding: 3rem 0 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-logo {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-socials a {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--accent); }

/* ── PAGE HERO (vnitřní stránky) ──────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4.5rem;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(255,255,255,0.025) 39px, rgba(255,255,255,0.025) 40px
  );
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label { color: rgba(255,255,255,0.35); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.2rem;
  max-width: 500px;
}

/* ── LIGHTBOX ─────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,8,0.94);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: lbIn 0.3s var(--ease);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-close {
  position: fixed;
  top: 1.2rem; right: 1.8rem;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  background: none; border: none;
  transition: color 0.2s;
  line-height: 1;
}
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  font-size: 1.6rem;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 1rem;
  background: none; border: none;
  transition: color 0.2s;
  user-select: none;
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-caption {
  position: fixed;
  bottom: 1.2rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

/* ══ RESPONZIVITA ─────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-copy {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}
@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-socials { justify-content: flex-start; }
}

/* ── ZVÝRAZNĚNÍ SOUSLOVÍ "prchavý okamžik" ─────────
   Nenápadné, jemně akcentované — odpovídá tématu webu
   ─────────────────────────────────────────────────── */
.phrase-highlight {
  color: var(--accent);
  font-style: italic;
}
