/* ===== Monkey Highlands Template Styles ===== */

:root {
    --primary-beige: #C1A875;
    --dark-color: #1a1a1a;
    --accent-cyan: #2bb3c8;
    --light-bg: #f5f1ec;
    --text-dark: #333;
    --text-muted: #777;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-size: 16px;
    background-color: #eee;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .bubble-title {
  font-family: "Nunito Sans", sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
  background-color: var(--primary-beige);
}

.navbar.hp {
    background-color: #fff;
}

.navbar-brand img {
    max-height: 100px;
}

.navbar-toggler {
    border: none;
    color: var(--dark-color);
    font-size: 24px;
}

.navbar-toggler:focus {
    outline: none;
}

.nav.menu.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav.menu .nav-item {
    margin: 0 8px;
}

.nav.menu .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 4px 4px !important;
    position: relative;
    display: block;
}

.nav.menu .nav-link:hover,
.nav.menu .nav-link.active {
    color: white !important;
}

.nav.menu .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.navbar.hp .nav.menu .nav-link:hover,
.navbar.hp .nav.menu .nav-link.active {
    color: var(--primary-beige) !important;
}
.navbar.hp .nav.menu .nav-link:hover::after {
    background-color: var(--primary-beige);
}

/* ===== Hero Section ===== */
.hero-section {
    background-color: var(--primary-beige);
}

.hero-content-wrapper {
    background-color: var(--primary-beige);
    display: flex;
    align-items: center;
    padding: 60px 40px 40px 80px !important;
    justify-content: flex-end;
}

.hero-content {
    max-width: 480px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: white;
    margin-bottom: 24px;
}

.hero-text {
    color: var(--dark-color);
    line-height: 1.7;
    margin-bottom: 32px;
}

.btn-custom {
    background-color: var(--dark-color);
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-custom:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}

.hero-image-wrapper {
    min-height: 500px;
}

.hero-image-inner {
    clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.contact-bubble {
    position: absolute;
    bottom: -40px;
    left: min(53%, 630px);
    background-color: var(--accent-cyan);
    color: #fff;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(43, 179, 200, 0.3);
}

.bubble-title {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}

.bubble-phone {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.bubble-phone i {
    margin-right: 5px;
}

.bubble-hours {
    font-size: 18px;
    margin-bottom: 0;
    line-height: 1.3;
}

/* ===== Section Titles ===== */
.page-header {
    font-size: 32px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 50px;
    border: none;
    padding: 0;
}

/* ===== Services Section ===== */
.services-section {
    background-color: #fff;
    padding: 60px 0 30px 0;
}

.service-card {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 300px;
    margin: 15px 0;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card .img-wrapper {
    position: relative;
}

.service-card .img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.service-card:hover  .img-wrapper::after {
    background-color: rgba(0, 0, 0, 0.4);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-beige);
    height: 80px;
    -webkit-transition: height 0.5s;
    transition: height 0.5s;
    clip-path: polygon(0 0, 0% 0, 100% 25px, 100% 100%, 0 100%);
    padding: 30px 10px 15px;
    text-align: center;
}

.service-card:hover .service-overlay {
  height: 260px;
}

.service-overlay .title {
  color: white;
  font-size: 20px;
}

.service-overlay .description {
  position: absolute;
  left: 20px;
  right: 20px;
  margin: 0;
  padding: 10px 0 0 0;
  line-height: 18px;
  color: var(--dark-color);
  opacity: 0;
  -webkit-transform: translateY(45px);
  transform: translateY(45px);
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  transition: opacity 0.3s, transform 0.3s, -webkit-transform 0.3s;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

.service-card:hover .service-overlay .description {
    opacity: 1;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
}

.service-card a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* ===== Partners Section ===== */
.partners-section {
    background-color: #fff;
    padding: 30px 0 60px 0;
}

.partner-logo {
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.testimonial-card {
    background-color: transparent;
    padding: 0 15px;
    margin-bottom: 30px;
}

.testimonial-text {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author i {
    font-size: 32px;
    color: var(--primary-beige);
    margin-right: 12px;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
}

.author-position {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== Video Gallery ===== */
.video-section {
    background-color: #fff;
    padding: 60px 0 0 0;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 180px;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover img {
    transform: scale(1.1);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 50px;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    opacity: 0.9;
    border: none;
    background: none;
    cursor: pointer;
}

.video-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.video-title span {
  display: flex;
  align-items: center;
}

.video-title i {
    color: var(--accent-cyan);
    margin-right: 5px;
}

/* ===== ROD 300 Section ===== */
.rod-section {
    padding-top: 40px;
    background-color: #fff;
    padding-bottom: 0;
}

.rod-image-wrapper {
    background-color: var(--primary-beige);
    min-height: 450px;
}

.rod-image {
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}

.rod-content-wrapper {
    background-color: var(--primary-beige);
    display: flex;
    align-items: center;
    padding: 60px;
}

.rod-content {
    max-width: 550px;
}

.rod-text {
    line-height: 1.7;
    font-weight: 400;
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.rod-features-title {
    font-size: 23px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.rod-features {
    list-style: none;
    font-weight: 400;
    padding: 0;
    margin-bottom: 30px;
}

.rod-features li {
    color: #fff;
    padding: 0;
    padding-left: 0;
}

/* ===== Blog Section ===== */
.blog-section {
    background-color: #fff;
    padding: 80px 0;
}

.blog-card {
    background-color: #fff;
    padding: 0;
    margin-bottom: 30px;
}

.blog-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 18px;
    line-height: 1.4;
}

.blog-text {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-blog {
    background-color: var(--accent-cyan);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-blog:hover {
    background-color: #259cb0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 179, 200, 0.3);
    text-decoration: none;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-color);
    color: #fff;
    font-size: 14px;
    padding: 60px 0 30px;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-text {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-text i {
    color: white;
    margin-right: 8px;
    width: 16px;
}

.footer-text a {
    color: #ccc;
}

.footer-text a:hover {
    color: var(--primary-beige);
}

.address-indent {
    margin-left: 29px;
    display: inline-block;
}

.copy {
    background-color: var(--dark-color);
    color: #999;
    font-size: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copy a {
    color: #ccc;
}

.copy a:hover {
    color: var(--primary-beige);
}

/**
* CARD
**/

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%) translateZ(0);
    transform: translateX(-50%) translateY(-50%) translateZ(0);
    width: 370px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    -webkit-transition: box-shadow 0.5s;
    transition: box-shadow 0.5s;
}

.card a {
    color: inherit;
    text-decoration: none;
}

.card:hover {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}


/**
* DATE
**/

.card__date {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    padding-top: 10px;
    background-color: coral;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    font-weight: 700;
    line-height: 13px;
}

.card__date__day {
    font-size: 14px;
}

.card__date__month {
    text-transform: uppercase;
    font-size: 10px;
}


/**
* THUMB
**/

.card__thumb {
    height: 245px;
    overflow: hidden;
    background-color: #000;
    -webkit-transition: height 0.5s;
    transition: height 0.5s;
}

.card__thumb img {
    width: 100%;
    display: block;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
    transition: opacity 0.5s, -webkit-transform 0.5s;
    transition: opacity 0.5s, transform 0.5s;
    transition: opacity 0.5s, transform 0.5s, -webkit-transform 0.5s;
}

.card:hover .card__thumb {
    height: 130px;
}

.card:hover .card__thumb img {
    opacity: 0.6;
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

/* Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.is-open {
    display: flex;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.video-modal__content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    z-index: 1;
    animation: scaleIn 0.3s ease;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s ease;
}

.video-modal__close:hover {
    transform: scale(1.2);
}

.video-modal__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-modal__player iframe,
.video-modal__player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.modal-open {
    overflow: hidden;
}

/* Animace */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.logo-slider {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.logo-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.logo-track img {
  max-height: 65px;
  max-width: 220px;
  flex-shrink: 0;
}

/* pauza při hoveru (volitelné) */
.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

main article.item-page a {
  color: var(--primary-beige) !important;
}

main article.item-page a:hover {
  text-decoration: underline;
}

main article.item-page ul {
  list-style-type: none;
}
main article.item-page ul li {
  position: relative;
}
main article.item-page ul li::before {
  content: "";
  display: flex;
  position: absolute;
  width: 14px;
  height: 14px;
  background: url(../images/li.svg);
  left: -21px;
  top: 5px;
}

table.styled-table,
table.styled-left-table {
  width: 100%;
  border-collapse: separate;
}

table.styled-table td,
table.styled-left-table td {
  padding: 10px 20px;
}

table.styled-table tr:first-child td,
table.styled-left-table tr td:first-child {
  font-weight: bold;
}

table.styled-table tr td,
table.styled-left-table tr td {
  background-color: var(--light-bg);
}

table.styled-table tr:first-child td,
table.styled-left-table tr td:first-child {
  background-color: var(--primary-beige) !important;
  color: white;
}

table.styled-table tr:first-child td:first-child,
table.styled-left-table tr:first-child td:first-child {
  border-top-left-radius: 16px;
}
table.styled-table tr:first-child td:last-child,
table.styled-left-table tr:first-child td:last-child {
  border-top-right-radius: 16px;
}
table.styled-table tr:last-child td:first-child,
table.styled-left-table tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}
table.styled-table tr:last-child td:last-child,
table.styled-left-table tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

table img {
  border-radius: 8px;
}

@media (max-width: 1280px) {
   .rod-content-wrapper,
    .hero-content-wrapper {
        padding: 40px 20px !important;
        justify-content: center;
    } 
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-image-wrapper {
        min-height: 350px;
    }

    .contact-bubble {
        width: 140px;
        height: 140px;
        right: 20px;
        bottom: 20px;
    }

    .bubble-title {
        font-size: 14px;
    }

    .bubble-phone {
        font-size: 13px;
    }

    .bubble-hours {
        font-size: 9px;
    }

    .page-header {
        font-size: 26px;
    }

    .nav.menu.navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 15px;
    }

    .nav.menu .nav-item {
        margin: 5px auto;
    }
    footer,
    .blog-card,
    .testimonial-card {
      text-align: center;
    }

    .testimonial-author {
      justify-content: center;
    }

    .author-position {
      text-align: left;
    }

    footer .row {
      gap: 30px;
    }
    .hero-section {
      text-align: center;
    }
    @keyframes scroll {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }
    .rod-image {
      clip-path: none;
    }
    .copy,
    .rod-content-wrapper {
      padding-left: 15px !important;
      padding-right: 15px !important;
      text-align: center;
    }
    .hero-image-inner {
      display: none;
    }
    .hero-image-wrapper {
      min-height: 150px;
    }
    .contact-bubble {
      left: calc(50% - 70px);
      top: 0;
    }
    .rod-image {
      width: 100%;
    }
    table img {
      width: 100%;
      margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
    }

    .partner-logo {
        max-width: 200px;
        padding-top: 20px;
    }

    .services-section,
    .partners-section,
    .testimonials-section,
    .video-section,
    .blog-section {
        padding: 50px 0;
    }
    table,
    table tbody,
    table tr,
    table td,
    table th {
      display: block;
      max-width: 100%;
      width: 100% !important;
      border-radius: 0 !important;
    }
}