/* =============================================================
   ROYAL POWER SOLUTIONS — style.css
   Brand palette: Blue #1E4FB8 | Green #3E9B3E | Gold #FFC10A | Navy #151262
============================================================= */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --rps-blue: #1E4FB8;
  --rps-blue-dark: #163a8a;
  --rps-green: #3E9B3E;
  --rps-green-dark: #2d7a2d;
  --rps-gold: #FFC10A;
  --rps-gold-dark: #e0a600;
  --rps-navy: #151262;
  --rps-navy-deep: #0e0c45;

  --bg: #ffffff;
  --bg-soft: #F7F8FA;
  --text: #111827;
  --text-muted: #5b6472;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-soft: 0 10px 30px rgba(21, 18, 98, 0.08);
  --shadow-gold: 0 8px 24px rgba(255, 193, 10, 0.35);
  --ease: cubic-bezier(.22, .85, .32, 1);
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--rps-gold);
  outline-offset: 3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold {
  color: var(--rps-gold);
}

/* ── EYEBROW LABELS ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rps-gold);
  margin-bottom: 14px;
}

.eyebrow--dark {
  color: var(--rps-green);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
  cursor: pointer;
}

.btn--lg {
  padding: 15px 34px;
  font-size: 1rem;
}

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

.btn--gold {
  background: var(--rps-gold);
  color: var(--rps-navy);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 193, 10, 0.5);
}

.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.btn--ghost-nav {
  color: var(--rps-blue);
  font-weight: 600;
  font-size: 0.92rem;
}

.btn--ghost-nav i {
  color: var(--rps-green);
}

/* ── CHARGE BAR (signature scroll-progress bolt) ─────────── */
.charge-bar {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: min(60vh, 420px);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}

.charge-bar.is-visible {
  opacity: 1;
}

.charge-bar svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.charge-track {
  fill: none;
  stroke: rgba(21, 18, 98, 0.12);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.charge-bolt {
  fill: none;
  stroke: var(--rps-gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  filter: drop-shadow(0 0 6px rgba(255, 193, 10, 0.7));
  transition: stroke-dashoffset .1s linear;
}

@media (max-width: 900px) {
  .charge-bar {
    display: none;
  }
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .35s var(--ease);
}

.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav:not(.is-scrolled) .nav__brand-text {
  color: #fff;
}

.nav.is-scrolled .nav__brand-text {
  color: var(--rps-blue);
}

.nav__brand-text em {
  font-style: normal;
}

.nav:not(.is-scrolled) .nav__brand-text em {
  color: var(--rps-gold);
}

.nav.is-scrolled .nav__brand-text em {
  color: var(--rps-green);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.94rem;
  position: relative;
  transition: color .3s;
}

.nav:not(.is-scrolled) .nav-link {
  color: #fff;
}

.nav.is-scrolled .nav-link {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--rps-gold);
  transition: width .3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav:not(.is-scrolled) .btn--ghost-nav {
  color: #fff;
}

.nav:not(.is-scrolled) .btn--ghost-nav i {
  color: var(--rps-gold);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.nav__burger span {
  height: 2px;
  width: 100%;
  border-radius: 2px;
  transition: all .3s var(--ease);
}

.nav:not(.is-scrolled) .nav__burger span {
  background: #fff;
}

.nav.is-scrolled .nav__burger span {
  background: var(--rps-blue);
}

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--rps-navy);
    flex-direction: column;
    padding: 100px 32px;
    gap: 26px;
    transition: right .4s var(--ease);
    z-index: 99;
  }

  .nav__links.is-open {
    right: 0;
  }

  .nav__links .nav-link {
    color: #fff;
    font-size: 1.1rem;
  }

  .nav__actions {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: linear-gradient(135deg, var(--rps-navy) 0%, var(--rps-blue) 55%, var(--rps-green-dark) 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite alternate;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 193, 10, 0.08);
  top: -10%;
  right: 5%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(62, 155, 62, 0.1);
  bottom: 5%;
  right: 25%;
  animation-delay: 3s;
}

@keyframes orb-float {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-30px) scale(1.05);
  }
}

/* Lightning bolt */
.hero__bolt {
  position: absolute;
  top: 8%;
  right: 6%;
  width: min(28vw, 320px);
  height: auto;
  opacity: 0.92;
}

.hero__bolt-shape {
  fill: var(--rps-gold);
  filter: drop-shadow(0 0 40px rgba(255, 193, 10, 0.55));
  animation: bolt-flicker 3.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes bolt-flicker {

  0%,
  92%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 40px rgba(255, 193, 10, 0.55));
  }

  94% {
    opacity: 0.4;
  }

  96% {
    opacity: 1;
    filter: drop-shadow(0 0 70px rgba(255, 193, 10, 0.85));
  }

  98% {
    opacity: 0.6;
  }
}

.hero__inner {
  max-width: 720px;
  position: relative;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero__sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rps-gold);
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--rps-gold);
  border-radius: 3px;
  animation: scroll-dot 1.8s infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
  }

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

  .hero__stats {
    gap: 24px;
  }

  .hero__bolt {
    display: none;
  }
}

/* ── REVEAL ANIMATION (Intersection Observer) ───────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

.services__grid [data-reveal] {
  transition-delay: calc(var(--i, 0) * 90ms);
}

.gallery__grid [data-reveal] {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ── SECTION HEADINGS ────────────────────────────────────── */
section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--rps-navy);
  margin-bottom: 20px;
}

/* ── SERVICES ────────────────────────────────────────────── */
.services {
  padding: 120px 0 100px;
  background: var(--bg-soft);
}

.services h2 {
  max-width: 600px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}

.s-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid rgba(21, 18, 98, 0.07);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.s-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 193, 10, 0.2);
  border-color: rgba(255, 193, 10, 0.4);
}

.s-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(62, 155, 62, 0.1);
  color: var(--rps-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: transform .35s var(--ease);
}

.s-card:hover .s-card__icon {
  transform: rotate(-8deg) scale(1.08);
}

.s-card h3 {
  font-size: 1.12rem;
  color: var(--rps-blue);
  margin-bottom: 10px;
}

.s-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.s-card--cta {
  background: var(--rps-navy);
}

.s-card--cta .s-card__icon {
  background: rgba(255, 193, 10, 0.14);
  color: var(--rps-gold);
}

.s-card--cta h3 {
  color: #fff;
}

.s-card--cta p {
  color: rgba(255, 255, 255, 0.68);
}

.s-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rps-gold);
  font-weight: 600;
  margin-top: 18px;
  font-size: 0.92rem;
}

.s-card__link i {
  transition: transform .3s var(--ease);
}

.s-card--cta:hover .s-card__link i {
  transform: translateX(5px);
}

@media (max-width: 980px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── WHY CHOOSE US ───────────────────────────────────────── */
.why {
  padding: 100px 0;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why h2 {
  max-width: 460px;
}

.why__desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.why__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-weight: 500;
  border-bottom: 1px dashed rgba(21, 18, 98, 0.12);
  font-size: 0.95rem;
}

.why__list i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(62, 155, 62, 0.12);
  color: var(--rps-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.why__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  border-bottom: 3px solid var(--rps-gold);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rps-blue);
}

.stat-card span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

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

/* ── PROCESS / TIMELINE ──────────────────────────────────── */
.process {
  padding: 100px 0;
  background: var(--bg-soft);
}

.process h2 {
  max-width: 600px;
}

.timeline {
  position: relative;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.timeline__line {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(21, 18, 98, 0.1);
  grid-column: 1 / -1;
  z-index: 0;
}

.timeline__line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rps-green), var(--rps-gold));
  transition: width 1.4s var(--ease);
}

.timeline__step {
  position: relative;
  padding-top: 38px;
}

.timeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 3px solid var(--rps-green);
  transition: background .35s, border-color .35s, transform .35s;
  z-index: 1;
}

.timeline__step.is-visible .timeline__dot {
  background: var(--rps-gold);
  border-color: var(--rps-gold);
  transform: scale(1.2);
}

.timeline__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rps-gold);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.timeline__step h3 {
  font-size: 1rem;
  color: var(--rps-navy);
  margin-bottom: 8px;
}

.timeline__step p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .timeline__line {
    top: 0;
    left: 9px;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .timeline__line-fill {
    width: 100% !important;
    height: 0%;
    transition: height 1.4s var(--ease);
  }

  .timeline__step {
    padding-top: 0;
    padding-left: 36px;
  }

  .timeline__dot {
    top: 2px;
    left: 0;
  }
}

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery {
  padding: 100px 0;
}

.gallery h2 {
  max-width: 600px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.g-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.g-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(21, 18, 98, 0.88) 100%);
  opacity: 0;
  transition: opacity .4s;
}

.g-item__label {
  position: absolute;
  left: 18px;
  bottom: -30px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  z-index: 2;
  transition: all .4s var(--ease);
}

.g-item:hover img {
  transform: scale(1.09);
}

.g-item:hover::after {
  opacity: 1;
}

.g-item:hover .g-item__label {
  bottom: 18px;
  opacity: 1;
}

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials {
  padding: 100px 0;
  background: var(--rps-navy);
  color: #fff;
  text-align: center;
}

.testimonials h2 {
  color: #fff;
}

.t-carousel {
  max-width: 760px;
  margin: 50px auto 0;
  position: relative;
}

.t-track-wrap {
  overflow: hidden;
}

.t-track {
  display: flex;
  transition: transform .55s var(--ease);
}

.t-card {
  min-width: 100%;
  padding: 0 24px;
}

.t-stars {
  color: var(--rps-gold);
  margin-bottom: 20px;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.t-card p {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.t-name {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.t-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s, transform .3s;
  z-index: 10;
}

.t-arrow:hover {
  background: var(--rps-gold);
  color: var(--rps-navy);
  transform: translateY(-50%) scale(1.08);
}

.t-arrow--prev {
  left: -60px;
}

.t-arrow--next {
  right: -60px;
}

.t-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.t-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background .3s, transform .3s;
}

.t-dots button.is-active {
  background: var(--rps-gold);
  transform: scale(1.3);
}

@media (max-width: 760px) {
  .t-arrow--prev {
    left: -4px;
  }

  .t-arrow--next {
    right: -4px;
  }

  .t-card {
    padding: 0 50px;
  }
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--bg-soft);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
}

.contact__form-wrap {
  background: #fff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contact__sub {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 4px;
}

.contact__form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid rgba(21, 18, 98, 0.15);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: transparent;
  resize: none;
  transition: border-color .3s;
  color: var(--text);
}

.field select {
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rps-blue);
  outline: none;
}

.field label {
  position: absolute;
  left: 16px;
  top: 15px;
  color: var(--text-muted);
  font-size: 0.98rem;
  pointer-events: none;
  transition: all .2s var(--ease);
  background: #fff;
  padding: 0 4px;
}

.field select~label,
.field input:focus~label,
.field input:not(:placeholder-shown)~label,
.field textarea:focus~label,
.field textarea:not(:placeholder-shown)~label {
  top: -9px;
  font-size: 0.78rem;
  color: var(--rps-blue);
}

.field__error {
  display: none;
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 6px;
  padding-left: 4px;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c0392b;
}

.field.is-invalid .field__error {
  display: block;
}

.form__success {
  display: none;
  background: rgba(62, 155, 62, 0.1);
  color: var(--rps-green-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

.form__success a {
  color: var(--rps-green);
  font-weight: 600;
  text-decoration: underline;
}

.form__success.is-visible {
  display: block;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.info-card:not(.info-card--static):hover {
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(30, 79, 184, 0.12);
}

.info-card i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 79, 184, 0.1);
  color: var(--rps-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-card--wa i {
  background: rgba(62, 155, 62, 0.12);
  color: var(--rps-green);
}

.info-card strong {
  display: block;
  font-size: 0.95rem;
}

.info-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

  .contact__form-wrap {
    padding: 30px;
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--rps-navy);
  color: rgba(255, 255, 255, 0.72);
}

.footer__inner {
  padding: 80px 0 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.91rem;
  max-width: 300px;
  margin-bottom: 20px;
  line-height: 1.65;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s, transform .3s;
}

.footer__socials a:hover {
  background: var(--rps-gold);
  color: var(--rps-navy);
  transform: translateY(-3px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer__col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
}

.footer__col a:hover {
  color: var(--rps-gold);
}

.footer__col span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.footer__col span i {
  color: var(--rps-gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.72);
  transition: color .25s;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.45);
}

.footer__tagline i {
  color: var(--rps-gold);
}

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

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

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── FLOATING WHATSAPP ───────────────────────────────────── */
.fab-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--rps-green);
  color: #fff;
  font-size: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(62, 155, 62, 0.45);
  z-index: 90;
  transition: transform .3s var(--ease), background .3s;
}

.fab-wa:hover {
  background: var(--rps-green-dark);
  transform: scale(1.1);
}

.fab-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--rps-gold);
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* ── PAGE HEADER (For subpages) ────────────────────────────── */
.page-header {
  padding: 160px 0 60px;
  background: var(--rps-navy);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--rps-gold);
  margin-bottom: 14px;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ── ABOUT PAGE STYLES ────────────────────────────── */
.about__split {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

@media (min-width: 900px) {
  .about__split {
    flex-direction: row;
    align-items: center;
  }

  .about__text {
    flex: 1;
    padding-right: 40px;
  }

  .about__image-wrap {
    flex: 1;
  }
}

.about__image-wrap {
  position: relative;
}

.about__image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--rps-gold);
  color: var(--rps-navy);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
}

.about__badge strong {
  font-size: 2.5rem;
  line-height: 1;
}

.core__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .core__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.core-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--rps-blue);
  transition: transform 0.3s ease;
}

.core-card:hover {
  transform: translateY(-5px);
}

.core-card__icon {
  font-size: 2.5rem;
  color: var(--rps-gold);
  margin-bottom: 20px;
}

.core-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--rps-navy);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 30px;
}

.value-item i {
  font-size: 2.5rem;
  color: var(--rps-blue);
  margin-bottom: 20px;
}

.value-item h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--rps-navy);
}