/* =========================================================
   SDK Očovan — ručne písaný dizajn (zemité farby, remeselnícky duch)
   ========================================================= */
:root {
  --bg: #f6f1e9;
  --bg-alt: #ece4d6;
  --ink: #14110d;
  --ink-soft: #3a332a;
  --muted: #75695a;
  --line: #d8ccb7;
  --accent: #b04523;       /* terakota */
  --accent-deep: #832f17;
  --accent-ink: #4a1c0e;
  --paper: #fffdf8;
  --shadow: 0 1px 0 rgba(20,17,13,.04), 0 12px 30px -12px rgba(20,17,13,.18);
  --shadow-lg: 0 30px 70px -25px rgba(20,17,13,.35);
  --radius: 18px;
  --maxw: 1180px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* -------------------------------------------------- HEADER */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(246, 241, 233, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark svg { display: block; }
.brand-mark svg rect { fill: var(--ink); }
.brand-mark svg path { fill: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav-desktop { display: none; gap: 16px; }
.nav-desktop a {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--ink); padding: 8px 16px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-desktop a:hover { background: var(--ink); color: var(--bg); }

.phone-link {
  display: none; font-weight: 600; font-size: 14.5px;
  padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px;
  transition: background .2s, color .2s;
}
.phone-link:hover { background: var(--ink); color: var(--bg); }
.phone-link::before {
  content: "☎"; margin-right: 7px; font-size: 13px; color: var(--accent);
  transition: color .2s;
}
.phone-link:hover::before { color: var(--bg); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 10px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.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-mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 24px 22px; border-bottom: 1px solid var(--line);
  background: var(--bg);
  transform-origin: top; transform: scaleY(0); opacity: 0;
  max-height: 0; overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, max-height .35s cubic-bezier(.4,0,.2,1);
}
.nav-mobile:not([hidden]) {
  transform: scaleY(1); opacity: 1; max-height: 500px;
}
.nav-mobile a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .3s; }
.nav-mobile:not([hidden]) a { opacity: 1; transform: translateX(0); }
.nav-mobile a:nth-child(1) { transition-delay: .05s; }
.nav-mobile a:nth-child(2) { transition-delay: .10s; }
.nav-mobile a:nth-child(3) { transition-delay: .15s; }
.nav-mobile a:nth-child(4) { transition-delay: .20s; }
.nav-mobile a:nth-child(5) { transition-delay: .25s; }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a.phone { color: var(--accent-deep); font-weight: 700; padding-top: 14px; }

@media (min-width: 920px) {
  .nav-desktop { display: flex; align-items: center; }
  .phone-link { display: inline-flex; align-items: center; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* -------------------------------------------------- HERO */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: flex; align-items: flex-end; overflow: hidden;
  padding-bottom: 70px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,13,.45) 0%, rgba(20,17,13,.10) 35%, rgba(20,17,13,.78) 100%),
    radial-gradient(120% 90% at 80% 0%, transparent 40%, rgba(20,17,13,.35) 100%);
}
.hero-container { position: relative; z-index: 2; display: flex; align-items: flex-end; flex: 1; padding: 0 24px; }
.hero-inner { color: #fff; padding-top: 110px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #f0e7d8; margin: 0 0 18px;
}
.eyebrow .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(176,69,35,.25); }
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.025em;
  margin: 0 0 24px;
}
.serif-italic { font-style: italic; font-weight: 400; color: #f1d9c4; }
.hero-lead { font-size: clamp(16px, 2vw, 20px); color: #ece2d3; max-width: 540px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-full { width: 100%; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 40px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span { width: 3px; height: 8px; background: rgba(255,255,255,.8); border-radius: 2px; animation: scrolly 1.6s infinite; }
@keyframes scrolly { 0% { opacity:0; transform: translateY(0); } 50% { opacity:1; } 100% { opacity:0; transform: translateY(12px); } }

/* -------------------------------------------------- SEKCIE */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 14px; font-weight: 600;
}
.kicker::before, .kicker::after { content:"—"; margin: 0 8px; color: var(--line); }
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.section-lead { color: var(--muted); font-size: clamp(15.5px, 1.6vw, 18px); margin: 0; }

/* -------------------------------------------------- SLUŽBY */
.services-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) and (max-width: 759px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 4/3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-index {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--serif); font-weight: 700; font-size: 13px;
  background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 8px;
  letter-spacing: .04em;
}
.service-body { padding: 26px 24px 30px; }
.service-body h3 {
  font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.01em;
  margin: 0 0 10px;
}
.service-body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* -------------------------------------------------- O NÁS */
.two-col { display: grid; gap: 56px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr 1fr; } }
.o-text p { color: var(--ink-soft); margin: 0 0 16px; max-width: 56ch; }
.o-text .section-title { text-align: left; }
.o-text .kicker { text-align: left; }
.o-text .btn { margin-top: 8px; }

.o-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 4px;
}
.stat-big { grid-column: span 2; padding: 30px 24px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stat-num { font-family: var(--serif); font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: -.03em; }
.stat-big .pct { color: var(--accent); }
.stat-word { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -.01em; }
.stat-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-big .stat-label { color: rgba(246,241,233,.7); }

/* -------------------------------------------------- GALÉRIA */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filter {
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px; gap: 18px;
}
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; } }

.g-item {
  position: relative; margin: 0; overflow: hidden; border-radius: 14px;
  cursor: pointer; background: var(--ink); box-shadow: var(--shadow);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.g-item:hover img { transform: scale(1.07); filter: brightness(.65); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 14px;
  display: flex; flex-direction: column; gap: 3px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20,17,13,.85));
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.g-item:hover figcaption { opacity: 1; transform: translateY(0); }
.g-item .cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.g-item .ttl { font-family: var(--serif); font-weight: 600; font-size: 16px; }

.g-item.hide { display: none; }

/* asymetrické rozmiestnenie */
.g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(4) { grid-column: span 2; }
@media (max-width: 760px) {
  .g-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .g-item:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 480px) { .g-item { grid-column: span 1 !important; grid-row: span 1 !important; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,17,13,.94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-figure { max-width: 90vw; max-height: 86vh; margin: 0; text-align: center; }
.lb-figure img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lb-figure figcaption { color: #f0e7d8; margin-top: 14px; font-family: var(--serif); font-size: 18px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 24px; right: 24px; }
.lb-close::before, .lb-close::after { content:""; position:absolute; left:25px; top:14px; width:2px; height:24px; background:#fff; }
.lb-close::before { transform: rotate(45deg); } .lb-close::after { transform: rotate(-45deg); }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev::before { content:""; position:absolute; left:20px; top:17px; width:12px; height:12px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform: rotate(45deg); }
.lb-next::before { content:""; position:absolute; right:20px; top:17px; width:12px; height:12px; border-right:2px solid #fff; border-top:2px solid #fff; transform: rotate(45deg); }
@media (max-width: 600px) { .lb-prev, .lb-next { width: 46px; height: 46px; } }

/* -------------------------------------------------- KONTAKT */
.contact-info .section-title { text-align: left; }
.contact-info .kicker { text-align: left; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.cl-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--accent-deep); }

.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,69,35,.18);
}
.field-row { display: grid; gap: 18px; }
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { margin: 0; font-size: 14px; color: var(--accent-deep); font-weight: 500; text-align: center; }
.form-note.error { color: #b3261e; }

/* -------------------------------------------------- FOOTER */
.site-footer { background: var(--ink); color: #e7dccb; padding: 64px 0 30px; }
.footer-inner { display: grid; gap: 30px; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-sub { color: rgba(231,220,203,.6); }
.foot-lead { color: rgba(231,220,203,.75); max-width: 36ch; margin: 14px 0 0; font-size: 15px; }
.foot-contacts { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.foot-contacts a:hover { color: var(--accent); }
.foot-nav { display: grid; gap: 22px; grid-auto-flow: column; }
@media (max-width: 760px) { .foot-nav { grid-auto-flow: row; } }
.foot-nav h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(231,220,203,.55); margin: 0 0 10px; }
.foot-nav a { display: block; padding: 4px 0; font-size: 14.5px; color: rgba(231,220,203,.85); }
.foot-nav a:hover { color: var(--accent); }
.foot-copy { grid-column: 1 / -1; border-top: 1px solid rgba(231,220,203,.15); padding-top: 24px; margin: 10px 0 0; font-size: 13px; color: rgba(231,220,203,.55); }

/* -------------------------------------------------- Reveal animácie */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
