/* ==========================================================================
   RAMCHANDRA GROUP — Corporate Website
   Design System: variables, base, layout, components, animations
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (derived from the Ramchandra Group monogram) */
  --rc-black: #0a0a0b;
  --rc-ink: #141416;
  --rc-charcoal: #202024;
  --rc-gray-900: #333338;
  --rc-gray-700: #56565c;
  --rc-gray-500: #83838a;
  --rc-gray-300: #c9c8c3;
  --rc-gray-200: #e4e2dd;
  --rc-cream: #f8f6f2;
  --rc-white: #ffffff;

  --rc-gold: #b08d3f;
  --rc-gold-light: #d9bb79;
  --rc-gold-dark: #8a6b2a;
  --rc-gold-rgb: 176, 141, 63;

  /* Semantic */
  --bg-body: var(--rc-cream);
  --bg-dark: var(--rc-black);
  --text-body: var(--rc-gray-900);
  --text-muted: var(--rc-gray-700);
  --border-soft: rgba(10, 10, 11, 0.09);
  --border-soft-light: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  --header-h: 92px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--rc-black);
}

.font-body { font-family: var(--font-body); }

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

::selection {
  background: var(--rc-gold);
  color: var(--rc-black);
}

img { max-width: 100%; height: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rc-gold-dark);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--rc-gold);
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 640px;
}

.section-pad {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.bg-cream { background: var(--rc-cream); }
.bg-black { background: var(--rc-black); color: var(--rc-gray-300); }
.bg-black h1, .bg-black h2, .bg-black h3, .bg-black h4 { color: var(--rc-white); }
.bg-ink { background: var(--rc-ink); }
.bg-charcoal { background: var(--rc-charcoal); }

.text-gold { color: var(--rc-gold) !important; }
.divider-gold {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--rc-gold), transparent);
}

/* ---------- Buttons ---------- */
.btn-rc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  cursor: pointer;
}
.btn-rc:active { transform: translateY(1px); }

.btn-rc-gold {
  background: var(--rc-gold);
  color: var(--rc-black);
}
.btn-rc-gold:hover { background: var(--rc-gold-dark); color: var(--rc-white); }

.btn-rc-outline-dark {
  border-color: var(--rc-black);
  color: var(--rc-black);
  background: transparent;
}
.btn-rc-outline-dark:hover { background: var(--rc-black); color: var(--rc-white); }

.btn-rc-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--rc-white);
  background: transparent;
}
.btn-rc-outline-light:hover { background: var(--rc-white); color: var(--rc-black); border-color: var(--rc-white); }

.btn-rc .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(255,255,255,0.45);
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(2.8); opacity: 0; }
}

/* ---------- Navbar ---------- */
.rc-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1040;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-med) var(--ease), height var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.rc-header.is-scrolled {
  height: 76px;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.rc-header .navbar-brand img { height: 40px; transition: height var(--dur-med) var(--ease); }
.rc-header.is-scrolled .navbar-brand img { height: 34px; }

.rc-header .nav-link {
  color: var(--rc-white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  position: relative;
  opacity: 0.92;
}
.rc-header .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.15rem;
  height: 1px;
  background: var(--rc-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.rc-header .nav-link:hover::after,
.rc-header .nav-link.active::after { transform: scaleX(1); }
.rc-header .nav-link.active { color: var(--rc-gold-light); opacity: 1; }

.rc-header .navbar-toggler {
  border: none;
  color: var(--rc-white);
  font-size: 1.4rem;
}
.rc-header .navbar-toggler:focus { box-shadow: none; }

/* Mega menu */
.mega-menu-wrap { position: static; }
.mega-menu {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: rgba(10,10,11,0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-soft-light);
  padding: 2.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-menu a.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 0.5rem;
  color: var(--rc-gray-300);
  border-radius: 6px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.mega-menu a.mega-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--rc-white);
  padding-left: 0.9rem;
}
.mega-menu a.mega-item i {
  font-size: 1.3rem;
  color: var(--rc-gold);
  margin-top: 0.15rem;
}
.mega-menu a.mega-item .mega-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--rc-white);
  display: block;
}
.mega-menu a.mega-item .mega-sub {
  font-size: 0.82rem;
  color: var(--rc-gray-500);
}

@media (max-width: 991.98px) {
  .mega-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0.5rem 0 0.5rem 1rem;
  }
  .has-mega.mega-open .mega-menu { display: block; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--rc-gold-dark), var(--rc-gold-light));
  z-index: 1060;
}

/* Offcanvas mobile menu */
.offcanvas.rc-offcanvas {
  background: var(--rc-black);
  color: var(--rc-white);
  width: min(360px, 88vw);
}
.rc-offcanvas .nav-link { color: var(--rc-gray-300); padding: 0.7rem 0 !important; }
.rc-offcanvas .nav-link:hover { color: var(--rc-gold-light); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--rc-black);
  color: var(--rc-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 1030;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  border: 1px solid rgba(255,255,255,0.12);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--rc-gold); color: var(--rc-black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--rc-black);
  color: var(--rc-white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.72) 55%, rgba(10,10,11,0.94) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.25) 60%);
}
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rc-gold-light);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
  color: var(--rc-white);
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: italic;
  color: var(--rc-gold-light);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

/* Floating decorative elements */
.floating-el {
  position: absolute;
  border: 1px solid rgba(var(--rc-gold-rgb), 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.floating-el.f1 { width: 260px; height: 260px; top: 12%; right: 8%; animation: float 9s ease-in-out infinite; }
.floating-el.f2 { width: 140px; height: 140px; bottom: 16%; right: 22%; animation: float 7s ease-in-out infinite reverse; }
.floating-el.f3 { width: 60px; height: 60px; top: 38%; right: 30%; background: rgba(var(--rc-gold-rgb), 0.12); animation: float 6s ease-in-out infinite; }

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

.scroll-cue {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue .line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--rc-gold);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* Page header (interior pages) */
.page-header {
  position: relative;
  padding-top: calc(var(--header-h) + 5.5rem);
  padding-bottom: 4rem;
  background: var(--rc-black);
  color: var(--rc-white);
  overflow: hidden;
}
.page-header .breadcrumb-rc {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rc-gray-500);
}
.page-header .breadcrumb-rc a:hover { color: var(--rc-gold-light); }
.page-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.28;
}

/* ---------- Stats ---------- */
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--rc-gold-light);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rc-gray-300);
}

/* ---------- Cards ---------- */
.rc-card {
  background: var(--rc-white);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.rc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10,10,11,0.12);
}

/* Business vertical card */
.biz-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--rc-white);
  isolation: isolate;
}
.biz-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease);
  z-index: -2;
}
.biz-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.05) 0%, rgba(10,10,11,0.92) 92%);
  z-index: -1;
}
.biz-card:hover img { transform: scale(1.1); }
.biz-card .biz-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--rc-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: rgba(10,10,11,0.55);
}
.biz-card .biz-body { padding: 2rem; width: 100%; }
.biz-card h3 { color: var(--rc-white); font-size: 1.4rem; margin-bottom: 0.5rem; }
.biz-card p { color: rgba(255,255,255,0.75); font-size: 0.93rem; margin-bottom: 1rem; }
.biz-card .biz-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rc-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--dur-fast) var(--ease);
}
.biz-card .biz-link:hover { gap: 0.9rem; }

/* Value / feature card */
.value-card {
  padding: 2.4rem 1.8rem;
  text-align: center;
  border-radius: 12px;
  background: var(--rc-white);
  border: 1px solid var(--border-soft);
  height: 100%;
}
.value-card .value-icon {
  width: 68px; height: 68px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rc-black);
  color: var(--rc-gold);
  font-size: 1.6rem;
}

/* Timeline */
.rc-timeline { position: relative; padding-left: 2.4rem; }
.rc-timeline::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--rc-gray-300);
}
.rc-timeline-item { position: relative; padding-bottom: 2.6rem; }
.rc-timeline-item:last-child { padding-bottom: 0; }
.rc-timeline-item::before {
  content: "";
  position: absolute; left: -2.4rem; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--rc-cream);
  border: 2px solid var(--rc-gold);
}
.rc-timeline-year {
  font-family: var(--font-display);
  color: var(--rc-gold-dark);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

/* Testimonial */
.testimonial-card {
  background: var(--rc-white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 2.4rem;
  height: 100%;
}
.testimonial-card i.bi-quote { font-size: 2rem; color: var(--rc-gold); }
.testimonial-name { font-family: var(--font-display); margin-bottom: 0; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* Leadership avatar placeholder */
.avatar-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--rc-charcoal), var(--rc-black));
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-gold);
  font-size: 3rem;
  border: 1px solid var(--border-soft-light);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  isolation: isolate;
}
.gallery-item img { transition: transform 0.7s var(--ease); width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,11,0.85) 100%);
  display: flex; align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--rc-white); font-size: 0.85rem; letter-spacing: 0.05em; }

/* News / careers cards */
.news-card { border-radius: 12px; overflow: hidden; background: var(--rc-white); border: 1px solid var(--border-soft); height: 100%; }
.news-card .news-img { height: 220px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.08); }
.news-card .news-body { padding: 1.6rem; }
.news-date { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rc-gold-dark); }

.job-card {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--rc-white);
}

/* CTA band */
.cta-band {
  position: relative;
  background: var(--rc-black);
  color: var(--rc-white);
  border-radius: 16px;
  padding: clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(var(--rc-gold-rgb), 0.22), transparent 55%);
}

/* Contact */
.contact-info-item {
  display: flex; gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-info-item .ci-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: var(--rc-black);
  color: var(--rc-gold);
  display: flex; align-items: center; justify-content: center;
}
.form-control-rc, .form-select-rc {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  background: var(--rc-white);
  width: 100%;
  font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-control-rc:focus, .form-select-rc:focus {
  outline: none;
  border-color: var(--rc-gold);
  box-shadow: 0 0 0 3px rgba(var(--rc-gold-rgb), 0.16);
}
.map-embed { border-radius: 12px; overflow: hidden; filter: grayscale(0.35) contrast(1.05); border: 1px solid var(--border-soft); }

/* ---------- Footer ---------- */
.rc-footer { background: var(--rc-black); color: var(--rc-gray-300); }
.rc-footer .footer-logo img { height: 42px; }
.rc-footer h5 { color: var(--rc-white); font-size: 1rem; letter-spacing: 0.06em; margin-bottom: 1.3rem; }
.rc-footer a.footer-link { color: var(--rc-gray-500); display: block; margin-bottom: 0.65rem; font-size: 0.92rem; transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease); }
.rc-footer a.footer-link:hover { color: var(--rc-gold-light); padding-left: 4px; }
.rc-footer .social-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border-soft-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-white);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.rc-footer .social-icon:hover { background: var(--rc-gold); color: var(--rc-black); border-color: var(--rc-gold); }
.rc-footer .footer-bottom { border-top: 1px solid var(--border-soft-light); padding-block: 1.5rem; font-size: 0.85rem; color: var(--rc-gray-500); }

/* ---------- Preloader ---------- */
#rc-preloader {
  position: fixed; inset: 0;
  background: var(--rc-black);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
#rc-preloader img { height: 52px; opacity: 0.95; animation: pulseLogo 1.4s ease-in-out infinite; }
@keyframes pulseLogo { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
#rc-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Utility animation classes (non-AOS) ---------- */
.hover-lift { transition: transform var(--dur-fast) var(--ease); }
.hover-lift:hover { transform: translateY(-4px); }

/* ---------- Swiper overrides ---------- */
.swiper-pagination-bullet { background: var(--rc-gold); opacity: 0.4; }
.swiper-pagination-bullet-active { opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: var(--rc-gold) !important; }

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

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .rc-header { background: rgba(10,10,11,0.96); }
  .biz-card { height: 340px; }
}
@media (max-width: 575.98px) {
  .section-pad { padding-block: 3.2rem; }
  .biz-card { height: 300px; }
}
