/* ===== SAFE RESET (neroztříská listy a linky) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ================================================== */
/* =============== ZÁKLAD / LAYOUT ================== */
/* ================================================== */

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f4ea;
  color: #1a1a1a;

  /* header má 120px */
  padding-top: 120px;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ================================================== */
/* ===================== HEADER ===================== */
/* ================================================== */

header {
  background-color: #0f0f0f;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 120px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 30px;
  color: #d4af37;
  cursor: pointer;
}

/* LOGO */
.logo{
  height: 100%;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo a{
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  margin: 0;
}

/* použij logo-cropped.svg */
.logo img{
  height: 80px;        /* zvol velikost loga v headeru */
  width: auto;
  display: block;
  margin: 0;
}

/* pokud chceš mít logo vždy stejné, můžeš svázat s výškou headeru */
/* .logo img{ height: 70%; } */
/* NAV desktop */
nav {
  display: flex;
  align-items: center;
}

/* ✅ margin jen pro hlavní položky (ne pro dropdown submenu) */
nav > a {
  color: #d4af37;
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: 0.3s;
}

nav > a:hover {
  color: #ffffff;
}

/* ===== CTA tlačítko v menu ===== */
.nav-cta {
  margin-left: 35px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  border: none;
}

/* ================================================== */
/* =================== DROPDOWN ===================== */
/* ================================================== */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Toggle */
.nav-dropdown-toggle {
  color: #d4af37;
  margin-left: 30px; /* zarovnání jako ostatní položky */
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;

  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 10px 0; /* větší hover zóna */
  user-select: none;
}

.nav-dropdown-toggle:hover {
  color: #fff;
}

/* Menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 30px;

  background: #0f0f0f;
  border-radius: 8px;
  padding: 8px 0;

  display: inline-block; /* šířka podle obsahu */
  white-space: nowrap; /* bez zalamování */

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 2000;
}

/* Hover bridge */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 100%;
  height: 12px;
}

/* Položky */
.nav-dropdown-menu a {
  display: block;
  padding: 9px 16px; /* symetrické */
  color: #d4af37;
  font-size: 15px;
  text-decoration: none;

  margin-left: 0; /* ✅ pojistka proti starému nav a margin-left */
}

.nav-dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.08);
  color: #fff;
}

/* Otevřený stav */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================================================== */
/* ===================== HERO ======================= */
/* ================================================== */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 0 15px;
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 2;
  text-align: center;
  margin-top: 0px;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 0px;
  color: #b8962e;
}

.hero p {
  font-size: 20px;
  margin-bottom: 0px;
  color: #444;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(45deg, #d4af37, #f5d67b);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
  font-size: 20px;
  margin-top: 10px;
  border: none;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* ================================================== */
/* ===================== MODAL ====================== */
/* ================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1200;
}

.modal-content {
  background: #ffffff;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #b8962e;
  text-align: center;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.modal-content button {
  background: linear-gradient(45deg, #d4af37, #f5d67b);
  border: none;
  padding: 12px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
}

#successMessage {
  display: none;
  text-align: center;
}

#successMessage h2 {
  margin-bottom: 10px;
}

/* ================================================== */
/* ===================== FOOTER ===================== */
/* ================================================== */

footer {
  background-color: #0f0f0f;
  color: #d4af37;
  padding: 22px 0;
}

/* ✅ 4 sloupce */
.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  align-items: start;
}

/* Sloupce */
.footer-section {
  min-width: 0;
}

.footer-section h3 {
  margin-bottom: 14px;
  color: #d4af37;
  font-size: 16px;
  letter-spacing: 0.2px;
}

/* Texty & odkazy */
.footer-section p,
.footer-section a {
  color: #d4af37;
  text-decoration: none;
  font-size: 14px;
  margin: 8px 0;
  opacity: 0.9;
  transition: 0.2s;
}

.footer-section p:hover,
.footer-section a:hover {
  color: #ffffff;
  opacity: 1;
}

/* Jemný underline efekt */
.footer-section a {
  position: relative;
}

.footer-section a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #d4af37;
  transition: 0.25s;
}

.footer-section a:hover::after {
  width: 100%;
}

/* ✅ Kontaktní sloupec */
.footer-section.contacts {
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  padding-left: 22px;
}

/* ✅ Zarovnání kontaktů */
.footer-section.contacts .contact-row {
  display: grid;
  grid-template-columns: 16px max-content 1fr;
  column-gap: 10px;
  align-items: center;
}

/* Label + zarovnaná dvojtečka */
.footer-section.contacts .contact-label {
  position: relative;
  padding-right: 12px;
  white-space: nowrap;
}

.footer-section.contacts .contact-label::after {
  content: ":";
  position: absolute;
  right: 0;
  top: 0;
}

/* Hodnota */
.footer-section.contacts .contact-value {
  min-width: 0;
}

/* Klikací hodnoty */
.footer-section.contacts .contact-value a {
  color: inherit;
  text-decoration: none;
}

.footer-section.contacts .contact-value a:hover {
  color: #ffffff;
}

/* Ikony */
.footer-icon {
  width: 16px;
  height: 16px;
  fill: #d4af37;
  flex-shrink: 0;
  opacity: 0.95;
}

/* ================================================== */
/* ================== SERVICES (indexx) ============== */
/* ================================================== */

.services {
  padding: 40px 0;
}

.services-layout {
  display: flex;
  align-items: stretch;
  gap: 60px;
}

.services .services-text {
  flex: 1;
}

.services h2 {
  font-size: 36px;
  color: #b8962e;
  margin-bottom: 25px;
  text-align: left;
}

.services-list {
  list-style: none;
  padding-left: 25px;
  border-left: 3px solid #d4af37;
}

.services-list li {
  margin: 12px 0;
}

.services-list a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;

  position: relative;
  padding-left: 22px;
  display: inline-block;
}

.services-list a:hover {
  color: #b8962e;
}

.services-list a::before {
  content: "➝";
  position: absolute;
  left: 0;
  top: 0;
  color: #d4af37;
  font-size: 16px;
}

.services-image {
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #0f0f0f;
}

.services-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================== */
/* ============ Service rows (sluzby.html) =========== */
/* ================================================== */

.service-rows {
  padding: 40px 0 60px;
}

.service-row {
  display: flex;
  gap: 60px;
  align-items: stretch;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);

  scroll-margin-top: 140px; /* header + rezerva */
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.back-home:hover {
  color: #b8962e;
}

.back-home-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(212,175,55,0.18);
  line-height: 1;
}

.service-row:first-child {
  padding-top: 10px;
}

.service-row .service-text {
  flex: 1.2;
}

.service-row .service-text h2 {
  font-size: 30px;
  color: #b8962e;
  margin-bottom: 12px;
}

.service-row .service-text p {
  color: #444;
  line-height: 1.55;
  margin-bottom: 12px;
  font-size: 16px;
}

.service-row .service-text ul {
  list-style: disc;
  margin: 10px 0 14px 22px;
  padding: 0;
  color: #1a1a1a;
}

.service-row .service-text li {
  margin: 8px 0;
}

.service-media {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  min-height: 280px;
  background: #f8f4ea;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* střídání stran */
.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* ================================================== */
/* ============= DESKTOP no-scroll default =========== */
/* ================================================== */

@media (min-width: 901px) {
  html,
  body {
    height: 100%;
  }

  /* default: no-scroll pro homepage */
  body {
    overflow: hidden;
  }

  main {
    height: calc(100vh - 120px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  footer {
    flex: 0 0 auto;
  }

  .hero {
    min-height: unset;
    padding: 20px 0 10px;
  }

  .hero h1 {
    font-size: 44px;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 18px;
    margin-bottom: 18px;
  }

  footer {
    padding: 25px 0;
  }
}

/* Povolit scroll jen na vybraných stránkách */
@media (min-width: 901px) {
  html:has(body.page-scroll),
  body.page-scroll {
    height: auto;
  }

  body.page-scroll {
    overflow: auto;
  }

  body.page-scroll main {
    height: auto;
    overflow: visible;
  }
}

/* ================================================== */
/* =================== RESPONSIVE =================== */
/* ================================================== */

@media (max-width: 1200px) {
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 18px; }
}

/* TABLET + MOBILE */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    overflow: visible;
  }

/* TABLET + MOBILE */
@media (max-width: 900px){
  .logo img{
    height: 64px;      /* menší logo na mobilu */
    width: auto;
    transform: none;   /* vypnout staré škálování */
  }
}

  .hamburger {
    display: block;
    z-index: 1300;
  }

  nav {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    background: #0f0f0f;

    display: none;
    flex-direction: column;
    align-items: center;

    padding: 25px 0;
    gap: 15px;
    z-index: 1250;
  }

  nav.active {
    display: flex;
  }

  nav > a {
    display: block;
    font-size: 18px;
    margin: 10px 0;
  }

  /* Mobilní dropdown */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown-toggle {
    margin-left: 0;
    padding: 6px 0;
    font-size: 18px;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;

    display: none;
    background: transparent;
    padding: 0;
    margin-top: 6px;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 8px 0;
    font-size: 16px;
    text-align: center;
    margin-left: 0;
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 10px;
    width: auto;
  }

  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }

  /* services (indexx) */
  .services-layout {
    flex-direction: column;
    text-align: left;
    gap: 30px;
  }

  .services-image img {
    width: 100%;
    height: auto;
  }

  /* service rows (sluzby) */
  .service-row,
  .service-row:nth-child(even) {
    flex-direction: column;
    gap: 18px;
  }

  .service-media {
    min-height: 220px;
  }

  .service-row .service-text h2 {
    font-size: 24px;
  }

  /* ✅ FOOTER: 2 sloupce na tablet */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-section.contacts {
    border-left: none;
    padding-left: 0;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14px; }

  .btn {
    padding: 10px 25px;
    font-size: 14px;
  }

  /* ✅ FOOTER: 1 sloupec na mobil */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section.contacts .contact-row {
    grid-template-columns: 16px max-content max-content;
    justify-content: center;
  }
}