:root {
  --bg: #f7f4ef;
  --surface: #fefcf8;
  --ink: #181614;
  --ink-soft: #524b43;
  --line: #d7cec2;
  --gold: #c79f78;
  --gold-deep: #996a45;
  --charcoal: #1f1b17;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 28px 60px rgba(34, 24, 17, 0.12);
  --shadow-card: 0 14px 36px rgba(34, 24, 17, 0.08);
  --container: min(1220px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.01em;
}

p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(4.2rem, 8vw, 7.4rem) 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  transition: background-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(28, 21, 15, 0.1);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  height: 72px;
  width: auto;
}

.logo-black { display: none; }

.site-header.scrolled .logo-white { display: none; }
.site-header.scrolled .logo-black { display: block; }


.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #f9f3ea;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.site-header.scrolled .nav-links a {
  color: #2d271f;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--gold);
}

.nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.4rem;
  display: none;
}

.site-header.scrolled .nav-toggle {
  border-color: rgba(42, 33, 25, 0.25);
  color: #2a2119;
  background: rgba(255, 255, 255, 0.8);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1b1713;
}

.hero-media,
.image-band-media {
  position: absolute;
  inset: -6% 0;
  will-change: transform;
}

.hero-media img,
.image-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(9, 8, 7, 0.78) 8%, rgba(9, 8, 7, 0.32) 58%, rgba(9, 8, 7, 0.62) 100%),
    radial-gradient(circle at 85% 15%, rgba(199, 159, 120, 0.13), transparent 32%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(6rem, 10vw, 9rem);
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  color: #e9c8aa;
}

.eyebrow-dark {
  color: #7b6049;
}

h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  margin-bottom: 1.1rem;
}

.hero-text {
  max-width: 55ch;
  color: #ece3d6;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, var(--gold), var(--gold-deep));
  box-shadow: 0 14px 30px rgba(128, 86, 56, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(120, 77, 48, 0.38);
}

.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.scroll-cue {
  position: absolute;
  right: clamp(1rem, 5vw, 2.6rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.section-intro {
  background: linear-gradient(180deg, #fbf8f3 0%, #f5f1ea 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.3rem, 4vw, 3.8rem);
  align-items: end;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: #24201a;
}

.section-head {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
}

.section-head p,
.intro-grid p,
.contact-info p,
.service-card p {
  color: var(--ink-soft);
}

.image-band {
  position: relative;
  min-height: clamp(340px, 62vw, 630px);
  overflow: hidden;
  background: #1b1814;
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 14, 11, 0.13), rgba(17, 14, 11, 0.3));
}

.image-band-alt::after {
  background: linear-gradient(180deg, rgba(16, 13, 10, 0.3), rgba(16, 13, 10, 0.08));
}

.section-realizace {
  background: var(--surface);
}

.gallery-wrap {
  width: min(1500px, 98vw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(60px, 6.4vw, 96px);
}

.gallery-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.card-lg {
  grid-column: span 8;
  grid-row: span 6;
}

.card-wide {
  grid-column: span 8;
  grid-row: span 5;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.04) 30%, rgba(8, 7, 6, 0.72) 100%);
  z-index: 1;
  transition: background-color 0.4s ease;
}

.gallery-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  color: #fff;
}

.gallery-caption h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin-bottom: 0.2rem;
}

.gallery-caption p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.8);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.7rem 1.35rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.service-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  transition: color 0.22s, gap 0.22s;
}

.service-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.22s;
}

.service-link:hover {
  color: var(--ink);
}

.service-link:hover::after {
  transform: translateX(4px);
}

.contact {
  background: linear-gradient(180deg, #efe9df 0%, #ece4d7 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 5vw, 4.2rem);
  align-items: start;
}

.contact-details {
  margin-top: 1.25rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  color: #2c261f;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-detail > svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gold-deep);
  opacity: 0.8;
}

.contact-detail > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  opacity: 0.75;
}

.contact-info a {
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--gold-deep);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.contact-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.13);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,0.7);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contact-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.22);
  color: var(--ink);
}

.contact-link-btn svg {
  flex-shrink: 0;
}

.contact-form {
  padding: clamp(1.1rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(151, 121, 94, 0.24);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.95rem;
}

.contact-form-status {
  margin: 0;
  font-size: 0.9rem;
  color: #3f7a4f;
  min-height: 1.2em;
}

.contact-form-status.is-error {
  color: #b3413a;
}

label {
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4f453c;
  display: grid;
  gap: 0.45rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(90, 74, 60, 0.24);
  background: #fff;
  border-radius: 12px;
  font: inherit;
  color: #231f1a;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(151, 106, 73, 0.8);
  box-shadow: 0 0 0 4px rgba(187, 138, 101, 0.16);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-wrap {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(62px, 9vw, 90px);
  }

  .gallery-card,
  .card-wide,
  .card-lg {
    grid-column: span 3;
  }

  .card-lg,
  .card-wide {
    grid-row: span 5;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(300px, 92vw);
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(23, 19, 15, 0.96);
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .site-header.scrolled .nav-links {
    border-color: rgba(88, 69, 50, 0.25);
    background: rgba(251, 249, 245, 0.98);
  }

  .site-header.scrolled .nav-links a {
    color: #2c251d;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-inner {
    padding-bottom: clamp(4rem, 8vw, 6rem);
  }
}

@media (max-width: 680px) {
  .gallery-wrap {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    width: var(--container);
  }

  .gallery-card,
  .card-wide,
  .card-lg {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1220px, 94vw);
  }

  .nav {
    min-height: 74px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media,
  .image-band-media,
  .reveal {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
  }
}

/* ── GALLERY BADGE ────────────────────────────────────────────────── */

.gallery-card.has-gallery {
  cursor: pointer;
}

.gallery-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  background: rgba(20, 16, 11, 0.6);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.25s;
}

.gallery-card.has-gallery:hover .gallery-badge {
  background: rgba(199, 159, 120, 0.88);
}

/* ── LIGHTBOX ─────────────────────────────────────────────────────── */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 6, 0.94);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

.lightbox-inner {
  position: relative;
  max-width: min(1100px, 86vw);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding: 0 0.2rem;
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.lightbox-info .lb-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: #fff;
}

.lightbox-info .lb-loc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-counter {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.lb-thumb {
  width: 64px;
  height: 48px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
  flex-shrink: 0;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-thumb:hover { opacity: 0.82; }

.lb-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

@media (max-width: 680px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
  .lightbox-inner { max-width: 96vw; }
  .lb-thumb { width: 50px; height: 38px; }
}
