/* Import elegantního fontu z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;700&display=swap');

/*--------------------------------------------------------------
# Obecné styly
--------------------------------------------------------------*/
:root {
    --primary-color: #e0e0e0;
    --secondary-color: #a0a0a0;
    --accent-color: #c0a172;
    --background-color: #fefefe;
    --text-color: #ffffff;
    --card-bg: #888686;
    --gradient-start: #d4b98a;
    --gradient-end: #c0a172;
    --shadow-color: rgba(24, 23, 23, 0.2);
}

html {
  height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--background-color);
    z-index: -2;
}
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/hero-bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
}

main {
  flex-grow: 1;
  
}

/* Nadpisy */
h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
}

/* Sekce */
section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background-color: rgba(158, 156, 156, 0.4);
}
.section-title {
    text-align: center;
    padding-bottom: 40px;
}
.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: white;
}
.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px; height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: calc(50% - 25px);
}

/*--------------------------------------------------------------
# Header & Navigace
--------------------------------------------------------------*/
#header {
    transition: all 0.5s;
    z-index: 997;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.723);
}
#header.header-scrolled {
    box-shadow: 0px 2px 15px var(--shadow-color);
}
#header.header-hidden {
    transform: translateY(-120%);
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: rgb(192, 161, 114);
}
.navbar-nav .nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    font-weight: 700;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--accent-color);
}
.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    width: 100%; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--accent-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}
.navbar-nav .nav-link:hover::before {
    visibility: visible;
    transform: scaleX(1);
}
.navbar-nav {
  margin: 0 auto;          /* vycentruje blok navigace */
  display: flex;
  justify-content: center; /* zarovnání odkazů na střed */
}

.navbar .container-fluid {
    justify-content: flex-end;
}


/*--------------------------------------------------------------
# Hero Sekce
--------------------------------------------------------------*/
#hero {
    width: 100%; 
    height: 100vh;
    position: relative;
    background-color: transparent;
    padding: 0;
}
#hero {
  min-height: calc(100dvh - 71px) !important;
}
    /* margin-top: -71px;  ← SMAZAT */

#hero:before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}
#hero .container { position: relative; z-index: 2; padding-top: 100px;}
@media (max-width: 768px) {
    #hero .container { padding-top: 20%; }
}

#hero h1 {
    margin: 0 0 10px 0;
    font-size: 48px; font-weight: 500;
    line-height: 56px;
    color: rgb(255, 255, 255);
}
#hero h2 {
    color: rgb(255, 255, 255);
    margin-bottom: 50px;
    font-size: 24px;
}
.btn-cta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 500; font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    transition: 0.5s;
    margin: 10px;
    color: #fff;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-cta:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/*--------------------------------------------------------------
# Sekce Služby
--------------------------------------------------------------*/
.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px var(--shadow-color);
    transition: all 0.3s ease-in-out;
    text-align: center;
    height: 100%;
}
.service-card .icon {
    margin: 0 auto 20px auto;
    width: 64px; height: 64px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.service-card .icon i {
    color: #fff;
    font-size: 28px;
}
.service-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
}
.service-card p {
    color: var(--text-color);
    opacity: 0.8;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.service-card:hover .icon {
    background: var(--primary-color);
}
.service-card .price {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-color);
    margin-top: auto;
    padding-top: 15px;
}

/*--------------------------------------------------------------
/*--------------------------------------------------------------
# Galerie
--------------------------------------------------------------*/
#gallery {
  background-color: rgba(71,71,71,0.7);
}

.gallery-masonry {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

.gallery-masonry a {
  /* Nastaví velikost obrázků pro větší obrazovky (3 obrázky v řadě) */
  flex: 0 0 calc(33.33% - 1rem); /* 100% / 3 - mezera */
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.gallery-masonry img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.gallery-masonry a:hover img {
  transform: scale(1.1);
}

/* Media query pro tablety (991px a méně) */
@media (max-width: 991px) {
  .gallery-masonry a {
    /* Na tabletech 2 obrázky v řadě */
    flex: 0 0 calc(50% - 1rem); /* 100% / 2 - mezera */
  }
}

/* Media query pro mobily (767px a méně) */
@media (max-width: 767px) {
  .gallery-masonry {
    /* Změní mezeru mezi obrázky na mobilu */
    gap: 1rem;
  }
  .gallery-masonry a {
    /* Na mobilech stále 2 obrázky v řadě */
    flex: 0 0 calc(50% - 0.5rem); /* 100% / 2 - menší mezera */
  }
}

.gallery-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.gallery-button-container .btn-cta {
  padding: 10px 25px;
  font-size: 1rem;
  max-width: 100%;
  white-space: nowrap;
}
/*--------------------------------------------------------------
# Reference
--------------------------------------------------------------*/
.testimonials { background-color: rgba(104,104,104,0.6); }
.testimonial-item {
    box-sizing: content-box;
    padding: 30px;
    margin: 30px 15px;
    min-height: 200px;
    box-shadow: 0px 2px 12px var(--shadow-color);
    position: relative;
    background: var(--card-bg);
    border-radius: 10px;
    text-align: center;
}
.testimonial-item .testimonial-img {
    width: 75px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.7);
    margin: 0 auto;
    position:relative;
    top: 25px;
}
.testimonial-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 45px 0 5px 0;
}
.testimonial-item p { font-style: italic; margin: 0 auto 15px auto; }
.quote-icon-left, .quote-icon-right {
    color: var(--accent-color);
    font-size: 26px;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
}

/*--------------------------------------------------------------
# Kontakt
--------------------------------------------------------------*/
.contact .form-control {
    background: var(--card-bg);
    border-color: var(--secondary-color);
    color: var(--text-color);
}
.contact .form-control:focus {
    background: var(--card-bg);
    border-color: var(--accent-color);
    box-shadow: none;
    color: var(--text-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background: #504e4e8d;
    color: #ffffff;
    font-size: 14px;
    padding: 40px 0;
}
#footer .copyright { text-align: center; }
#footer .footer-links a {
    color: #fff;
    padding: 0 15px;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    transition: 0.3s;
}
#footer .footer-links a:hover { color: var(--accent-color); }


/* Oprava pro prázdný obsah během načítání */
.gallery-page {
    height: 100%;
}

.gallery-page body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.gallery-page main {
    flex: 1;
    padding-top: 71px;
    display: flex;
    flex-direction: column;
}

/* DŮLEŽITÉ: Přepsání obecných stylů pro section */
.gallery-page section.galleryhtml {
    flex: 1;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 71px - 120px);
    background-color: rgba(158, 156, 156, 0.4);
    padding-top: 100px !important;
}

.gallery-page section.galleryhtml .container {
    width: 100%;
    padding: 20px 15px;
}

.gallery-page section.galleryhtml .section-title {
    padding-bottom: 20px;
}

.gallery-page section.galleryhtml .gallery-masonry {
    width: 100%;
}

/* Zarovnání načítací zprávy na střed */
.gallery-page #moje-galerie {
    width: 100%;
    text-align: center;
    padding: 40px 0;
}

/* SPECIFICKÉ PŘEPSÁNÍ pro gallery stránku */
.gallery-page section {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
}

#footer .copyright a {
    color: #fff; /* Barva textu */
    text-decoration: none; /* Odstraní podtržení */
}

#footer .copyright a:hover {
    color: var(--accent-color); /* Barva při najetí myší */
}


.navbar-toggler-icon {
    /* Správné použití !important */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb%28192, 161, 114%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
    color: var(--accent-color) !important; /* Nastaví barvu obrysu */
    box-shadow: 0 0 0 .25rem rgba(192, 161, 114, .5) !important; /* Zlatý box-shadow */
}

.navbar-toggler {
    /* Odstraní výchozí šedý border a box-shadow */
    color: var(--accent-color) !important; /* Nastaví barvu obrysu */
    box-shadow: 0 0 0 .25rem rgba(192, 161, 114, .5) !important; /* Zlatý box-shadow */
}


.navbar-brand:hover, .navbar-brand:active {
    color:#a0a0a0; /* Změní barvu na zlatou */
}


@media (max-width: 767px) {
  #header {
    padding: 10px 0; /* Zmenšení vertikálního paddingu pro menší výšku navbaru */
  }
  .navbar-brand {
    font-size: 22px; /* Zmenšení velikosti písma pro název stránky */
  }
  .navbar-nav .nav-link {
    font-size: 16px; /* Zmenšení velikosti písma pro odkazy v menu */
    margin: 5px 0; /* Zmenšení mezer mezi odkazy, pokud jsou pod sebou */
  }
}

.ico1 {text-align: center;}
.contact-info {
    text-align: center;
} 

.navbar-brand {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* vždy vlevo */
}

.navbar-brand .logo {
    height: 140px;
    width: 150px;
    cursor: pointer;
    border-radius: 15px;
}

.jmeno {
    font-size: 35px !important;
    margin-top: 15px !important;
    font-weight: 500 !important;
}   

/* Pro mobily – zmenšení loga */
@media (max-width: 767px) {
    .navbar-brand .logo {
        height: 80px; /* menší logo na mobilu */
        width: auto;
    }
}



/* Karty služeb - fotka nahoře a stejná výška */
.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 0 30px var(--shadow-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* stejná výška */
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* Obrázek nahoře */
.service-card .service-img {
    display: block;
    width: 100%;
    height: 220px;          /* výška všech obrázků stejná */
    object-fit: cover;      /* vyplní prostor, nezkreslí */
    margin: 0;              /* žádné mezery okolo */
    border-radius: 15px;
}

/* Obsah karty */
.service-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 15px;
}

.service-card p {
    padding: 0 15px 20px;
    margin: 0;
    flex-grow: 1; /* aby text vyplnil prostor */
}
