/* ============ Premenné / témy ============ */
:root {
  --bg: #0e0e0f; --bg2: #161618; --card: #1c1c1f;
  --text: #f2efe9; --muted: #a39f97; --line: rgba(255,255,255,.1);
  --accent: #c9a46a;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --head-weight: 500;
  --radius: 4px;
  --nav-h: 72px;
}
[data-theme="light"] {
  --bg: #faf8f5; --bg2: #f1ede7; --card: #ffffff;
  --text: #1b1a18; --muted: #6b675f; --line: rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: opacity .4s;
}
body.is-loading { opacity: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1600px, 100% - 24px); margin-inline: auto; }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section.alt { background: var(--bg2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 72px); }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 500; color: var(--accent); margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: 1.08rem; }
.empty { text-align: center; color: var(--muted); }

.btn {
  display: inline-block; padding: 15px 34px; border: 1px solid var(--accent);
  color: var(--text); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 500;
  background: transparent; cursor: pointer; font-family: var(--font-body); border-radius: var(--radius);
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--accent); color: #111; }
.btn-full { width: 100%; }

/* ============ Navigácia ============ */
.nav {
  position: fixed; inset: 0 0 auto; height: calc(var(--nav-h) + env(safe-area-inset-top)); z-index: 50;
  padding-top: env(safe-area-inset-top) !important;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand { gap: 18px; }
.brand-mark { display: inline-flex; height: 34px; transform: translateY(4px); }
.brand-mark svg, .brand-mark img { height: 100%; width: auto; }
.brand-name { font-family: var(--font-body); font-size: .95rem; font-weight: 300; letter-spacing: .08em; }
.nav:not(.scrolled):not(.solid) .brand-mark { color: #fff; }
.nav:not(.scrolled):not(.solid) .brand-name, .nav:not(.scrolled):not(.solid) .nav-links a { color: #fff; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }
.nav-links a { font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 500; opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta { border: 1px solid var(--accent); padding: 9px 18px; border-radius: var(--radius); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 24px; }
.nav:not(.scrolled):not(.solid) .burger { color: #fff; }
body.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .burger { display: block; color: var(--text); }
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s, opacity .3s, visibility 0s .3s; z-index: -1;
  }
  .nav-links a { color: var(--text) !important; padding: 18px; width: 100%; text-align: center; border-top: 1px solid var(--line); }
  .nav-cta { border: 0; border-radius: 0; border-top: 1px solid var(--line) !important; }
  body.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .3s, opacity .3s; }
  body.menu-open .nav { background: var(--bg); }
  body.menu-open .nav .brand-name, body.menu-open .nav .brand-mark, body.menu-open .burger { color: var(--text) !important; }
}

/* ============ Hero ============ */
.hero { position: relative; height: 100svh; min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #222 center/cover no-repeat; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.65) 100%); }
.hero-inner { position: relative; padding: 0 20px; max-width: 980px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero-sub { font-size: clamp(.9rem, 2vw, 1.05rem); letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin: 0 0 2.4rem; }
.hero .btn { color: #fff; border-color: #fff; }
.hero .btn:hover { background: #fff; color: #111; }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; width: 1px; height: 54px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-hint::after { content: ''; position: absolute; left: 0; top: -54px; width: 1px; height: 54px; background: #fff; animation: drip 2.2s infinite; }
@keyframes drip { to { top: 54px; } }

/* ============ Galérie (karty) ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.g-card { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--card); border-radius: var(--radius); }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s; }
.g-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7)); }
.g-card:hover img { transform: scale(1.05); }
.g-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; color: #fff; }
.g-card-body h3 { margin: 0; font-size: 1.9rem; color: #fff; }
.g-card-body span { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }

/* ============ O mne ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-img { aspect-ratio: 4/5; overflow: hidden; background: var(--card); border-radius: var(--radius); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.prose p { margin: 0 0 1.1em; color: var(--muted); font-size: 1.05rem; }
.stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: var(--head-weight); color: var(--accent); line-height: 1; }
.stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-img { max-height: 520px; } }

/* ============ Služby ============ */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: stretch; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3.5vw, 36px);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.service.featured {
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--card)) 0%, var(--card) 70%);
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--accent) 55%, transparent);
}
.service-badge {
  position: absolute; top: 0; left: 28px; transform: translateY(-50%);
  background: var(--accent); color: #111; font: 600 .82rem/1 var(--font-body);
  padding: 8px 14px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap;
}
.service h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; margin: 0 0 .45rem; }
.service .service-desc { color: var(--muted); font-size: 1.02rem; line-height: 1.5; margin: 0 0 1.6rem; }
.service .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 1.8rem; }
.service .price b { font: 700 clamp(2.6rem, 6vw, 3.2rem)/1 var(--font-body); letter-spacing: -.03em; color: var(--text); }
.service .price b.text { font-size: clamp(1.5rem, 3.5vw, 1.8rem); letter-spacing: -.01em; }
.service .price span { color: var(--muted); font-size: 1.05rem; }
.service ul { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; display: grid; gap: 14px; align-content: start; }
.service li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.service li svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.service .btn { width: 100%; text-align: center; border-radius: 14px; border-color: var(--line); padding: 17px 20px; font: 600 1rem var(--font-body); letter-spacing: 0; text-transform: none; }
.service .btn:hover { border-color: var(--accent); background: var(--accent); color: #111; }
.service.featured .btn { background: var(--accent); border-color: var(--accent); color: #111; }
.service.featured .btn:hover { filter: brightness(1.08); }
@media (max-width: 700px) { .services { gap: 34px; } }

/* ============ Referencie ============ */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.quote { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.quote::before { content: '“'; font-family: var(--font-head); font-size: 5rem; line-height: .6; color: var(--accent); display: block; height: 34px; }
.quote p { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.45; margin: 0 0 1.4rem; font-style: italic; }
.quote footer b { font-weight: 500; display: block; }
.quote footer span { color: var(--muted); font-size: .85rem; }

/* ============ Kontakt ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; }
.contact-list li span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; min-width: 80px; padding-top: 3px; }
.contact-list a:hover { color: var(--accent); }
.socials, .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.socials a, .footer-links a { font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); font: 400 16px/1.4 var(--font-body); letter-spacing: 0; text-transform: none;
  transition: border-color .2s; color-scheme: dark light;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: #6fbf73; } .form-status.err { color: #e06c6c; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ============ Detail galérie ============ */
#galleryView { padding-top: calc(var(--nav-h) + 40px); min-height: 100vh; }
.gv-head { text-align: center; max-width: 760px; margin-bottom: 48px; }
.back { display: inline-block; margin-bottom: 28px; font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.back:hover { color: var(--accent); }
.masonry { columns: 3 340px; column-gap: 12px; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; cursor: zoom-in; overflow: hidden; background: var(--card); border-radius: 2px; }
.masonry img { width: 100%; height: auto; transition: transform .8s, opacity .6s; opacity: 0; }
.masonry img.loaded { opacity: 1; }
.masonry figure:hover img { transform: scale(1.025); }
.gv-foot { text-align: center; padding: clamp(64px, 9vw, 110px) 0 clamp(80px, 10vw, 120px); max-width: 720px; }
.gv-foot h2 { margin-bottom: .35em; }
.gv-foot .lead { margin: 0 auto 2rem; max-width: 560px; }
.gv-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-solid { background: var(--accent); color: #111; }
.btn-solid:hover { filter: brightness(1.08); background: var(--accent); color: #111; }
@media (max-width: 520px) { .gv-actions .btn { width: 100%; text-align: center; } }
@media (max-width: 520px) { .masonry { columns: 2 140px; column-gap: 6px; } .masonry figure { margin-bottom: 6px; } }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,9,.97); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-fig { margin: 0; max-width: calc(100vw - 140px); max-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; user-select: none; }
.lb-fig figcaption { color: #bbb; font-size: .85rem; padding-top: 14px; display: flex; gap: 18px; }
.lb-count { opacity: .6; letter-spacing: .1em; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; opacity: .7; padding: 16px; line-height: 1; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
@media (max-width: 700px) { .lb-fig { max-width: 100vw; } .lb-prev, .lb-next { bottom: 10px; top: auto; } }

/* ============ Pätička, ostatné ============ */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .82rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.demo-badge { position: fixed; bottom: 14px; left: 14px; z-index: 90; background: #e0a43a; color: #111; font: 600 12px var(--font-body); padding: 8px 12px; border-radius: 6px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-media { animation: none; } html { scroll-behavior: auto; } }

body.protect img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
