/* Project overrides for the Industrie template. Loaded after main.css. */

/* Keep the header dark at all times, not only when the sticky header is active. */
.rs-header-area.has-theme-red.header-transparent {
  background: rgba(31, 31, 31, 0.9);
}

/* Language switcher in the header. */
.rs-language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: 15px;
}
.rs-language-switcher a {
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.rs-language-switcher a:hover {
  color: var(--rs-white);
}
.rs-language-switcher a.is-active {
  color: var(--rs-white);
  background: var(--rs-theme-red);
  border-color: var(--rs-theme-red);
}

/* References: category filter. */
.rs-reference-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.rs-reference-filter a {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rs-title-primary);
  background: var(--rs-bg-primary);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.rs-reference-filter a:hover,
.rs-reference-filter a.is-active {
  color: var(--rs-white);
  background: var(--rs-theme-red);
}

/* References: list cards (red version of the theme's dark portfolio card). */
.rs-references-list .rs-portfolio-content {
  background: var(--rs-black);
  border: none;
  width: calc(100% - 40px);
  max-width: 340px;
}
.rs-references-list .rs-portfolio-title a {
  color: var(--rs-white);
}
.rs-references-list .rs-portfolio-title a:hover,
.rs-references-list .rs-portfolio-tag a:hover,
.rs-references-list .rs-portfolio-text-btn a:hover {
  color: var(--rs-theme-red);
}
.rs-references-list .rs-portfolio-tag,
.rs-references-list .rs-portfolio-tag a {
  color: #B3B3B3;
}
.rs-references-list .rs-portfolio-text-btn a {
  color: var(--rs-white);
}
.rs-references-list .rs-services-btn-wrapper {
  border-color: rgba(255, 255, 255, 0.08);
}
.rs-references-list .rs-square-btn {
  background: var(--rs-theme-red);
}
.rs-references-list .rs-square-btn .icon-box svg path {
  fill: var(--rs-white);
}
.rs-references-list .rs-portfolio-thumb {
  background-position: center;
}

/* References: detail page. */
.rs-reference-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.rs-reference-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.rs-reference-gallery-item:hover img {
  transform: scale(1.05);
}
.sidebar-widget.widget-project .sidebar-widget-icon i {
  font-size: 24px;
  color: var(--rs-title-primary);
}

/* Contact page: red accents instead of the template's orange. */
.rs-contact-five .rs-contact-shape {
  color: var(--rs-theme-red);
}
.rs-contact-five .rs-contact-btn .rs-btn:hover {
  background: var(--rs-theme-red);
  border-color: var(--rs-theme-red);
}
.rs-contact-five .rs-contact-item h6 a:hover {
  color: var(--rs-theme-red);
}
.rs-contact-five .rs-contact-icon i {
  font-size: 20px;
  line-height: 1;
  color: var(--rs-white);
}
.rs-contact-seven .rs-contact-input input:focus,
.rs-contact-seven .rs-contact-input textarea:focus {
  border-color: var(--rs-theme-red);
}
.rs-contact-seven .rs-contact-btn .rs-btn:hover {
  background: var(--rs-black);
}

/* Contact form: validation and status messages. */
.rs-contact-input .is-invalid {
  border-color: #dc3545 !important;
}
.rs-form-error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #dc3545;
}
.rs-form-alert {
  margin-bottom: 25px;
  padding: 15px 20px;
  border-radius: 4px;
  font-weight: 500;
}
.rs-form-alert.is-success {
  color: #0f5132;
  background: #d1e7dd;
}
.rs-contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Certificates page. */
.rs-certificates-intro {
  font-size: 18px;
}
.rs-certificate-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--rs-white);
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.rs-certificate-card:hover {
  box-shadow: 0 15px 40px rgba(31, 31, 31, 0.08);
}
.rs-certificate-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  padding: 20px;
  background: var(--rs-bg-primary);
}
.rs-certificate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rs-certificate-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--rs-white);
  background: rgba(31, 31, 31, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rs-certificate-thumb:hover .rs-certificate-zoom,
.rs-certificate-thumb:focus-visible .rs-certificate-zoom {
  opacity: 1;
}
.rs-certificate-content {
  flex: 1;
  padding: 25px 25px 30px;
}
.rs-certificate-title {
  margin-bottom: 10px;
  font-size: 22px;
}
.rs-certificate-description {
  margin-bottom: 0;
}
.rs-certificate-documents {
  margin: 20px 0 0;
  padding: 15px 0 0;
  list-style: none;
  border-top: 1px solid #E5E5E5;
}
.rs-certificate-documents li:not(:last-child) {
  margin-bottom: 10px;
}
.rs-certificate-documents a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--rs-title-primary);
}
.rs-certificate-documents a:hover {
  color: var(--rs-theme-red);
}
.rs-certificate-documents i {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--rs-theme-red);
}
.rs-certificate-documents small {
  margin-inline-start: auto;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6D6D6D;
  border: 1px solid #D2D2D2;
  border-radius: 3px;
}

/* Service details: red accents and current service in the sidebar. */
.sidebar-widget.widget-categories-two ul li a:hover,
.sidebar-widget.widget-categories-two ul li.active a {
  background: var(--rs-theme-red);
  border-color: var(--rs-theme-red);
  color: var(--rs-white);
}

/* Accordion (light version, e.g. service FAQ): red accent instead of the template's orange. */
.rs-accordion-one .rs-accordion-item.active {
  border-color: var(--rs-theme-red);
}
.rs-accordion-one .accordion-button:not(.collapsed) {
  color: var(--rs-theme-red);
}
.rs-accordion-one .accordion-button:not(.collapsed) .accordion-btn::after {
  background: var(--rs-theme-red);
}

/* Tick icons in the service and reference detail lists. */
.rs-services-details-wrapper .rs-list-item ul li svg,
.rs-portfolio-details-content .rs-list-item ul li svg {
  fill: var(--rs-theme-red);
}

/* Sidebar widgets (service and reference detail pages): red accents. */
.sidebar-widget::before {
  background: var(--rs-theme-red);
}
.sidebar-widget-title.has-border {
  border-inline-start-color: var(--rs-theme-red);
}
.sidebar-widget.widget-download ul li a:hover {
  color: var(--rs-theme-red);
}

/* Partner logos: fit uploaded logos of any size into the theme's square tiles. */
.rs-brand-two .rs-brand-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 25px;
}
.rs-brand-two .rs-brand-thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.rs-brand-two .rs-brand-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Customer review author initials, shown when no photo was uploaded */
.rs-testimonial-two .rs-testimonial-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    background: var(--rs-theme-red);
    color: var(--rs-white);
    font-size: 26px;
    font-weight: 600;
}

/* News & Blog: template accents use the orange theme colour, switch them to red */
.rs-news-theme {
    --rs-theme-orange: var(--rs-theme-red);
}

/* News & Blog: uploaded cover images of any size fill a fixed frame */
.rs-post-cover img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.rs-post-cover.is-wide img {
    aspect-ratio: 16 / 9;
}

.rs-post-cover.is-square img {
    aspect-ratio: 1 / 1;
}

/* Privacy policy and other legal text pages */
.rs-legal-content h2 {
    font-size: 26px;
    margin: 40px 0 15px;
}

.rs-legal-content p,
.rs-legal-content li,
.rs-legal-content address {
    margin-bottom: 15px;
}

.rs-legal-content ul {
    padding-inline-start: 20px;
    margin-bottom: 15px;
    list-style: disc;
}

.rs-legal-content a {
    color: var(--rs-theme-red);
    text-decoration: underline;
}

.rs-legal-updated {
    font-size: 14px;
    opacity: 0.7;
}

/* Privacy notice under the contact forms */
.rs-form-privacy-notice {
    margin: 15px 0 0;
    font-size: 14px;
}

.rs-form-privacy-notice a {
    text-decoration: underline;
}

/* Promo video popup */
.promo-video-popup {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.promo-video-popup video {
    display: block;
    width: 100%;
    max-height: 80vh;
    background: #000;
}

.promo-video-popup .mfp-close {
    top: -40px;
    right: 0;
    width: auto;
    color: #fff;
}
