/* Reset + základy */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    color: #333;
}

/* Header */
/* Výchozí hamburger */
.site-header {
  background: #3e2f1c;
  color: white;
  padding: 1em 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;

  
  
  
  
}

.logo {
  font-size: 1.6em;
  font-weight: bold;
  color: #f1d4a7;
  overflow: hidden;
  text-overflow: ellipsis; /* zkrátí text, pokud je moc dlouhý */
  white-space: nowrap; /* logo se nerozlomí */
  flex-shrink: 0;      /* nepovolí zmenšení */
  flex: 1;
  float: left;
}

.logo img {
  height: 60px; /* nebo podle potřeby */
  width: auto;
  display: block;
}

/* === HAMBURGER TLAČÍTKO === */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 19px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  flex-shrink: 0;
  margin-left: auto;
  position: absolute;
   top: 50%;
  right: 2em; /* místo left: 82% */
  transform: translateY(-50%); /* zarovnání na střed na ose Y */

  
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center center;
}


.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(49deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-49deg);
}

/* === NAVIGACE (DESKTOP) === */

.main-nav {
  display: flex;
  gap: 1.5em;
}

.main-nav a {
  color: #f1d4a7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a.active {
  color: #c48a47;
  font-weight: bold;
}

.main-nav a.active::after {
  content: "";
  display: block;
  margin: 4px auto 0;
  width: 40%;
  height: 2px;
  background-color: #c48a47;
  border-radius: 2px;
}

/* === RESPONSIVE (MOBILE) === */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    padding: 1em;
    border-radius: 8px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
  }

  .main-nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 0.5em 0;
    color: #3e2f1c;
    font-weight: bold;
  }

  .main-nav a:hover {
    color: #c48a47;
  }
}




/* Hero section */
.hero {
    text-align: center;
    padding: 3em 1em;
    background: linear-gradient(to right, #ffe6cc, #fff9f2);
    border-radius: 1em;
    margin: 1em auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2em;
}

/* Footer */
footer {
    text-align: center;
    background-color: #2f2f2f;
    color: white;
    padding: 1em;
    margin-top: 0em;
}

.hero-image {
    position: relative;
    width: 100vw; /* 100 % šířky okna */
    margin-left: calc(-50vw + 50%); /* vyrovnání okrajů, pokud je uvnitř <main> s paddingem */
    margin-top: 0px;
    
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}


.hero-image::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* ztmavení obrázku */
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 2em;
    border-radius: 1em;
    text-align: center;
    max-width: 90%;
}

.hero-text h1 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    color: #e0c7a3;
}

.hero-text p {
    font-size: 1.1em;
    color: #f1d4a7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5em;
}




.offers {
     padding: 4em 2em;
    background: #fdf6ec; /* jemně krémové pozadí */
    text-align: center;
    width: 100%;
}

.offers-full{
  width: 100%;
  background:#fdf6ec ;
}

.offers h2 {
    font-size: 2em;
    margin-bottom: 2em;
    color: #3e2f1c; /* tmavě hnědá */
    position: relative;
}

.offers h2::after {
     content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #c48a47; /* teplý dřevěný odstín */
    margin: 0.5em auto 0;
    border-radius: 2px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2em;
}

.offer-item {
    background: white;
    border-radius: 1.5em;
    padding: 2em 1.5em;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* obsah nahoře */
    align-items: center;          /* horizontálně na střed */

    min-height: 320px;
    text-align: center;           /* text uvnitř na střed */
}

.offer-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0c7a3;
}

.offer-item h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
    color: #8b5e3c;
    font-weight: bold;
    width: 100%; /* aby nadpis byl také zarovnán na střed */
}

.offer-item p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
    flex-grow: 1;    /* aby text zůstal nahoře, ale vyplnil výšku boxu */
    width: 100%;     /* aby text byl na střed přes celý box */
}

/* ABOUT*/
.about {
  background: #fcf7f0; /* jemně béžové pozadí, navazuje na krémové tóny */
  padding: 4em 2em;
  text-align: center;
}

.about .container {
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2em;
  color: #3e2f1c; /* tmavě hnědá jako nadpisy jinde */
  margin-bottom: 0.8em;
  position: relative;
}

.about h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #c48a47;
  margin: 0.5em auto 0;
  border-radius: 2px;
}

.about p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
  padding: 0 1em;
}

.stats {
  background: #fdf6ec;
  padding: 4em 2em;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-bubble {
  background: white;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
}

.stat-bubble:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 2.2em;
  color: #c48a47;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.stat-text {
  color: #444;
  font-size: 1.1em;
}

@media (max-width: 600px) {
  .stats-grid {
    display: flex;
    justify-content: center;
    gap: 1em;
  }

  .stat-bubble {
    width: 80px;
    height: 80px;
    flex-shrink: 0; /* aby se nezmenšovaly pod danou velikost */
  }

  .stat-number {
    font-size: 1.5em;
  }

  .stat-text {
    font-size: 0.8em;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8em;
    margin-top: 1em;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.services {
  background: #f5f0e6; /* jemné krémové pozadí */
  padding: 4em 2em;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 sloupce na desktop */
  gap: 2.5em;
  max-width: 1000px;
  margin: 0 auto;
}

.services-title {
  font-size: 2.2em;
  color: #3e2f1c; /* tmavě hnědá**/
  margin-bottom: 1.5em;
  position: relative;
  font-weight: 700;
}

.services-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #c48a47;
  margin: 0.5em auto 0;
  border-radius: 2px;
}

.service-card {
  background: white;
  border-radius: 1.2em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.5em;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 1.2em;
  border-top-right-radius: 1.2em;
}

.service-card h3 {
  margin: 1em 0 0.5em;
  color: #8b5e3c; /* ladí s truhlářskou tématikou */
  font-size: 1.3em;
}

.service-card p {
  max-width: 90%;
  font-size: 1em;
  color: #555;
  margin: 0 auto;
  line-height: 1.4;
}

/* Tablet a menší (do 900px) */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 sloupec */
    max-width: 600px;
    gap: 2em;
  }

  .service-card img {
    height: 160px; /* menší obrázky */
  }

  .service-card h3 {
    font-size: 1.2em;
  }

  .service-card p {
    font-size: 0.95em;
  }
}

/* Mobilní telefony (do 480px) */
@media (max-width: 480px) {
  .services {
    padding: 3em 1em;
  }

  .services-title {
    font-size: 1.8em;
    margin-bottom: 1em;
  }

  .services-grid {
    max-width: 100%;
    padding: 0 1em;
  }

  .service-card img {
    height: 140px; /* ještě menší */
  }

  .service-card h3 {
    font-size: 1.1em;
  }

  .service-card p {
    font-size: 0.9em;
    max-width: 100%;
  }
}

/*FOOTER*/
.site-footer {
  background-color: #3e2f1c;
  color: #fff5e6;
  padding: 3em 2em 1em;
  font-size: 0.95em;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container > div {
  flex: 1 1 220px;
}

.footer-brand h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #fff;
}

.footer-links {
  color: #fff;
}

.footer-links h3 {
  margin-bottom: 1em;
  font-size: 1.3em;
  color: #fff;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.footer-nav li a {
  color: #f1d4a7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav li a:hover {
  color: #ffffff;
  text-decoration: underline;
}


.footer-bottom {
  text-align: center;
  padding-top: 2em;
  font-size: 0.85em;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2em;
}

.footer-contact {
  line-height: 1.6;
}

.footer-contact h3 {
  margin-bottom: 1em;
  font-size: 1.3em;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.7em;
}

.contact-list a {
  color: #f1d4a7;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}


/*KONTAKT*/
.contact-page {
  background: #f7f1e7;
  padding: 4em 2em 0;
}

.contact-page h2 {
  text-align: center;
  color: #3e2f1c;
  font-size: 2.2em;
  margin-bottom: 0.5em;
}

.contact-page .intro-text {
  text-align: center;
  color: #555;
  font-size: 1em;
  max-width: 600px;
  margin: 0 auto 2em;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  max-width: 1000px;
  margin: 0 auto 4em;
}

.contact-info, .contact-form {
  flex: 1 1 320px;
  background: white;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 1em;
  color: #c48a47;
}

.contact-info p {
  margin: 0.6em 0;
  color: #444;
  line-height: 1.5;
}

.contact-info a {
  color: #c48a47;
  text-decoration: none;
}

.contact-form label {
  margin: 1em 0 0.3em;
  display: block;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1em;
}

.contact-form button {
  margin-top: 1.5em;
  padding: 0.9em;
  background: #c48a47;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #a46f35;
}

.map-container iframe {
  width: 100%;
  display: block;
  border: none;
  margin-top: -2px;
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;  /* sloupce místo vedle sebe */
    gap: 2em;               /* trochu menší mezera */
  }

  .contact-info,
  .contact-form {
    flex: 1 1 100%;         /* zabere celou šířku */
    max-width: 100%;        /* max šířka 100% */
  }

  .contact-form button {
    display: block;
    margin: 1.5em auto 0; /* nahoře mezera, auto vlevo i vpravo = vycentrováno */
    width: 50%; /* můžeš upravit podle potřeby, např. 60% nebo max-content */
    min-width: 120px; /* aby nebylo příliš úzké */
}
.contact-info {
    text-align: center;
  }

  .contact-info p,
  .contact-info a {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/*REFERENCE*/
.references {
  background: #f7f1e7;
  padding: 4em 0em;
  padding-bottom: 6em;
  text-align: center;
}

.references h2 {
  font-size: 2.2em;
  margin-bottom: 2em;
  color: #3e2f1c;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Vždy 2 vedle sebe */
  gap: 2em;
  max-width: 900px;
  margin: 0 auto;
}

.reference-card {
  background: white;
  padding: 2em;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.reference-icon {
  font-size: 2.5em;
  margin-bottom: 0.6em;
  color: #c48a47;
}

.reference-card h3 {
  font-size: 1.2em;
  margin-bottom: 0.4em;
  color: #222;
}

.reference-card p {
  font-size: 0.95em;
  color: #555;
}

@media (max-width: 768px) {
  .reference-grid {
    grid-template-columns: 1fr; /* na mobilech 1 sloupec */
  }

  .reference-card {
    padding: 1.5em;
  }

  .reference-card h3 {
    font-size: 1.1em;
  }

  .reference-card p {
    font-size: 0.95em;
  }
}



/*ABOUT*/
.about-section {
  background-color: #f7f5f1;
  padding: 4em 2em;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-size: 2.2em;
  margin-bottom: 0.5em;
  color: #c48a47;
}

.about-text p {
  font-size: 1em;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1em;
}

.about-image {
  flex: 1 1 45%;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/*FOTOGALERIE*/
.gallery-filter {
  background: #fdf6ec;
  width: 100%;
}

.gallery-cointaner{
   padding: 3em 2em;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.filter-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em 4em;
  margin-bottom: 2em;
  text-align: left;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.filter-group {
  min-width: 180px;
}

.filter-group h4 {
  margin-bottom: 0.6em;
  color: #8b5e3c;
  font-weight: 700;
  font-size: 1.1em;
  border-bottom: 2px solid #c48a47;
  padding-bottom: 0.3em;
}

.filter-menu button {
  display: block;
  width: 100%;
  margin: 0.6em 0;
  background: #e6d9bf;
  border: 2px solid #c48a47;
  color: #5a4326;
  padding: 0.4em 1em;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  text-align: center;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-menu button:hover,
.filter-menu button.active {
  background: #c48a47;
  color: #fff;
  border-color: #a06935;
  box-shadow: 0 6px 12px rgba(196, 138, 71, 0.5);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Skryj všechny obrázky výchozí */
.gallery-item {
  display: none;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Zobraz na desktopu 15 obrázků */
.gallery-item:nth-child(-n+15) {
  display: block;
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  display: block;
  height: 225px;
  object-fit: cover;
}

.gallery-item p {
  display: none;
}

/* Mobilní verze */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Skryj všechny */
  .gallery-item {
    display: none;
  }

  /* Zobraz pouze první 4 */
  .gallery-item:nth-child(-n+4) {
    display: block;
  }
}


.pagination {
  text-align: center;
  background: #fdf6ec;
  padding: 3em 0;
}

.pagination button {
  background: #c48a47;
  color: white;
  border: none;
  padding: 0.5em 1em;
  margin: 0 0.2em;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.pagination button:hover,
.pagination button.active {
  background: #a06c32;
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.9); /* tmavší a méně průhledná černá */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px); /* jemné rozostření pozadí */
}

/* Viditelný lightbox */
#lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

/* Obrázek v lightboxu */
#lightbox-img {
  max-width: 98vw;   /* téměř celá šířka obrazovky */
  max-height: 98vh;  /* téměř celá výška obrazovky */
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(196, 138, 71, 0.8);
  transition: transform 0.3s ease;
  transform-origin: center;
  cursor: zoom-out;
}


/* Při otevření mírné přiblížení */
#lightbox.show #lightbox-img {
  transform: scale(1);
}

/* Zavírací křížek */
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #c48a47;
  font-size: 3.2rem;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 1001;
  text-shadow: 0 0 10px rgba(196, 138, 71, 0.8);
}

#lightbox-close:hover {
  color: #f0c974;
  text-shadow: 0 0 20px #f0c974;
}



