/* =========================================================
   JEDELSKÝ a KUBĚNKA — Dark Luxury Editorial
   ========================================================= */

/* ── Design tokens ── */
:root {
  --bg:         #0c0b09;
  --surface:    #141210;
  --card:       #1c1a16;
  --border:     rgba(200,184,154,0.12);
  --stone:      #c8b89a;
  --stone-dim:  #8a7a64;
  --cream:      #f0ead8;
  --text:       #e8e0cc;
  --muted:      #7a7060;
  --f-serif:    'Fraunces', serif;
  --f-sans:     'Inter Tight', sans-serif;
  --nav-h:      64px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

button { font-family: var(--f-sans); cursor: pointer; border: none; background: none; }

/* ── Typography helpers ── */
.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1rem;
  font-weight: 400;
}

.section-title {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--cream);
  line-height: 1.08;
  font-weight: 300;
  margin-bottom: 0;
}

.section-title em { font-style: italic; color: var(--stone); }

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--stone);
  color: var(--bg);
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .2s;
}
.btn-primary:hover {
  background: var(--cream);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(200,184,154,0.4);
  color: var(--stone);
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color .25s, color .25s;
}
.btn-ghost:hover {
  border-color: var(--stone);
  color: var(--cream);
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(240,234,216,0.97);
  border-bottom-color: rgba(200,184,154,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 5vw;
}

.nav-logo {
  display: flex;
  align-items: center;
  background: rgba(240,234,216,0.93);
  padding: 5px 14px 5px 8px;
  border-radius: 3px;
}
#navbar.scrolled .nav-logo {
  background: transparent;
}
.logo-img {
  height: 62px;
  width: auto;
  opacity: 1;
  transition: opacity .2s;
}
.nav-logo:hover .logo-img { opacity: 0.80; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--stone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--cream); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Scrolled — světlá lišta, tmavé prvky */
#navbar.scrolled .nav-link { color: #2a2620; }
#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active { color: #0c0b09; }

.nav-phone {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1a1a14;
  background: var(--stone);
  border: 1px solid var(--stone);
  padding: 0.5rem 1.3rem;
  border-radius: 2px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-phone:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: #0c0b09;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-bg.loaded .hero-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,11,9,0.30) 0%,
    rgba(12,11,9,0.15) 30%,
    rgba(12,11,9,0.70) 60%,
    rgba(12,11,9,0.97) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 4rem;
  left: 0; right: 0;
  padding: 0 5vw;
}

.hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
  transition-delay: 0.1s;
}

.hero-headline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(4rem, 11vw, 10rem);
  color: var(--cream);
  line-height: 0.95;
  font-weight: 300;
  margin-bottom: 2rem;
  transition-delay: 0.2s;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}

.hero-indent {
  display: block;
  padding-left: clamp(2rem, 15vw, 18rem);
  color: var(--stone);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(240,234,216,0.7);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  transition-delay: 0.3s;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  transition-delay: 0.4s;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--stone-dim));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   STATS
   ======================================== */
.stats-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 5vw;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 1rem 3.5rem;
  flex: 1 1 160px;
}

.stat-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--stone);
  line-height: 1;
  display: block;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-top: 0.5rem;
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.section-portfolio {
  padding: 7rem 5vw;
}

.section-header {
  margin-bottom: 3.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 340px 320px 320px;
  gap: 6px;
  margin-bottom: 6px;
}

.portfolio-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
.portfolio-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.portfolio-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
.portfolio-item:nth-child(4) { grid-column: 2 / 4; grid-row: 2 / 3; }
.portfolio-item:nth-child(5) { grid-column: 1 / 2; grid-row: 3 / 4; }
.portfolio-item:nth-child(6) { grid-column: 2 / 3; grid-row: 3 / 4; }
.portfolio-item:nth-child(7) { grid-column: 3 / 4; grid-row: 3 / 4; }

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.portfolio-item:hover img,
.portfolio-item:focus img { transform: scale(1.05); }
.portfolio-item:focus { outline: 2px solid var(--stone); outline-offset: -2px; }

.portfolio-label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,234,216,0.95);
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.portfolio-item:hover .portfolio-label,
.portfolio-item:focus .portfolio-label {
  opacity: 1;
  transform: translateY(0);
}

/* Show more button */
.portfolio-more-wrap {
  text-align: center;
  padding: 2.5rem 0 0;
}

.btn-more {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--border);
  padding: 0.9rem 2.5rem;
  transition: border-color .25s, color .25s, background .25s;
  cursor: pointer;
}
.btn-more:hover {
  border-color: var(--stone-dim);
  background: var(--card);
  color: var(--cream);
}

/* Extra gallery */
.extra-gallery {
  display: none;
  margin-top: 6px;
}
.extra-gallery.visible { display: block; }

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 300px;
  background: var(--card);
}
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.masonry-item:hover img,
.masonry-item:focus img { transform: scale(1.05); }
.masonry-item:focus { outline: 2px solid var(--stone); outline-offset: -2px; }

/* ========================================
   SERVICES
   ======================================== */
.section-services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 5vw;
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.services-list { padding-top: 0.5rem; }

.service-row {
  display: grid;
  grid-template-columns: 52px 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease), padding-left .25s var(--ease), padding-right .25s var(--ease), margin .25s var(--ease);
}

.service-row:first-child { border-top: 1px solid var(--border); }

.service-row:hover {
  background: var(--card);
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 -1rem;
}

.service-num {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--stone);
  font-size: 1.15rem;
  font-weight: 300;
  flex-shrink: 0;
}

.service-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

/* ========================================
   ABOUT
   ======================================== */
.section-about { padding: 0; }

.about-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 75vh;
}

.about-image {
  position: relative;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}
.about-image:hover img { transform: scale(1.03); }

.about-image-caption {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,234,216,0.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.about-text {
  padding: 6rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.about-year {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--stone);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.5rem;
}

.about-text .section-title { margin-bottom: 2.5rem; }

.about-body p {
  font-size: 0.95rem;
  color: rgba(232,224,204,0.75);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-quote {
  border-left: 2px solid var(--stone);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(240,234,216,0.7);
  line-height: 1.7;
  font-weight: 300;
}

.about-cta { margin-top: 0.5rem; }

/* ========================================
   PROCESS STRIP
   ======================================== */
.section-process {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 5vw;
}

.process-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.process-inner > .section-label { display: block; margin-bottom: 2.5rem; }

.process-steps {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 140px;
}

.process-n {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--stone);
  font-weight: 300;
  line-height: 1;
}

.process-t {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.process-arrow {
  color: var(--stone-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.6;
  padding-bottom: 1.2rem;
}

/* ========================================
   CONTACT
   ======================================== */
.section-contact { padding: 7rem 5vw; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 2rem; }

.contact-phone {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--stone);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  transition: color .2s;
}
.contact-phone:hover { color: var(--cream); }

.contact-details { display: flex; flex-direction: column; }

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.contact-row:first-child { border-top: 1px solid var(--border); }

.contact-key {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}

.contact-val {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}
.contact-val a { color: var(--stone); transition: color .2s; }
.contact-val a:hover { color: var(--cream); }

.contact-map {
  position: relative;
  height: 100%;
  min-height: 460px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: none;
  filter: grayscale(100%) invert(1) contrast(0.85) brightness(0.75) sepia(0.1);
  opacity: 0.85;
  transition: opacity .3s;
}
.contact-map:hover iframe { opacity: 1; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 5vw;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo .logo-img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.4;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-reg {
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,7,6,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4rem;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  color: rgba(240,234,216,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s, transform .2s;
  line-height: 1;
}
.lb-close:hover { color: var(--cream); transform: rotate(90deg); }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  color: rgba(240,234,216,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover,
.lb-next:hover { color: var(--cream); }

/* ========================================
   RESPONSIVE — <= 900px
   ======================================== */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .portfolio-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; min-height: 260px; }
  .portfolio-item:nth-child(2) { grid-column: auto; grid-row: auto; min-height: 220px; }
  .portfolio-item:nth-child(3) { grid-column: auto; grid-row: auto; min-height: 220px; }
  .portfolio-item:nth-child(4) { grid-column: 1 / 3; grid-row: auto; min-height: 240px; }
  .portfolio-item:nth-child(5) { grid-column: auto; grid-row: auto; min-height: 220px; }
  .portfolio-item:nth-child(6) { grid-column: auto; grid-row: auto; min-height: 220px; }
  .portfolio-item:nth-child(7) { grid-column: 1 / 3; grid-row: auto; min-height: 220px; }

  .masonry-grid { grid-template-columns: 1fr 1fr; }

  .about-split { grid-template-columns: 1fr; }
  .about-image { min-height: 55vw; max-height: 60vh; }
  .about-text { padding: 4rem 5vw; }
  .about-image-caption { display: none; }

  .services-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-desc { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-map { min-height: 320px; }
  .contact-map iframe { min-height: 320px; }

  .stat-divider { display: none; }
  .stat-item { padding: 1rem 1.5rem; }
}

/* ========================================
   RESPONSIVE — <= 600px
   ======================================== */
@media (max-width: 600px) {
  :root { --nav-h: 58px; }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-link { font-size: 1rem; letter-spacing: 0.12em; }
  .hamburger { display: flex; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .portfolio-item { min-height: 240px; }
  .portfolio-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .masonry-grid { grid-template-columns: 1fr; }

  .process-steps { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .process-arrow { display: none; }

  .stats-inner { gap: 0; }
  .stat-item { flex: 1 1 50%; padding: 1.5rem 1rem; }

  .hero-content { bottom: 3rem; }
  .hero-cta { flex-direction: column; width: fit-content; }
  .hero-scroll-hint { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }

  .service-row { grid-template-columns: 36px 1fr; gap: 1rem; }
}
