:root {
  --bg-color: #fff9f0;
  --text-color: #1e1e1e;
  --primary-color: #f0b000;
  --primary-hover: #ffd84a;
  --menu-bg: rgba(255, 255, 255, 0.15);
  --menu-text: #000;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --primary-color: #f0b000;
  --primary-hover: #fff176;
  --menu-bg: rgba(255, 255, 255, 0.08);
  --menu-text: #f0f0f0;
}


/* ZÁKLADNÍ STYLY */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: var(--text-color);
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1024px;
  background-color: var(--bg-color);
  position: relative;
}

header {
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  background-color: var(--bg-color);
}

.logo-fixed {
  position: absolute;
  top: 1rem;
  left: 2rem;
  width: 130px;
  z-index: 20;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}
.logo-fixed:hover {
  transform: scale(1.05);
}

.intro-text {
  flex: 1;
  padding: 4rem 2rem;
  margin-top: 5rem;
}
.intro-text h1 {
  font-family: Arial Black, sans-serif;
  font-size: 3rem;
  letter-spacing: 0.3rem;
  margin-bottom: 1rem;
}
.intro-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.intro-text button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  border: none;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.intro-text button:hover {
  background-color: var(--primary-hover);
  color: #000;
}

.intro-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* MENU S SUBMENU */
nav.bottom-menu {
  width: 100vw;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: var(--menu-text);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

nav.bottom-menu .menu-group {
  position: relative;
}
nav.bottom-menu .menu-group a {
  color: var(--menu-text);
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  background: var(--menu-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
}
nav.bottom-menu .menu-group a:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: black;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0,0,0,0.85);
  padding: 0.5rem 0;
  border-radius: 0 0 6px 6px;
  backdrop-filter: blur(12px);
  z-index: 50;
}
.submenu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-group:hover .submenu,
.submenu:hover {
  opacity: 1;
  visibility: visible;
}
.submenu li {
  list-style: none;
}
.submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s ease;
}
.submenu a:hover {
  background: rgba(255,255,255,0.2);
}

/* TLAČÍTKO DARK MODE */
#toggle-darkmode {
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--menu-text);
}

/* SEKCE SLUŽBY, GALERIE */
.services, .gallery {
  background-color: #2d1f1a;
  color: var(--text-color);
  padding: 3rem 2rem;
}
.services h2, .gallery h2 {
  margin-bottom: 2rem;
}
.service-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.service-item, .gallery-item {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 1rem;
  text-align: center;
  border-radius: 5px;
}
.service-item i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.gallery-item img {
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
.gallery-item:hover img {
  transform: scale(1.07) translateY(-6px);
  box-shadow: 0 8px 32px rgba(240,176,0,0.25);
  z-index: 2;
}

/* PATIČKA */
.footer {
  background-color: #1e120d;
  color: var(--text-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.footer img {
  max-width: 250px;
  margin-bottom: 1rem;
}
.footer nav a {
  color: var(--text-color);
  margin: 0 0.5rem;
  text-decoration: none;
}

/* TLAČÍTKA */
.btn-yellow {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

/* DARK MODE STYLY */
body.dark-mode {
  background-color: #111;
  color: #f0f0f0;
}
body.dark-mode .container {
  background-color: #1d1d1d;
}
body.dark-mode .intro-text button,
body.dark-mode .btn-yellow {
  background-color: var(--primary-color);
  color: #000;
}
body.dark-mode nav.bottom-menu {
  background: rgba(255,255,255,0.08);
}
body.dark-mode nav.bottom-menu a {
  color: #f0f0f0;
}
body.dark-mode .submenu {
  background: rgba(255,255,255,0.08);
}


nav.main-nav {
  background: var(--menu-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.menu-group {
  position: relative;
}

.menu-group > a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
  display: inline-block;

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-group > a:hover {
  background: var(--primary-color);
  color: black;
}

.submenu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--menu-bg);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  min-width: 200px;
  z-index: 999;
  flex-direction: column;
}

.submenu li {
  list-style: none;
}

.submenu a {
  padding: 0.5rem 1rem;
  display: block;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s ease;
}

.submenu a:hover {
  background: var(--primary-hover);
  color: black;
}

.menu-group:hover .submenu {
  display: flex;
}



.menu-group > a {
  position: relative;
  overflow: hidden;
}

.menu-group > a::after {
  content: "";
  position: absolute;
  bottom: 0.3rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #a87d00; /* tmavě zlatá */
  transform: scaleX(0.4);
  transition: all 0.3s ease;
  transform-origin: left;
}

.menu-group > a:hover::after {
  background-color: #ffd700; /* zářící zlatá */
  transform: scaleX(1);
}



input[type="text"],
input[type="email"],
textarea {
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}



/* FORMULÁŘ – ČITELNOST */
input[type="text"],
input[type="email"],
textarea {
  color: var(--text-color) !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 6px !important;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}



.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 3rem;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  text-align: center;
  gap: 2rem;
}

.footer-left-icons {
  flex: 1 1 200px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-icons a img {
  width: 28px;
  height: 28px;
  margin: 0 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  padding: 2px;
  transition: transform 0.3s ease;
}

.footer-icons a img:hover {
  transform: scale(1.1);
}

.footer-center-text {
  flex: 1 1 400px;
  text-align: center;
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 0.5rem;
}

body.dark-mode .footer {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}



.footer.glass-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 3rem;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-color);
  text-align: center;
  gap: 2rem;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin-bottom: 0.5rem;
}



/* NOVÝ KONTEJNER PRO FORMULÁŘ */
.contact-wrapper {
  background: rgba(0, 0, 0, 0.06);
  padding: 2rem;
  border-radius: 12px;
}

body.dark-mode .contact-wrapper {
  background: rgba(255, 255, 255, 0.05);
}

/* ÚPRAVA NAVIGAČNÍHO PRUHU */
nav.main-nav {
  background: rgba(240, 176, 0, 0.08);
  backdrop-filter: blur(14px);
}

body.dark-mode nav.main-nav {
  background: rgba(0, 0, 0, 0.3);
}


/* Úprava horního menu */
nav.main-nav {
  background: #966347;
  backdrop-filter: blur(14px);
}

body.dark-mode nav.main-nav {
  background: #966347;
}

/* Stylizace formulářového kontejneru */
.contact-wrapper {
  background: #966347;
  padding: 2rem;
  border-radius: 12px;
}

body.dark-mode .contact-wrapper {
  background: #966347;
}



/* Styl tlačítek ve stylu dřeva/zlata */
button,
.btn-yellow {
  background: linear-gradient(145deg, #b0793a, #966347);
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

button:hover,
.btn-yellow:hover {
  background: linear-gradient(145deg, #d89b5d, #b0793a);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Dark mode tlačítka */
body.dark-mode button,
body.dark-mode .btn-yellow {
  background: linear-gradient(145deg, #b0793a, #704b2d);
  color: #fff;
}

body.dark-mode button:hover {
  background: linear-gradient(145deg, #d89b5d, #8d5f35);
}



.contact-wrapper {
  background-color: #966347 !important;
  padding: 2rem;
  border-radius: 12px;
}

body.dark-mode .contact-wrapper {
  background-color: #966347 !important;
}



/* Pozadí celé sekce kontakt */
#contact {
  background-color: #7a4f30;
}

/* Světlý text pro nadpisy sekcí */
.services h2,
.gallery h2 {
  color: #fff;
}



/* Tmavší odstín footeru pro kontrast se žlutým logem */
.footer {
  background-color: #1f140c !important;
}

body.dark-mode .footer {
  background-color: #1f140c !important;
}



/* Tmavší pozadí pro footer kvůli kontrastu se žlutým logem */
.footer {
  background-color: #2a1b12 !important; /* tmavší varianta původní hnědé */
}



/* Ztmavený footer pro lepší kontrast se žlutým logem */
.footer.glass-footer {
  background: rgba(40, 25, 15, 0.75);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .footer.glass-footer {
  background: rgba(15, 10, 5, 0.75);
}



/* Styl tlačítek – zlatá verze */
button,
.btn-yellow {
  background: linear-gradient(145deg, #ffd700, #f0b000);
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

button:hover,
.btn-yellow:hover {
  background: linear-gradient(145deg, #fff176, #f0b000);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

body.dark-mode button,
body.dark-mode .btn-yellow {
  background: linear-gradient(145deg, #ffdf66, #d4a800);
  color: #fff;
}

body.dark-mode button:hover {
  background: linear-gradient(145deg, #ffe57f, #f0b000);
}



.menu-logo {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}
.menu-logo img {
  height: 38px;
  width: auto;
  display: block;
}



/* Upravený světlejší hnědý odstín footeru */
.footer.glass-footer {
  background: #94521A;
  backdrop-filter: blur(16px);
}

body.dark-mode .footer.glass-footer {
  background: #94521A;
}



.footer.glass-footer {
  color: #fff;
}

.footer.glass-footer p,
.footer.glass-footer h3,
.footer.glass-footer a {
  color: #fff !important;
}


nav.main-nav {
  gap: 1rem;
}
