@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

/* ─── Tokens ─── */
:root {
  --bg:      #faf7f2;
  --ink:     #1c1713;
  --muted:   #7a6e61;
  --accent:  #b8925a;
  --line:    #e5ddd4;
  --surface: #ffffff;
  --r:       16px;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

.container {
  width: min(1160px, 90vw);
  margin-inline: auto;
}

/* ─── Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(1160px, 90vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { width: 200px; height: auto; object-fit: contain; }
.brand-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

nav { margin-left: auto; }
nav ul { list-style: none; display: flex; align-items: center; gap: 32px; }
nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); transition: color 0.2s; }
nav a:hover { color: var(--ink); }

.nav-dimmer { display: none; }
.mobile-only { display: none; }
.nav-divider { height: 1px; background: var(--line); margin: 4px 0; list-style: none; }
.nav-address { font-size: 13px; color: var(--muted); list-style: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Button ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.button:hover { background: #2e2820; transform: translateY(-1px); }

.nav-desktop-cta { padding: 10px 20px; font-size: 13px; }

/* ─── Link arrow ─── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid rgba(184, 146, 90, 0.35);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}
.link-arrow::after { content: '→'; }
.link-arrow:hover { gap: 10px; color: var(--ink); border-color: rgba(28,23,19,0.3); }
.link-arrow.small { font-size: 13px; }

/* ─── Eyebrow ─── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Section header ─── */
.section-header {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 56px;
}
.section-sub { font-size: 16px; line-height: 1.7; }

/* ─── Hero ─── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { display: grid; gap: 24px; }

.hero-location {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-text h1 em { font-style: italic; color: var(--accent); }

.hero-sub { font-size: 17px; line-height: 1.75; max-width: 480px; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.hero-visual { position: relative; }
.hero-img {
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  background: url('HP.JPG') center / cover;
  overflow: hidden;
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 32px rgba(28,23,19,0.08);
}
.badge-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.badge-label { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ─── Services ─── */
#services { padding: 96px 0; border-bottom: 1px solid var(--line); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card { display: flex; flex-direction: column; gap: 16px; }

.svc-img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}
.svc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.service-card:hover .svc-img img {
  transform: scale(1.05);
  filter: saturate(1);
}

.svc-content { display: grid; gap: 6px; }

.svc-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.svc-content h3 { font-size: 18px; }
.svc-content p { font-size: 14px; line-height: 1.6; }

.services-cta { margin-top: 48px; }

/* ─── Gallery ─── */
#gallery { padding: 96px 0; border-bottom: 1px solid var(--line); }
#gallery .container { margin-bottom: 40px; }

.gallery-grid {
  width: min(1160px, 90vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--line);
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: saturate(0.9) brightness(0.97);
}
.gallery-tile:hover img { transform: scale(1.04); }

/* ─── Brands ─── */
#brands { padding: 96px 0; border-bottom: 1px solid var(--line); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.brand-card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  cursor: default;
}

/* Přední strana – logo */
.brand-front {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.3s ease;
}
.brand-front img {
  max-width: 80%;
  max-height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(10%);
}
.brand-front span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* Zadní strana – popis (hover na desktopu) */
.brand-back {
  position: absolute;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}
.brand-back strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.brand-back p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* Karta bez loga – zobraz rovnou zadní stranu */
.brand-front.no-logo { opacity: 0; }
.brand-front.no-logo + .brand-back { opacity: 1; }

/* Desktop hover */
@media (hover: hover) {
  .brand-card:hover .brand-front { opacity: 0; }
  .brand-card:hover .brand-back  { opacity: 1; }
}

/* Mobil – vždy zobraz obě části pod sebou */
@media (hover: none) {
  .brand-card { aspect-ratio: auto; }
  .brand-front { position: static; padding: 20px 20px 12px; }
  .brand-back  { position: static; background: transparent; opacity: 1; padding: 0 20px 20px; border-radius: 0; }
  .brand-back strong { color: var(--ink); }
  .brand-back p      { color: var(--muted); }
}

.brand-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ─── Why ─── */
.why-section { padding: 96px 0; border-bottom: 1px solid var(--line); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 48px;
}
.pillar {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  align-content: start;
}
.pillar h3 { font-size: 20px; }

.why-cta { display: flex; }

/* ─── Contact ─── */
#contact { padding: 96px 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.contact-text { display: grid; gap: 24px; }
.contact-text h2 { margin-top: 8px; }
.contact-text p { font-size: 16px; }

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.social-row a {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.2s;
}
.social-row a:hover { color: var(--ink); }
.social-row svg { width: 20px; height: 20px; }

.contact-info {
  display: grid;
  gap: 36px;
  padding-top: 8px;
}
.contact-address { display: grid; gap: 4px; }
.info-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.address-street { font-family: 'Playfair Display', Georgia, serif; font-size: 32px; color: var(--ink); line-height: 1.1; }
.address-city { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; color: var(--muted); margin-bottom: 10px; }

.contact-details { display: grid; gap: 20px; }
.info-row { display: grid; gap: 4px; }
.info-row a { font-size: 15px; color: var(--ink); word-break: break-word; }
.info-row a:hover { color: var(--accent); }
.info-row p { font-size: 15px; color: var(--ink); }

/* ─── Footer ─── */
footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--muted); }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 9, 6, 0.95);
  display: flex;
  flex-direction: column;
  z-index: 200;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox:not([hidden]) { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  flex-shrink: 0;
}
.lightbox-counter {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 0;
}
.lightbox-stage img {
  max-width: min(84vw, 1000px);
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.12); color: #fff; }
.lightbox-nav svg { width: 20px; height: 20px; }

.lightbox-caption {
  padding: 14px 28px 24px;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ─── Focus visible ─── */
.gallery-tile:focus-visible,
.button:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-img { aspect-ratio: 16 / 9; }
  .hero-badge { left: auto; right: 24px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  nav ul {
    position: fixed;
    inset: 85px 16px auto 16px;
    background: rgba(250, 247, 242, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    box-shadow: 0 16px 48px rgba(28,23,19,0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 99;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  nav ul.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  nav ul li { padding: 2px 0; }
  nav a { font-size: 17px; color: var(--ink); padding: 6px 0; display: block; }

  .nav-dimmer { position: fixed; inset: 0; background: rgba(0,0,0,0.15); display: none; z-index: 90; }
  .nav-dimmer.visible { display: block; }
  .burger { display: inline-flex; }
  .nav-desktop-cta { display: none; }
  .mobile-only { display: block; }
  .nav-social { display: flex !important; gap: 16px; }
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  #services, #gallery, #brands, .why-section, #contact { padding: 72px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-header { margin-bottom: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 28px 24px; }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  #services, #gallery, #brands, .why-section, #contact { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-img { aspect-ratio: 4 / 3; }
  .section-header { margin-bottom: 32px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .address-street { font-size: 26px; }
  .service-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
