/* --------------------------------------------------
    FONT & GLOBAL SETTINGS
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;700&display=swap');

:root {
  /* DARK MODE (default) */
  --bg: #101010;
  --bg2: #171717;
  --text: #ffffff;
  --text-muted: #bbbbbb;
  --accent: #C2A878; /* champagne gold */
  --card: #1d1d1d;
  --border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(16, 16, 16, 0.55);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
}

body.light-mode {
  /* LIGHT MODE */
  --bg: #F7F5F0;
  --bg2: #FFFFFF;
  --text: #111111;
  --text-muted: #555555;
  --accent: #C2A878;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255,255,255,0.85);
  --shadow-soft: 0 16px 30px rgba(0,0,0,0.12);
}

body.menu-open {
  overflow: hidden;
}
/* --------------------------------------------------
    RESET
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* --------------------------------------------------
   LOGO SWITCH (VARIANTA A)
-------------------------------------------------- */

/* Default = dark mode → světlé logo */
.logo img {
  content: url("img/logo-light.png");
}

/* Light mode → tmavé logo */
body.light-mode .logo img {
  content: url("img/logo-dark.png");
}

/* --------------------------------------------------
    HEADER – VARIANTA B (luxusní) + FIX light scrolled
-------------------------------------------------- */
.header {
  width: 100%;
  height: 150px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 40px;

  background: rgba(175, 175, 175, 0.445);
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);

  transition: background 0.35s ease,
              backdrop-filter 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

/* DARK MODE — po scrollu */
.header.scrolled {
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(194,168,120,0.45);
}

/* LIGHT MODE — po scrollu (TVŮJ POŽADAVEK) */
body.light-mode .header.scrolled {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(194,168,120,0.35);
}

/* Light mode – menu text při scrollu */
body.light-mode .header.scrolled .nav a {
  color: #111;
}

body.light-mode .header.scrolled .nav a::after {
  background: var(--accent);
}

/* Light mode – hamburger bars */
body.light-mode .header.scrolled .hamburger span {
  background: #111;
}

/* Light mode – theme toggle */
body.light-mode .header.scrolled .theme-toggle {
  color: #111;
}

/* Light mode – logo při scrollu */
body.light-mode .header.scrolled .logo img {
  content: url("img/logo-dark.png");
}

/* HEADER LAYOUT */
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo img {
  height: 55px;
  width: auto;
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

/* underline */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.nav a.active::after,
.nav a:hover::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.theme-toggle:hover { transform: rotate(15deg) scale(1.05); }

/* Hamburger */
.hamburger {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: var(--text);
  border-radius: 4px;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 300000; /* musí být vyšší než header */
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav a {
  color: var(--text);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.close-mobile {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 30px;
  cursor: pointer;
}

/* --------------------------------------------------
    HERO SECTION
-------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2;
}

.carousel {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s ease-in-out;
  filter: grayscale(35%);
}

.slide.active { opacity: 1; }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.40) 40%,
      rgba(0,0,0,0.20) 100%
    );
  mix-blend-mode: multiply;
}

body.light-mode .slide::after {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.25) 40%,
      rgba(0,0,0,0.10) 100%
    );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 54px);
  max-width: 800px;
  line-height: 1.15;
  color: var(--accent);
  text-shadow:
      0 4px 18px rgba(0,0,0,0.75),
      0 0 25px rgba(0,0,0,0.45),
      0 0 40px rgba(0,0,0,0.35);
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------
    REVEAL ANIMATION
-------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
    SLUŽBY – TIMELINE
-------------------------------------------------- */
.services {
  padding: 110px 40px;
  background: var(--bg2);
}

.services h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 60px;
  color: var(--accent);
}

.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--border);
}

.timeline-item {
  width: 50%;
  padding: 25px 40px;
  position: relative;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }

.timeline-item::before {
  content: "";
  position: absolute;
  top: 32px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(194,168,120,0.25);
}

.timeline-item.left::before { right: -7px; }
.timeline-item.right::before { left: -7px; }

.timeline-item .content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}

.timeline-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--accent);
}

.timeline-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------
    PREMIUM GRID GALLERY
-------------------------------------------------- */
.portfolio {
  padding: 110px 40px;
  background: var(--bg);
}

.portfolio h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 40px;
  color: var(--accent);
}

.gallery-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  height: 300px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.55);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;

}

.g-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.g-item:hover::after {
  opacity: 1;
}

.gallery-btn-box {
  text-align: center;
  margin-top: 40px;
}

.gallery-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(194,168,120,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(194,168,120,0.55);
}

/* mobile gallery */
@media(max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .g-item { height: 240px; }
}

/* --------------------------------------------------
    LIGHTBOX
-------------------------------------------------- */
/* --------------------------------------------------
   LIGHTBOX – FIXED + HIGHEST PRIORITY
-------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999999 !important;  /* nejvyšší vrstva na webu */
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.9);
  z-index: 1000000000 !important;
}
/* --------------------------------------------------
   LIGHTBOX ARROWS
-------------------------------------------------- */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 55px;
  font-weight: 300;
  cursor: pointer;
  z-index: 1000000001;
  user-select: none;
  transition: opacity .25s ease, transform .25s ease;
  opacity: 0.8;
}

.lb-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

.lb-prev {
  left: 40px;
}

.lb-next {
  right: 40px;
}

@media(max-width: 600px) {
  .lb-arrow {
    font-size: 42px;
  }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
}
/* --------------------------------------------------
   LIGHTBOX CLOSE BUTTON
-------------------------------------------------- */
.lb-close {
  position: absolute;
  top: 35px;
  right: 45px;
  font-size: 40px;
  color: var(--accent);
  cursor: pointer;
  z-index: 1000000002;
  user-select: none;
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0.8;
}

.lb-close:hover {
  opacity: 1;
  transform: scale(1.15);
}

@media(max-width: 600px) {
  .lb-close {
    top: 20px;
    right: 25px;
    font-size: 32px;
  }
}

/* --------------------------------------------------
    KONTAKT
-------------------------------------------------- */
.contact {
  padding: 110px 40px 100px;
  background: var(--bg2);
}

.contact h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 50px;
  color: var(--accent);
}

.contact-box {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  gap: 50px;
  grid-template-columns: 1.1fr 1.6fr;
}

.contact-info p {
  margin: 4px 0;
  font-size: 15px;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
}

.contact-map {
  display: grid;
  grid-template-rows: 270px auto;
  gap: 16px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.contact-form {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
}

.contact-form button {
  border-radius: 999px;
  border: none;
  padding: 11px 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

/* --------------------------------------------------
    FOOTER
-------------------------------------------------- */
.footer {
  padding: 30px 20px 35px;
  text-align: center;
  background: #050505;
  color: #eee;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 40px;
  margin-bottom: 8px;
}

/* --------------------------------------------------
    RESPONSIVE FIXES
-------------------------------------------------- */
@media (max-width: 920px) {
  /* skryj klasické menu, zobraz hamburger */
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* header na mobilech: logo vlevo, hamburger + toggle vpravo */
  .header {
    padding: 0 16px;
    justify-content: space-between;
  }

  .header-left {
    display: flex;
    align-items: center;
    justify-self: center;
    justify-content: center;
    
  }
.logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.logo span{
    white-space: normal;
    display: block;
    max-width: 100px;
    align-items: center;
    justify-content: center;
    justify-self: center;
}
  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;

    /* otočí pořadí: v DOM je [toggle, hamburger],
       vizuálně chceme [hamburger, toggle] */
    flex-direction: row-reverse;
  }

  /* timeline úpravy zůstávají */
  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 55px;
  }

  .timeline-item::before {
    left: 2px;
  }
}

@media (max-width: 768px) {
  .contact-box {
    grid-template-columns: 1fr;
  }
}

/* Logo – ať je zarovnané na levý okraj, ne doprostřed */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo span {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

