:root {
  --rrios-blue: #003366;
  --rrios-orange: #f39200;
  --rrios-bg: #ececec;
  --white: #ffffff;
  --dark: #0f172a;
  --slow-motion: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 30px 70px rgba(0, 51, 102, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; }

body {
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(243,146,0,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 8%, rgba(0,51,102,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(236,236,236,0.88)),
    var(--rrios-bg);
  font-family: 'Inter', sans-serif;
  color: var(--rrios-blue);
  overflow-x: hidden;
  position: relative;
}

.main-header {
  background-color: var(--rrios-blue);
  height: 80px;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: visible;
}

.nav-bar {
  position: relative;
  height: 100%;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 5;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.logo-nav {
  height: 250px;
  width: auto;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.menu-button,
.search-container {
  background: none;
  border: none;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.25s ease;
  position: relative;
  z-index: 6;
}

.menu-button:hover,
.search-container:hover {
  color: var(--rrios-orange);
  transform: translateY(-1px);
}

.search-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.search-icon img {
  width: 23px;
  height: 23px;
  display: block;
  transform: translateZ(0);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.search-container:hover .search-icon,
.search-container:focus-visible .search-icon {
  background: rgba(243,146,0,0.12);
  border-color: rgba(243,146,0,0.38);
  transform: translateY(-1px);
}

.search-container:hover .search-icon img,
.search-container:focus-visible .search-icon img {
  filter: drop-shadow(0 0 8px rgba(243,146,0,0.55));
  transform: scale(1.08) rotate(-5deg);
}


.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

.login-button {
  background: var(--rrios-orange);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(243,146,0,0.28);
  transition: 0.25s ease;
  position: relative;
  z-index: 6;
}

.login-button:hover {
  background: #d68100;
  transform: translateY(-1px);
}

.menu-button:focus-visible,
.search-container:focus-visible,
.login-button:focus-visible,
.icon-btn:focus-visible,
.card:focus-visible,
.project-card:focus-visible,
.hero-btn:focus-visible,
.text-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(243,146,0,0.25);
  border-radius: 12px;
}

.viewport {
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  position: relative;
  isolation: isolate;
}

.viewport::before,
.viewport::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(100%, 1720px);
  transform: translateX(-50%);
  pointer-events: none;
  background-repeat: repeat;
  background-position: center top;
  background-size: 700px auto;
  opacity: 1;
  z-index: -1;
  filter: none;
}

.viewport::before {
  top: 0;
  height: 50%;
  background-image: url("images/bkn1.png");
}

.viewport::after {
  bottom: 0;
  height: 50%;
  background-image: url("images/bkn2.png");
}

.viewport > * {
  position: relative;
  z-index: 1;
}

.hero-home,
.numbers,
.image-showcase,
.services,
.segments,
.featured,
.clients,
.process,
.about,
.cta-contact {
  width: min(1120px, 86vw);
}

.hero-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.hero-home__content {
  position: relative;
  background: linear-gradient(135deg, rgba(0,51,102,0.98), rgba(0,51,102,0.86));
  color: var(--white);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-home__content--right {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.hero-home__content::before,
.hero-home__content::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-home__content::before {
  width: 240px;
  height: 240px;
  background: rgba(243,146,0,0.16);
  right: -60px;
  top: -60px;
  animation: floatSoft 7s ease-in-out infinite;
}

.hero-home__content::after {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.06);
  left: -40px;
  bottom: -40px;
  animation: floatSoft 9s ease-in-out infinite reverse;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(243,146,0,0.16);
  border: 1px solid rgba(243,146,0,0.26);
  color: #ffd494;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.32;
  white-space: normal;
}

.hero-home h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
  max-width: 15ch;
}

.hero-home p {
  margin-top: 18px;
  line-height: 1.75;
}

.hero-home__actions,
.cta-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.hero-btn--primary {
  background: var(--rrios-orange);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(243,146,0,0.28);
}

.hero-btn--primary:hover {
  background: #d68100;
  transform: translateY(-2px);
}

.hero-btn--secondary {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.16);
}

.hero-btn--secondary:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

.hero-btn--light {
  border-color: rgba(255,255,255,0.28);
}

.hero-home__visual {
  display: grid;
  min-height: 100%;
}

.hero-home__visual--single {
  grid-template-columns: 1fr;
}

.hero-image-card,
.hero-highlight,
.number-card,
.service-card,
.segment-card,
.process-card,
.image-card,
.about-image {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(0,51,102,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-image-card:hover,
.hero-highlight:hover,
.number-card:hover,
.service-card:hover,
.segment-card:hover,
.process-card:hover,
.image-card:hover,
.about-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.hero-image-card--large {
  min-height: 440px;
  height: 100%;
}

.hero-image-card--large .media-slot {
  min-height: 100%;
}

.hero-highlight {
  padding: 28px;
}

.hero-highlight__label,
.section-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(243,146,0,0.14);
  color: var(--rrios-orange);
  border: 1px solid rgba(243,146,0,0.18);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.25px;
}

.section-badge--light {
  background: rgba(255,255,255,0.10);
  color: var(--white);
}

.hero-highlight strong {
  display: block;
  margin-top: 14px;
  font-size: 1.22rem;
  line-height: 1.35;
}

.hero-highlight p,
.number-card__desc,
.service-card p,
.segment-card p,
.process-card p,
.client-card p,
.section-intro p,
.featured__header p,
.about p,
.cta-contact p,
.pm-desc,
.pm-list,
.search-item__meta {
  color: rgba(0,51,102,0.78);
  line-height: 1.65;
}

.section-intro {
  margin-bottom: 24px;
}

.section-intro--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-intro h2,
.featured__header h2,
.about h2,
.cta-contact h2 {
  margin-top: 14px;
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  font-weight: 900;
  color: var(--rrios-blue);
  text-wrap: balance;
}

.section-intro h2::after,
.featured__header h2::after,
.about h2::after,
.cta-contact h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--rrios-orange);
}

.section-intro--center h2::after {
  margin-inline: auto;
}

.numbers__grid,
.services__grid,
.segments__grid,
.process__grid {
  display: grid;
  gap: 18px;
}

.numbers__grid { grid-template-columns: repeat(4, 1fr); }
.services__grid { grid-template-columns: repeat(3, 1fr); }
.services__grid > .service-card:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  align-items: stretch;
}

.services__grid > .service-card:last-child .service-card__media {
  display: flex;
}

.services__grid > .service-card:last-child .service-card__media .media-slot {
  width: 100%;
  min-height: 380px;
  max-width: none;
}

.segments__grid { grid-template-columns: repeat(3, 1fr); }
.process__grid { grid-template-columns: repeat(4, 1fr); }

.number-card,
.process-card {
  padding: 24px;
}

.number-card__value {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--rrios-blue);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.number-card__value span:first-child,
.number-card__value span:last-child {
  color: var(--rrios-orange);
}

.number-card__label,
.service-card h3,
.segment-card h3,
.process-card h3,
.project-card__title,
.client-card__name {
  margin-top: 10px;
  font-weight: 900;
  color: var(--rrios-orange);
}

.number-card__label {
  font-size: 1rem;
}

.media-slot {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(0,51,102,0.92), rgba(0,51,102,0.72)),
    radial-gradient(250px 180px at 18% 18%, rgba(243,146,0,0.35), transparent 60%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.media-slot::before,
.media-slot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.media-slot::before {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  right: -40px;
  top: -40px;
}

.media-slot::after {
  width: 120px;
  height: 120px;
  background: rgba(243,146,0,0.18);
  left: -24px;
  bottom: -24px;
}

.media-slot span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 1rem;
  max-width: 18ch;
  line-height: 1.35;
}

.media-slot.has-image {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.media-slot.has-image::before {
  display: none;
}

.media-slot.has-image::after {
  display: none;
}

.media-slot.has-image span {
  display: none;
}

.media-slot--light {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)),
    linear-gradient(135deg, rgba(0,51,102,0.95), rgba(0,51,102,0.74));
}

.media-slot--small {
  min-height: 190px;
}

.media-slot--tall {
  min-height: 300px;
}

.image-showcase__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.image-card--wide .media-slot {
  min-height: 100%;
}

.service-card,
.segment-card {
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.service-card__body,
.segment-card__body {
  padding: 22px 22px 24px;
}

.service-card__icon,
.segment-card__icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(243,146,0,0.14);
  font-size: 1.4rem;
}

.segment-card__tag,
.process-card__step,
.project-card__tag,
.client-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
  background: rgba(243,146,0,0.14);
  color: var(--rrios-blue);
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 900;
  color: var(--rrios-blue);
  text-decoration: none;
  transition: transform 0.18s ease;
}

.text-link:hover {
  transform: translateX(3px);
}

.gallery {
  display: flex;
  width: min(1120px, 86vw);
  gap: 20px;
}

.card {
  flex: 1;
border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all var(--slow-motion);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  background: #fff;
}

.card:hover { flex: 2; box-shadow: var(--shadow-strong); }
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--slow-motion);
  transform: scale(1.03);
}
.card:hover img { transform: scale(1.08); }

.content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(transparent 35%, rgba(0,51,102,0.92));
  opacity: 0;
  transform: translateY(14px);
  transition: all var(--slow-motion);
  color: var(--white);
}

.card:hover .content,
.card:focus-visible .content { opacity: 1; transform: translateY(0); }

.content h2 {
  font-size: 1.6rem;
  border-left: 5px solid var(--rrios-orange);
  padding-left: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.featured__header {
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.featured__cta,
.pm-link {
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 900;
  color: var(--white);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.featured__cta {
  background: var(--rrios-orange);
  padding: 12px 16px;
  box-shadow: 0 14px 28px rgba(243,146,0,0.28);
  white-space: nowrap;
}

.featured__cta:hover {
  background:#d68100;
  transform: translateY(-1px);
}

.featured__grid {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 300px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0,51,102,0.22);
}

.project-card__img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s var(--slow-motion);
}

.project-card:hover .project-card__img { transform: scale(1.08); }

.project-card__overlay {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(transparent 30%, rgba(0,51,102,0.92) 85%);
}

.project-card__tag {
  width: fit-content;
  background: rgba(243,146,0,0.92);
  color: #1b1b1b;
}

.project-card__meta {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
}

.clients-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.clients-marquee:hover .client-card {
  box-shadow: 0 18px 44px rgba(0, 51, 102, 0.12);
}

.client-card {
  width: 320px;
  min-height: 200px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(0,51,102,0.05);
}

.client-card__logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(0,51,102,0.08);
  color: var(--rrios-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.client-card__logo--initials {
  background: linear-gradient(135deg, rgba(0,51,102,0.10), rgba(243,146,0,0.16));
  border: 1px solid rgba(0,51,102,0.08);
  font-size: 1.1rem;
}

.client-card__logo.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  border: 1px solid rgba(0,51,102,0.08);
}

.client-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.client-card__foot {
  font-weight: 900;
  color: var(--rrios-blue);
}

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.about__content {
  background: var(--white);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cta-contact {
  background: linear-gradient(135deg, rgba(0,51,102,1), rgba(0,51,102,0.88));
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 22px;
  align-items: center;
  color: var(--white);
}

.cta-contact h2,
.cta-contact p {
  color: var(--white);
}

.cta-contact__visual .media-slot {
  min-height: 550px;
  border-radius: 22px;
  border: 0px solid rgba(255,255,255,0.12);
}

.side-menu,
.search-modal,
.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3000;
}

.side-menu.active,
.search-modal.active,
.project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.side-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  border-radius: 0 18px 18px 0;
  padding: 22px;
  transform: translateX(-14px);
  opacity: 0;
  transition: transform 0.35s var(--slow-motion), opacity 0.25s ease;
}

.side-menu.active .side-menu__panel,
.search-modal.active .search-modal__panel,
.project-modal.active .project-modal__panel {
  transform: translateX(0);
  opacity: 1;
}

.side-menu__top,
.search-modal__top {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.side-menu__logo {
  height: 40px;
  width: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.15s ease, border 0.15s ease;
}

.icon-btn:hover {
  transform: scale(1.02);
  border-color: rgba(0,0,0,0.16);
}

.side-menu__nav {
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.side-menu__nav a {
  text-decoration: none;
  color: var(--rrios-blue);
  font-weight: 900;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,51,102,0.06);
  transition: transform 0.15s ease, background 0.15s ease;
}

.side-menu__nav a:hover {
  transform: translateY(-1px);
  background: rgba(243,146,0,0.12);
}

.search-modal__panel {
  width: min(560px, 92vw);
  margin: 100px auto 0;
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  padding: 18px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.35s var(--slow-motion), opacity 0.25s ease;
}

.search-modal.active .search-modal__panel,
.project-modal.active .project-modal__panel {
  transform: translateY(0);
}

.search-modal__top h2 {
  font-size: 1.05rem;
  color: var(--rrios-blue);
  font-weight: 900;
}

.search-modal__input {
  width: 100%;
  height: 56px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  outline: none;
  font-size: 14px;
  background: #fff;
}

.search-modal__input:focus {
  border-color: rgba(243,146,0,0.9);
  box-shadow: 0 0 0 4px rgba(243,146,0,0.20);
}

.search-tools {
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip {
  border: 1px solid rgba(0,51,102,0.14);
  background: rgba(0,51,102,0.04);
  color: var(--rrios-blue);
  font-weight: 900;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border 0.15s ease;
}

.chip:hover { transform: translateY(-1px); background: rgba(243,146,0,0.10); }

.chip.is-active {
  border-color: rgba(243,146,0,0.65);
  background: rgba(243,146,0,0.14);
}

.search-status {
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(0,51,102,0.70);
}

.search-results {
  margin-top: 10px;
  list-style: none;
  display:flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 4px;
}

.search-item {
  border: 1px solid rgba(0,51,102,0.12);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
}

.search-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  border-color: rgba(0,51,102,0.20);
}

.search-item.is-active {
  border-color: rgba(243,146,0,0.85);
  box-shadow: 0 0 0 4px rgba(243,146,0,0.18);
}

.search-item__top {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.search-item__title {
  font-weight: 900;
  color: var(--rrios-orange);
}

.search-modal__top h2,
.pm-title {
  color: var(--rrios-orange);
}

.search-item__badge {
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,51,102,0.08);
  color: rgba(0,51,102,0.95);
}

.search-results mark {
  background: rgba(243,146,0,0.35);
  color: inherit;
  padding: 0 2px;
  border-radius: 6px;
}

.search-modal__hint {
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(15,23,42,0.70);
}

.project-modal__panel {
  width: min(1100px, 94vw);
  margin: 92px auto 0;
  background: rgba(255,255,255,0.98);
  border-radius: 20px;
  box-shadow: 0 50px 140px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.35s var(--slow-motion), opacity 0.25s ease;
}

.project-modal__top {
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pm-tag {
  display:inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(243,146,0,0.18);
  color: rgba(0,51,102,0.95);
  font-weight: 900;
  font-size: 0.78rem;
}

.pm-title {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--rrios-blue);
}

.pm-sub {
  margin-top: 6px;
  color: rgba(0,51,102,0.72);
  line-height: 1.4;
}

.project-modal__body {
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.pm-gallery {
  padding: 16px;
  border-right: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,51,102,0.02);
}

.pm-hero {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(0,0,0,0.06);
  transition: opacity 0.2s ease;
}

.pm-thumbs {
  display:flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pm-thumb {
  width: 92px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.pm-thumb.active {
  border-color: rgba(243,146,0,0.9);
  box-shadow: 0 0 0 3px rgba(243,146,0,0.20);
}

.pm-info {
  padding: 16px 18px 18px;
}

.pm-h3 {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--rrios-blue);
  font-weight: 900;
}

.pm-list {
  margin-top: 10px;
  padding-left: 18px;
}

.pm-actions { margin-top: 16px; }

.pm-link {
  background: var(--rrios-blue);
  padding: 12px 14px;
  box-shadow: 0 16px 36px rgba(0,51,102,0.25);
}

.pm-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0,51,102,0.30);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


@media (max-width: 1180px) {
  .hero-home,
  .about,
  .cta-contact {
    grid-template-columns: 1fr;
  }

  .hero-home__visual,
  .image-showcase__grid,
  .project-modal__body {
    grid-template-columns: 1fr;
  }

  .hero-image-card--large {
    min-height: 320px;
  }

  .pm-gallery {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .pm-hero {
    height: 420px;
  }
}

@media (max-width: 980px) {
  .nav-bar { padding: 0 18px; }
  .numbers__grid,
  .services__grid,
  .segments__grid,
  .process__grid,
  .featured__grid,
  .about__visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid > .service-card:last-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(300px, 420px) 1fr;
  }

  .services__grid > .service-card:last-child .service-card__media .media-slot {
    min-height: 340px;
  }

  .gallery {
    width: 92vw;
    flex-direction: column;
  }

  .card {
    width: 100%;
    aspect-ratio: 16/10;
  }

  .search-text { display: none; }
}

@media (max-width: 680px) {
  .viewport {
    gap: 52px;
    padding-top: 132px;
  }

  .hero-home__content,
  .hero-highlight,
  .about__content,
  .cta-contact,
  .number-card,
  .process-card,
  .service-card__body,
  .segment-card__body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .numbers__grid,
  .services__grid,
  .segments__grid,
  .process__grid,
  .featured__grid,
  .about__visual {
    grid-template-columns: 1fr;
  }

  .services__grid > .service-card:last-child {
    grid-column: auto;
    display: flex;
    grid-template-columns: none;
  }

  .services__grid > .service-card:last-child .service-card__media .media-slot {
    min-height: 240px;
  }

  .featured__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured__cta {
    width: 100%;
    justify-content: center;
  }

  .client-card {
    width: 280px;
  }

  .pm-hero {
    height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================= IMAGENS DE PROJETOS 1:1 ================= */
.service-card__media .media-slot,
.segment-card__media .media-slot {
  width: min(100%, 300px);
  min-height: 300px;
margin-inline: auto;
}

.service-card__media .media-slot.has-image,
.segment-card__media .media-slot.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.featured__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
  justify-content: center;
}

.project-card {
  width: min(100%, 240px);
  min-height: 300px;
justify-self: center;
}

.project-card__img {
  object-fit: contain;
  background: #f5f7fa;
  padding: 10px;
}

.pm-hero {
  width: min(100%, 420px);
height: auto;
  margin-inline: auto;
  object-fit: contain;
  background: #f5f7fa;
  padding: 12px;
}

.pm-thumb {
  width: 92px;
  height: 64px;
  object-fit: contain;
  background: #f5f7fa;
  padding: 4px;
}

@media (max-width: 1100px) {
  .featured__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
  }

  .pm-hero {
    width: min(100%, 340px);
height: auto;
  }
}

@media (max-width: 640px) {
  .service-card__media .media-slot,
  .segment-card__media .media-slot {
    width: min(100%, 240px);
    min-height: 240px;
  }

  .featured__grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: min(100%, 240px);
  }

  .pm-hero {
    width: min(100%, 280px);
height: auto;
  }
}



/* ================= PROJETOS EM DESTAQUE | AJUSTE 1:1 ================= */
.featured__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
  justify-content: center;
}

.featured__grid .project-card {
  width: min(100%, 240px);
min-height: 300px;
  justify-self: center;
}

.featured__grid .project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f7fa;
  padding: 0;
}

.project-modal .pm-hero {
  width: min(100%, 420px);
height: auto;
  margin-inline: auto;
  object-fit: cover;
  background: #f5f7fa;
  padding: 0;
}

.project-modal .pm-thumb {
  width: 92px;
  height: 64px;
  object-fit: cover;
  background: #f5f7fa;
  padding: 0;
}

@media (max-width: 1100px) {
  .project-modal .pm-hero {
    width: min(100%, 340px);
  }
}

@media (max-width: 640px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }

  .featured__grid .project-card {
    width: min(100%, 260px);
  }

  .project-modal .pm-hero {
    width: min(100%, 280px);
  }
}


.location-section {
  width: min(1120px, 86vw);
}

.location-section__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.location-card,
.location-map {
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.location-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.location-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--rrios-orange);
}

.location-card p {
  color: rgba(0,51,102,0.82);
  line-height: 1.6;
}

.location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.location-btn-secondary {
  color: var(--rrios-blue);
  border-color: rgba(0,51,102,0.14);
  background: rgba(0,51,102,0.04);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .location-section__grid {
    grid-template-columns: 1fr;
  }

  .location-map iframe {
    min-height: 340px;
  }
}

.interactive-tilt { transition: transform 0.28s ease, box-shadow 0.28s ease; will-change: transform; }


/* ===== Ajuste solicitado: centralizar os 3 números da RRios ===== */
.numbers__grid {
  grid-template-columns: repeat(3, minmax(220px, 280px));
  justify-content: center;
}

.number-card {
  text-align: center;
}

.number-card__value {
  justify-content: center;
}

@media (max-width: 980px) {
  .numbers__grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .numbers__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}


/* ================= EXPERIÊNCIA PREMIUM / MOVIMENTO ================= */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glass: rgba(255, 255, 255, 0.72);
  --line-blue: rgba(0, 51, 102, 0.12);
  --line-orange: rgba(243, 146, 0, 0.28);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 51, 102, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 102, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 0%, black 32%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 32%, transparent 82%);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--rrios-orange), #ffbf57, var(--rrios-blue));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 4000;
  box-shadow: 0 0 24px rgba(243, 146, 0, 0.5);
}

.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  width: 78px;
  height: 78px;
  pointer-events: none;
  z-index: 4500;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.75);
  transition: opacity 0.2s ease, transform 0.12s ease;
  border: 1px solid rgba(243, 146, 0, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(243, 146, 0, 0.55) 50%, transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgba(243, 146, 0, 0.55) 50%, transparent calc(50% + 1px));
  mix-blend-mode: multiply;
}

.cursor-light.is-visible {
  opacity: 0.55;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(0, 51, 102, 0.98), rgba(0, 35, 70, 0.96)),
    var(--rrios-blue);
  color: var(--white);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.site-loader__mark {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.site-loader__bar {
  width: min(260px, 60vw);
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.site-loader__bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--rrios-orange);
  animation: loaderSweep 1.15s var(--ease-out) infinite;
}

.main-header {
  transition: height 0.35s var(--ease-out), background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.main-header.is-scrolled {
  height: 68px;
  background-color: rgba(0, 51, 102, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 26, 52, 0.22);
}

.main-header.is-scrolled .logo-nav {
  height: 210px;
}

.menu-button::after,
.search-container::after,
.hero-btn::after,
.featured__cta::after,
.pm-link::after {
  content: "";
  position: absolute;
  inset: auto 12px -4px 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-button:hover::after,
.search-container:hover::after,
.hero-btn:hover::after,
.featured__cta:hover::after,
.pm-link:hover::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.hero-btn,
.featured__cta,
.pm-link,
.login-button,
.chip,
.icon-btn,
.pm-nav__btn,
.quick-nav a {
  position: relative;
  overflow: hidden;
}

.hero-btn::before,
.featured__cta::before,
.login-button::before {
  content: "";
  position: absolute;
  inset: -120% auto -120% -40%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(18deg) translateX(-150%);
  transition: transform 0.65s var(--ease-out);
}

.hero-btn:hover::before,
.featured__cta:hover::before,
.login-button:hover::before {
  transform: rotate(18deg) translateX(420%);
}

.hero-home,
.numbers,
.image-showcase,
.services,
.segments,
.project-lab,
.motion-rail,
.featured,
.clients,
.process,
.about,
.cta-contact {
  width: min(1120px, 86vw);
}

.hero-home__visual--stage {
  position: relative;
  min-height: 440px;
  isolation: isolate;
}

.hero-blueprint {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  z-index: -1;
  opacity: 0.9;
  filter: drop-shadow(0 20px 45px rgba(0, 51, 102, 0.18));
}

.hero-image-card {
  position: relative;
}

.hero-image-card--large {
  transform-style: preserve-3d;
}

.hero-image-card--large .media-slot {
  min-height: 100%;
}

.hero-media-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 2;
}

.hero-media-overlay span,
.hero-command span,
.motion-rail__track span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.hero-media-overlay span {
  min-height: 34px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(0, 51, 102, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-command {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.hero-command span {
  min-height: 62px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  gap: 8px;
  justify-content: flex-start;
}

.hero-command strong {
  color: #ffd494;
}

.motion-rail {
  overflow: hidden;
  margin-top: -34px;
  border-block: 1px solid rgba(0, 51, 102, 0.1);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 51, 102, 0.08);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.motion-rail__track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 14px;
  animation: railMove 26s linear infinite;
}

.motion-rail:hover .motion-rail__track {
  animation-play-state: paused;
}

.motion-rail__track span {
  min-height: 38px;
  padding: 0 16px;
  color: var(--rrios-blue);
  background: rgba(0, 51, 102, 0.06);
  border: 1px solid rgba(0, 51, 102, 0.1);
  white-space: nowrap;
}

.number-card,
.service-card,
.segment-card,
.process-card,
.image-card,
.about-image,
.location-card,
.location-map,
.project-card {
  will-change: transform;
}

.number-card::before,
.service-card::before,
.segment-card::before,
.process-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(243, 146, 0, 0.16), transparent 34%, rgba(0, 51, 102, 0.08));
  transition: opacity 0.25s ease;
}

.number-card,
.process-card,
.service-card,
.segment-card,
.project-card {
  position: relative;
}

.number-card:hover::before,
.service-card:hover::before,
.segment-card:hover::before,
.process-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.media-slot.has-image {
  transform: translateZ(0);
  transition: filter 0.25s ease;
}

.media-slot.has-image::selection {
  background: transparent;
}

.media-slot.has-image:hover {
  filter: saturate(1.08) contrast(1.04);
}

.service-card__icon,
.segment-card__icon {
  background:
    linear-gradient(135deg, rgba(243, 146, 0, 0.18), rgba(255, 255, 255, 0.86)),
    rgba(243, 146, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(243, 146, 0, 0.22), 0 12px 28px rgba(0, 51, 102, 0.08);
}

.project-lab {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  align-items: stretch;
}

.project-lab__copy,
.project-lab__stage {
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 51, 102, 0.07);
  overflow: hidden;
}

.project-lab__copy {
  padding: 34px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.project-lab__copy h2 {
  margin-top: 14px;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  color: var(--rrios-blue);
  line-height: 1.12;
  font-weight: 900;
}

.project-lab__copy h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--rrios-orange);
}

.project-lab__copy p {
  margin-top: 16px;
  color: rgba(0, 51, 102, 0.78);
  line-height: 1.65;
}

.project-lab__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.lab-control {
  min-height: 48px;
  border: 1px solid rgba(0, 51, 102, 0.12);
  border-radius: 14px;
  background: rgba(0, 51, 102, 0.04);
  color: var(--rrios-blue);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.lab-control:hover {
  transform: translateY(-2px);
  background: rgba(243, 146, 0, 0.12);
}

.lab-control.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--rrios-blue), #064f94);
  border-color: rgba(0, 51, 102, 0.2);
  box-shadow: 0 18px 34px rgba(0, 51, 102, 0.18);
}

.project-lab__stage {
  min-height: 450px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0, 51, 102, 0.98), rgba(0, 35, 70, 0.94));
  background-size: 44px 44px, 44px 44px, auto;
  isolation: isolate;
}

.project-lab__stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  pointer-events: none;
}

.project-lab__radar {
  position: absolute;
  width: min(74%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.86;
}

.project-lab__radar span {
  position: absolute;
  inset: var(--inset, 0);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-lab__radar span:nth-child(1) { --inset: 0%; }
.project-lab__radar span:nth-child(2) { --inset: 15%; }
.project-lab__radar span:nth-child(3) { --inset: 30%; }
.project-lab__radar span:nth-child(4) { --inset: 45%; }

.project-lab__radar i {
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  background: linear-gradient(45deg, rgba(243, 146, 0, 0.48), transparent 70%);
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
  animation: radarSweep 4.8s linear infinite;
}

.project-lab__panel {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  margin-left: auto;
  align-self: end;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}

.project-lab__panel.is-switching {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.project-lab__tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(243, 146, 0, 0.2);
  color: #ffd494;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-lab__panel h3 {
  margin-top: 12px;
  font-size: 1.55rem;
  line-height: 1.12;
  font-weight: 900;
}

.project-lab__panel p {
  margin-top: 12px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.82);
}

.project-lab__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.lab-metric {
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lab-metric strong {
  display: block;
  font-size: 1.2rem;
  color: var(--rrios-orange);
}

.lab-metric span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.78);
}

.gallery .card {
  min-height: 420px;
}

.gallery .card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  transition: opacity 0.2s ease, transform 0.65s var(--ease-out);
}

.gallery .card:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.clients-marquee {
  padding-block: 6px 20px;
}

.client-card {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border 0.25s ease;
}

.client-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 146, 0, 0.22);
}

.process-card {
  overflow: hidden;
}

.process-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--rrios-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}

.process-card:hover::after {
  transform: scaleX(1);
}

.project-modal__panel {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.pm-gallery {
  position: relative;
}

.pm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.pm-nav__btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0, 51, 102, 0.14);
  background: var(--white);
  color: var(--rrios-blue);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease;
}

.pm-nav__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 146, 0, 0.55);
  box-shadow: 0 14px 28px rgba(0, 51, 102, 0.12);
}

.pm-counter {
  min-width: 64px;
  text-align: center;
  color: rgba(0, 51, 102, 0.72);
  font-weight: 900;
}

.quick-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 51, 102, 0.12);
  box-shadow: 0 18px 48px rgba(0, 51, 102, 0.12);
  backdrop-filter: blur(16px);
}

.quick-nav a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rrios-blue);
  text-decoration: none;
  background: rgba(0, 51, 102, 0.05);
  border: 1px solid transparent;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.quick-nav a:hover,
.quick-nav a.is-active {
  color: var(--white);
  background: var(--rrios-orange);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.08);
}

.quick-nav span {
  font-size: 1.05rem;
  line-height: 1;
}

.reveal {
  transition: opacity 0.75s ease, transform 0.75s var(--ease-out), filter 0.75s ease;
  filter: blur(8px);
}

.reveal.is-visible {
  filter: blur(0);
}

.reveal > * {
  transition: transform 0.65s var(--ease-out), opacity 0.65s ease;
}

.reveal.is-visible > * {
  transition-delay: var(--stagger, 0s);
}

@keyframes loaderSweep {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(255%); }
}

@keyframes railMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .project-lab {
    grid-template-columns: 1fr;
  }

  .project-lab__stage {
    min-height: 420px;
  }
}

@media (max-width: 980px) {
  .quick-nav {
    top: auto;
    right: 50%;
    bottom: 16px;
    transform: translateX(50%);
    flex-direction: row;
  }

  .hero-command {
    grid-template-columns: 1fr;
  }

  .project-lab__controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .main-header,
  .main-header.is-scrolled {
    height: 72px;
  }

  .nav-bar {
    padding: 0 14px;
  }

  .header-left,
  .header-right {
    gap: 10px;
  }

  .header-center {
    top: 58%;
  }

  .logo-nav,
  .main-header.is-scrolled .logo-nav {
    height: 132px;
  }

  .login-button {
    display: none;
  }

  .cursor-light {
    display: none;
  }

  .hero-home,
  .numbers,
  .image-showcase,
  .services,
  .segments,
  .project-lab,
  .motion-rail,
  .featured,
  .clients,
  .process,
  .about,
  .cta-contact {
    width: 92vw;
  }

  .hero-blueprint {
    inset: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
  }

  .eyebrow {
    font-size: 0.76rem;
    padding: 8px 12px;
  }

  .hero-home h1 {
    font-size: 2.05rem;
  }

  .hero-media-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .project-lab__copy,
  .project-lab__stage {
    padding: 24px;
    border-radius: 22px;
  }

  .project-lab__metrics {
    grid-template-columns: 1fr;
  }

  .project-lab__panel {
    align-self: center;
  }

  .gallery .card {
    min-height: 260px;
  }

  .quick-nav {
    display: none;
  }

  .quick-nav a {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .cursor-light,
  .hero-blueprint {
    display: none !important;
  }

  .motion-rail__track,
  .project-lab__radar i,
  .site-loader__bar span {
    animation: none !important;
  }

  .reveal {
    filter: none;
  }
}


/* ================= AJUSTES V2: LOGO, BUSCA, MARCAS E LAB ================= */
.site-loader__logo {
  width: min(340px, 68vw);
  height: auto;
  filter: brightness(0) invert(1);
  animation: loaderLogoPulse 1.35s var(--ease-out) infinite alternate;
}

.search-box {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 16px;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(243,146,0,0.9);
  box-shadow: 0 0 0 4px rgba(243,146,0,0.18);
}

.search-box img {
  width: 24px;
  height: 24px;
}

.search-box .search-modal__input {
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.search-box .search-modal__input:focus {
  border: 0;
  box-shadow: none;
}

.search-clear {
  display: none;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(0,51,102,0.08);
  color: var(--rrios-blue);
  font-weight: 900;
  cursor: pointer;
}

.search-clear.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.search-suggestion {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0,51,102,0.12);
  border-radius: 999px;
  background: rgba(0,51,102,0.04);
  color: var(--rrios-blue);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.search-suggestion:hover {
  transform: translateY(-1px);
  background: rgba(243,146,0,0.12);
}

.search-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
}

.search-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0,51,102,0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.search-item__icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.search-item__content {
  min-width: 0;
}

.search-item p {
  margin-top: 5px;
  color: rgba(0,51,102,0.68);
  line-height: 1.45;
  font-size: 0.9rem;
}

.search-item__action {
  align-self: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(243,146,0,0.12);
  color: var(--rrios-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card__icon img,
.segment-card__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.client-card {
  width: 260px;
  min-height: 198px;
  align-items: center;
  text-align: center;
}

.client-card__logo,
.client-card__logo.has-image {
  width: 100%;
  height: 96px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,51,102,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
}

.client-card__logo.has-image {
  color: inherit;
  background-image: none !important;
}

.client-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.client-card__body p {
  margin-top: 6px;
  font-size: 0.86rem;
}

.client-card__name {
  color: var(--rrios-blue);
}

.client-card__foot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(243,146,0,0.12);
  color: var(--rrios-blue);
  font-size: 0.82rem;
}

.project-lab__stage {
  overflow: hidden;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1fr);
  gap: 22px;
}

.project-lab__radar {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 32px;
  opacity: 1;
  left: auto;
  top: auto;
  transform: none;
  grid-column: 1;
  justify-self: center;
}

.project-lab__radar::before,
.project-lab__radar::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 92%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translate(-50%, -50%);
}

.project-lab__radar::after {
  width: 1px;
  height: 92%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.28), transparent);
}

.project-lab__radar .lab-orbit {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
}

.project-lab__radar .lab-orbit--inner {
  inset: 28%;
  border-color: rgba(243,146,0,0.26);
}

.project-lab__radar .lab-node {
  position: absolute;
  inset: auto;
  min-width: 82px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
  animation: labNodePulse 2.4s ease-in-out infinite;
}

.lab-node--scope { left: 50%; top: 7%; transform: translateX(-50%); }
.lab-node--field { right: 2%; top: 48%; transform: translateY(-50%); animation-delay: 0.25s; }
.lab-node--design { left: 50%; bottom: 7%; transform: translateX(-50%); animation-delay: 0.5s; }
.lab-node--delivery { left: 2%; top: 48%; transform: translateY(-50%); animation-delay: 0.75s; }

.project-lab__radar .lab-core {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: 94px;
  height: 94px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.project-lab__radar .lab-core img {
  width: 58px;
  height: 58px;
}

.project-lab__panel {
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 340px;
  margin-left: 0;
  grid-column: 2;
}

.project-lab__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-metric {
  min-width: 0;
}

.lab-metric strong {
  font-size: 1.08rem;
}

.lab-metric span {
  font-size: 0.72rem;
}

.project-lab__radar[data-active="saneamento"] .lab-node--field,
.project-lab__radar[data-active="terraplanagem"] .lab-node--scope,
.project-lab__radar[data-active="empreendimentos"] .lab-node--delivery,
.project-lab__radar[data-active="complementares"] .lab-node--design {
  background: rgba(243,146,0,0.95);
  color: #1b1b1b;
}

@keyframes loaderLogoPulse {
  from { transform: translateY(0) scale(0.98); opacity: 0.84; }
  to { transform: translateY(-4px) scale(1); opacity: 1; }
}

@keyframes labNodePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(243,146,0,0); }
  50% { box-shadow: 0 0 26px rgba(243,146,0,0.26); }
}

@media (max-width: 680px) {
  .search-box {
    grid-template-columns: 24px 1fr;
  }

  .search-clear {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-item {
    grid-template-columns: 42px 1fr;
  }

  .search-item__action {
    grid-column: 2;
    justify-self: start;
  }

  .project-lab__radar {
    width: min(100%, 280px);
    left: auto;
    top: auto;
    transform: none;
    opacity: 0.82;
    grid-column: auto;
  }

  .project-lab__stage {
    grid-template-columns: 1fr;
  }

  .project-lab__radar .lab-node {
    min-width: 70px;
    min-height: 32px;
    font-size: 0.75rem;
  }

  .project-lab__radar .lab-core {
    width: 78px;
    height: 78px;
  }

  .project-lab__panel {
    width: 100%;
    justify-self: center;
    grid-column: auto;
  }
}


/* ================= LAB RRios | Versão estável sem radar orbital ================= */
.project-lab__stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1fr);
  place-items: stretch;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.project-lab__flow {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  display: grid;
  gap: 10px;
  justify-self: center;
}

.project-lab__flow::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 70px;
  bottom: 22px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243,146,0,0.85), rgba(255,255,255,0.16));
  pointer-events: none;
}

.project-lab__flow .lab-core,
.project-lab__flow .lab-node {
  position: relative;
  inset: auto;
  transform: none;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
}

.project-lab__flow .lab-core {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  box-shadow: 0 22px 48px rgba(0,0,0,0.18);
}

.project-lab__flow .lab-core img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.project-lab__flow .lab-core span {
  position: static;
  border: 0;
  color: var(--white);
  font-weight: 900;
  line-height: 1.2;
}

.project-lab__flow .lab-node {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px 0 18px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 900;
  animation: none;
}

.project-lab__flow .lab-node strong {
  color: #ffd494;
  font-size: 0.86rem;
}

.project-lab__flow[data-active="saneamento"] .lab-node--field,
.project-lab__flow[data-active="terraplanagem"] .lab-node--scope,
.project-lab__flow[data-active="empreendimentos"] .lab-node--delivery,
.project-lab__flow[data-active="complementares"] .lab-node--design {
  background: rgba(243,146,0,0.94);
  border-color: rgba(255,255,255,0.38);
  color: #152033;
  box-shadow: 0 14px 28px rgba(243,146,0,0.2);
}

.project-lab__flow[data-active="saneamento"] .lab-node--field strong,
.project-lab__flow[data-active="terraplanagem"] .lab-node--scope strong,
.project-lab__flow[data-active="empreendimentos"] .lab-node--delivery strong,
.project-lab__flow[data-active="complementares"] .lab-node--design strong {
  color: #152033;
}

.project-lab__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  align-self: center;
  margin-left: 0;
  grid-column: auto;
}

.project-lab__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-metric {
  min-width: 0;
  min-height: 68px;
}

.lab-metric strong,
.lab-metric span {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .project-lab__stage {
    grid-template-columns: minmax(200px, 0.72fr) minmax(280px, 1fr);
  }
}

@media (max-width: 760px) {
  .project-lab__stage {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-lab__flow {
    max-width: none;
  }

  .project-lab__metrics {
    grid-template-columns: 1fr;
  }
}


/* ================= LAB RRios | Radar real com pontos sincronizados ================= */
:root {
  --radar-duration: 5.6s;
}

.project-lab {
  width: min(1320px, 92vw);
  grid-template-columns: minmax(320px, 0.52fr) minmax(760px, 1fr);
}

.project-lab__stage {
  min-height: 620px;
  grid-template-columns: minmax(420px, 1fr) minmax(290px, 0.62fr);
  place-items: center;
  align-items: center;
  gap: 26px;
  overflow: hidden;
}

.project-lab__radar-v2 {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  justify-self: center;
  background:
    radial-gradient(circle at center, rgba(243,146,0,0.18) 0 3px, transparent 4px),
    repeating-radial-gradient(circle at center, rgba(255,255,255,0.22) 0 1px, transparent 1px 72px),
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(0,74,130,0.78), rgba(0,33,67,0.98) 68%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 60px rgba(0,0,0,0.24),
    0 28px 70px rgba(0,0,0,0.18);
}

.project-lab__radar-v2::before,
.project-lab__radar-v2::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.project-lab__radar-v2::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.radar-sweep,
.radar-arm {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: radarSpin var(--radar-duration) linear infinite;
}

.radar-sweep {
  background:
    conic-gradient(from 0deg,
      rgba(243,146,0,0.58) 0deg,
      rgba(243,146,0,0.28) 18deg,
      rgba(255,255,255,0.06) 42deg,
      transparent 58deg,
      transparent 360deg);
  mix-blend-mode: screen;
  filter: blur(0.2px);
}

.radar-arm::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 47%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(243,146,0,0.7), transparent);
  transform-origin: left center;
  box-shadow: 0 0 22px rgba(243,146,0,0.55);
}

.project-lab__radar-v2.is-js-synced .radar-sweep,
.project-lab__radar-v2.is-js-synced .radar-arm {
  animation: none;
  transform: rotate(var(--radar-angle, 0deg));
}

.radar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 22px 50px rgba(0,0,0,0.25);
}

.radar-center img {
  width: 56px;
  height: 56px;
}

.radar-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 148px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  animation: radarLabelHit var(--radar-duration) linear infinite;
  animation-delay: var(--delay);
}

.radar-point i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
  animation: radarDotHit var(--radar-duration) linear infinite;
  animation-delay: var(--delay);
}

.radar-point strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-lab__radar-v2.is-js-synced .radar-point,
.project-lab__radar-v2.is-js-synced .radar-point i {
  animation: none;
}

.project-lab__radar-v2[data-active="complementares"] .radar-point--complementares,
.project-lab__radar-v2[data-active="saneamento"] .radar-point--saneamento,
.project-lab__radar-v2[data-active="saneamento"] .radar-point--adutora,
.project-lab__radar-v2[data-active="saneamento"] .radar-point--ete,
.project-lab__radar-v2[data-active="terraplanagem"] .radar-point--terraplanagem,
.project-lab__radar-v2[data-active="empreendimentos"] .radar-point--residencial,
.project-lab__radar-v2[data-active="empreendimentos"] .radar-point--comercial,
.project-lab__radar-v2[data-active="empreendimentos"] .radar-point--industrial {
  background: rgba(243,146,0,0.94);
  color: #132238;
  border-color: rgba(255,255,255,0.48);
}

.project-lab__radar-v2[data-active="complementares"] .radar-point--complementares i,
.project-lab__radar-v2[data-active="saneamento"] .radar-point--saneamento i,
.project-lab__radar-v2[data-active="saneamento"] .radar-point--adutora i,
.project-lab__radar-v2[data-active="saneamento"] .radar-point--ete i,
.project-lab__radar-v2[data-active="terraplanagem"] .radar-point--terraplanagem i,
.project-lab__radar-v2[data-active="empreendimentos"] .radar-point--residencial i,
.project-lab__radar-v2[data-active="empreendimentos"] .radar-point--comercial i,
.project-lab__radar-v2[data-active="empreendimentos"] .radar-point--industrial i {
  background: #132238;
}

.radar-point.is-swept {
  background: rgba(255,255,255,0.97);
  color: var(--rrios-blue);
  border-color: rgba(255,255,255,0.82);
  box-shadow: 0 0 0 5px rgba(243,146,0,0.18), 0 0 34px rgba(243,146,0,0.82);
  transform: translate(-50%, -50%) scale(1.08);
}

.radar-point.is-swept i {
  background: #f39200;
  box-shadow: 0 0 0 8px rgba(243,146,0,0.2), 0 0 26px rgba(243,146,0,0.95);
  transform: scale(1.42);
}

.project-lab__panel {
  width: 100%;
  max-width: 390px;
  justify-self: center;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarDotHit {
  0%, 78%, 100% {
    background: rgba(255,255,255,0.82);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
    transform: scale(1);
  }
  82%, 90% {
    background: #f39200;
    box-shadow: 0 0 0 7px rgba(243,146,0,0.22), 0 0 24px rgba(243,146,0,0.9);
    transform: scale(1.45);
  }
}

@keyframes radarLabelHit {
  0%, 78%, 100% {
    box-shadow: 0 0 0 rgba(243,146,0,0);
    transform: translate(-50%, -50%) scale(1);
  }
  82%, 90% {
    box-shadow: 0 0 32px rgba(243,146,0,0.45);
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (max-width: 1260px) {
  .project-lab {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .project-lab {
    grid-template-columns: 1fr;
  }

  .project-lab__stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-lab__radar-v2 {
    width: min(100%, 520px);
  }

  .project-lab__panel {
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  .project-lab__radar-v2 {
    width: min(100%, 350px);
  }

  .radar-point {
    min-height: 28px;
    max-width: 132px;
    padding-inline: 7px;
    gap: 5px;
    font-size: 0.58rem;
  }

  .radar-point i {
    width: 8px;
    height: 8px;
  }

  .radar-center {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .radar-center img {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep,
  .radar-arm,
  .radar-point,
  .radar-point i {
    animation: none !important;
  }
}


/* ================= MISSÃO, VISÃO E VALORES | Modernização limpa ================= */
.about.about--values {
  width: min(1320px, 92vw);
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(620px, 1.22fr);
  gap: 24px;
  align-items: stretch;
}

.about__intro,
.about-value-card {
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(28,42,58,0.08);
  box-shadow: 0 22px 55px rgba(28,42,58,0.10);
}

.about__intro {
  position: relative;
  overflow: hidden;
  padding: 34px;
  isolation: isolate;
}

.about__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(28,42,58,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,42,58,0.045) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(243,146,0,0.12), transparent 28%),
    #ffffff;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.about__intro h2 {
  margin-top: 14px;
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 900;
  color: var(--rrios-blue);
}

.about__intro h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--rrios-orange);
}

.about__intro p {
  margin-top: 18px;
  color: rgba(28,42,58,0.74);
  line-height: 1.68;
}

.about__portrait {
  position: relative;
  min-height: 280px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 26%, rgba(243,146,0,0.16), transparent 34%),
    linear-gradient(135deg, #fff7ea, #ffffff 58%, #f3f5f7);
}

.about__portrait::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(28,42,58,0.08);
  border-radius: 6px;
}

.about__portrait img {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: min(84%, 360px);
  height: auto;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.02);
  animation: portraitFloat 7s ease-in-out infinite;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-value-card {
  position: relative;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease;
}

.about-value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--rrios-orange);
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform 0.36s var(--ease-out);
}

.about-value-card::after {
  content: "";
  position: absolute;
  left: var(--tilt-x, 50%);
  top: var(--tilt-y, 50%);
  width: 180px;
  height: 180px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,146,0,0.18), transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.about-value-card:hover::after,
.about-value-card:focus-visible::after,
.about-value-card.is-active::after {
  opacity: 1;
}

.about-value-card:hover::before,
.about-value-card:focus-visible::before,
.about-value-card.is-active::before {
  transform: scaleX(1);
}

.about-value-card:focus-visible {
  outline: 3px solid rgba(243,146,0,0.34);
  outline-offset: 3px;
}

.about-value-card.is-active {
  border-color: rgba(243,146,0,0.44);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 28px 70px rgba(28,42,58,0.13);
}

.about-value-card__mark {
  position: absolute;
  right: 18px;
  top: 16px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243,146,0,0.44);
  font-size: 4.2rem;
  line-height: 1;
  font-weight: 900;
  opacity: 0.48;
}

.about-value-card__pulse {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(243,146,0,0.34);
}

.about-value-card__pulse::before,
.about-value-card__pulse::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rrios-orange);
  transform: translate(-50%, -50%);
}

.about-value-card__pulse::after {
  inset: 0;
  width: auto;
  height: auto;
  background: transparent;
  border: 1px solid rgba(243,146,0,0.28);
  transform: none;
  animation: valuePulse 2.8s ease-out infinite;
}

.about-value-card:not(.is-active) .about-value-card__pulse::after {
  animation: none;
  opacity: 0;
}

.about-value-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 92px;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 900;
  color: var(--rrios-blue);
}

.about-value-card p {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  color: rgba(28,42,58,0.76);
  line-height: 1.7;
}

.about.about--values.is-visible .about__intro,
.about.about--values.is-visible .about-value-card {
  animation: aboutCardEnter 0.78s var(--ease-out) both;
}

.about.about--values.is-visible .about-value-card {
  animation-delay: calc(var(--card-index) * 0.1s + 0.08s);
}

@keyframes aboutCardEnter {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(5deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

@keyframes valuePulse {
  0% {
    opacity: 0.8;
    transform: scale(0.62);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes portraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1180px) {
  .about.about--values {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .about-value-card {
    min-height: 300px;
  }

  .about-value-card h3 {
    margin-top: 72px;
  }
}

@media (max-width: 680px) {
  .about.about--values {
    width: 94vw;
  }

  .about__intro,
  .about-value-card {
    padding: 22px;
  }

  .about__intro h2 {
    font-size: 1.95rem;
  }

  .about__portrait {
    min-height: 230px;
  }

  .about-value-card__mark {
    font-size: 3.4rem;
  }

  .about-value-card__pulse {
    left: 22px;
    bottom: 22px;
  }

  .about-value-card h3 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about.about--values.is-visible .about__intro,
  .about.about--values.is-visible .about-value-card,
  .about__portrait img,
  .about-value-card__pulse::after {
    animation: none !important;
  }
}


/* ================= MISSÃO, VISÃO E VALORES | Seção principal ================= */
.values-showcase {
  width: min(1320px, 92vw);
  display: grid;
  gap: 20px;
}

.values-showcase__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.values-showcase__intro h2 {
  margin: 0;
  color: var(--rrios-blue);
  font-size: 2.35rem;
  line-height: 1.05;
  font-weight: 900;
}

.values-showcase__intro h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--rrios-orange);
}

.values-showcase__intro p {
  width: min(420px, 100%);
  margin: 0;
  color: rgba(28,42,58,0.72);
  line-height: 1.58;
}

.values-showcase__grid {
  display: flex;
  gap: 16px;
  min-height: 360px;
}

.values-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 30px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  border: 1px solid rgba(28,42,58,0.08);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 20px 52px rgba(28,42,58,0.09);
  cursor: pointer;
  transition:
    flex 0.55s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.values-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(28,42,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,42,58,0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 38px 38px, 38px 38px, auto;
}

.values-card::after {
  content: "";
  position: absolute;
  left: var(--tilt-x, 50%);
  top: var(--tilt-y, 50%);
  width: 240px;
  height: 240px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,146,0,0.20), transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease;
}

.values-card:hover,
.values-card:focus-visible,
.values-card.is-active {
  flex: 1.45 1 0;
  border-color: rgba(243,146,0,0.42);
  box-shadow: 0 30px 70px rgba(28,42,58,0.13);
}

.values-card:hover::after,
.values-card:focus-visible::after,
.values-card.is-active::after {
  opacity: 1;
}

.values-card:focus-visible {
  outline: 3px solid rgba(243,146,0,0.32);
  outline-offset: 3px;
}

.values-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(243,146,0,0.12);
  border: 1px solid rgba(243,146,0,0.28);
  color: var(--rrios-orange);
  font-weight: 900;
}

.values-card h3 {
  margin-top: 80px;
  color: var(--rrios-blue);
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 900;
}

.values-card p {
  max-width: 34ch;
  margin-top: 18px;
  color: rgba(28,42,58,0.76);
  font-size: 1.02rem;
  line-height: 1.68;
}

.values-showcase.is-visible .values-card {
  animation: valuesModernEnter 0.78s var(--ease-out) both;
}

.values-showcase.is-visible .values-card:nth-child(2) {
  animation-delay: 0.09s;
}

.values-showcase.is-visible .values-card:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes valuesModernEnter {
  from {
    opacity: 0;
    transform: translateY(26px) rotateX(4deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

@media (max-width: 980px) {
  .values-showcase__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .values-showcase__grid {
    flex-direction: column;
    min-height: 0;
  }

  .values-card,
  .values-card:hover,
  .values-card:focus-visible,
  .values-card.is-active {
    flex: 1 1 auto;
  }

  .values-card h3 {
    margin-top: 52px;
  }
}

@media (max-width: 680px) {
  .values-showcase {
    width: 94vw;
  }

  .values-showcase__intro h2 {
    font-size: 1.9rem;
  }

  .values-card {
    min-height: 280px;
    padding: 22px;
  }

  .values-card__number {
    width: 46px;
    height: 46px;
  }

  .values-card h3 {
    font-size: 1.7rem;
  }

  .values-card p {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .values-showcase.is-visible .values-card {
    animation: none !important;
  }
}


/* ================= QUEM SOMOS | Cards de Reels estáveis ================= */
.about-reel-card {
  position: relative;
  display: block;
  min-height: 520px;
  aspect-ratio: 9 / 16;
  padding: 0;
  text-decoration: none;
  color: var(--rrios-blue);
  cursor: pointer;
  isolation: isolate;
  background: #fff7ec;
}

.about-reel-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, var(--white) 0 0) center / 0 0 no-repeat,
    var(--rrios-orange);
  box-shadow: 0 18px 38px rgba(243,146,0,0.34);
}

.about-reel-card::after {
  content: "";
  position: absolute;
  left: 47px;
  top: 42px;
  z-index: 4;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #ffffff;
}

.about-reel-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px),
    url("images/FOTO-02.png") center / cover no-repeat;
  background-size: 36px 36px, 36px 36px, cover;
  transition: transform 0.55s var(--ease-out), filter 0.28s ease;
}

.about-reel-card:nth-child(2) .about-reel-card__media {
  background:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px),
    url("images/FOTO-01.png") center / cover no-repeat;
  background-size: 36px 36px, 36px 36px, cover;
}

.about-reel-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.72) 62%, rgba(255,255,255,0.96)),
    radial-gradient(circle at 18% 18%, rgba(243,146,0,0.16), transparent 32%);
}

.about-reel-card__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.about-reel-card__eyebrow,
.about-reel-card__action {
  width: fit-content;
  border-radius: 999px;
  font-weight: 900;
}

.about-reel-card__eyebrow {
  padding: 7px 10px;
  color: var(--rrios-orange);
  background: rgba(243,146,0,0.12);
  border: 1px solid rgba(243,146,0,0.22);
  font-size: 0.78rem;
}

.about-reel-card__title {
  font-size: 1.45rem;
  line-height: 1.08;
  font-weight: 900;
}

.about-reel-card__action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--rrios-blue);
  box-shadow: 0 14px 28px rgba(0,51,102,0.16);
}

.about-reel-card:hover .about-reel-card__media,
.about-reel-card:focus-visible .about-reel-card__media {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.03);
}

.about-reel-card:hover .about-reel-card__action,
.about-reel-card:focus-visible .about-reel-card__action {
  background: var(--rrios-orange);
}

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(243,146,0,0.18), transparent 36%),
    rgba(0, 18, 38, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(12px);
}

.reel-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.reel-modal__panel {
  width: min(460px, 94vw);
  max-height: calc(100vh - 32px);
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
  border-radius: 22px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(255,255,255,0.46);
  box-shadow: 0 44px 120px rgba(0,0,0,0.38);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s var(--ease-out), opacity 0.28s ease;
}

.reel-modal.active .reel-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.reel-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reel-modal__title {
  margin-top: 8px;
  color: var(--rrios-blue);
  font-size: 1.2rem;
  line-height: 1.12;
  font-weight: 900;
}

.reel-modal__frame {
  width: min(390px, 86vw);
  height: min(720px, 74vh);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0,51,102,0.08), rgba(243,146,0,0.08)),
    #ffffff;
  border: 1px solid rgba(0,51,102,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72);
}

.reel-modal__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #ffffff;
}

.reel-modal__external {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rrios-blue);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0,51,102,0.16);
  transition: transform 0.22s ease, background 0.22s ease;
}

.reel-modal__external:hover,
.reel-modal__external:focus-visible {
  background: var(--rrios-orange);
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .about-reel-card {
    min-height: 460px;
  }
}

@media (max-width: 680px) {
  .about-reel-card {
    min-height: 430px;
    aspect-ratio: 4 / 5;
  }

  .about-reel-card::before {
    left: 18px;
    top: 18px;
    width: 50px;
    height: 50px;
  }

  .about-reel-card::after {
    left: 38px;
    top: 33px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 14px;
  }

  .reel-modal {
    padding: 12px;
  }

  .reel-modal__panel {
    border-radius: 18px;
    padding: 12px;
  }

  .reel-modal__frame {
    width: min(360px, 88vw);
    height: min(640px, 72vh);
    border-radius: 14px;
  }
}

.values-showcase__intro {
  justify-content: flex-start;
}

.values-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  min-height: 0;
}

.values-card.values-card--image {
  display: block;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  background: #ffffff;
}

.values-card.values-card--image:hover,
.values-card.values-card--image:focus-visible,
.values-card.values-card--image.is-active {
  flex: initial;
  border-color: rgba(243,146,0,0.5);
  box-shadow: 0 30px 70px rgba(28,42,58,0.14);
}

.values-card.values-card--image::before {
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 6px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.values-card.values-card--image::after {
  left: -80%;
  top: 0;
  z-index: 2;
  width: 58%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.42), transparent);
  opacity: 0;
  transform: skewX(-16deg);
  pointer-events: none;
}

.values-card.values-card--image:hover::before,
.values-card.values-card--image:focus-visible::before,
.values-card.values-card--image.is-active::before {
  opacity: 1;
}

.values-card.values-card--image:hover::after,
.values-card.values-card--image:focus-visible::after,
.values-card.values-card--image.is-active::after {
  left: 124%;
  opacity: 1;
  transition: left 0.82s var(--ease-out), opacity 0.22s ease;
}

.values-card.values-card--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.01);
  transition: transform 0.55s var(--ease-out), filter 0.28s ease;
}

.values-card.values-card--image:hover img,
.values-card.values-card--image:focus-visible img,
.values-card.values-card--image.is-active img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

@media (max-width: 980px) {
  .values-showcase__grid {
    grid-template-columns: 1fr;
  }
}


/* ================= CONTATO E LOCALIZAÇÃO | Modernização ================= */
.hero-btn--icon {
  gap: 10px;
}

.hero-btn--icon img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 1px rgba(0,51,102,0.08);
}

.cta-contact.cta-contact--modern {
  position: relative;
  width: min(1320px, 92vw);
  min-height: 620px;
  grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
  gap: 34px;
  align-items: stretch;
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 14% 12%, rgba(243,146,0,0.34), transparent 28%),
    linear-gradient(135deg, #002a55 0%, #003b73 48%, #0b223a 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 34px 90px rgba(0,28,58,0.22);
  isolation: isolate;
}

.cta-contact.cta-contact--modern::before,
.cta-contact.cta-contact--modern::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.cta-contact.cta-contact--modern::before {
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
}

.cta-contact.cta-contact--modern::after {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -250px;
  border-radius: 50%;
  border: 1px solid rgba(243,146,0,0.28);
  box-shadow:
    0 0 0 38px rgba(243,146,0,0.055),
    0 0 0 82px rgba(255,255,255,0.035);
  animation: ctaOrbit 9s linear infinite;
}

.cta-contact--modern .cta-contact__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  z-index: 2;
}

.cta-contact--modern h2 {
  font-size: clamp(2rem, 4vw, 4.35rem);
  line-height: 0.96;
  max-width: 10ch;
}

.cta-contact--modern h2::after {
  width: 96px;
  height: 5px;
  background: linear-gradient(90deg, var(--rrios-orange), rgba(255,255,255,0.85));
}

.cta-contact--modern p {
  max-width: 58ch;
  margin-top: 18px;
  color: rgba(255,255,255,0.84);
  font-size: 1.04rem;
}

.cta-contact__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.cta-contact__steps span {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.cta-contact__steps strong {
  color: var(--rrios-orange);
  font-size: 0.82rem;
}

.cta-contact--modern .cta-contact__actions {
  margin-top: 32px;
}

.cta-contact--modern .hero-btn--primary {
  background: var(--rrios-orange);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(243,146,0,0.28);
}

.cta-contact--modern .hero-btn--secondary {
  color: #ffffff;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

.cta-contact--modern .cta-contact__visual {
  position: relative;
  min-height: 540px;
  align-self: stretch;
}

.cta-contact--modern .cta-contact__visual .media-slot {
  min-height: 100%;
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 70px rgba(0,0,0,0.26);
  transform: rotate(1.2deg);
}

.cta-contact--modern .cta-contact__visual .media-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 46%, rgba(0,33,68,0.76)),
    linear-gradient(90deg, rgba(243,146,0,0.18), transparent 34%);
  pointer-events: none;
}

.cta-contact__signal {
  position: absolute;
  left: clamp(14px, 2.4vw, 34px);
  right: clamp(14px, 2.4vw, 34px);
  bottom: clamp(14px, 2.4vw, 34px);
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(0,33,68,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
}

.cta-contact__signal span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--rrios-orange);
  background: rgba(243,146,0,0.14);
  font-weight: 900;
  font-size: 0.78rem;
}

.cta-contact__signal strong {
  max-width: 22ch;
  font-size: clamp(1.08rem, 2vw, 1.52rem);
  line-height: 1.1;
}

.location-section.location-section--modern {
  width: min(1320px, 92vw);
  display: grid;
  gap: 22px;
}

.location-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.location-section__header h2 {
  margin-top: 12px;
  color: var(--rrios-blue);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  font-weight: 900;
}

.location-section__header h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--rrios-orange);
}

.location-section__header p {
  max-width: 62ch;
  margin-top: 14px;
  color: rgba(0,51,102,0.76);
  line-height: 1.65;
}

.location-section--modern .location-section__grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  gap: 20px;
}

.location-section--modern .location-card,
.location-section--modern .location-map {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(0,51,102,0.08);
  box-shadow: 0 28px 70px rgba(0,51,102,0.10);
}

.location-section--modern .location-card {
  min-height: 520px;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  background:
    linear-gradient(rgba(0,51,102,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,51,102,0.035) 1px, transparent 1px),
    linear-gradient(145deg, #ffffff, #f7fbff);
  background-size: 30px 30px, 30px 30px, auto;
  isolation: isolate;
}

.location-section--modern .location-card::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  z-index: -1;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 1px solid rgba(243,146,0,0.26);
  box-shadow:
    0 0 0 34px rgba(243,146,0,0.06),
    0 0 0 68px rgba(0,51,102,0.04);
  animation: ctaOrbit 11s linear infinite reverse;
}

.location-card__brand {
  width: min(250px, 72%);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,51,102,0.08);
  box-shadow: 0 18px 38px rgba(0,51,102,0.08);
}

.location-card__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.location-card__eyebrow {
  width: fit-content;
  margin-top: auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--rrios-orange);
  background: rgba(243,146,0,0.12);
  border: 1px solid rgba(243,146,0,0.18);
  font-size: 0.78rem;
  font-weight: 900;
}

.location-section--modern .location-card h3 {
  margin-top: 12px;
  color: var(--rrios-blue);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.location-card address {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: rgba(0,51,102,0.78);
  font-style: normal;
  line-height: 1.55;
}

.location-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.location-card__details span {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(0,51,102,0.82);
  background: rgba(0,51,102,0.055);
  border: 1px solid rgba(0,51,102,0.07);
  font-size: 0.84rem;
  font-weight: 800;
}

.location-section--modern .location-card__actions {
  margin-top: 26px;
}

.location-section--modern .location-btn-secondary {
  color: var(--rrios-blue);
  background: #ffffff;
  border-color: rgba(0,51,102,0.13);
}

.location-section--modern .location-map {
  min-height: 520px;
  overflow: hidden;
  background: #eaf1f8;
}

.location-section--modern .location-map iframe {
  min-height: 520px;
  filter: saturate(0.92) contrast(1.03);
}

.location-map__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 6px;
  max-width: min(330px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(0,51,102,0.86);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 46px rgba(0,0,0,0.18);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.location-map__tag span {
  color: var(--rrios-orange);
  font-size: 0.78rem;
  font-weight: 900;
}

.location-map__tag strong {
  font-size: 1.02rem;
  line-height: 1.15;
}

@keyframes ctaOrbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  to { transform: rotate(360deg) scale(1); }
}

@media (max-width: 1080px) {
  .cta-contact.cta-contact--modern,
  .location-section--modern .location-section__grid {
    grid-template-columns: 1fr;
  }

  .cta-contact.cta-contact--modern {
    min-height: 0;
  }

  .cta-contact--modern h2 {
    max-width: 13ch;
  }

  .cta-contact--modern .cta-contact__visual {
    min-height: 460px;
  }

  .location-section__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .cta-contact.cta-contact--modern,
  .location-section.location-section--modern {
    width: 92vw;
  }

  .cta-contact.cta-contact--modern {
    padding: 22px;
    border-radius: 22px;
  }

  .cta-contact__steps {
    grid-template-columns: 1fr;
  }

  .cta-contact__steps span {
    min-height: 74px;
  }

  .cta-contact--modern .cta-contact__visual {
    min-height: 380px;
  }

  .cta-contact--modern .cta-contact__visual .media-slot {
    transform: none;
  }

  .location-section--modern .location-card,
  .location-section--modern .location-map {
    border-radius: 20px;
  }

  .location-section--modern .location-card,
  .location-section--modern .location-map,
  .location-section--modern .location-map iframe {
    min-height: 420px;
  }

  .location-card__brand {
    width: min(230px, 86%);
  }
}


/* ================= PROJETOS EM DESTAQUE | Disciplinas centralizadas ================= */
.featured__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
}

.featured__grid .project-card {
  flex: 0 1 240px;
}

.project-card__title {
  color: var(--white);
}

@media (max-width: 640px) {
  .featured__grid .project-card {
    flex-basis: min(100%, 260px);
  }
}


/* ================= IMAGENS DOS CARDS | Preenchimento horizontal ================= */
.service-card__media,
.segment-card__media {
  width: 100%;
  overflow: hidden;
}

.service-card__media .media-slot,
.segment-card__media .media-slot,
.services__grid > .service-card:last-child .service-card__media .media-slot {
  width: 100%;
  max-width: none;
  min-height: 280px;
  margin-inline: 0;
  padding: 0;
  border-radius: 0;
}

.service-card__media .media-slot.has-image,
.segment-card__media .media-slot.has-image {
  background-size: cover;
  background-position: center;
}

.services__grid > .service-card:last-child {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.services__grid > .service-card:last-child .service-card__media {
  width: 100%;
}

.services__grid > .service-card:last-child .service-card__media .media-slot {
  min-height: 340px;
}

.featured__grid .project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

@media (max-width: 640px) {
  .service-card__media .media-slot,
  .segment-card__media .media-slot {
    min-height: 250px;
  }
}


/* ================= RODAPÉ ================= */
.site-footer {
  width: min(1320px, 92vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  border-radius: 22px;
  color: rgba(0,51,102,0.78);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,51,102,0.08);
  box-shadow: 0 22px 54px rgba(0,51,102,0.08);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-footer__brand img {
  width: 150px;
  height: auto;
  flex: 0 0 auto;
}

.site-footer__brand span,
.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-footer p {
  font-weight: 900;
  color: var(--rrios-blue);
  text-align: right;
}

@media (max-width: 760px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .site-footer__brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}
