/* ================================================
   GLOBÁLNÍ NASTAVENÍ
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: #000;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

/* Povolit scrollování pouze na specifických stránkách */
body.gallery-page,
body.kontakt-page {
  overflow: auto;
}

a {
  color: inherit;
  transition: 0.2s ease-in-out;
}
a:hover {
  text-decoration: underline;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.5;
}

/* ================================================
   FONT STYLING
   ================================================ */
h1, h2, h3, h4, h5, h6,
.contact-logo h1,
.hero-text .hero-subtitle {
  letter-spacing: 0.5px;
}

body, p, a, li, span, input, button, label, .button, .menu-right {
  font-weight: 400;
}

.contact-box h2 {
  font-weight: 600;
}

.contact-logo .ico {
  font-weight: 400;
}

/* ================================================
   HEADER
   ================================================ */
#header {
  background: #fff;
  border-bottom: 1px solid #000;
  width: 100%;
  flex-shrink: 0;
  height: 80px;
  z-index: 100;
  position: relative;
}

body.kontakt-page #header {
  position: relative;
  z-index: 1000;
}

#head_obal {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo_top {
  height: 70px;
  width: auto;
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  text-transform: uppercase;
  font-size: 22px;
  color: #000;
  line-height: 80px;
  transition: all 0.2s ease-in-out;
}

.menu-separator {
  color: #000;
  font-weight: 400;
  font-size: 29px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  transition: opacity 0.2s ease;
}

.instagram-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

.instagram-icon {
  height: 32px;
  width: 32px;
  display: block;
}

/* Mobile Header Right - contains Instagram + Hamburger */
.mobile-header-right {
  display: none;
  align-items: center;
  gap: 12px;
}

.instagram-link-mobile {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.instagram-link-mobile:active {
  opacity: 0.7;
}

.instagram-icon-mobile {
  height: 26px;
  width: 26px;
  display: block;
}

/* ================================================
   HAMBURGER MENU (MOBIL)
   ================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 250;
  position: relative;
  flex-shrink: 0;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.2s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 200;
  transition: right 0.15s ease-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  padding: 25px 20px;
  border-bottom: 2px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.mobile-menu-header h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mobile-menu-close:active {
  transform: scale(0.9);
}

.mobile-menu-items {
  padding: 40px 0;
}

.mobile-menu-items a {
  display: block;
  padding: 20px 30px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  text-decoration: none;
  transition: background 0.15s ease;
  position: relative;
}

.mobile-menu-items a:active {
  background: rgba(0, 0, 0, 0.08);
}

/* ================================================
   MAIN CONTENT
   ================================================ */
#outer {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ===== HERO TEXT ===== */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  text-align: center;
  width: 90%;
  max-width: 900px;
  padding: 0 20px;
}

.hero-text .hero-subtitle {
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* ===== IMAGE ===== */
.inner-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.image-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-overlay .main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================================
   GALERIE PAGE
   ================================================ */
body.gallery-page #outer {
  background-color: #f5f5f5;
  padding: 40px 20px;
  overflow-y: auto;
}

body.gallery-page #content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: block;
  overflow: visible;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ================================================
   LOKALITA PAGE
   ================================================ */
body.lokalita-page {
  overflow: auto;
}

body.lokalita-page #outer {
  background-color: #f5f5f5;
  padding: 60px 20px;
  overflow-y: auto;
}

body.lokalita-page #content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  overflow: visible;
}

.lokalita-container {
  width: 100%;
}

.lokalita-container h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
}

.lokalita-text {
  background: #fff;
  padding: 40px;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lokalita-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  margin-bottom: 20px;
}

.lokalita-text p:last-child {
  margin-bottom: 0;
}

.map-wrapper {
  width: 100%;
  height: 600px;
  background: #fff;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================================
   DOKUMENTACE PAGE
   ================================================ */
body.dokumentace-page {
  overflow: auto;
}

body.dokumentace-page #outer {
  background-color: #f5f5f5;
  padding: 60px 20px;
  overflow-y: auto;
}

body.dokumentace-page #content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  overflow: visible;
}

.dokumentace-container {
  width: 100%;
}

.dokumentace-container h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
}

.dokumentace-content {
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dokumentace-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/* ================================================
   KONTAKT PAGE - JEDEN BOX S VERTIKÁLNÍ ČAROU
   ================================================ */
body.kontakt-page #outer {
  background: #f5f5f5;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.kontakt-page #content {
  width: 100%;
  max-width: 850px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  position: relative;
  min-height: 380px;
}

/* Levá strana - Logo */
.contact-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 40px;
}

.contact-logo h1 {
  font-size: 42px;
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-logo .ico {
  font-size: 15px;
  color: #666;
  font-weight: 300;
}

/* Vertikální oddělovač uprostřed */
.contact-divider {
  width: 3px;
  background: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  align-self: stretch;
  margin: 30px 0;
}

/* Pravá strana - Kontakty */
.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 45px;
  gap: 32px;
}

.contact-box {
  text-align: left;
}

.contact-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #000;
}

.contact-box p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.contact-box a {
  font-weight: 500;
  transition: 0.2s;
  color: #000;
}

.contact-box a:hover {
  color: #444;
  text-decoration: underline;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* ---- TABLETY A MOBILY ---- */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
    position: relative;
    z-index: 250;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: block;
  }

  .menu-right {
    display: none;
  }

  .mobile-header-right {
    display: flex;
  }

  #head_obal {
    padding: 0 15px;
    justify-content: space-between;
  }

  #logo_top {
    height: 55px;
  }

  .hero-text .hero-subtitle { 
    font-size: 24px;
  }

  .contact-logo h1 {
    font-size: 32px;
  }

  .contact-box h2 {
    font-size: 20px;
  }

  .contact-box p {
    font-size: 16px;
  }

  body.gallery-page #outer {
    padding: 30px 15px;
  }

  /* LOKALITA NA MOBILU */
  body.lokalita-page #outer {
    padding: 30px 15px;
  }

  .lokalita-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .lokalita-text {
    padding: 30px 25px;
  }

  .lokalita-text p {
    font-size: 16px;
  }

  .map-wrapper {
    height: 450px;
  }

  /* DOKUMENTACE NA MOBILU */
  body.dokumentace-page #outer {
    padding: 30px 15px;
  }

  .dokumentace-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .dokumentace-content {
    padding: 30px 25px;
  }

  .dokumentace-content p {
    font-size: 16px;
  }

  /* GALERIE NA MOBILU - FOTKY POD SEBOU */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* KONTAKT NA MOBILU - VŠECHNO POD SEBOU */
  body.kontakt-page #content {
    flex-direction: column;
  }

  .contact-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    margin: 0;
  }

  .contact-wrapper,
  .contact-info {
    padding: 30px 25px;
  }
}

/* ---- TELEFONY ---- */
@media (max-width: 480px) {
  #head_obal {
    padding: 0 12px;
  }

  #logo_top {
    height: 50px;
  }

  .instagram-icon-mobile {
    height: 24px;
    width: 24px;
  }

  .mobile-header-right {
    gap: 10px;
  }

  .hamburger {
    width: 28px;
    height: 22px;
  }

  .hero-text .hero-subtitle { 
    font-size: 20px;
  }

  .lokalita-container h1 {
    font-size: 32px;
  }

  .lokalita-text {
    padding: 25px 20px;
  }

  .lokalita-text p {
    font-size: 15px;
  }

  .map-wrapper {
    height: 400px;
  }

  .dokumentace-container h1 {
    font-size: 32px;
  }

  .dokumentace-content {
    padding: 25px 20px;
  }

  .dokumentace-content p {
    font-size: 15px;
  }
  
  body.kontakt-page #content {
    margin: 0 10px;
  }

  .contact-wrapper,
  .contact-info {
    padding: 40px 25px;
  }

  .mobile-menu {
    width: 260px;
  }

  .mobile-menu-items a {
    font-size: 20px;
    padding: 18px 25px;
  }
}

@media (max-width: 360px) {
  #head_obal {
    padding: 0 10px;
  }

  #logo_top {
    height: 45px;
  }

  .instagram-icon-mobile {
    height: 22px;
    width: 22px;
  }

  .mobile-header-right {
    gap: 8px;
  }

  .hamburger {
    width: 26px;
    height: 20px;
  }

  .hero-text .hero-subtitle { 
    font-size: 18px;
  }

  .lokalita-container h1 {
    font-size: 28px;
  }

  .map-wrapper {
    height: 350px;
  }

  .dokumentace-container h1 {
    font-size: 28px;
  }

  .mobile-menu-items a {
    font-size: 18px;
  }
}