/* Importované fonty */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300&display=swap');

/* Reset a základ */  
* {  
  box-sizing: border-box;  
}  

html {
  scroll-behavior: smooth;
}
  
body {  
  margin: 0;  
  font-family: 'Roboto', sans-serif;  
  background: #eff1f2;  
  color: #4E6F69;
  font-size: 1.05rem;
  line-height: 1.6;  
  font-weight: 300;
  letter-spacing: 0.02em;
}  
  
/* Odkazy */  
a {  
  text-decoration: none;  
  color: inherit;  
}

.contact-tile a {
  text-decoration: underline;
}
  
/* Fixní header s menu vpravo */  
header {  
  position: fixed;  
  top: 0;  
  left: 0;  
  width: 100%;  
  height: 60px;  
  background: rgba(255, 255, 255, 0.5);  
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);  
  z-index: 1000;  
  display: flex;  
  align-items: center;  
  justify-content: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 1rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #72827f;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.navbar {
  width: 100%;
  max-width: calc(1200px + 20px + 2rem);
  padding: 0 1rem;
  display: flex;
  justify-content: flex-end;
}
  
/* Menu - horizontální, vpravo */  
.navbar ul {  
  list-style: none;  
  margin: 0;  
  padding: 0;  
  display: flex;  
  gap: 1.2rem;  
}  
  
.navbar ul li a {  
  display: block;  
  padding: 0.8rem 1.2rem;  
  color: #4E6F69;  
  font-weight: 300;  
  border-radius: 4px;  
  transition: background-color 0.3s ease;  
}  
  
.navbar ul li a:hover,  
.navbar ul li a.active {  
  background-color: rgba(255, 255, 255, 0.75);  
}  
  
/* Posun obsahu pod header */  
main {  
  max-width: 100%;  
  margin: 80px auto 3rem; /* spodní prostor */  
  padding: 0 1rem;  
  display: grid;  
  grid-template-columns: repeat(2, 600px);  
  grid-gap: 20px;  
  grid-auto-rows: 500px; /* pevná výška řádků pro dlaždice */  
  justify-content: center;
}  
  
/* --- ÚPRAVA PRO PRVNÍ STRÁNKU --- */  
  
/* Dlaždice s fotkou, jménem, grafikou, kontaktem a ceníkem - zabírají 2 řádky */  
.main-index .photo-tile,  
.main-index .name-tile,
.main-index .graphic-tile,
.main-index .contact-tile,
.main-index .pricelist-tile {  
  grid-row: span 2;  
}  
  
/* Dlaždice */  
.tile {  
  background: white;  
  padding: 3rem;  
  border-radius: 10px;  
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);  
  display: flex;  
  flex-direction: column;  
  overflow: hidden;
}

/* Snížený padding pro dlaždice s obrázky */
.photo-tile,
.graphic-tile {
  padding: 1.5rem;
}

/* Zvětšený padding pro textové dlaždice */
.name-tile,
.services-tile,
.about-tile,
.contact-tile,
.pricelist-tile {
  padding: 4.5rem;
}  
  
/* Obrázky ve dlaždicích */  
.tile img {  
  width: 100%;  
  height: 100%;  
  object-fit: cover;  
  border-radius: 10px;  
}  
  
/* Textové dlaždice se přizpůsobí obsahu, ale omezíme výšku */  
.name-tile,  
.about-tile,  
.services-tile,  
.contact-tile,  
.pricelist-tile,  
.graphic-tile {  
  overflow-y: auto;
  justify-content: center;
}  
  
/* Styl pro jméno */  
.name-tile h1 {  
  margin: 0 0 1rem 0;  
  font-size: 3rem;  
  font-weight: 240;  
  color: #4E6F69;  
  align-self: center;  
  letter-spacing: 0.05em;  
  line-height: 1.2;  
  padding-bottom: 1rem;  
  border-bottom: 1px solid #72827f;  
}  
  
.name-tile p {  
  margin: 0.4rem 0;  
}  
  
/* Nadpisy v dlaždicích */
.tile h2 {
  margin: 1.5rem 0 1rem 0;

  font-weight: 300;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.5rem;
}

.tile h3 {
  margin: 1.2rem 0 0.8rem 0;
  font-weight: 300;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.2rem;
}

.tile h2:first-child,
.tile h3:first-child {
  margin-top: 0;
}

/* Seznam služeb */  
.services-tile h2,
.services-tile ul li {
  color: #4E6F69;
}

.services-tile ul {  
  padding-left: 1.2rem;  
  margin: 0;  
  overflow-y: auto;  
}  
  
.services-tile ul li {  
  margin-bottom: 0.5rem;  
}  
  
/* Textové odstavce */  
.about-tile {
  background: #d5e1df !important;
}

.about-tile h2,
.about-tile p {
  color: #4E6F69;
}

.about-tile p,  
.contact-tile p {  
  margin: 0.3rem 0;  
  overflow-y: auto;  
}

.contact-tile {
  background: #d5e1df !important;
}

.contact-tile h2,
.contact-tile p {
  color: #4E6F69;
}

.contact-tile h2 {
  margin-bottom: 1.5rem;
}

.contact-tile p {
  margin: 0.4rem 0;
}

/* Kontaktní formulář */
.contact-form {
  margin: 1.5rem 0;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 400;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #b8c5c3;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #4E6F69;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #72827f;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  padding: 0.7rem 2rem;
  background: #72827f;
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background: #5d6c6a;
}
  
/* Tabulka ceníku */  
.pricelist-tile table {  
  width: 100%;  
  border-collapse: collapse;  
}  
  
.pricelist-tile th,  
.pricelist-tile td {  
  border: none;  
  padding: 0.3rem 1rem;  
  text-align: left;  
}  

/* Odrážka na začátku řádku */
.pricelist-tile tbody tr td:first-child::before {
  content: "•";
  margin-right: 0.5rem;
}
  
.pricelist-tile th {  
  background-color: #4a90e2;  
  color: white;  
}  
  
/* Scrollbar pro textové dlaždice, pokud je obsah větší */  
.name-tile,  
.about-tile,  
.services-tile,  
.contact-tile,  
.pricelist-tile,  
.graphic-tile {  
  scrollbar-width: thin;  
  scrollbar-color: #166aea #f1f1f1;  
}  
  
.name-tile::-webkit-scrollbar,  
.about-tile::-webkit-scrollbar,  
.services-tile::-webkit-scrollbar,  
.contact-tile::-webkit-scrollbar,  
.pricelist-tile::-webkit-scrollbar,  
.graphic-tile::-webkit-scrollbar {  
  width: 6px;  
}  
  
.name-tile::-webkit-scrollbar-thumb,  
.about-tile::-webkit-scrollbar-thumb,  
.services-tile::-webkit-scrollbar-thumb,  
.contact-tile::-webkit-scrollbar-thumb,  
.pricelist-tile::-webkit-scrollbar-thumb,  
.graphic-tile::-webkit-scrollbar-thumb {  
  background-color: #166aea;  
  border-radius: 3px;  
}  
  
/* Responsivita */
/* Dvousloupcový grid s dynamickou šířkou 600-800px */
@media (min-width: 1253px) {
  main {
    grid-template-columns: repeat(2, minmax(600px, 800px));
  }  
  .navbar {
    max-width: calc(1600px + 20px + 2rem);
  }}

/* Jednosloupový grid */  
@media (min-width: 769px) and (max-width: 1252px) {  
  main {
    grid-template-columns: minmax(600px, 800px);
    min-width: 640px;
    grid-auto-rows: 500px;  
  }  
  .main-index .name-tile {  
    grid-row: auto;  
  }  
  .main-index .graphic-tile {  
    display: none;  
  }  
  .navbar {
    justify-content: center;
  }
  .navbar ul {  
    flex-wrap: wrap;  
    justify-content: center;  
    gap: 0.8rem;  
  }
}  
  
@media (max-width: 768px) {
  body {
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .hamburger {
    display: flex;
  }
  
  .navbar {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    max-width: none;
    padding: 0;
    justify-content: flex-start;
  }
  
  .navbar.active {
    right: 0;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 1rem 0;
  }
  
  .navbar ul li {
    width: 100%;
  }
  
  .navbar ul li a {
    font-size: 1.26rem;
    padding: 1rem 1.5rem;
    display: block;
    border-radius: 0;
  }
  
  main {
    min-width: 0;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding: 0 0.5rem;
  }
  
  .tile {
    padding: 1.5rem;
  }
  
  .photo-tile,
  .graphic-tile {
    padding: 0.75rem;
  }

  .name-tile,
  .services-tile,
  .about-tile,
  .contact-tile,
  .pricelist-tile {
    padding: 2.25rem;
  }
  
  .main-index .name-tile {  
    grid-row: auto;  
  }
  
  .main-index .graphic-tile {  
    display: none;  
  }
  
  .pricelist-tile th,
  .pricelist-tile td {
    padding: 0.2rem 0.3rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
  
  .form-submit {
    width: 100%;
    padding: 0.6rem;
  }
}

@media (max-width: 500px) {  
  .navbar ul li a {  
    font-size: 1.26rem;
  }  
}  