:root {
  --ri-navy: #0b2545;
  --ri-navy-dark: #081a33;
  --ri-blue: #1565c0;
  --ri-green: #1f9d55;
  --ri-green-dark: #167a43;
  --ri-orange: #f5810c;
  --ri-orange-dark: #d96e04;
  --ri-bg-light: #f5f8fb;
  --ri-text: #1c2b3a;
  --ri-text-muted: #5b6b7c;
  --ri-border: #e3e9f0;
  --ri-radius: 0.75rem;
  --ri-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --ri-shadow-hover: 0 20px 40px rgba(11, 37, 69, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ri-text);
  background: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.text-navy { color: var(--ri-navy); }
.text-green { color: var(--ri-green); }
.text-orange { color: var(--ri-orange); }
.bg-navy { background-color: var(--ri-navy); }
.bg-light-section { background-color: var(--ri-bg-light); }
.bg-orange { background-color: var(--ri-orange); }
.bg-green { background-color: var(--ri-green); }
.bg-blue { background-color: var(--ri-blue); }

.section-padding { padding-block: 1.5rem; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ri-green);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--ri-orange);
}

.section-title {
  font-weight: 800;
  color: var(--ri-navy);
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--ri-text-muted);
  max-width: 720px;
}

/* Buttons */
.btn-ri-primary {
  background: var(--ri-orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(245, 129, 12, 0.3);
}
.btn-ri-primary:hover {
  background: var(--ri-orange-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(245, 129, 12, 0.4);
}

.btn-ri-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  padding: 0.8rem 1.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.btn-ri-outline:hover {
  background: #fff;
  color: var(--ri-navy);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn-ri-navy {
  background: var(--ri-navy);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.btn-ri-navy:hover {
  background: var(--ri-navy-dark);
  color: #fff;
  transform: translateY(-3px);
}

.btn-ri-green {
  background: var(--ri-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.btn-ri-green:hover {
  background: var(--ri-green-dark);
  color: #fff;
  transform: translateY(-3px);
}

.btn-ri-outline-navy {
  background: transparent;
  color: var(--ri-navy);
  border: 2px solid var(--ri-navy);
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn-ri-outline-navy:hover {
  background: var(--ri-navy);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== Top bar ===== */
.ri-topbar {
  background: var(--ri-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding-block: 0.5rem;
}
.ri-topbar a {
  color: rgba(255, 255, 255, 0.85);
}
.ri-topbar a:hover {
  color: #fff;
}
.ri-topbar .ri-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1.5rem;
}
.ri-topbar .ri-topbar-taglines .ri-topbar-item i {
  color: var(--ri-green);
}
.ri-topbar .ri-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  margin-left: 0.4rem;
  transition: background-color 0.2s ease;
}
.ri-topbar .ri-social a:hover {
  background: var(--ri-orange);
}

/* ===== Main nav ===== */
.ri-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  padding-block: 0.65rem;
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.06);
}
.ri-navbar.ri-navbar-scrolled {
  padding-block: 0.4rem;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.1);
}
.ri-navbar .navbar-brand {
  padding-block: 0;
}
.ri-navbar .navbar-brand img {
  height: 78px;
  transition: height 0.3s ease;
}
.ri-navbar.ri-navbar-scrolled .navbar-brand img {
  height: 60px;
}
@media (max-width: 575.98px) {
  .ri-navbar .navbar-brand img {
    height: 56px;
  }
  .ri-navbar.ri-navbar-scrolled .navbar-brand img {
    height: 48px;
  }
}
.ri-navbar .nav-link {
  color: var(--ri-navy) !important;
  font-weight: 600;
  margin-inline: 0.5rem;
  position: relative;
  padding-block: 0.5rem !important;
  white-space: nowrap;
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .ri-navbar .nav-link {
    margin-inline: 0.35rem;
    font-size: 0.92rem;
  }
}
.ri-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ri-green);
  transition: width 0.25s ease;
}
.ri-navbar .nav-link:hover::after,
.ri-navbar .nav-link.active::after {
  width: 100%;
}
.ri-navbar .nav-link.active {
  color: var(--ri-green) !important;
}

.ri-brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ri-navy);
}
.ri-brand-fallback .ri-brand-dot { color: var(--ri-green); }

/* ===== Hero ===== */
.ri-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("/images/hero/hero-photo.jpg");
  background-size: cover;
  background-position: center;
}
.ri-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 32%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.1) 72%, transparent 88%);
}
.ri-hero-content {
  position: relative;
  z-index: 2;
  color: var(--ri-navy);
  padding-block: 5rem;
}
.ri-hero-content .section-eyebrow { color: var(--ri-green); }
.ri-hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ri-navy);
}
.ri-hero .ri-hero-highlight { color: var(--ri-green); }
.ri-hero p.lead {
  color: var(--ri-text-muted);
  max-width: 560px;
}
.ri-hero .btn-ri-outline {
  color: var(--ri-navy);
  border-color: var(--ri-navy);
}
.ri-hero .btn-ri-outline:hover {
  background: var(--ri-navy);
  color: #fff;
}
.ri-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.25rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(11, 37, 69, 0.12);
}
.ri-hero-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ri-navy);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ri-hero-badge i {
  font-size: 1.5rem;
  color: var(--ri-navy);
  background: rgba(11, 37, 69, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ri-hero-corner-label {
  position: absolute;
  right: 2.5rem;
  z-index: 2;
  text-align: right;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ri-hero-corner-label.is-bottom { bottom: 2.5rem; }
.ri-hero-corner-label span { display: block; }
.ri-hero-corner-label .ri-corner-rule {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin-bottom: 0.35rem;
}
@media (max-width: 991.98px) {
  .ri-hero-corner-label {
    display: none;
  }
}

/* ===== Service cards ===== */
.ri-service-card {
  background: #fff;
  border-radius: var(--ri-radius);
  border: 1px solid var(--ri-border);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ri-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ri-shadow-hover);
  border-color: var(--ri-orange);
}
.ri-service-card .ri-service-media {
  height: 150px;
  overflow: hidden;
}
.ri-service-card .ri-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ri-service-card:hover .ri-service-media img {
  transform: scale(1.08);
}
.ri-service-card .ri-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ri-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-top: -22px;
  margin-left: 1rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--ri-shadow);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.ri-service-card:hover .ri-service-icon {
  background: var(--ri-orange);
  transform: rotate(-8deg) scale(1.05);
}
.ri-service-card .ri-service-body { padding: 1.1rem 1.15rem 1.3rem; }
.ri-service-card h3 { font-size: 1rem; font-weight: 700; color: var(--ri-navy); line-height: 1.3; }
.ri-service-card p { color: var(--ri-text-muted); font-size: 0.84rem; line-height: 1.45; }
.ri-service-card .ri-learn-more {
  color: var(--ri-navy);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ri-service-card .ri-learn-more i { transition: transform 0.25s ease; }
.ri-service-card:hover .ri-learn-more i { transform: translateX(4px); }

/* ===== Stats band ===== */
.ri-stats-band {
  background: var(--ri-navy);
  color: #fff;
}
.ri-stat-item { text-align: center; padding-block: 1rem; }
.ri-stat-item i { font-size: 1.8rem; color: var(--ri-orange); margin-bottom: 0.5rem; display: block; }
.ri-stat-item .ri-stat-value { font-size: 2.1rem; font-weight: 800; }
.ri-stat-item .ri-stat-label { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }

/* ===== Project cards ===== */
.ri-project-card {
  border-radius: var(--ri-radius);
  overflow: hidden;
  box-shadow: var(--ri-shadow);
  background: #fff;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ri-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ri-shadow-hover);
}
.ri-project-card .ri-project-media { position: relative; height: 140px; overflow: hidden; }
.ri-project-card .ri-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ri-project-card:hover .ri-project-media img { transform: scale(1.1); }
.ri-project-card .ri-project-body { padding: 0.9rem 1rem 1.1rem; }
.ri-project-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--ri-navy); line-height: 1.3; }
.ri-project-card .ri-project-location { color: var(--ri-text-muted); font-size: 0.72rem; }
.ri-project-card .ri-project-arrow {
  color: var(--ri-navy);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: transform 0.25s ease, color 0.25s ease;
}
.ri-project-card:hover .ri-project-arrow {
  color: var(--ri-orange);
  transform: translate(3px, -3px);
}

/* ===== Cards / value blocks ===== */
.ri-value-card {
  background: #fff;
  border-radius: var(--ri-radius);
  padding: 1.75rem;
  box-shadow: var(--ri-shadow);
  height: 100%;
  transition: transform 0.3s ease;
}
.ri-value-card:hover { transform: translateY(-6px); }
.ri-value-card i { font-size: 1.9rem; color: var(--ri-green); margin-bottom: 1rem; }

.ri-mvv-card {
  background: #fff;
  border-radius: var(--ri-radius);
  box-shadow: var(--ri-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.ri-mvv-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ri-border);
}
.ri-mvv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ri-mvv-row i {
  font-size: 1.4rem;
  color: var(--ri-green);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(31, 157, 85, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ri-cta-band {
  position: relative;
  background-image: linear-gradient(100deg, rgba(11, 37, 69, 0.35) 0%, rgba(15, 60, 70, 0.55) 45%, rgba(11, 37, 69, 0.72) 100%), url("/images/home/cta-background.jpg");
  background-size: cover;
  background-position: left center;
  color: #fff;
  border-radius: var(--ri-radius);
  overflow: hidden;
}
.ri-cta-band h3,
.ri-cta-band p,
.ri-cta-checklist li {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
@media (min-width: 768px) {
  .ri-cta-band { padding-left: 5.5rem !important; }
}

/* Full-bleed variant: used when the CTA is its own page section (not nested in a content column) */
.ri-cta-fullbleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-block: 3rem;
}
.ri-cta-fullbleed .ri-cta-band {
  border-radius: 0;
}
.ri-cta-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ri-cta-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.ri-cta-checklist i {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ===== Quality/Safety band ===== */
.ri-quality-band {
  position: relative;
  background-image: linear-gradient(100deg, rgba(11, 37, 69, 0.95) 0%, rgba(11, 37, 69, 0.88) 40%, rgba(11, 37, 69, 0.55) 75%, rgba(11, 37, 69, 0.3) 100%), url("/images/home/quality-safety-photo.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.ri-quality-band .section-eyebrow { color: var(--ri-green); }
.ri-quality-band h2 { color: #fff; font-weight: 800; }
.ri-quality-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; }
.ri-quality-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ri-quality-checklist li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
}
.ri-quality-checklist i {
  color: var(--ri-navy);
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--ri-shadow);
}

/* ===== Footer ===== */
.ri-footer {
  background: var(--ri-navy-dark);
  color: rgba(255, 255, 255, 0.75);
}
.ri-footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.ri-footer a { color: rgba(255, 255, 255, 0.65); }
.ri-footer a:hover { color: var(--ri-orange); }
.ri-footer ul { list-style: none; padding: 0; margin: 0; }
.ri-footer ul li { margin-bottom: 0.6rem; }
.ri-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.25rem;
  font-size: 0.85rem;
}
.ri-footer-values {
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--ri-orange);
  font-size: 0.8rem;
}
.ri-footer-script {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.5rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  transform: rotate(-3deg);
}
.ri-footer-script span { display: block; }

/* ===== FAQ accordion ===== */
.accordion-item {
  border-radius: var(--ri-radius) !important;
  overflow: hidden;
  box-shadow: var(--ri-shadow);
}
.accordion-button {
  border-radius: var(--ri-radius) !important;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(31, 157, 85, 0.06);
  color: var(--ri-navy);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 157, 85, 0.15);
}

/* ===== Forms ===== */
.ri-form-card {
  background: #fff;
  border-radius: var(--ri-radius);
  box-shadow: var(--ri-shadow);
  padding: 2rem;
}
.ri-form-card .form-label { font-weight: 600; color: var(--ri-navy); font-size: 0.9rem; }
.ri-form-card .form-label.required::after {
  content: " *";
  color: var(--ri-orange);
  font-weight: 700;
}
.ri-form-card .form-control,
.ri-form-card .form-select {
  border-radius: 0.6rem;
  border-color: var(--ri-border);
  padding: 0.65rem 0.9rem;
}
.ri-form-card .form-control:focus,
.ri-form-card .form-select:focus {
  border-color: var(--ri-green);
  box-shadow: 0 0 0 0.2rem rgba(31, 157, 85, 0.15);
}
.ri-honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== Breadcrumb / page header ===== */
.ri-page-header {
  background: var(--ri-navy);
  color: #fff;
  padding-block: 3.5rem;
}
.ri-page-header h1 { font-weight: 800; }
.ri-page-header .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.ri-page-header .breadcrumb-item.active { color: var(--ri-orange); }

/* Filter pills */
.ri-filter-pill {
  border: 1px solid var(--ri-border);
  background: #fff;
  color: var(--ri-navy);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.ri-filter-pill.active,
.ri-filter-pill:hover {
  background: var(--ri-navy);
  border-color: var(--ri-navy);
  color: #fff;
}

.ri-placeholder-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== WhatsApp floating button ===== */
.ri-whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1040;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ri-whatsapp-fab:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}
.ri-whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: ri-whatsapp-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes ri-whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 575.98px) {
  .ri-whatsapp-fab {
    width: 52px;
    height: 52px;
    right: 1rem;
    bottom: 1rem;
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
