/* ==========================================================================
   RAPID POWER — style.css
   Phase 1 static UI stylesheet (Bootstrap 5 base + custom design system)
   Brand palette:
   - Rapid Power Orange  #EE7B22
   - Charcoal            #231F20
   - White               #FFFFFF
   - Grey                #58595B
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens & base
   -------------------------------------------------------------------------- */
:root {
  --rp-orange: #ee7b22;
  --rp-orange-dark: #d96a14;
  --rp-orange-light: #f79c53;
  --rp-charcoal: #231f20;
  --rp-charcoal-800: #2e2a2b;
  --rp-charcoal-700: #3a3637;
  --rp-grey: #58595b;
  --rp-grey-2: #6d6e71;
  --rp-grey-light: #a7a8aa;
  --rp-light: #faf8f6;
  --rp-light-2: #f3f0ec;
  --rp-border: #e7e4e0;
  --rp-white: #ffffff;

  --rp-font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --rp-font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --rp-shadow-sm: 0 2px 8px rgba(35, 31, 32, 0.08);
  --rp-shadow-md: 0 12px 32px rgba(35, 31, 32, 0.12);
  --rp-shadow-lg: 0 24px 56px rgba(35, 31, 32, 0.16);

  --rp-radius: 8px;
  --rp-radius-lg: 14px;
  --rp-transition: all 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Guarantee: no horizontal scrolling */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Consistent side gutters for every page (shared header/footer/sections).
   Uniform --bs-gutter-x keeps row/column math and all .container blocks
   aligned at 1.25rem (20px) left/right on desktop and mobile.
   -------------------------------------------------------------------------- */
.container {
  --bs-gutter-x: 2.5rem;
}

body {
  font-family: var(--rp-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rp-grey);
  background-color: var(--rp-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--rp-font-heading);
  font-weight: 700;
  color: var(--rp-charcoal);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--rp-orange);
  text-decoration: none;
  transition: var(--rp-transition);
}
a:hover {
  color: var(--rp-orange-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  padding-left: 1.25rem;
}

section {
  scroll-margin-top: 110px;
}

::selection {
  background: var(--rp-orange);
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. Utility helpers
   -------------------------------------------------------------------------- */
.text-orange { color: var(--rp-orange) !important; }
.text-charcoal { color: var(--rp-charcoal) !important; }
.text-grey { color: var(--rp-grey) !important; }
.text-white { color: var(--rp-white) !important; }

.bg-orange { background-color: var(--rp-orange) !important; }
.bg-charcoal { background-color: var(--rp-charcoal) !important; }
.bg-grey { background-color: var(--rp-charcoal-700) !important; }
.bg-light-grey { background-color: var(--rp-light) !important; }

.font-heading { font-family: var(--rp-font-heading); }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.9rem;
  font-family: var(--rp-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--rp-orange);
  border: 2px solid var(--rp-orange);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--rp-transition);
  white-space: normal;
  text-align: center;
}
.rp-btn:hover,
.rp-btn:focus {
  color: #fff;
  background-color: var(--rp-orange-dark);
  border-color: var(--rp-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--rp-shadow-md);
}
.rp-btn--charcoal {
  background-color: var(--rp-charcoal);
  border-color: var(--rp-charcoal);
}
.rp-btn--charcoal:hover,
.rp-btn--charcoal:focus {
  background-color: #000;
  border-color: #000;
}
.rp-btn--whatsapp {
  background-color: #25d366;
  border-color: #25d366;
}
.rp-btn--whatsapp:hover,
.rp-btn--whatsapp:focus {
  background-color: #1da851;
  border-color: #1da851;
}
.rp-btn--outline {
  color: var(--rp-charcoal);
  background-color: transparent;
  border-color: var(--rp-charcoal);
}
.rp-btn--outline:hover,
.rp-btn--outline:focus {
  color: #fff;
  background-color: var(--rp-charcoal);
  border-color: var(--rp-charcoal);
}
.rp-btn--outline-light {
  color: #fff;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.75);
}
.rp-btn--outline-light:hover,
.rp-btn--outline-light:focus {
  color: var(--rp-charcoal);
  background-color: #fff;
  border-color: #fff;
}
.rp-btn--white {
  color: var(--rp-charcoal);
  background-color: #fff;
  border-color: #fff;
}
.rp-btn--white:hover,
.rp-btn--white:focus {
  color: #fff;
  background-color: var(--rp-charcoal);
  border-color: var(--rp-charcoal);
}
.rp-btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.3rem;
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   4. Section scaffolding
   -------------------------------------------------------------------------- */
.section {
  padding: 84px 0;
}
.section--sm {
  padding: 56px 0;
}
.section--tight {
  padding: 40px 0;
}
.section--charcoal {
  background-color: var(--rp-charcoal);
}
.section--grey {
  background-color: var(--rp-light);
}
.section--orange {
  background-color: var(--rp-orange);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--rp-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rp-orange);
  margin-bottom: 0.85rem;
}
.section-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(135deg, var(--rp-orange), var(--rp-orange-light));
  display: inline-block;
}
.section-kicker--center::after {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(135deg, var(--rp-orange), var(--rp-orange-light));
  display: inline-block;
}
.section-kicker--light {
  color: var(--rp-orange-light);
}
.section-title {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--rp-charcoal);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-title--light {
  color: #fff;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--rp-grey);
  max-width: 760px;
  margin: 0 auto 0;
}
.section-subtitle--light {
  color: rgba(255, 255, 255, 0.85);
}
.section-head {
  margin-bottom: 3rem;
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.rp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.rp-navbar {
  background-color: transparent;
  padding: 0.4rem 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.28s ease;
}
.rp-header.is-scrolled .rp-navbar {
  background-color: #fff;
  box-shadow: var(--rp-shadow-md);
}

.rp-logo {
  height: 74px;
  width: auto;
  transition: height 0.28s ease, background-color 0.35s ease, border-radius 0.35s ease, padding 0.35s ease;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 6px 14px;
}
.rp-header.is-scrolled .rp-logo {
  height: 62px;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

.rp-navbar .navbar-nav {
  gap: 0.15rem;
}
.rp-navbar .nav-link {
  font-family: var(--rp-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 0.8rem !important;
  position: relative;
  white-space: nowrap;
  transition: color 0.28s ease;
}
/* Solid-state nav link colour (after scroll) */
.rp-header.is-scrolled .rp-navbar .nav-link {
  color: var(--rp-charcoal);
}
.rp-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 3px;
  background: linear-gradient(135deg, var(--rp-orange), var(--rp-orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.rp-navbar .nav-link:hover,
.rp-navbar .nav-link:focus,
.rp-navbar .nav-link.active {
  color: var(--rp-orange-light);
}
.rp-header.is-scrolled .rp-navbar .nav-link:hover,
.rp-header.is-scrolled .rp-navbar .nav-link:focus,
.rp-header.is-scrolled .rp-navbar .nav-link.active {
  color: var(--rp-orange);
}
.rp-navbar .nav-link:hover::after,
.rp-navbar .nav-link:focus::after,
.rp-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.rp-navbar .navbar-toggler {
  border: none;
  padding: 0.5rem 0.35rem;
}
.rp-navbar .navbar-toggler:focus {
  box-shadow: none;
}
/* White hamburger icon in transparent state */
.rp-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
  width: 1.6em;
  height: 1.6em;
}
/* Dark hamburger icon after scroll */
.rp-header.is-scrolled .rp-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23231F20' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

.rp-navbar .dropdown-menu {
  border: none;
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-md);
  padding: 0.6rem;
  min-width: 250px;
}
.rp-navbar .dropdown-item {
  font-family: var(--rp-font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rp-charcoal);
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  text-transform: uppercase;
}
.rp-navbar .dropdown-item:hover,
.rp-navbar .dropdown-item:focus,
.rp-navbar .dropdown-item.active {
  background-color: var(--rp-light);
  color: var(--rp-orange);
}

.rp-nav-cta {
  margin-left: 0.8rem;
}
.rp-nav-cta .rp-btn {
  min-height: 42px;
  padding: 0.55rem 1.3rem;
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   6. Hero (homepage)
   -------------------------------------------------------------------------- */
.rp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--rp-charcoal);
  overflow: hidden;
}
.rp-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 6s ease;
}
.rp-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.rp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(35, 31, 32, 0.96) 0%, rgba(35, 31, 32, 0.82) 45%, rgba(35, 31, 32, 0.35) 100%);
}
.rp-hero__diagonal {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -12%;
  width: 34%;
  background: linear-gradient(135deg, rgba(238, 123, 34, 0.0) 45%, rgba(238, 123, 34, 0.55) 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}
.rp-hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
}
.rp-hero h3.rp-hero__sub {
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--rp-font-heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: 1.4rem;
}
.rp-hero h3.rp-hero__sub .rp-accent {
  color: var(--rp-orange);
}
.rp-hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.rp-hero h1 .rp-accent {
  color: var(--rp-orange);
}
.rp-hero p.rp-hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 2rem;
}
.rp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.rp-hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  display: none;
}
.rp-hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--rp-orange);
  border-radius: 4px;
  animation: rp-scroll 1.6s infinite;
}
@keyframes rp-scroll {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* --------------------------------------------------------------------------
   7. Trust / credibility strip
   -------------------------------------------------------------------------- */
.rp-trust {
  background-color: var(--rp-orange);
  color: #fff;
  position: relative;
}
.rp-trust__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.4rem 0;
}
.rp-trust__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 1rem;
}
.rp-trust__item + .rp-trust__item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 1.2rem;
}
.rp-trust__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 1.25rem;
}
.rp-trust__label {
  font-family: var(--rp-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: #fff;
}
.rp-trust__label span {
  display: block;
  font-family: var(--rp-font-body);
  font-size: 0.74rem;
  font-weight: 400;
  opacity: 0.85;
  text-transform: none;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   8. Cards (services / industries / values / etc.)
   -------------------------------------------------------------------------- */
.rp-card {
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  transition: var(--rp-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.rp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--rp-orange), var(--rp-orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}
.rp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rp-shadow-md);
  border-color: transparent;
}
.rp-card:hover::before {
  transform: scaleX(1);
}

.rp-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--rp-light-2);
}
.rp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.rp-card:hover .rp-card__media img {
  transform: scale(1.07);
}
.rp-card__media-icon {
  position: absolute;
  bottom: -22px;
  right: 18px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-orange);
  color: #fff;
  border: 4px solid #fff;
  border-radius: 8px;
  font-size: 1.3rem;
  box-shadow: var(--rp-shadow-sm);
}
.rp-card__body {
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.rp-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.rp-card__title a {
  color: var(--rp-charcoal);
}
.rp-card__title a:hover {
  color: var(--rp-orange);
}
.rp-card__text {
  font-size: 0.9rem;
  color: var(--rp-grey);
  margin: 0;
}
.rp-card__more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--rp-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.rp-card__more i {
  transition: transform 0.25s ease;
}
.rp-card:hover .rp-card__more i {
  transform: translateX(5px);
}

/* card without media (icon cards) */
.rp-card--icon .rp-card__body {
  padding-top: 1.7rem;
  text-align: left;
}
.rp-card__icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-light-2);
  color: var(--rp-orange);
  border-radius: 12px;
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  transition: var(--rp-transition);
}
.rp-card:hover .rp-card__icon {
  background: var(--rp-orange);
  color: #fff;
}

/* dark variant card */
.rp-card--dark {
  background: var(--rp-charcoal-800);
  border-color: transparent;
}
.rp-card--dark .rp-card__title,
.rp-card--dark .rp-card__title a {
  color: #fff;
}
.rp-card--dark .rp-card__text {
  color: rgba(255, 255, 255, 0.75);
}
.rp-card--dark .rp-card__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--rp-orange-light);
}
.rp-card--dark:hover {
  background: var(--rp-charcoal);
}

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */
.service-card .rp-card__media {
  aspect-ratio: 16 / 9;
}
.service-card .rp-card__title {
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   10. Project cards
   -------------------------------------------------------------------------- */
.project-card .rp-card__media {
  aspect-ratio: 16 / 11;
}
.project-card .rp-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.rp-badge {
  display: inline-block;
  padding: 0.32rem 0.75rem;
  font-family: var(--rp-font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  color: #fff;
  background: var(--rp-orange);
}
.rp-badge--charcoal {
  background: rgba(35, 31, 32, 0.82);
}
.project-card .rp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--rp-grey);
}
.project-card .rp-card__meta i {
  color: var(--rp-orange);
  margin-right: 0.3rem;
}

/* Project placeholder card (case study awaiting imagery) */
.project-card--pending .rp-card__media {
  background:
    linear-gradient(135deg, rgba(238, 123, 34, 0.16) 0%, rgba(238, 123, 34, 0.02) 45%, rgba(238, 123, 34, 0.16) 100%),
    var(--rp-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card--pending .rp-card__placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}
.project-card--pending .rp-card__placeholder i {
  font-size: 2.6rem;
  color: var(--rp-orange-light);
  display: block;
  margin-bottom: 0.5rem;
}
.project-card--pending .rp-card__placeholder span {
  font-family: var(--rp-font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   11. Industry cards
   -------------------------------------------------------------------------- */
.industry-card .rp-card__title {
  font-size: 0.95rem;
}
.industry-card--capability .rp-card__text {
  font-size: 0.84rem;
}
.rp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  margin-bottom: 0.6rem;
}
.rp-tag--verified {
  color: #0f6b46;
  background: #e6f4ec;
}
.rp-tag--growth {
  color: #8a5b08;
  background: #fbf3dd;
}
.rp-tag--pending {
  color: #713d8f;
  background: #f1e8f6;
}

/* --------------------------------------------------------------------------
   12. Client cards
   -------------------------------------------------------------------------- */
.client-card {
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 1.5rem 1.35rem;
  height: 100%;
  transition: var(--rp-transition);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.client-card:hover {
  border-color: var(--rp-orange);
  box-shadow: var(--rp-shadow-sm);
  transform: translateY(-3px);
}
.client-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-light);
  color: var(--rp-orange);
  border-radius: 8px;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.client-card__name {
  font-family: var(--rp-font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rp-charcoal);
  text-transform: uppercase;
  line-height: 1.45;
}
.client-card__type {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rp-grey-2);
}

.rp-client-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
}
.rp-client-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--rp-font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rp-client-strip__item i {
  color: var(--rp-orange-light);
}
.rp-client-strip--light .rp-client-strip__item {
  background: #fff;
  border-color: var(--rp-border);
  color: var(--rp-charcoal);
  box-shadow: var(--rp-shadow-sm);
}
.rp-client-strip--light .rp-client-strip__item i {
  color: var(--rp-orange);
}

/* --------------------------------------------------------------------------
   13. CTA section
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  color: #fff;
  background-color: var(--rp-orange);
  overflow: hidden;
  padding: 70px 0;
}
.cta-section--charcoal {
  background-color: var(--rp-charcoal);
}
.cta-section__diagonal {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -8%;
  width: 26%;
  transform: rotate(-12deg);
  background-color: rgba(35, 31, 32, 0.14);
}
.cta-section__diagonal--alt {
  left: auto;
  right: -10%;
  background-color: rgba(255, 255, 255, 0.06);
}
.cta-section h2 {
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin-bottom: 1.6rem;
}
.cta-section .cta-section__main {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   14. Page banner (inner pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background-color: var(--rp-charcoal);
  color: #fff;
  padding: 115px 0 70px;
  margin-top: 0;
  overflow: hidden;
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35, 31, 32, 0.98) 0%, rgba(35, 31, 32, 0.86) 55%, rgba(35, 31, 32, 0.55) 100%);
}
.page-banner__diagonal {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -6%;
  width: 30%;
  background: linear-gradient(135deg, rgba(238, 123, 34, 0) 40%, rgba(238, 123, 34, 0.5) 100%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
}
.page-banner__content {
  position: relative;
  z-index: 2;
}
.page-banner .page-banner__kicker {
  font-family: var(--rp-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rp-orange-light);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-banner .page-banner__kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--rp-orange);
}
.page-banner h1 {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  margin-bottom: 0.7rem;
}
.page-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0;
}
.rp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1rem;
}
.rp-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}
.rp-breadcrumb a:hover {
  color: #fff;
}
.rp-breadcrumb span {
  color: var(--rp-orange-light);
}
.rp-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.rp-footer {
  background-color: var(--rp-charcoal);
  color: rgba(255, 255, 255, 0.78);
}
.rp-footer__main {
  padding: 66px 0 46px;
}
.rp-footer__brand {
  margin-bottom: 1.1rem;
}
.rp-footer__logo {
  height: 74px;
  width: auto;
}
.rp-footer__title {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.7rem;
}
.rp-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--rp-orange);
}
.rp-footer p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.rp-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rp-footer ul li {
  margin-bottom: 0.55rem;
}
.rp-footer ul li a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.rp-footer ul li a i {
  color: var(--rp-orange);
  font-size: 0.7rem;
}
.rp-footer ul li a:hover {
  color: var(--rp-orange-light);
  padding-left: 3px;
}
.rp-footer__contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}
.rp-footer__contact li i {
  color: var(--rp-orange);
  margin-top: 0.28rem;
}
.rp-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.rp-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.rp-social a:hover {
  background: var(--rp-orange);
  border-color: var(--rp-orange);
}
.rp-footer__tagline {
  font-family: var(--rp-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rp-orange-light);
  margin-top: 0.6rem;
}
.rp-footer__bottom {
  background-color: rgba(0, 0, 0, 0.28);
  padding: 1.1rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.rp-footer__bottom a {
  color: rgba(255, 255, 255, 0.8);
}
.rp-footer__bottom a:hover {
  color: var(--rp-orange-light);
}
.rp-footer__bottom-links {
  display: flex;
  gap: 1.4rem;
}

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.rp-form-wrap {
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  box-shadow: var(--rp-shadow-sm);
  padding: 2rem;
}
.rp-form-wrap--charcoal {
  background: var(--rp-charcoal-800);
  border-color: transparent;
}
.rp-form-wrap--charcoal .rp-form-title,
.rp-form-wrap--charcoal label {
  color: #fff;
}
.rp-form-wrap--charcoal .form-control,
.rp-form-wrap--charcoal .form-select {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.rp-form-wrap--charcoal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.rp-form-wrap--charcoal .form-control:focus,
.rp-form-wrap--charcoal .form-select:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--rp-orange);
  box-shadow: 0 0 0 0.2rem rgba(238, 123, 34, 0.2);
}
.rp-form-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: var(--rp-charcoal);
}

.rp-form .form-label,
.form-group label {
  font-family: var(--rp-font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rp-charcoal);
  margin-bottom: 0.35rem;
}
.rp-form .form-control,
.rp-form .form-select {
  min-height: 48px;
  border: 1px solid var(--rp-border);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--rp-charcoal);
  padding: 0.7rem 0.9rem;
  background-color: #fff;
}
.rp-form .form-control:focus,
.rp-form .form-select:focus {
  border-color: var(--rp-orange);
  box-shadow: 0 0 0 0.2rem rgba(238, 123, 34, 0.16);
}
.rp-form textarea.form-control {
  min-height: 120px;
}
.rp-form .form-check-input:checked {
  background-color: var(--rp-orange);
  border-color: var(--rp-orange);
}
.rp-form-hint {
  font-size: 0.78rem;
  color: var(--rp-grey-2);
  margin-top: 0.5rem;
}
.rp-form-note {
  font-size: 0.78rem;
  color: var(--rp-grey-2);
  background: var(--rp-light);
  border: 1px dashed var(--rp-border);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.rp-file-input {
  position: relative;
}
.rp-file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rp-file-input .form-control {
  pointer-events: none;
}

/* validation + notification */
.rp-feedback {
  display: none;
}
.rp-feedback.is-visible {
  display: flex;
}
.rp-feedback i {
  font-size: 1.4rem;
  margin-right: 0.7rem;
}

/* --------------------------------------------------------------------------
   17. Lists / checkmark bullets
   -------------------------------------------------------------------------- */
.rp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rp-list li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.9rem;
  font-size: 0.92rem;
  color: var(--rp-grey);
}
.rp-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--rp-orange);
  font-size: 0.9rem;
}
.rp-list--light li {
  color: rgba(255, 255, 255, 0.85);
}
.rp-list--light li::before {
  color: var(--rp-orange-light);
}

/* numbered steps */
.rp-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rp-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 72px;
}
.rp-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-charcoal);
  color: var(--rp-orange);
  font-family: var(--rp-font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 8px;
}
.rp-steps li::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--rp-border), transparent);
}
.rp-steps li:last-child {
  padding-bottom: 0;
}
.rp-steps li:last-child::after {
  display: none;
}
.rp-steps h4 {
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   18. Stats
   -------------------------------------------------------------------------- */
.rp-stat {
  text-align: center;
  padding: 1.4rem;
}
.rp-stat .rp-stat__num {
  font-family: var(--rp-font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--rp-orange);
  line-height: 1;
}
.rp-stat .rp-stat__label {
  font-family: var(--rp-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rp-charcoal);
  margin-top: 0.55rem;
}
.rp-stat .rp-stat__label span {
  display: block;
  font-family: var(--rp-font-body);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rp-grey-2);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.rp-stat--light .rp-stat__label {
  color: #fff;
}
.rp-stat--light .rp-stat__label span {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   19. Timeline (project detail / delivery flow)
   -------------------------------------------------------------------------- */
.rp-timeline {
  counter-reset: tl;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.rp-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 26px;
  width: 3px;
  background: linear-gradient(var(--rp-orange), var(--rp-charcoal));
  opacity: 0.32;
  border-radius: 3px;
}
.rp-timeline li {
  counter-increment: tl;
  position: relative;
  padding: 0 0 1.8rem 74px;
}
.rp-timeline li::before {
  content: counter(tl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--rp-orange);
  color: var(--rp-orange);
  font-family: var(--rp-font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 50%;
  box-shadow: var(--rp-shadow-sm);
  z-index: 1;
}
.rp-timeline li:last-child {
  padding-bottom: 0;
}
.rp-timeline h4 {
  font-size: 0.98rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   21. Accordion (FAQ) custom
   -------------------------------------------------------------------------- */
.rp-accordion .accordion-item {
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius) !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.rp-accordion .accordion-button {
  font-family: var(--rp-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rp-charcoal);
  background: #fff;
  padding: 1.05rem 1.25rem;
  text-transform: uppercase;
}
.rp-accordion .accordion-button:not(.collapsed) {
  background: var(--rp-charcoal);
  color: #fff;
  box-shadow: none;
}
.rp-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(238, 123, 34, 0.18);
  border-color: var(--rp-orange);
}
.rp-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EE7B22'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.rp-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.rp-accordion .accordion-body {
  font-size: 0.92rem;
  color: var(--rp-grey);
}

/* --------------------------------------------------------------------------
   22. Solar calculator
   -------------------------------------------------------------------------- */
.rp-calc {
  background: var(--rp-charcoal);
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  box-shadow: var(--rp-shadow-lg);
}
.rp-calc__head {
  background: var(--rp-orange);
  color: #fff;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rp-calc__head i {
  font-size: 2rem;
}
.rp-calc__head h3 {
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  font-size: 1.1rem;
}
.rp-calc__body {
  padding: 2rem;
}
.rp-calc__field label {
  font-family: var(--rp-font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.rp-calc__field .form-control,
.rp-calc__field .form-select {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
}
.rp-calc__field .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.rp-calc__field .form-control:focus,
.rp-calc__field .form-select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--rp-orange);
  box-shadow: 0 0 0 0.2rem rgba(238, 123, 34, 0.2);
}
.rp-calc__results {
  display: none;
  margin-top: 1.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 1.6rem;
}
.rp-calc__results.is-visible {
  display: block;
}
.rp-calc__result {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.2rem 1.1rem;
  text-align: center;
  height: 100%;
}
.rp-calc__result-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.rp-calc__result-value {
  font-family: var(--rp-font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--rp-orange-light);
  line-height: 1.2;
  margin: 0.3rem 0;
}
.rp-calc__result-value small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.rp-calc__note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1.1rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   23. Contact / detail blocks
   -------------------------------------------------------------------------- */
.rp-contact-card {
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  padding: 1.7rem;
  height: 100%;
  transition: var(--rp-transition);
}
.rp-contact-card:hover {
  box-shadow: var(--rp-shadow-md);
  transform: translateY(-4px);
}
.rp-contact-card__icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-light-2);
  color: var(--rp-orange);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.rp-contact-card h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* merged variant: several contact items stacked vertically in ONE card */
.rp-contact-card__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.rp-contact-card__row + .rp-contact-card__row {
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rp-border);
}
.rp-contact-card__row > div {
  min-width: 0;
}
.rp-contact-card__row h4 {
  margin-bottom: 0.3rem;
}
.rp-contact-card__row p,
.rp-contact-card__row a {
  font-size: 0.92rem;
}
.rp-contact-card__icon--sm {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.rp-contact-card p,
.rp-contact-card a {
  font-size: 0.92rem;
  color: var(--rp-grey);
}
.rp-contact-card a:hover {
  color: var(--rp-orange);
}

.rp-map-embed {
  height: 420px;
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rp-border);
}
.rp-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* job openings panel */
.rp-job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  padding: 1.4rem 1.6rem;
  transition: var(--rp-transition);
  height: 100%;
}
.rp-job:hover {
  box-shadow: var(--rp-shadow-md);
  border-color: var(--rp-orange);
}
.rp-job__title {
  font-family: var(--rp-font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rp-charcoal);
  margin-bottom: 0.25rem;
}
.rp-job__meta {
  font-size: 0.82rem;
  color: var(--rp-grey-2);
}
.rp-job__meta i {
  color: var(--rp-orange);
  margin-right: 0.35rem;
  margin-left: 0.9rem;
}

/* --------------------------------------------------------------------------
   24. Misc components
   -------------------------------------------------------------------------- */
.rp-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--rp-orange) 0%, var(--rp-orange) 22%, var(--rp-charcoal) 22%, var(--rp-charcoal) 100%);
  opacity: 0.92;
}

.rp-backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-charcoal);
  color: var(--rp-orange);
  border-radius: 8px;
  font-size: 1.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--rp-transition);
  z-index: 1020;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rp-backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.rp-backtop:hover {
  background: var(--rp-orange);
  color: #fff;
}

.rp-stripes {
  background-image: repeating-linear-gradient(-45deg, rgba(35, 31, 32, 0.05) 0 10px, transparent 10px 22px);
}

.rp-scroll-x {
  overflow-x: auto;
}

.img-frame {
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  box-shadow: var(--rp-shadow-md);
}

.rp-docs-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  margin-bottom: 0.8rem;
  color: var(--rp-charcoal);
  font-family: var(--rp-font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--rp-transition);
}
.rp-docs-list a:hover {
  border-color: var(--rp-orange);
  box-shadow: var(--rp-shadow-sm);
  color: var(--rp-orange);
}
.rp-docs-list a i {
  font-size: 1.3rem;
  color: var(--rp-orange);
}

/* --------------------------------------------------------------------------
   25. Animation helpers
   -------------------------------------------------------------------------- */
@keyframes rp-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.rp-animate {
  opacity: 0;
}
.rp-animate.is-visible {
  animation: rp-fade-up 0.7s ease forwards;
}
.rp-animate[data-delay="1"] { animation-delay: 0.1s; }
.rp-animate[data-delay="2"] { animation-delay: 0.22s; }
.rp-animate[data-delay="3"] { animation-delay: 0.34s; }
.rp-animate[data-delay="4"] { animation-delay: 0.46s; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   26. Project filter & cards
   -------------------------------------------------------------------------- */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.rp-filter-btn {
  font-family: var(--rp-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background: var(--rp-light-2);
  color: var(--rp-charcoal);
  border: 1px solid var(--rp-border);
  transition: all 0.3s ease;
}
.rp-filter-btn:hover {
  background: var(--rp-charcoal);
  color: #fff;
  border-color: var(--rp-charcoal);
}
.rp-filter-btn.active {
  background: var(--rp-orange);
  color: #fff;
  border-color: var(--rp-orange);
  box-shadow: 0 4px 12px rgba(243, 101, 35, 0.3);
}
.rp-filter-btn .badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.12) !important;
  color: inherit;
}
.rp-filter-btn.active .badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #fff;
}
.project-card-col {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.project-card-col.is-hidden {
  display: none !important;
}
.rp-badge--completed {
  background: #198754;
  color: #fff;
}
.rp-badge--ongoing {
  background: #fd7e14;
  color: #fff;
}

/* ==========================================================================
   MODERN INTERACTIVE PROJECT GALLERY & LIGHTBOX
   ========================================================================== */
.rp-gallery-wrapper {
  background: #131922;
  border-radius: var(--rp-radius-lg);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 860px;
  margin: 0 auto;
}

.rp-gallery-stage {
  position: relative;
  border-radius: var(--rp-radius);
  overflow: hidden;
  background: #090d14;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
  cursor: zoom-in;
}

.rp-gallery-stage__inner {
  position: relative;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .rp-gallery-stage__inner {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }
  .rp-gallery-wrapper {
    padding: 0.85rem;
  }
}

.rp-gallery-stage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rp-gallery-stage__img.is-animating {
  opacity: 0.35;
  transform: scale(0.98);
}

.rp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  opacity: 0.85;
}

.rp-gallery-nav:hover {
  background: var(--rp-orange);
  border-color: var(--rp-orange);
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.45);
}

.rp-gallery-nav--prev {
  left: 1rem;
}

.rp-gallery-nav--next {
  right: 1rem;
}

.rp-gallery-zoom-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
}

.rp-gallery-zoom-btn:hover {
  background: var(--rp-orange);
  border-color: var(--rp-orange);
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.45);
  transform: scale(1.05);
}

.rp-gallery-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 0.85rem;
  background: linear-gradient(to top, rgba(9, 13, 20, 0.95) 0%, rgba(9, 13, 20, 0.5) 75%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 4;
  pointer-events: none;
}

.rp-gallery-badge {
  background: var(--rp-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rp-gallery-caption {
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thumbnail Carousel Grid */
.rp-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
}

@media (max-width: 575.98px) {
  .rp-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
}

.rp-gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--rp-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.25s ease;
  background: #1e293b;
}

.rp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rp-gallery-thumb:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.rp-gallery-thumb:hover img {
  transform: scale(1.06);
}

.rp-gallery-thumb.active {
  opacity: 1;
  border-color: var(--rp-orange);
  box-shadow: 0 0 14px rgba(230, 81, 0, 0.55);
}

.rp-gallery-thumb.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--rp-orange);
  border-radius: inherit;
  pointer-events: none;
}

/* LIGHTBOX MODAL STYLES */
.rp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.rp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rp-lightbox__container {
  position: relative;
  z-index: 2;
  width: 95vw;
  max-width: 1250px;
  height: 92vh;
  display: flex;
  flex-direction: column;
}

.rp-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.rp-lightbox__info {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.rp-lightbox__badge {
  background: var(--rp-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
}

.rp-lightbox__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-lightbox__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rp-lightbox__tool-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-lightbox__tool-btn:hover {
  background: var(--rp-orange);
  border-color: var(--rp-orange);
  color: #fff;
  transform: scale(1.08);
}

.rp-lightbox__body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04060a;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.rp-lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
}

.rp-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.25s ease;
  user-select: none;
  cursor: zoom-in;
}

.rp-lightbox__img.is-zoomed {
  max-width: none;
  max-height: none;
  transform: scale(1.8);
  cursor: zoom-out;
}

.rp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.rp-lightbox__nav:hover {
  background: var(--rp-orange);
  border-color: var(--rp-orange);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.45);
}

.rp-lightbox__nav--prev {
  left: 1.25rem;
}

.rp-lightbox__nav--next {
  right: 1.25rem;
}

