/* ====================================================
   CSS PROMĚNNÉ (CUSTOM PROPERTIES)
   ==================================================== */
:root {
  --bg:       #eeece8;  
  --bg2:      #ffffff;  
  --bg3:      #e4e1dc;  
  --laser:    #7a1a1a;  
  --laser2:   #9a2a2a;  
  --bordeau:  #7a1a1a;  
  --bordeau2: #5c1010;  
  --text:     #1c1a18;  
  --muted:    #7a746e;  
  --border:   #d4d0ca;  
  --white:    #ffffff;
}

/* ====================================================
   GLOBÁLNÍ RESET A ZÁKLADNÍ NASTAVENÍ TYPOGRAFIE
   ==================================================== */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

html { 
  scroll-behavior: smooth; 
  height: 100%; 
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}

main {
  flex: 1 0 auto; 
}

/* ============================================================
   NAVIGACE (HLAVIČKA)
   ============================================================ */
nav {
  position: fixed; 
  top: 0; left: 0; right: 0;
  z-index: 100; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 20px 48px;
  background: rgba(238,236,232,0.92); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
  transition: opacity 0.2s ease-in-out; 
}

.nav-logo img:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  gap: 36px; 
  list-style: none;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace; 
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--bordeau); }

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--bordeau);
  padding: 10px 22px;
  text-decoration: none;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--bordeau2); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.6rem;
}

/* ============================================================
   HERO SEKCE
   ============================================================ */
.hero {
  padding: 0; 
  min-height: 100vh;
  display: grid; 
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--bg);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 64px 80px 64px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 36px;
  word-wrap: break-word; 
}

.hero-title .accent { color: var(--bordeau); } 

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 380px; 
  margin-bottom: 48px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap; 
}

.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--bordeau);
  padding: 14px 32px;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { 
  background: var(--bordeau2); 
  transform: translateY(-2px); 
}

.btn-secondary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  padding: 13px 32px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-secondary:hover { 
  border-color: var(--bordeau); 
  color: var(--bordeau); 
  transform: translateY(-2px); 
}

.hero-right {
  position: relative;
  top: 0px;          
  right: 0; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.hero-right img {
  position: absolute; 
  top: 0px;          
  right: 0;           
  width: 100%;
  height: 100%; 
  object-fit: cover;  
  opacity: 1;         
  border-bottom-left-radius: 40px; 
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--bordeau);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap; 
}

.ticker-inner {
  display: inline-flex;
  gap: 0;
  animation: ticker 18s linear infinite; 
}

.ticker-inner span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--bg);
  padding: 0 36px;
}

.ticker-inner span.sep { color: rgba(0,0,0,0.3); } 

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   OBECNÉ STYLY PRO SEKCE
   ============================================================ */
section {
  padding: 100px 64px; 
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laser);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--laser);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--bordeau);
  margin-bottom: 64px;
}

/* ============================================================
   SEKCE: SLUŽBY
   ============================================================ */
#sluzby { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2px; 
}

.service-card {
  background: var(--white);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  border-top: 2px solid transparent; 
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.service-card:hover {
  border-top-color: var(--bordeau); 
}

.service-card:hover .service-icon { color: var(--laser); }

.service-icon {
  font-size: 2rem;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color 0.3s;
  line-height: 1;
}

.service-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--bordeau);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

.service-detail {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-detail-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between; 
}

.service-detail-item strong {
  color: var(--text);
  font-weight: 700;
}


/* ============================================================
   SEKCE: MATERIÁLY
   ============================================================ */
#materialy { 
  background: var(--bg3); 
}

.materialy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dva stejně velké sloupce vedle sebe */
  gap: 64px;
  align-items: start;
}

/* OPRAVA: Místo "flex" dáme "block", aby se nadpis a tabulka zaručeně poskládaly pod sebe */
.materialy-left,
.materialy-right {
  display: block; 
  width: 100%;
}

.material-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* 1. Úplně vypneme zrádnou automatickou mezeru */
  width: 100%;
}

.material-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--white);
  border-left: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
  
  /* 2. ZDE JE POJISTKA: Přidáme pevnou mezeru dolů ke každému boxu */
  margin-bottom: 2px; 
}

/* 3. Tohle zajistí, že pod úplně posledním řádkem v tabulce už mezera nebude (aby lícoval s koncem) */
.material-item:last-child {
  margin-bottom: 0;
}
.material-item:hover { border-left-color: var(--laser); }

.material-name {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
}

.material-thickness {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--laser);
  letter-spacing: 0.05em;
}

.material-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: 4px;
}

.dims-box {
  background: var(--bordeau);
  padding: 28px 32px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.dims-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.dims-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.05em;
}

/* ============================================================
   SEKCE: PROČ SLASER
   ============================================================ */
#proc-slaser { background: var(--bg3); }

.proc-slaser-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ============================================================
   SEKCE: GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 32px;
}

.gallery-item {
  aspect-ratio: 4/3; 
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.4s ease;
  display: block;
  cursor: pointer; 
}

.gallery-item:hover img { transform: scale(1.05); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 9999; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); 
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--laser); 
}

/* ============================================================
   KONTAKT A FORMULÁŘ
   ============================================================ */
#kontakt { background: var(--bg); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px; 
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laser);
}

.contact-block-value {
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}


a.contact-block-value:hover { color: var(--bordeau); }

.contact-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--bordeau);
  padding: 24px 28px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
}

.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  padding-left: 24px;
  border-left: 2px solid var(--border);
}

.hours-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--bordeau);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.hours-day { color: var(--muted); }
.hours-time { color: var(--laser); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }

/* Styly pro formulář */
.contact-form {
  background: var(--white);
  padding: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 3px solid var(--bordeau);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-control {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--laser);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(122, 26, 26, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-file-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

button.btn-primary {
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  width: 100%; 
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  flex-shrink: 0; 
  margin-top: auto; 
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 40px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap; 
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-info {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--laser); }

/* ============================================================
   HACK: Skrytí reklamy hostingu pod patičkou
   ============================================================ */
footer ~ * {
  display: none !important;
}

/* ============================================================
   SCROLL REVEAL ANIMACE
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Instagram v patičce */
.instagram-footer {
    margin-top: 10px; /* Mezera pod logem */
}

.instagram-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text); /* Nebo barva, kterou máte v patičce */
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.instagram-footer a svg {
    color: var(--text);
    transition: all 0.3s ease;
}

/* Efekt při najetí myší */
.instagram-footer a:hover {
    color: var(--bordeau); /* Vaše vínová barva */
    text-decoration: underline;
}

.instagram-footer a:hover svg {
    color: var(--bordeau);
    transform: scale(1.3);
}
/* =========================================
   MAPA V KONTAKTECH
   ========================================= */
.map-container {
  width: 100%;
  height: 350px; /* Výška mapy - můžete si libovolně upravit */
  margin-top: 32px; /* Odsazení zeshora */
  border-radius: 0;
  overflow: hidden; /* Ořízne mapu tak, aby rohy zůstaly kulaté */
  border: 1px solid var(--border); /* Jemný rámeček okolo */
}

/* Toto donutí Google mapu, aby ignorovala svých 600px a poslechla náš obal */
.map-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}
/* ============================================================
   RESPONZIVNÍ DESIGN
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  
  .nav-links { 
      display: none; 
      flex-direction: column;
      position: absolute;
      top: 100%; 
      left: 0;
      right: 0;
      background: var(--bg2);
      padding: 24px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .nav-links.active { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; } 

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 120px 28px 60px; }
  .hero-right { display: none; } 

  section { padding: 64px 24px; }

  .services-grid { grid-template-columns: 1fr; }
  /* =======================================================
     NEPRŮSTŘELNÁ OPRAVA MATERIÁLŮ PRO MOBILY
     ======================================================= */
  .materialy-layout { 
      display: flex !important; /* Vynutíme flexbox místo gridu */
      flex-direction: column !important; /* Přikážeme řadit PŘÍSNĚ pod sebe */
      gap: 32px !important; 
      width: 100% !important;
  }
  
  .materialy-left,
  .materialy-right {
      width: 100% !important; /* Roztažení tabulek od kraje ke kraji */
      display: block !important;
  }

  .material-item {
      padding: 12px 16px !important; /* Na mobilu trochu zmenšíme mezery, ať se text neláme */
  }
  .proc-slaser-layout { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; width: 100%; }
  .contact-split { grid-template-columns: minmax(0, 1fr); gap: 24px; width: 100%; }
  
  .contact-hours { 
      padding-left: 0; 
      border-left: none; 
      padding-top: 24px; 
      border-top: 2px solid var(--border); 
  }
  .hours-title { margin-bottom: 8px; font-size: 1.3rem; }
  .hours-row { padding: 4px 0; font-size: 0.85rem; }

  .contact-form { padding: 24px 16px; gap: 16px; }
  .form-control { padding: 10px 12px; font-size: 0.9rem; }
  textarea.form-control { min-height: 80px; }
  button.btn-primary { padding: 12px 24px; }

  footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .footer-info { text-align: left; }
  .footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
}