/* ===== BASE ===== */

html {
  overflow-y: scroll;
}

.rentbox-logo-link {
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

.rentbox-logo-link:hover {
  opacity: 0.9;
  cursor: pointer;
}

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

/* ===== HEADER FIX ===== */

.container-header,
.container-header .navbar,
.container-header .container-nav,
.container-header .grid-child,
.header,
.navbar,
header {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.container-header::before,
.container-header::after,
.header::before,
.header::after {
  display: none !important;
}

.container-header,
.header,
.navbar {
  box-shadow: none !important;
  border: none !important;
}

/* ===== RENTBOX HEADER ===== */

.rentbox-module {
  background: #ffeb3b;
  padding: 12px 30px 8px 16px;
}

.rentbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.rentbox-brand {
  flex: 1 1 auto;
  min-width: 0;
}

.rentbox-logo {
  font-size: 38px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  line-height: 1;
}

.rentbox-logo-rent {
  color: #000;
}

.rentbox-logo-box {
  color: #d32f2f;
}

.rentbox-tagline {
  font-size: 14px;
  font-weight: 600;
  font-family: Arial, sans-serif;
  color: #000;
  margin-top: 4px;
}

.rentbox-contact {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  margin-right: 12px;
}

.rentbox-phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.rentbox-phone {
  font-size: 24px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  color: #000 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.rentbox-phone:hover,
.rentbox-phone:focus {
  color: #000 !important;
  text-decoration: none;
}

.rentbox-subtext {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  color: #000 !important;
  line-height: 1.1;
}

/* ===== DIVIDER ===== */

.rentbox-divider {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #000 0px,
    #000 6px,
    #ffeb3b 6px,
    #ffeb3b 12px
  );
}

/* ===== MENU ===== */

.mod-menu {
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 0;
  flex-wrap: nowrap;
  background: transparent !important;
}

.mod-menu ul {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 10px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  background: transparent !important;
}

.mod-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.mod-menu a,
.mod-menu a:link,
.mod-menu a:visited {
  display: inline-block;
  background: #ffeb3b;
  color: #000 !important;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.mod-menu a:hover,
.mod-menu a:focus,
.mod-menu a:active {
  color: #000 !important;
  text-decoration: none;
  background: #ffe533;
  border-color: #000;
}

/* ===== HOMEPAGE GRID ===== */

.blog-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ===== HOMEPAGE CARDS ===== */

.rentbox-card {
  border: 1px solid #e6e6e6;
  background: #fafafa;
  padding: 10px;
  border-radius: 8px;
  box-sizing: border-box;
  height: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rentbox-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.rentbox-card__image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.rentbox-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rentbox-card__title h3 {
  color: #222;
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.rentbox-card__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

.rentbox-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.rentbox-link {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  color: #000;
}

.rentbox-card:hover .rentbox-link {
  background: #000;
  color: #fff;
}

/* hide description/specs on homepage */
.blog .rentbox-card__description,
.blog .rentbox-card__specs {
  display: none;
}

/* ===== ARTICLE PAGE ===== */

.view-article .rentbox-card-link {
  display: block;
  max-width: 780px;
  margin: 20px auto;
  text-decoration: none;
  color: inherit;
  pointer-events: none;
  cursor: default;
}

.view-article .rentbox-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  padding: 14px;
  border-radius: 8px;
  margin: 0;
  box-shadow: none;
  transform: none;
  cursor: default;
}

.view-article .rentbox-card:hover {
  transform: none;
  box-shadow: none;
}

.view-article .rentbox-card__image {
  min-height: 200px;
  height: auto;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 0;
}

.view-article .rentbox-card__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.view-article .rentbox-card__right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.view-article .rentbox-card__title h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.view-article .rentbox-card__description p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.view-article .rentbox-card__specs li {
  font-size: 0.9rem;
}

.view-article .rentbox-card__price {
  font-size: 1.2rem;
}

.view-article .rentbox-card__cta {
  display: none;
}

/* hide Joomla default image */
.view-article .item-image {
  display: none;
}

/* allow slider to remain clickable inside disabled article link */
.view-article .rentbox-slider,
.view-article .rentbox-slider * {
  pointer-events: auto;
}

/* ===== RENTBOX SLIDER ===== */

.rentbox-slider {
  position: relative;
  max-width: 520px;
  margin: 14px auto 0;
}

.rentbox-slider__viewport {
  position: relative;
  width: 100%;
  height: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.rentbox-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #fff;
}

.rentbox-slide.active {
  display: block;
}

.rentbox-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #000;
  background: rgba(255,255,255,0.92);
  color: #000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rentbox-slider__btn--prev {
  left: 8px;
}

.rentbox-slider__btn--next {
  right: 8px;
}

.rentbox-slider__btn:hover {
  background: #000;
  color: #fff;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .rentbox-module {
    padding: 12px 28px 8px 14px;
  }

  .rentbox-header {
    gap: 10px;
  }

  .rentbox-logo {
    font-size: 34px;
  }

  .rentbox-tagline {
    font-size: 12px;
  }

  .rentbox-contact {
    margin-right: 12px;
  }

  .rentbox-phone {
    font-size: 18px;
  }

  .rentbox-phone-block {
    align-items: flex-end;
  }

  .rentbox-subtext {
    font-size: 12px;
    margin-top: 3px;
  }

  .mod-menu {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mod-menu ul {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow: visible;
  }

  .mod-menu a,
  .mod-menu a:link,
  .mod-menu a:visited {
    padding: 7px 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .blog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .rentbox-card {
    padding: 12px;
  }

  .rentbox-card__image {
    height: 140px;
  }

  .view-article .rentbox-card {
    grid-template-columns: 1fr;
  }

  .rentbox-slider__viewport {
    height: 240px;
  }

  .rentbox-slider__btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}

/* ===== FINAL CLEAN FOOTER ===== */

footer,
.footer,
.site-footer {
  background: #000 !important;
  color: #fff;
  text-align: center;
}

/* FIX JOOMLA FLEX ISSUE */
.footer .grid-child {
  display: block !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 12px 10px !important;
}

/* links */
.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer a:hover {
  color: #ffeb3b;
}

.rb-phone {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.rb-phone:hover {
  color: #ffeb3b;
}
@media (min-width: 769px) {
  .mod-menu a,
  .mod-menu a:link,
  .mod-menu a:visited {
    padding: 5px 10px;   /* smaller */
    font-size: 14px;     /* slightly smaller text */
    border-width: 1.5px; /* thinner border */
    border-radius: 5px;
  }
}
@media (min-width: 769px) {
  .rentbox-brand {
    margin-left: 54px;
  }
}
.mod-menu {
  margin-top: 4px;
}

.mod-menu a,
.mod-menu a:link,
.mod-menu a:visited {
  padding: 7px 12px;
}
@media (max-width: 768px) {
  .mod-menu {
    margin-top: 2px;
    gap: 8px;
  }

  .mod-menu a,
  .mod-menu a:link,
  .mod-menu a:visited {
    padding: 6px 11px;
  }
}
.contact-form legend {
    font-size: 0;
}

.contact-form legend::before {
    content: "Trimite mesaj";
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
.contact h2 {
    display: none !important;
}
.contact-form button {
    font-size: 0 !important;
}

.contact-form button::after {
    content: "Trimite mesaj";
    font-size: 18px;
    font-weight: 600;
}
.contact-form button {
    background: #f4d03f;
    color: #000;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    box-shadow: 2px 2px 0 #000;
    transition: 0.2s;
    font-size: 0 !important;
}

.contact-form button::after {
    content: "Trimite mesaj";
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.contact-form button:hover {
    background: #ffd84d;
    transform: translateY(-1px);
}