/* Rajdhani Chemicals — homepage (premium B2B) */

:root {
  --rc-ink: #0b1220;
  --rc-ink-soft: #1e293b;
  --rc-slate: #475569;
  --rc-mist: #94a3b8;
  --rc-line: rgba(148, 163, 184, 0.35);
  --rc-blue: #0c4a6e;
  --rc-blue-bright: #0369a1;
  --rc-surface: #f8fafc;
  --rc-card: #ffffff;
  --rc-radius: 14px;
  --rc-radius-sm: 10px;
  --rc-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  --rc-shadow-hover: 0 32px 64px rgba(15, 23, 42, 0.12);
  --rc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body.rc-homepage {
  font-family: "Inter", "Cairo", system-ui, sans-serif;
  color: var(--rc-ink-soft);
  background: var(--rc-surface);
  letter-spacing: -0.01em;
}

body.rc-homepage .top-bar {
  padding: 4px 0;
  max-height: 38px;
}

body.rc-homepage main.homepage {
  margin-top: 0 !important;
}

body.rc-homepage.header-condensed main.homepage {
  margin-top: 0 !important;
}

body.rc-homepage .line {
  padding-left: clamp(1.25rem, 3.5vw, 2rem);
  padding-right: clamp(1.25rem, 3.5vw, 2rem);
  box-sizing: border-box;
}

/* Homepage nav */
body.rc-homepage nav.rc-site-nav.fixed .logo.rc-nav-logo {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* —— Hero —— */
.rc-hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding: clamp(5.5rem, 14vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  isolation: isolate;
  overflow: hidden;
}

.rc-hero-media {
  position: absolute;
  inset: 0;
  background: #0b1220 url("../img/carousel-01.jpg") center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 1.4s var(--rc-ease);
}

.rc-hero:hover .rc-hero-media {
  transform: scale(1.06);
}

.rc-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 22, 0.78);
}

.rc-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.rc-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.rc-hero-copy {
  max-width: 44rem;
}

.rc-hero-enter {
  animation: rcHeroIn 1s var(--rc-ease) both;
}

@keyframes rcHeroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rc-hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.rc-hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1.02rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
  max-width: 38rem;
}

.rc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--rc-ease), box-shadow 0.35s var(--rc-ease), background 0.35s ease,
    border-color 0.35s ease, color 0.35s ease;
}

.rc-btn-primary {
  background: #f8fafc;
  color: var(--rc-ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.rc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.rc-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.rc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.rc-btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #f8fafc;
}

.rc-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* —— Sections —— */
.rc-section {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

.rc-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rc-blue-bright);
}

.rc-heading-lg {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--rc-ink);
}

.rc-heading-sm {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--rc-ink);
}

.rc-section-lead {
  margin: 0 0 2.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--rc-slate);
}

.rc-prose {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--rc-slate);
}

/* About */
.rc-about {
  background: var(--rc-card);
}

.rc-about-content {
  max-width: 52rem;
}

.rc-about-content .rc-heading-sm {
  margin-bottom: 1.25rem;
}

.rc-about-content .rc-prose + .rc-prose {
  margin-top: 1rem;
}

.rc-about-tagline {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rc-ink);
}

/* Products */
.rc-products {
  background: var(--rc-surface);
}

.rc-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.rc-product-card {
  border-radius: calc(var(--rc-radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: var(--rc-card);
  box-shadow: var(--rc-shadow);
  transition: transform 0.45s var(--rc-ease), box-shadow 0.45s var(--rc-ease), border-color 0.35s ease;
}

.rc-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--rc-shadow-hover);
  border-color: rgba(56, 189, 248, 0.35);
}

.rc-product-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.rc-product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rc-product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 18, 32, 0.55) 100%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.rc-product-card:hover .rc-product-visual::after {
  opacity: 1;
}

.rc-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--rc-ease);
}

.rc-product-card:hover .rc-product-visual img {
  transform: scale(1.06);
}

.rc-product-body {
  padding: 1.35rem 1.35rem 1.45rem;
}

.rc-product-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rc-product-body p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rc-slate);
}

.rc-product-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rc-blue-bright);
}

.rc-product-card:hover .rc-product-cta {
  color: var(--rc-blue);
}

/* Industries */
.rc-industries {
  background: var(--rc-ink);
  color: #e2e8f0;
}

.rc-industries .rc-heading-lg {
  margin-bottom: 1.5rem;
}

.rc-eyebrow-on-dark {
  color: rgba(125, 211, 252, 0.95);
}

.rc-heading-on-dark {
  color: #f8fafc !important;
}

.rc-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.rc-industry-card {
  position: relative;
  min-height: 4.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--rc-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  cursor: default;
  overflow: hidden;
  transition: min-height 0.4s var(--rc-ease), transform 0.35s var(--rc-ease),
    border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.rc-industry-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(125, 211, 252, 0.7);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.rc-industry-card:hover,
.rc-industry-card:focus-within {
  min-height: 6.5rem;
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.rc-industry-card:hover::before,
.rc-industry-card:focus-within::before {
  opacity: 1;
}

.rc-industry-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.rc-industry-detail {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
  transform: translateY(6px);
  transition: max-height 0.45s var(--rc-ease), opacity 0.35s ease, transform 0.35s var(--rc-ease),
    margin 0.35s ease;
}

.rc-industry-card:hover .rc-industry-detail,
.rc-industry-card:focus-within .rc-industry-detail {
  max-height: 3.5rem;
  opacity: 1;
  margin-top: 0.45rem;
  transform: translateY(0);
}

.rc-industry-detail strong {
  color: #e2e8f0;
  font-weight: 600;
}

.rc-industries-tagline {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: rgba(203, 213, 225, 0.85);
}

.rc-industries-tagline strong {
  color: #f8fafc;
  font-weight: 600;
}

/* CTA */
.rc-cta {
  background: var(--rc-surface);
}

.rc-cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--rc-radius) + 4px);
  background: #070b12;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.35);
}

.rc-cta-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f8fafc;
  max-width: 22rem;
}

.rc-cta-sub {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.92);
}

.rc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rc-cta .rc-btn-primary {
  background: #f8fafc;
  color: var(--rc-ink);
}

/* Reveal on scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--rc-ease), transform 0.7s var(--rc-ease);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .rc-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rc-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .rc-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .rc-footer-brand {
    grid-column: 1 / -1;
  }

  .rc-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .rc-hero {
    min-height: 100svh;
    padding-top: clamp(5rem, 22vw, 7rem);
  }

  .rc-hero-actions .rc-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.5rem);
    justify-content: center;
  }

  .rc-footer-inner {
    grid-template-columns: 1fr;
  }

  .rc-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark theme */
[data-theme="dark"] body.rc-homepage {
  background: var(--theme-bg, #0f172a);
  color: var(--theme-text, #e2e8f0);
}

[data-theme="dark"] .rc-about {
  background: var(--theme-surface, #1e293b);
}

[data-theme="dark"] .rc-heading-lg,
[data-theme="dark"] .rc-heading-sm {
  color: var(--theme-text, #f1f5f9);
}

[data-theme="dark"] .rc-section-lead,
[data-theme="dark"] .rc-prose {
  color: var(--theme-muted, #94a3b8);
}

[data-theme="dark"] .rc-about-tagline {
  color: var(--theme-text, #f1f5f9);
}

[data-theme="dark"] .rc-industries-tagline {
  color: rgba(203, 213, 225, 0.95);
}

[data-theme="dark"] .rc-industries-tagline strong {
  color: #f8fafc;
}

[data-theme="dark"] .rc-products {
  background: var(--theme-bg-alt, #111827);
}

[data-theme="dark"] .rc-product-card.product-card {
  background: #111827 !important;
  border-color: #273449 !important;
}

[data-theme="dark"] .rc-product-body p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .rc-cta {
  background: var(--theme-bg-alt, #111827);
}

[data-theme="dark"] body.rc-homepage nav.rc-site-nav.fixed {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom-color: rgba(51, 65, 85, 0.6) !important;
}

[data-theme="dark"] body.rc-homepage nav.rc-site-nav.fixed .top-nav ul li > a {
  color: var(--theme-text, #e2e8f0) !important;
}
