/* =================================================================
   Web Šablona 1: Elegance - Nové styly
   ================================================================= */

/* -- 1. Základní nastavení a Proměnné -- */
:root {
  --color-forest-green: #2F4858;
  --color-cream: #F9F7F3;
  --color-bronze: #B99470;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: #4a4a4a;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -- 2. Navigace -- */
#header {
  color: white;
  transition: all 0.3s ease-in-out;
}
#header.scrolled {
  background-color: white;
  color: var(--color-forest-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#header.scrolled .nav-link {
  color: var(--color-forest-green);
}
#header.scrolled #menu-btn {
  color: var(--color-forest-green);
}

.nav-link {
  position: relative;
  padding-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-bronze);
  transition: width 0.4s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobilní menu */
#menu-btn {
  transition: color 0.3s ease;
}
@media (max-width: 768px) {
  #mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
  }
  #mobile-menu:not(.hidden) {
    transform: translateY(0);
  }
  .animate-slide-in {
    animation: slideIn 0.3s ease-in-out forwards;
  }
  @keyframes slideIn {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }
  .mobile-nav-link {
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    background-color: var(--color-bronze);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 80%;
    text-align: center;
  }
  .mobile-nav-link:hover {
    background-color: #8c6a4f;
    transform: translateY(-2px);
  }
}

/* -- 3. Hlavní sekce (Hero) a CTA Tlačítko -- */
.cta-button {
  background-color: var(--color-bronze);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* -- 4. Sekce Služby -- */
.service-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  overflow: hidden;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}
.service-card img {
  transition: transform 0.4s ease;
}
.service-card:hover img {
  transform: scale(1.05);
}

/* -- 5. Sekce Kontakt -- */
.contact-link {
  position: relative;
  color: var(--color-forest-green);
  text-decoration: none;
  font-weight: 600;
}
.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}
.contact-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
#map-container {
  filter: grayscale(80%) contrast(90%);
}

/* -- 6. Animace při scrollování -- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 200ms; }
.reveal:nth-child(3) { transition-delay: 400ms; }

/* -- 7. Patička -- */
footer .text-bronze {
  color: var(--color-bronze);
}

/* -- 8. Rezervační formulář -- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #F9F7F3;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: 48px;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-bronze);
  box-shadow: 0 0 0 2px rgba(185, 148, 112, 0.3);
}

.form-icon {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  color: #9ca3af;
  pointer-events: none;
}

/* Stylování select šipky */
select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* -- 9. Plovoucí navigační tlačítka -- */
.floating-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--color-bronze);
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 50;
}
.floating-nav-button:hover {
  background-color: #8c6a4f;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsivní úpravy pro mobily */
@media (max-width: 768px) {
  .floating-nav-button {
    width: 45px;
    height: 45px;
    background-color: var(--color-bronze);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }
  .floating-nav-button svg {
    width: 20px;
    height: 20px;
  }
  .floating-nav-button:hover {
    background-color: #8c6a4f;
    transform: scale(1.05);
  }
  .fixed.bottom-5.right-5 {
    bottom: 1rem;
    right: 1rem;
  }
}