html,
body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}





/* navbar navigation */
.navbar {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
}

.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-item + .nav-item {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-nav .nav-link {
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0.6rem 1.5rem !important;
    position: relative;
    transition: color 0.3s ease;
}

/* underline hover – using ::before because Bootstrap uses ::after for dropdown arrows */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: width 0.35s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: calc(100% - 2.2rem);
}

.navbar-nav .dropdown-menu {
    background-color: #0d0d0d;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    padding: 0.75rem 0;
    margin-top: 0 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    min-width: 230px;
}

.navbar-nav .dropdown-item {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.6rem 1.75rem;
    border-left: 2px solid transparent;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}




/* navbar logo */
.navbar {
    overflow: visible;
}

.morelo-brand {
    position: relative;
    z-index: 1060;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.morelo-logo {
    height: 115px;
    width: auto;
    display: block;
    margin-top: -15px;
    margin-bottom: -15px;
    transition: height 0.35s ease, margin-top 0.35s ease, margin-bottom 0.35s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.navbar.scrolled .morelo-logo {
    height: 80px;
    margin-top: -3px;
    margin-bottom: -3px;
}

/* mobile – matches navbar-expand-lg breakpoint */
@media (max-width: 991.98px) {
    .morelo-logo {
        height: 60px;
        margin-left: 15px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .navbar.scrolled .morelo-logo {
        height: 40px;
        margin-top: 0;
        margin-bottom: 0;
    }

    #navbarMain {
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}









/*  obecne styly */
.fw-bold {
  font-weight: 900 !important;
}
.fw-light {
  font-weight: 100 !important;
}
.bg-morelo-grey {
  background-color: rgb(240, 240, 240)
}







/* hero sekce */
.home-hero {
  filter: drop-shadow(2px 2px 10px rgba(0,0,0,0.8));
}
.text-hero {
  filter: drop-shadow(2px 2px 10px rgba(0,0,0,0.8));
  border-left: 3px solid #fff;
  padding: 2rem 0 2rem 2rem;
  margin-left: 1rem;
}






/* download link */
.download-link {
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-flex;
}
.download-link:hover {
  transform: translateX(6px);
  color: var(--bs-danger) !important;
}
.download-link:hover .bi {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}





/* team contacts */
.team-contact-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.14) !important;
}

.team-contact-card:hover .team-contact-icon {
    animation-name: pulse;
}

.team-contact-icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
}

.team-language-badge {
    letter-spacing: 0.02em;
}

.team-language-flag {
    width: 1.25rem;
    height: auto;
    border-radius: 0.1rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* gallery */
.gallery-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.gallery-zoom-icon {
    width: 3.25rem;
    height: 3.25rem;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-swiper-wrap .swiper-button-prev,
.gallery-swiper-wrap .swiper-button-next {
    color: #000;
    width: 2.75rem;
    top: 50%;
    height: 2.75rem;
    margin-top: -1.375rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    box-shadow: 0 0.25rem 0.85rem rgba(0, 0, 0, 0.12);
    padding: 0;
    justify-content: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.gallery-swiper-wrap .swiper-button-prev {
    left: 0.5rem;
}

.gallery-swiper-wrap .swiper-button-next {
    right: 0.5rem;
}

.gallery-swiper-wrap .swiper-button-prev:hover,
.gallery-swiper-wrap .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.95);
}

.bg-black .gallery-swiper-wrap .swiper-button-prev,
.bg-black .gallery-swiper-wrap .swiper-button-next {
    color: #000;
    background: rgba(255, 255, 255, 0.82);
}

.gallery-swiper-wrap .swiper-button-prev::after,
.gallery-swiper-wrap .swiper-button-next::after {
    font-size: 1.15rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .gallery-swiper-wrap .swiper-button-prev,
    .gallery-swiper-wrap .swiper-button-next {
        display: none;
    }
}









/* modely */
.section-model {
    margin: 0 0 5rem 0;
    padding: 2rem 0 0 0;
}

@media (max-width: 767.98px) {
    .section-model {
        margin: 0 0 4rem 0;
        padding: 1rem 0 0 0;
    }
}

section:nth-child(odd of section.section-model:not(.bg-black)) {
    background-color: rgb(245, 245, 245);
}

/* Section image wrapper — fills container regardless of screen size */
.section-img-wrap img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .section-img-wrap {
    height: 300px !important;
  }

  .section-img-wrap.clip-bottom-in,
  .section-img-wrap.clip-bottom-out,
  .section-img-wrap.clip-bottom-out-right,
  .section-img-wrap.clip-top-in,
  .section-img-wrap.clip-top-out {
    clip-path: none;
    padding-bottom: 0;
    padding-top: 0;
  }

  .section-img-text {
    margin-top: 0 !important;
  }
}









/* polygon */
:root {
  --cut-height: clamp(20px, 5vw, 80px);
  --cut-apex: 30%;
}

/* 1. Zářez dovnitř sekce ZESPODU (Jako Hero na morelo.pl) */
.clip-bottom-in {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut-apex) calc(100% - var(--cut-height)), 0 100%);
  padding-bottom: calc(var(--cut-height) + 3rem);
}

/* 2. Zářez ven ze sekce ZESPODU (Šipka dolů) */
.clip-bottom-out {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-height)), var(--cut-apex) 100%, 0 calc(100% - var(--cut-height)));
  padding-bottom: calc(var(--cut-height) + 3rem);
}

@media (min-width: 768px) {
  .clip-bottom-out-right {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-height)), calc(100% - var(--cut-apex)) 100%, 0 calc(100% - var(--cut-height)));
    padding-bottom: calc(var(--cut-height) + 3rem);
  }
}

/* 3. Zářez dovnitř sekce ZVRCHU (Jako Patička na morelo.pl) */
.clip-top-in {
  clip-path: polygon(0 0, var(--cut-apex) var(--cut-height), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--cut-height) + 3rem);
}

/* 4. Zářez ven ze sekce ZVRCHU (Šipka nahoru) */
.clip-top-out {
  clip-path: polygon(0 var(--cut-height), var(--cut-apex) 0, 100% var(--cut-height), 100% 100%, 0 100%);
  padding-top: calc(var(--cut-height) + 3rem);
}
























/* Oříznutí spodní části obrázku na kartě */
.card-black-overlay {
  background-color: #000;
  /* Tvarujeme vršek bloku: kraje jsou o 40px níž, špička je uprostřed na 0 */
  clip-path: polygon(0 40px, 50% 0, 100% 40px, 100% 100%, 0 100%);
  /* Ochranný vnitřní okraj, aby text nenarazil do řezu */
  padding-top: 70px !important;
}

.card-black-overlay h2 {
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.9);
}

.card-black-overlay-bottom {
  background-color: #000;
  /* Test bez calc() - 90% znamená, že rohy budou zvednuté o 10% výšky bloku */
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  padding-bottom: 50px !important;
}

/* Příprava obrázku pro zoom efekt */
.card-bg-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zvětšení obrázku po najetí na KARTU */
.card:hover .card-bg-img {
  transform: scale(1.08);
}

/* mobile – mělčí polygon a méně překryté auto */
@media (max-width: 767.98px) {
    .card-bg-img {
        height: 450px;
        width: 100%;
        object-fit: cover;
        transform: translateY(-8%);
    }

    .card:hover .card-bg-img {
        transform: translateY(-8%) scale(1.08);
    }

    .card-black-overlay {
        clip-path: polygon(0 18px, 50% 0, 100% 18px, 100% 100%, 0 100%);
        padding-top: 40px !important;
    }
}












/* Půdorys */
.floor-plan-nav {
    display: grid;
    grid-template-columns: 28% 17% 17% 23% 15%;
}

.floor-plan-zone {
    display: flex;
    justify-content: center;
}

.floor-plan-zone .btn {
    background-color: #fff;
}

.floor-plan-zone .btn:hover,
.floor-plan-zone .btn.active {
    background-color: #212529;
    color: #fff;
}

@media (max-width: 575.98px) {
    .floor-plan-zone .btn span {
        display: none;
    }
}




/* Zkosené tlačítko s bílým okrajem */
.btn-skew {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Automatická šipka za textem */
.btn-skew::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

/* Rámeček tlačítka uděláme pomocí pseudo-elementu, abychom zkreslili jen rámeček, ne text */
.btn-skew::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #fff;
  transform: skewX(-20deg); /* Tohle vytvoří ten kosodélník */
  z-index: -1; /* Schováme ho pod text */
  transition: background-color 0.3s ease;
}

/* Hover efekt - tlačítko zčerná a pozadí získá bílou barvu */
.btn-skew:hover {
  color: #000;
}

.btn-skew:hover::after {
  transform: translateX(2px);
}

.btn-skew:hover::before {
  background-color: #fff;
}

/* Když je tlačítko v kartě se stretched-link, hover chytáme na kartu */
.card:hover .btn-skew {
  color: #000;
}

.card:hover .btn-skew::after {
  transform: translateX(2px);
}

.card:hover .btn-skew::before {
  background-color: #fff;
}






/* Zkosené tlačítko – tmavá varianta (pro světlé pozadí) */
.btn-skew-dark {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #212529;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-skew-dark::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn-skew-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #212529;
  transform: skewX(-20deg);
  z-index: -1;
  transition: background-color 0.3s ease;
}

.btn-skew-dark:hover {
  color: #fff;
}

.btn-skew-dark:hover::after {
  transform: translateX(2px);
}

.btn-skew-dark:hover::before {
  background-color: #212529;
}




/*  videos */
.video-category-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.video-category-link:hover {
  color: #000 !important;
  padding-left: 0.5rem !important;
}
























/* sticky badge */
.sticky-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1030;
    width: 70px;
    opacity: 0;
    transform: scale(0.7) rotate(-15deg);
    animation: stickyBadgeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2s forwards;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.7))
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.25))
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease, filter 0.2s ease;
}
@media (min-width: 768px) {
    .sticky-badge {
        width: 110px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
.sticky-badge:hover {
    transform: scale(1.08) rotate(0deg);
    filter:
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.3))
        drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7));
}
.sticky-badge img {
    width: 100%;
    display: block;
}
@keyframes stickyBadgeIn {
    from { opacity: 0; transform: scale(0.7) rotate(-15deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
