/* ==========================================================================
   Rivoria Solutions – Homepage (rich color + imagery)
   Brand: Navy #253755 · Gold #AD8E40 · Teal accent #2F6F6A
   ========================================================================== */

.page-home {
  --rv-navy: #253755;
  --rv-navy-deep: #152238;
  --rv-gold: #ad8e40;
  --rv-gold-bright: #d4b45c;
  --rv-teal: #2f6f6a;
  --rv-cream: #f7f3ea;
  --rv-sand: #efe6d4;
}

.page-home .btn-primary {
  --bs-btn-bg: var(--rv-gold);
  --bs-btn-border-color: var(--rv-gold);
  --bs-btn-hover-bg: var(--rv-gold-bright);
  --bs-btn-hover-border-color: var(--rv-gold-bright);
  --bs-btn-color: #152238;
  --bs-btn-hover-color: #152238;
  --bs-btn-active-bg: #9a7d36;
  --bs-btn-active-border-color: #9a7d36;
  --bs-btn-active-color: #152238;
  box-shadow: 0 10px 28px rgba(173, 142, 64, 0.35);
}

.page-home .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.page-home .btn-outline-primary {
  --bs-btn-color: var(--rv-navy);
  --bs-btn-border-color: var(--rv-navy);
  --bs-btn-hover-bg: var(--rv-navy);
  --bs-btn-hover-border-color: var(--rv-navy);
  --bs-btn-hover-color: #fff;
}

.page-home .section-label {
  color: var(--rv-gold);
  letter-spacing: 0.16em;
  font-weight: 700;
}

.page-home .section-label-light {
  color: var(--rv-gold-bright);
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.page-home .section-title em {
  font-style: italic;
  color: var(--rv-gold);
}

.page-home .section {
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.rivoria-hero {
  min-height: min(100vh, 940px);
}

.rivoria-hero-media {
  position: absolute;
  inset: 0;
}

.rivoria-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.15) contrast(1.08);
  transform: scale(1.05);
  animation: rivoria-hero-ken 24s ease-in-out infinite alternate;
}

@keyframes rivoria-hero-ken {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); }
}

.rivoria-hero-overlay {
  background:
    linear-gradient(115deg, rgba(12, 20, 34, 0.92) 0%, rgba(21, 34, 56, 0.82) 42%, rgba(21, 34, 56, 0.55) 70%, rgba(21, 34, 56, 0.4) 100%),
    linear-gradient(0deg, rgba(12, 20, 34, 0.65) 0%, transparent 45%);
}

.rivoria-hero .hero-title,
.rivoria-hero .hero-lead,
.rivoria-brand-mark,
.rivoria-hero-eyebrow {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.rivoria-hero .hero-lead {
  color: rgba(255, 255, 255, 0.92);
}

.rivoria-hero-glow {
  position: absolute;
  inset: auto -10% -20% 35%;
  height: 55%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(173, 142, 64, 0.35), transparent 65%);
  filter: blur(8px);
}

.rivoria-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 180, 92, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 180, 92, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 68%);
}

.rivoria-brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.rivoria-brand-mark::after {
  content: '';
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 0.9rem;
  background: linear-gradient(90deg, var(--rv-gold-bright), transparent);
}

.rivoria-hero-eyebrow {
  color: rgba(255, 245, 220, 0.88);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  max-width: 36rem;
}

.rivoria-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.7vw, 2.75rem);
  max-width: 18ch;
  margin-bottom: 1.1rem;
  color: #fff;
}

.rivoria-hero .hero-lead {
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

.rivoria-hero .hero-content-row {
  min-height: calc(min(100vh, 940px) - var(--header-height) - 2rem);
  padding-bottom: 4rem !important;
}

/* --------------------------------------------------------------------------
   PLATFORM
   -------------------------------------------------------------------------- */
.section-platform {
  background: linear-gradient(180deg, #fff 0%, var(--rv-cream) 48%, #fff 100%);
}

.platform-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(173, 142, 64, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 50% at 100% 80%, rgba(47, 111, 106, 0.12), transparent 55%);
  pointer-events: none;
}

.platform-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.platform-pillars {
  margin-top: 3rem;
}

.platform-pillar {
  height: 100%;
  padding: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(173, 142, 64, 0.22);
  border-top: 4px solid var(--rv-gold);
  box-shadow: 0 12px 30px rgba(37, 55, 85, 0.08);
}

.platform-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--rv-gold);
  margin-bottom: 0.75rem;
}

.platform-pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  color: var(--rv-navy);
}

.platform-pillar p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 0.98rem;
}

.platform-about {
  margin-top: 4rem;
}

.platform-about-frame {
  background: #fff;
  box-shadow: 0 24px 60px rgba(37, 55, 85, 0.12);
  overflow: hidden;
}

.platform-visual-stack {
  position: relative;
  min-height: 100%;
  background: var(--rv-navy-deep);
  padding: 1.25rem;
}

.platform-visual-main {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.platform-visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.platform-visual-stack:hover .platform-visual-main img {
  transform: scale(1.04);
}

.platform-visual-accent {
  position: absolute;
  width: 46%;
  bottom: 1.5rem;
  right: 1.25rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.platform-visual-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-stat-chip {
  position: absolute;
  left: 1.75rem;
  bottom: 1.75rem;
  background: linear-gradient(135deg, var(--rv-gold), var(--rv-gold-bright));
  color: var(--rv-navy-deep);
  padding: 0.85rem 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.platform-stat-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.platform-stat-chip span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.platform-about-copy {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(160deg, #fff 0%, var(--rv-cream) 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   PROGRAMS
   -------------------------------------------------------------------------- */
.section-programs {
  color: #fff;
  background: var(--rv-navy-deep);
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.programs-band {
  position: absolute;
  inset: 0;
}

.programs-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.6);
  opacity: 0.18;
}

.section-programs::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 24, 40, 0.94) 0%, rgba(21, 34, 56, 0.92) 50%, rgba(15, 24, 40, 0.96) 100%);
  z-index: 0;
}

.section-programs .section-title,
.section-programs .section-subtitle,
.section-programs .text-white-50 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.section-programs > .container {
  position: relative;
  z-index: 1;
}

.program-panel {
  background: #fff;
  color: var(--color-text);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.program-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.program-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-panel:hover .program-media img {
  transform: scale(1.06);
}

.program-media .program-num {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  background: rgba(21, 34, 56, 0.88);
  color: var(--rv-gold-bright);
  padding: 0.35rem 0.7rem;
  font-size: 1.1rem;
}

.program-body {
  padding: 1.5rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.program-tone-navy .program-icon { background: rgba(37, 55, 85, 0.12); color: var(--rv-navy); }
.program-tone-gold .program-icon { background: rgba(173, 142, 64, 0.18); color: #8d732e; }
.program-tone-teal .program-icon { background: rgba(47, 111, 106, 0.15); color: var(--rv-teal); }

.program-tone-navy { border-top: 4px solid var(--rv-navy); }
.program-tone-gold { border-top: 4px solid var(--rv-gold); }
.program-tone-teal { border-top: 4px solid var(--rv-teal); }

.program-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--rv-navy);
}

.program-panel > .program-body > p {
  color: var(--color-text-light);
  flex-grow: 0;
}

.program-points {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.1rem;
}

.program-points li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.program-points i { color: var(--rv-gold); margin-top: 0.15rem; }

.program-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--rv-navy);
}

.program-link:hover { color: var(--rv-gold); }

/* --------------------------------------------------------------------------
   SERVICES
   -------------------------------------------------------------------------- */
.section-services {
  background: linear-gradient(180deg, var(--rv-sand) 0%, #fff 55%, var(--rv-cream) 100%);
}

.services-media-rail {
  position: absolute;
  top: 0;
  right: 0;
  width: min(42%, 520px);
  height: 100%;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}

.services-media-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-tile {
  background: #fff;
  padding: 1.7rem 1.5rem;
  box-shadow: 0 14px 34px rgba(37, 55, 85, 0.08);
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(37, 55, 85, 0.14);
}

.service-tone-navy { border-left: 5px solid var(--rv-navy); }
.service-tone-gold { border-left: 5px solid var(--rv-gold); }
.service-tone-teal { border-left: 5px solid var(--rv-teal); }

.service-tile-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-tone-navy .service-tile-icon { background: rgba(37, 55, 85, 0.1); color: var(--rv-navy); }
.service-tone-gold .service-tile-icon { background: rgba(173, 142, 64, 0.16); color: #8d732e; }
.service-tone-teal .service-tile-icon { background: rgba(47, 111, 106, 0.14); color: var(--rv-teal); }

.service-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--rv-navy);
}

.service-tile p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   INDUSTRIES
   -------------------------------------------------------------------------- */
.section-industries {
  background: var(--rv-navy-deep);
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.industries-backdrop {
  position: absolute;
  inset: 0;
}

.industries-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.85) brightness(0.55);
}

.section-industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.94), rgba(21, 34, 56, 0.92));
  z-index: 0;
}

.section-industries .section-title,
.section-industries .section-subtitle,
.section-industries .text-white-50 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.section-industries > .container {
  position: relative;
  z-index: 1;
}

.industry-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease;
}

.industry-card:hover {
  transform: translateY(-7px);
}

.industry-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.industry-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.industry-card:hover .industry-card-media img {
  transform: scale(1.07);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(21, 34, 56, 0.55));
}

.industry-card-icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--rv-gold);
  color: var(--rv-navy-deep);
  font-size: 1.15rem;
  z-index: 1;
}

.industry-card-body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.industry-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--rv-navy);
}

.industry-card-body p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   WHY
   -------------------------------------------------------------------------- */
.rivoria-why {
  color: #fff;
  background: var(--rv-navy-deep) !important;
}

.why-media {
  position: absolute;
  inset: 0;
}

.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.12;
  filter: saturate(0.7) brightness(0.55);
}

.rivoria-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 24, 40, 0.97) 0%, rgba(21, 34, 56, 0.94) 42%, rgba(21, 34, 56, 0.9) 100%),
    linear-gradient(180deg, rgba(15, 24, 40, 0.55) 0%, transparent 35%, rgba(15, 24, 40, 0.7) 100%);
  z-index: 0;
}

.rivoria-why > .container {
  position: relative;
  z-index: 1;
}

.rivoria-why .section-title,
.rivoria-why .section-text,
.rivoria-why .text-white-50 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.rivoria-why .section-text,
.rivoria-why .text-white-50 {
  color: rgba(255, 255, 255, 0.92) !important;
}

.why-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.why-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--rv-gold-bright);
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.why-metrics span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.why-footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem 1.4rem;
  background: rgba(10, 18, 32, 0.72);
  border: 1px solid rgba(212, 180, 92, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.why-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rv-gold), var(--rv-gold-bright));
  color: var(--rv-navy-deep);
  font-size: 1.2rem;
}

.why-feature h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.why-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   GLOBAL
   -------------------------------------------------------------------------- */
.section-global {
  background: linear-gradient(180deg, #fff 0%, var(--rv-cream) 100%);
  overflow: hidden;
}

.global-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 50% at 85% 40%, rgba(37, 55, 85, 0.06), transparent 70%),
    url('../images/rivoria-global-bg.jpg');
  background-repeat: no-repeat;
  background-position: right 4% center;
  background-size: min(46vw, 520px) auto;
  opacity: 0.14;
  filter: grayscale(1) contrast(1.05) brightness(0.85);
}

.section-global > .container {
  z-index: 1;
}

.global-hubs-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.global-hubs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.global-hub {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(173, 142, 64, 0.35);
  background: linear-gradient(180deg, #fff, var(--rv-cream));
  color: var(--rv-navy);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(37, 55, 85, 0.06);
}

.global-marquee {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(173, 142, 64, 0.28);
  border-bottom: 1px solid rgba(173, 142, 64, 0.28);
  background: rgba(173, 142, 64, 0.08);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.global-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: rivoria-marquee 38s linear infinite;
}

.global-marquee-track span {
  white-space: nowrap;
  color: var(--rv-navy);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

@keyframes rivoria-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 991.98px) {
  .global-map {
    background-position: center bottom;
    background-size: min(90vw, 420px) auto;
    opacity: 0.08;
  }
}

/* --------------------------------------------------------------------------
   ENGAGEMENT
   -------------------------------------------------------------------------- */
.section-engagement {
  background: #fff;
}

.engagement-media {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.engagement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-engagement::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 243, 234, 0.92), rgba(255, 255, 255, 0.96)),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(47, 111, 106, 0.12), transparent 60%);
  z-index: 0;
}

.section-engagement > .container {
  position: relative;
  z-index: 1;
}

.engagement-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
}

.engagement-timeline::before {
  content: '';
  position: absolute;
  top: 1.4rem;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rv-gold), var(--rv-teal), transparent);
}

.engagement-step {
  position: relative;
  background: #fff;
  padding: 1.5rem 1.25rem 1.4rem;
  border: 1px solid rgba(173, 142, 64, 0.25);
  box-shadow: 0 14px 32px rgba(37, 55, 85, 0.08);
}

.engagement-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rv-navy), var(--rv-teal));
  color: var(--rv-gold-bright);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 18px rgba(37, 55, 85, 0.25);
}

.engagement-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
  color: var(--rv-navy);
}

.engagement-step p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.section-cta {
  padding-top: 0;
  padding-bottom: 0;
}

.rivoria-cta-media {
  position: absolute;
  inset: 0;
}

.rivoria-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(0.85) brightness(0.55);
}

.rivoria-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 20, 34, 0.94) 0%, rgba(21, 34, 56, 0.88) 48%, rgba(21, 34, 56, 0.72) 100%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.35) 0%, rgba(12, 20, 34, 0.55) 100%);
  z-index: 0;
}

.rivoria-cta > .container {
  position: relative;
  z-index: 1;
}

.rivoria-cta-panel {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  color: #fff;
}

.rivoria-cta-panel .section-label {
  color: var(--rv-gold-bright);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.rivoria-cta-panel .section-title {
  max-width: 18ch;
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.rivoria-cta-panel .text-white-50,
.rivoria-cta-panel p {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS / CONTACT
   -------------------------------------------------------------------------- */
.page-home .section-testimonials {
  background: linear-gradient(180deg, var(--rv-cream), #fff);
}

.page-home .testimonial-card {
  border-top: 4px solid var(--rv-gold);
  box-shadow: 0 16px 36px rgba(37, 55, 85, 0.08);
}

.page-home .section-contact {
  background:
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(173, 142, 64, 0.12), transparent 55%),
    linear-gradient(180deg, #fff, var(--rv-sand));
}

.page-home .contact-form-wrap {
  border-top: 4px solid var(--rv-gold);
  background: #fff;
  box-shadow: 0 18px 40px rgba(37, 55, 85, 0.1);
}

.page-home .author-avatar {
  background: var(--rv-navy);
  color: var(--rv-gold-bright);
}

.page-home .footer-brand-icon {
  width: auto;
  height: 42px;
  padding: 4px 8px;
  background: #ffffff;
  object-fit: contain;
}

.page-home .site-footer {
  background: linear-gradient(180deg, var(--rv-navy), var(--rv-navy-deep));
}

/* --------------------------------------------------------------------------
   Responsive / a11y
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .engagement-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engagement-timeline::before {
    display: none;
  }

  .rivoria-hero .hero-content-row {
    min-height: auto;
    padding-top: 3rem !important;
    padding-bottom: 5rem !important;
  }

  .why-metrics {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .platform-visual-accent {
    width: 42%;
  }

  .services-media-rail {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .engagement-timeline {
    grid-template-columns: 1fr;
  }

  .rivoria-brand-mark {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .platform-title {
    max-width: none;
  }

  .platform-visual-accent,
  .platform-stat-chip {
    position: static;
    width: auto;
    margin-top: 1rem;
  }

  .platform-visual-stack {
    display: grid;
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rivoria-hero-media img,
  .global-marquee-track {
    animation: none;
  }
}
