/* =========================================================
   Rudra Global — Premium UI Layer (2026)
   ========================================================= */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding-top: 0 !important;
}


h1, h2, h3, h4, .sitename, .animated-title {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Scroll progress ---------- */
.rg-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: var(--z-progress);
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.55);
  pointer-events: none;
  transform-origin: left center;
}

/* Custom cursor intentionally disabled */

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--rg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

#preloader:before {
  display: none !important;
}

#preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rg-preloader-inner {
  text-align: center;
  color: #fff;
  width: min(280px, 80vw);
}

.rg-preloader-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 20px 50px rgba(0, 180, 216, 0.35);
  animation: rgPulse 1.6s ease-in-out infinite;
}

.rg-preloader-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.rg-preloader-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.rg-preloader-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: inherit;
  transition: width 0.25s linear;
}

.rg-preloader-pct {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.12em;
}

@keyframes rgPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---------- Floating glass navbar (contrast / hierarchy only) ---------- */
.header {
  top: 1rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 1.5rem));
  padding: 0.65rem 1.15rem !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
  z-index: var(--z-nav);
}

.header.scrolled,
body.scrolled .header {
  top: 0.65rem;
  padding: 0.5rem 1.05rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.header .logo {
  align-items: center;
  gap: 0.15rem;
}

.logo-img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.sitename,
.header .sitename,
.logo .sitename {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  margin: 0 0 0 0.55rem !important;
  /* Solid high-contrast navy (readable on any hero) */
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #1e293b !important;
  color: #1e293b !important;
}

.navmenu ul {
  gap: 0.15rem;
  align-items: center;
}

.navmenu ul li {
  margin: 0 0.2rem !important;
}

.navmenu ul li a {
  position: relative;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: #1e293b !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 999px !important;
  background: transparent !important;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Remove underline / dark block treatments */
.navmenu ul li a::after,
.navmenu ul li a.active::after,
.navmenu ul li a:hover::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.navmenu ul li a:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

/* Active = rounded blue gradient pill, white text */
.navmenu ul li a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.navmenu ul li a.active:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
}

/* Contact CTA — more prominent */
.navmenu ul li:last-child a,
.navmenu ul li:last-child a.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.25rem !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.navmenu ul li:last-child a::after {
  display: none !important;
}

.navmenu ul li:last-child a:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0284c7 100%) !important;
}

.navmenu .dropdown ul {
  border-radius: 14px !important;
  border: 1px solid rgba(30, 41, 59, 0.08) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96) !important;
  overflow: hidden;
  padding: 0.4rem !important;
}

.navmenu .dropdown ul li {
  margin: 0 !important;
  width: 100%;
}

.navmenu .dropdown ul li a {
  color: #1e293b !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.9rem !important;
  display: block;
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
}

.navmenu .dropdown ul li a:hover,
.navmenu .dropdown ul li a.active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
  box-shadow: none !important;
}

.mobile-nav-toggle {
  background: transparent;
  border: 0;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.6rem;
  color: #1e293b;
}

@media (max-width: 1199px) {
  .header {
    border-radius: 20px;
    width: calc(100% - 1rem);
    background: rgba(255, 255, 255, 0.94) !important;
  }

  .navmenu {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s var(--ease-out);
    z-index: 999;
  }

  body.mobile-nav-active .navmenu,
  .navmenu.active {
    opacity: 1;
    visibility: visible;
  }

  .navmenu ul {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem 1.5rem !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.35rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }

  .navmenu ul li {
    margin: 0 !important;
  }

  .navmenu ul li a {
    display: block;
    padding: 0.85rem 1rem !important;
    color: #1e293b !important;
  }

  .navmenu ul li a.active {
    color: #ffffff !important;
  }

  .navmenu ul li:last-child a {
    text-align: center;
    margin-top: 0.35rem;
  }

  .navmenu .dropdown ul {
    position: static !important;
    box-shadow: none !important;
    background: rgba(241, 245, 249, 0.9) !important;
    margin-top: 0.35rem;
  }
}

@media (max-width: 575px) {
  .sitename,
  .header .sitename {
    font-size: 1rem !important;
  }

  .logo-img {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ---------- Hero cinematic ---------- */
.hero {
  min-height: 100vh !important;
  max-height: none !important;
  margin-top: 0;
  isolation: isolate;
}

.hero-slider,
.premium-slider {
  inset: 0;
}

.slide-content {
  height: 100vh !important;
  padding-top: 4rem;
}

.hero .content-wrapper {
  max-width: 880px;
}

.hero .badge {
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: 0.72rem !important;
  margin-bottom: 1.25rem !important;
}

.animated-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem) !important;
  font-weight: 780 !important;
  margin-bottom: 1.1rem !important;
}

.animated-title .highlight {
  background: linear-gradient(120deg, #fff 20%, var(--rg-cyan) 55%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rgShimmer 4s linear infinite;
}

@keyframes rgShimmer {
  to { background-position: 200% center; }
}

.animated-text {
  font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-overlay-1 { background: var(--gradient-hero-1) !important; }
.gradient-overlay-2 { background: var(--gradient-hero-2) !important; }
.gradient-overlay-3 { background: var(--gradient-hero-3) !important; }
.gradient-overlay-4 { background: var(--gradient-hero-4) !important; }

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: rgFloat linear infinite;
  opacity: 0.55;
}

@keyframes rgFloat {
  0% { transform: translateY(20vh) scale(0.6); opacity: 0; }
  20% { opacity: 0.7; }
  100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

.premium-controls {
  bottom: 2.5rem !important;
}

.scroll-indicator {
  bottom: 1.5rem !important;
  z-index: 5;
  cursor: pointer;
}

.btn.magnetic {
  will-change: transform;
}

.btn-primary {
  background: var(--gradient-secondary) !important;
  border-radius: var(--radius-pill) !important;
}

.btn-outline {
  border-radius: var(--radius-pill) !important;
}

/* =========================================================
   SINGLE SECTION SPACING SYSTEM (content-driven)
   Bottom empty bands were caused by:
   1) .reveal opacity ~0 while height still reserved (primary)
   2) stacked section padding-bottom + next padding-top
   Strategy: NO bottom padding on content sections; ONE top gap
   on the following section (= 40px boundary).
   NOTE: do NOT use :not(#id) here — it adds ID specificity and
   defeats the adjacent-section gap rule.
   ========================================================= */
:root {
  --section-padding: 40px 0;
  --section-pad-y: 40px;
  --section-gap: 40px; /* sole boundary between sections */
  --section-header-mb: 1.75rem;
  --section-content-mt: 0;
}

/* Hero: viewport height, no section padding */
#hero.hero.section {
  padding: 0 !important;
  height: auto;
  min-height: 100vh;
}

/* All main sections: content height only, no bottom pad */
main.main > section.section {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  justify-content: unset !important;
  align-content: unset !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: clip;
}

/* Restore hero min-height after the generic min-height:0 rule */
main.main > #hero.hero.section {
  min-height: 100vh !important;
  overflow: hidden;
}

/*
  Sole inter-section gap (~40px): previous section ends at last content,
  next section opens with ONE controlled top pad.
*/
main.main > section.section + section.section {
  padding-top: var(--section-gap) !important;
}

/* Kill trailing margins that extend past the last visible content */
main.main > section.section > *:last-child,
main.main > section.section .container:last-child,
main.main > section.section .carousel-viewport:last-child,
main.main > section.section .row:last-child,
main.main > section.section .timeline-item:last-child {
  margin-bottom: 0 !important;
}

main.main > section.section .timeline-item:last-child {
  padding-bottom: 0 !important;
}

.section-title {
  text-align: center;
  margin-bottom: var(--section-header-mb) !important;
  padding-bottom: 0 !important;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem) !important;
  font-weight: 750 !important;
  margin-bottom: 0.65rem !important;
}

.section-title h2::after {
  width: 56px !important;
  height: 3px !important;
  bottom: -6px !important;
  border-radius: var(--radius-pill);
}

.section-title p {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  max-width: 640px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rg-blue);
  margin-bottom: 0.45rem;
}

.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Header → content coupling (all major sections) */
#about .section-title,
#services .section-title,
#portfolio .section-title,
#success-exports .section-title,
#team .section-title,
#gallery .section-title,
#ai-recommendations .section-title,
#faq .section-title {
  margin-bottom: var(--section-header-mb) !important;
}

#about.about .about-stats {
  margin-top: 1.25rem !important;
}

#about.about .about-timeline {
  margin-top: 1rem !important;
}

#about.about .section-title.mb-3,
#about.about .section-title.mb-4 {
  margin-bottom: 1rem !important;
}

#about.about .row.mt-4,
#about.about .row.mt-5 {
  margin-top: 1.25rem !important;
}

#portfolio .portfolio-filters {
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}

#team.team .team-grid,
#ai-recommendations .ai-reco-grid {
  margin-top: 0 !important;
  gap: 1.15rem;
}

#gallery.gallery .section-title h2,
#success-exports.success-exports .section-title h2 {
  margin-bottom: 0.65rem !important;
  padding-bottom: 0 !important;
}

#gallery.gallery .carousel-viewport,
#success-exports.success-exports .carousel-viewport {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 6px !important;
  min-height: 0 !important;
  height: auto !important;
}

#gallery.gallery .gallery-empty,
#success-exports.success-exports .success-exports-empty,
#gallery.gallery .gallery-loading,
#success-exports.success-exports .loading {
  min-height: 0 !important;
  padding: 1rem !important;
}

#gallery.gallery .gallery-box {
  height: 300px;
}

#gallery.gallery .gallery-image {
  height: 200px;
}

/* Contact bottom pad only — top comes from shared system / boundary collapse */
#contact.contact-unified {
  padding-bottom: 56px !important;
}

@media (max-width: 991px) {
  :root {
    --section-gap: 36px;
    --section-pad-y: 36px;
    --section-padding: 36px 0;
    --section-header-mb: 1.5rem;
  }
}

@media (max-width: 575px) {
  :root {
    --section-gap: 32px;
    --section-pad-y: 32px;
    --section-padding: 32px 0;
    --section-header-mb: 1.35rem;
  }

  #gallery.gallery .gallery-box {
    height: 280px;
  }

  #gallery.gallery .gallery-image {
    height: 180px;
  }
}

/* Ambient mesh behind sections */
.section.has-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

.section.has-mesh > * {
  position: relative;
  z-index: 1;
}

/* ---------- About storytelling ---------- */
.about-story {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.25rem;
}

.about-pill {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.about-pill:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.about-pill h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.about-pill p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 780;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-card .stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 550;
}

.about-timeline {
  margin-top: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--rg-blue), var(--rg-cyan));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.15rem 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rg-blue);
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12);
}

.timeline-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.about-media {
  position: relative;
}

.about-media img {
  border-radius: var(--radius-lg) !important;
}

.about-media-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: var(--gradient-primary);
  opacity: 0.22;
  filter: blur(40px);
  border-radius: var(--radius-xl);
  z-index: -1;
}

@media (max-width: 991px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .about-story { grid-template-columns: 1fr; }
}

/* ---------- Premium service cards ---------- */
.service-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) !important;
  padding: 2rem 1.75rem !important;
  background:
    linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    var(--gradient-primary) border-box !important;
  border: 1px solid transparent !important;
  box-shadow: var(--shadow-sm) !important;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 180, 216, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
}

.service-item:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-xl) !important;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item .icon {
  width: 58px;
  height: 58px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 86, 179, 0.08);
  color: var(--rg-blue);
  font-size: 1.55rem !important;
  margin-bottom: 1.25rem !important;
  transition: transform var(--transition-medium), background var(--transition-medium), color var(--transition-medium);
}

.service-item:hover .icon {
  transform: translateY(-4px) rotate(-6deg);
  background: var(--gradient-primary);
  color: #fff;
}

.service-item h3 {
  font-family: var(--font-display);
  font-weight: 720 !important;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more i {
  transition: transform 0.3s var(--ease-out);
}

.service-item:hover .read-more i {
  transform: translateX(4px);
}

/* ---------- Portfolio polish ---------- */
.portfolio-filters li {
  border-radius: var(--radius-pill) !important;
  border-width: 1px !important;
  font-size: 0.88rem;
}

/*
  Portfolio card separation only.
  Grid uses Bootstrap row + g-0 (zero gutters) + Isotope absolute layout.
  Restore gutters via BS variables so Isotope still measures padded columns correctly.
*/
#portfolio .isotope-container.row.g-0 {
  --bs-gutter-x: clamp(10px, 1.2vw, 16px);
  --bs-gutter-y: clamp(10px, 1.2vw, 16px);
}

#portfolio .isotope-container > .portfolio-item.isotope-item {
  padding: calc(var(--bs-gutter-y) * 0.5) calc(var(--bs-gutter-x) * 0.5);
  margin-bottom: 0;
}

.portfolio-content {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.portfolio-content img {
  transition: transform 0.7s var(--ease-out);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-content:hover img {
  transform: scale(1.08);
}

/* ---------- Team ---------- */
.team {
  background: linear-gradient(180deg, var(--rg-navy) 0%, var(--rg-navy-soft) 100%) !important;
  color: #fff;
}

.team .section-title h2,
.team .section-title p {
  color: #fff !important;
}

.team .section-title h2::after {
  background: linear-gradient(90deg, var(--rg-cyan), #fff);
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.team-grid .member {
  max-width: 300px;
  width: 100%;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px);
}

.member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* =========================================================
   Contact section — dark navy area
   LEFT = information cards | RIGHT = elevated form card
   ========================================================= */
#contact.contact-unified {
  --contact-bg-deep: #0a1628;     /* --rg-navy */
  --contact-bg: #12263f;          /* --rg-navy-soft */
  --contact-info-card: #18263a;
  --contact-form-card: #202b3d;
  --contact-input: #111c2d;
  --contact-border: rgba(255, 255, 255, 0.16);
  --contact-muted: rgba(255, 255, 255, 0.65);

  background: linear-gradient(165deg, var(--contact-bg-deep) 0%, var(--contact-bg) 60%, #152033 100%) !important;
  /* Top padding comes from the shared section system (collapsed at boundaries) */
  padding-bottom: 56px !important;
  overflow: hidden;
}

#contact.contact-unified .section-title {
  margin-bottom: 24px;
}

#contact.contact-unified .section-title h2,
#contact.contact-unified .section-title p {
  color: #ffffff !important;
}

#contact.contact-unified .section-eyebrow {
  color: #7dd3fc;
}

#contact.contact-unified .section-title h2::after {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr; /* ~43% / 57% */
  gap: 24px;
  align-items: start;
}

/* LEFT — information panel */
.contact-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

#contact.contact-unified .info-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contact.contact-unified a.info-item,
#contact.contact-unified .info-item {
  margin: 0 !important;
  padding: 14px 16px !important;
  background: #18263a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#contact.contact-unified a.info-item:hover,
#contact.contact-unified .info-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

#contact.contact-unified a.info-item:hover i,
#contact.contact-unified .info-item:hover i {
  background: rgba(37, 99, 235, 0.22);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  color: #93c5fd;
}

#contact.contact-unified .info-item i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  margin-right: 12px;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

#contact.contact-unified .info-item h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 4px;
  color: #ffffff !important;
}

#contact.contact-unified .info-item p,
#contact.contact-unified .info-item .info-email {
  margin: 0;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#contact.contact-unified .info-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  line-height: 1.2;
}

#contact.contact-unified a.info-item:hover .info-action {
  color: #bfdbfe;
}

#contact.contact-unified .info-action i {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  font-size: 0.85rem;
  color: inherit;
}

#contact.contact-unified a.rg-map,
#contact.contact-unified .rg-map {
  margin-top: 0;
  min-height: 96px;
  max-height: 112px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.1)),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255, 255, 255, 0.03) 18px, rgba(255, 255, 255, 0.03) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.03) 18px, rgba(255, 255, 255, 0.03) 19px);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#contact.contact-unified a.rg-map:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

#contact.contact-unified .rg-map strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

#contact.contact-unified .rg-map .map-action {
  justify-content: center;
  margin-top: 0;
}

#contact.contact-unified .info-help-card {
  background: #18263a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#contact.contact-unified .info-help-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

#contact.contact-unified .info-help-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

#contact.contact-unified .info-help-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.28);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

#contact.contact-unified .info-help-wa:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #bbf7d0;
  transform: translateY(-1px);
}

#contact.contact-unified .info-help-wa i {
  font-size: 1rem;
  color: #4ade80;
}

/* RIGHT — elevated FORM CARD (visually distinct) */
.contact-form-card {
  background: var(--contact-form-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-form-head {
  margin-bottom: 20px;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); /* ~28–30px */
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-form-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 42ch;
}

#contact.contact-unified .php-email-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #ffffff !important;
}

#contact.contact-unified .php-email-form .form-label {
  display: block;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 8px;
}

#contact.contact-unified .php-email-form .form-control {
  height: 48px;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding: 0 14px !important;
  background: var(--contact-input) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  margin-bottom: 0 !important;
  font-size: 0.92rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#contact.contact-unified .php-email-form textarea.form-control {
  height: 130px;
  min-height: 120px;
  max-height: 140px;
  resize: vertical;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

#contact.contact-unified .php-email-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

#contact.contact-unified .php-email-form .form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
  background: var(--contact-input) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline: none;
}

/* CAPTCHA inside form card */
#contact.contact-unified .rg-captcha-wrap {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

#contact.contact-unified .rg-captcha-wrap .form-label {
  color: #ffffff !important;
  font-size: 13px;
  margin-bottom: 8px;
}

#contact.contact-unified .rg-captcha-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.2rem 0.35rem;
  overflow: hidden;
}

#contact.contact-unified .rg-captcha-box img,
#contact.contact-unified #captcha-image {
  display: block;
  width: auto;
  max-width: 140px;
  height: 34px;
  object-fit: contain;
  background: #ffffff;
  border: 0 !important;
  border-radius: 6px;
}

#contact.contact-unified .rg-captcha-reload {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 6px;
  color: #93c5fd !important;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  line-height: 1;
}

#contact.contact-unified .rg-captcha-reload:hover {
  color: #ffffff !important;
}

#contact.contact-unified #captcha-field,
#contact.contact-unified .php-email-form #captcha-field {
  background: #0b1524 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  height: 44px;
  min-height: 44px;
  padding: 0 14px !important;
  font-size: 0.9rem;
  border-radius: 10px !important;
}

#contact.contact-unified #captcha-field::placeholder,
#contact.contact-unified .php-email-form #captcha-field::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

#contact.contact-unified #captcha-field:focus,
#contact.contact-unified .php-email-form #captcha-field:focus {
  background: #0b1524 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

/* Submit button */
#contact.contact-unified .php-email-form button[type="submit"] {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin-top: 4px;
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
  color: #ffffff !important;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#contact.contact-unified .php-email-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

#contact.contact-unified .php-email-form button[type="submit"]:active {
  transform: translateY(0);
}

#contact.contact-unified .loading,
#contact.contact-unified .error-message,
#contact.contact-unified .sent-message {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

#contact.contact-unified .error-message {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 10px;
  padding: 8px 12px;
}

#contact.contact-unified .sent-message {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 10px;
  padding: 8px 12px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #contact.contact-unified {
    padding-bottom: 48px !important;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  #contact.contact-unified a.rg-map,
  #contact.contact-unified .rg-map {
    min-height: 92px;
    max-height: 108px;
  }
}

@media (max-width: 575px) {
  #contact.contact-unified {
    padding-bottom: 44px !important;
  }

  .contact-form-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .contact-form-title {
    font-size: 1.45rem;
  }

  #contact.contact-unified .info-item {
    padding: 12px !important;
  }

  #contact.contact-unified .php-email-form .form-control {
    height: 46px;
  }

  #contact.contact-unified .php-email-form textarea.form-control {
    height: 120px;
    max-height: 140px;
  }

  #contact.contact-unified .rg-captcha-wrap .row > [class*="col"] {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--rg-navy) !important;
}

.footer::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.22), transparent 60%);
  pointer-events: none;
}

.footer-newsletter-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.footer-newsletter-card h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-newsletter-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1rem;
}

.footer-newsletter-form button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.15rem;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 650;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--rg-blue);
  color: #fff;
}

.footer video {
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  width: 100%;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

/* ---------- WhatsApp ---------- */
.rg-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: var(--z-overlay);
  font-family: var(--font-body);
}

.rg-wa-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(37, 211, 102, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform var(--transition-fast);
}

.rg-wa-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: rgWaPulse 2s ease-out infinite;
}

@keyframes rgWaPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.rg-wa-btn:hover {
  transform: scale(1.08);
  color: #fff;
}

.rg-wa-panel {
  position: absolute;
  right: 0;
  bottom: 4.5rem;
  width: min(320px, calc(100vw - 2rem));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: 0.35s var(--ease-out);
}

.rg-whatsapp.is-open .rg-wa-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rg-wa-head {
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff;
  padding: 1rem 1.1rem;
}

.rg-wa-head strong {
  display: block;
  font-size: 0.98rem;
}

.rg-wa-head span {
  font-size: 0.78rem;
  opacity: 0.9;
}

.rg-wa-body {
  padding: 1rem 1.1rem 1.15rem;
}

.rg-wa-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.rg-wa-actions {
  display: grid;
  gap: 0.5rem;
}

.rg-wa-actions a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.rg-wa-actions a:hover {
  background: rgba(37, 211, 102, 0.12);
  transform: translateX(3px);
}

/* ---------- AI Assistant (above WhatsApp, replaces scroll-top) ---------- */
.rg-ai {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + 58px + 0.75rem);
  left: auto;
  z-index: var(--z-overlay);
}

.rg-ai-btn {
  width: 58px;
  height: 58px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
  font-weight: 650;
  font-size: 0; /* hide "Ask AI" label — icon only like scroll button */
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.rg-ai-btn:hover {
  transform: translateY(-2px) scale(1.05);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
}

.rg-ai-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.rg-ai-panel {
  position: absolute;
  right: 0;
  left: auto;
  bottom: 4.5rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 7rem));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: 0.35s var(--ease-out);
}

.rg-ai.is-open .rg-ai-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rg-ai-head {
  padding: 1rem 1.1rem;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rg-ai-head h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

.rg-ai-head small {
  display: block;
  opacity: 0.85;
  font-size: 0.75rem;
}

.rg-ai-close {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.rg-ai-messages {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.rg-bubble {
  max-width: 88%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rg-bubble.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.rg-bubble.user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.rg-ai-thinking {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.rg-ai-thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rg-blue);
  animation: rgThink 1.2s infinite ease-in-out;
}

.rg-ai-thinking i:nth-child(2) { animation-delay: 0.15s; }
.rg-ai-thinking i:nth-child(3) { animation-delay: 0.3s; }

@keyframes rgThink {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.rg-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 0.75rem;
}

.rg-ai-prompts button {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: 0.25s ease;
}

.rg-ai-prompts button:hover {
  border-color: var(--rg-blue);
  color: var(--rg-blue);
}

.rg-ai-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border-color);
}

.rg-ai-input input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
}

.rg-ai-input button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
}

.rg-ai-reco {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rg-ai-reco a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 86, 179, 0.06);
  color: var(--rg-blue);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

/* ---------- AI Recommendations section ---------- */
.ai-reco-section {
  background: var(--bg-secondary);
}

.ai-reco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ai-reco-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.ai-reco-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.ai-reco-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rg-cyan);
  margin-bottom: 0.65rem;
}

.ai-reco-card h3 {
  font-size: 1.15rem;
  font-weight: 720;
  margin-bottom: 0.55rem;
}

.ai-reco-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .ai-reco-grid { grid-template-columns: 1fr; }

  .rg-whatsapp {
    right: 1rem;
    bottom: 1rem;
  }

  .rg-ai {
    left: auto;
    right: 1rem;
    bottom: calc(1rem + 58px + 0.7rem);
  }

  .rg-ai-panel {
    right: 0;
    width: min(360px, calc(100vw - 1.5rem));
  }
}

/* Hide scroll-top — replaced by AI chatbot */
.scroll-top,
#scroll-top {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---------- Page title (service details) ---------- */
.page-title {
  background: linear-gradient(135deg, var(--rg-navy), var(--rg-blue-deep)) !important;
  padding: 8rem 0 3.5rem !important;
  margin-top: 0 !important;
}

.page-title h1 {
  font-family: var(--font-display);
  font-weight: 750;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.product-chips span {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 86, 179, 0.08);
  color: var(--rg-blue);
  font-weight: 600;
}

.service-details-nav {
  position: sticky;
  top: 6rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  margin: -1rem auto 2rem;
  width: min(1100px, calc(100% - 2rem));
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.service-details-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text-secondary);
  text-decoration: none;
}

.service-details-nav a:hover,
.service-details-nav a.active {
  background: var(--gradient-primary);
  color: #fff;
}

/* ---------- Gallery / exports overrides ---------- */
.gallery,
.success-exports {
  background: var(--bg-secondary) !important;
}

.gallery-box,
.success-exports .box {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border-color) !important;
}

/* ---------- Reveal: NEVER hide content (invisible height = fake empty bands) ---------- */
.reveal,
.reveal.reveal-pending,
.reveal.reveal-pending:not(.is-in),
.reveal.is-in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/*
 * CRITICAL LAYOUT FIX:
 * AOS vendor CSS sets opacity:0 + translateY(100px) until .aos-animate.
 * With Lenis smooth scroll, AOS often never refreshes → content keeps layout
 * height but looks like a huge empty hole (About / Services / Portfolio /
 * Exports / Promoters / Gallery / AI reco).
 * Content sections must stay visible. Soft motion only on Hero.
 */
html:not(.no-js) #about [data-aos],
html:not(.no-js) #services [data-aos],
html:not(.no-js) #portfolio [data-aos],
html:not(.no-js) #success-exports [data-aos],
html:not(.no-js) #team [data-aos],
html:not(.no-js) #gallery [data-aos],
html:not(.no-js) #ai-recommendations [data-aos],
html:not(.no-js) #faq [data-aos],
html:not(.no-js) #contact [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Hero may still use a short fade-up without creating section holes */
html:not(.no-js) .hero [data-aos="fade-up"] {
  transform: translate3d(0, 16px, 0);
}

html:not(.no-js) .hero [data-aos="fade-up"].aos-animate {
  transform: none;
}

#services .service-item {
  opacity: 1 !important;
}

/* Content section containers — never reserve height */
#about.about .container,
#services.services .container,
#portfolio.portfolio .container,
#team.team .container,
#ai-recommendations .container,
#faq.faq .container {
  height: auto !important;
  min-height: 0 !important;
}

#success-exports .se_container,
#gallery #gallery-container {
  align-items: stretch;
  min-height: 0 !important;
}

#portfolio .isotope-layout,
#portfolio .isotope-container {
  margin-top: 0 !important;
  min-height: 0 !important;
}

#team.team .team-grid {
  align-items: stretch;
  justify-content: center;
}

#team.team .member.reveal {
  opacity: 1;
}

/* About: collapse internal dead air */
#about.about .about-story {
  margin-top: 1.15rem !important;
  gap: 1rem;
}

#about.about .about-content .mt-4 {
  margin-top: 1rem !important;
}

.stat-card {
  padding: 1.1rem 0.85rem !important;
}

.about-pill {
  padding: 1.1rem 1.15rem !important;
}

/* ---------- 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .rg-cursor,
  .rg-cursor-follower,
  .hero-particles {
    display: none !important;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid rgba(0, 180, 216, 0.55);
  outline-offset: 3px;
}
