/* ==========================================================
   RHO SECURITY
   Main custom stylesheet
   Everything is designed around CENTERED CONTENT.
   ========================================================== */

:root {
  --brand-primary: #0d6efd;
  --brand-dark: #111827;
  --brand-light: #f5f7fa;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --white: #ffffff;
  --contact-height: 70px;
  --content-width: 1050px;
}

/* -----------------------------
   Base
   ----------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  margin: 0;
  padding-bottom: var(--contact-height);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: #fff;
  text-align: center;
}

img {
  max-width: 100%;
}

a {
  transition-timing-function: ease-in;
}

/* -----------------------------
   Reusable centered containers
   ----------------------------- */

.page-section {
  width: 100%;
}

.content-container {
  width: min(92%, var(--content-width));
  margin-inline: auto;
  text-align: center;
}

.content-container-wide {
  width: min(94%, 1250px);
  margin-inline: auto;
  text-align: center;
}

.section-heading {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 750px;
}

.section-heading h2,
.intro-section h2,
.about-section h2 {
  font-weight: 800;
  margin-bottom: 12px;
}

.section-heading p,
.intro-section p,
.about-section p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

/* -----------------------------
   Top service navigation
   ----------------------------- */

.service-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: var(--brand-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.service-nav-scroll {
  width: 100%;
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.service-nav a {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 9px 12px;
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.service-nav a i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.service-nav a:hover,
.service-nav a:focus,
.service-nav a.active {
  background: var(--brand-primary);
  color: #fff;
}

/* -----------------------------
   Logo
   ----------------------------- */

.logo-section {
  width: 100%;
  background: #fff;
}

.logo-container {
  width: 100%;
  min-height: 150px;
  max-height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
}

.company-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: contain;
}

/* -----------------------------
   Hero slider
   ----------------------------- */

.hero-slider {
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  height: clamp(330px, 56vw, 550px);
  background: var(--brand-);
}

.slider-image {
  width: 65%;
  height: 50%;
  object-fit: scale-down;
  object-position: center;
  padding-top: 50px;
  padding-bottom: 20px;
  opacity: .72;
}

.carousel-caption {
  left: 8%;
  right: 8%;
  bottom: 13%;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
}

.carousel-caption h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
}

.carousel-caption p {
  font-size: clamp(.9rem, 2vw, 1.3rem);
  max-width: 750px;
  margin: 0 auto 15px;
}

.carousel-caption .btn {
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 800;
}

/* -----------------------------
   Introduction
   ----------------------------- */

.intro-section {
  padding: 65px 0;
  background: #ffffff;
}

.intro-section h2,
.about-section h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

/* -----------------------------
   Services
   ----------------------------- */

.services-section {
  padding: 60px 0 70px;
  background: var(--brand-light);
}

.service-anchor {
  scroll-margin-top: 80px;
}

.service-card {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff00;
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
  text-decoration: none;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  display: block;
  transition: transform .50s ease;
}

.service-card:hover img,
.service-card:focus img {
  transform: scale(1.25);
}

.service-card-overlay {
  position: absolute;
  inset: auto 0 0;
  min-height: 105px;
  padding: 34px 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(transparent, rgb(0, 0, 0));
}

.service-card-overlay i {
  font-size: 1.3rem;
  margin-bottom: 3px;
}

.service-card-overlay span {
  font-size: 1.05rem;
  font-weight: 800;
}

/* -----------------------------
   Service information
   ----------------------------- */

.information-section {
  padding: 20px 0 60px;
  background: #fff;
}

.info-block {
  max-width: 780px;
  margin: 0 auto;
  padding: 65px 15px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: 75px;
}

.info-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-primary);
  font-size: 1.4rem;
}

.info-block h2 {
  font-weight: 800;
  margin-bottom: 14px;
}

.info-block p {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--text-muted);
  line-height: 1.75;
}

.text-link {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
}

/* -----------------------------
   About / maintenance
   ----------------------------- */

.about-section {
  padding: 65px 0 90px;
  background: var(--brand-light);
}

/* -----------------------------
   Fixed bottom contact bar
   ----------------------------- */

.contact-bar {
  position: fixed;
  z-index: 1040;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--contact-height);
  display: flex;
  background: var(--brand-dark);
  box-shadow: 0 -4px 18px rgba(0,0,0,.2);
}

.contact-bar a {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 800;
}

.contact-bar a i {
  font-size: 1.25rem;
}

.contact-bar a:hover,
.contact-bar a:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* -----------------------------
   Mobile
   ----------------------------- */

@media (max-width: 575.98px) {

  .service-nav-scroll {
    justify-content: flex-start;
  }

  .service-nav a {
    min-width: 82px;
    padding-inline: 8px;
    font-size: .7rem;
  }

  .logo-container {
    min-height: 110px;
    max-height: 190px;
  }

  .carousel-item {
    height: 58vh;
    min-height: 320px;
    max-height: 530px;
  }

  .carousel-caption {
    bottom: 11%;
  }

  .carousel-caption h1 {
    margin-bottom: 6px;
  }

  .carousel-caption p {
    margin-bottom: 10px;
  }

  .carousel-caption .btn {
    padding: 8px 17px;
    font-size: .84rem;
  }

  .intro-section,
  .services-section,
  .about-section {
    padding-top: 45px;
    padding-bottom: 50px;
  }

  .service-card {
    height: 175px;
    border-radius: 12px;
  }

  .service-card-overlay {
    min-height: 85px;
    padding-top: 30px;
  }

  .service-card-overlay span {
    font-size: .88rem;
  }

  .info-block {
    padding: 48px 10px;
  }

  .contact-bar {
    height: 64px;
  }

  body {
    padding-bottom: 64px;
  }
}

/* -----------------------------
   Desktop
   ----------------------------- */

@media (min-width: 992px) {
  .service-nav-scroll {
    max-width: 1400px;
    margin: 0 auto;
  }

  .service-card {
    height: 270px;
  }
}
