/* ==========================================================================
   RTS Machine Tools — Homepage & Site Redesign (2026)
   Professional · Modern · Industrial
   Loaded after main.css so these rules win.
   ========================================================================== */

/* ---------- Reveal-on-scroll animation primitives ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Light-to-dark text reveal (headings animate from pale to full ink) */
.reveal-text {
  color: #cbd5e1;
  opacity: 0.55;
  transform: translateY(0.6em);
  transition: color 1.1s ease, opacity 0.9s ease,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: color, opacity, transform;
}

.reveal-text.visible {
  color: var(--color-text-primary);
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-text {
    opacity: 1 !important;
    transform: none !important;
    color: inherit !important;
    transition: none !important;
  }
}

/* ==========================================================================
   HERO — 80vh, refined overlay & entrance
   ========================================================================== */
.hero-section {
  height: 80vh;
  min-height: 640px;
}

.hero-clean-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.72) 0%, rgba(10, 15, 30, 0.55) 45%, rgba(10, 15, 30, 0.82) 100%);
}

.hero-video-bg {
  opacity: 0.92;
  filter: saturate(0.92) contrast(1.02);
}

.hero-title {
  letter-spacing: -0.03em;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

.hero-badge span {
  animation: heroPulse 2.4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
}

/* ==========================================================================
   HEADER — transparent over hero, white on scroll
   ========================================================================== */
.site-header.home-header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.home-header:not(.scrolled) .main-nav > a,
.site-header.home-header:not(.scrolled) .main-nav .nav-dropdown-trigger {
  color: #ffffff;
}

.site-header.home-header:not(.scrolled) .main-nav > a:hover,
.site-header.home-header:not(.scrolled) .main-nav .nav-dropdown-trigger:hover {
  color: #ffffff;
}

.site-header.home-header:not(.scrolled) .main-nav > a::after,
.site-header.home-header:not(.scrolled) .main-nav .nav-dropdown-trigger::after {
  background: #ffffff;
}

.site-header.home-header:not(.scrolled) .nav-cta-link {
  color: #ffffff;
}

/* Keep mega menu links dark on the transparent header (dropdown card is white) */
.site-header.home-header:not(.scrolled) .mega-menu-card .mega-links a,
.site-header.home-header:not(.scrolled) .mega-menu-card .mega-heading {
  color: var(--color-text-secondary);
}

.site-header.home-header:not(.scrolled) .mega-menu-card .mega-links a:hover {
  color: var(--color-red);
}

.site-header.home-header:not(.scrolled) .site-logo-img {
  filter: brightness(0) invert(1);
}

.site-header.home-header:not(.scrolled) .mobile-nav-toggle {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   INTRO / HERITAGE SECTION — bigger, creative, animated
   ========================================================================== */
.intro-section {
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '1962';
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #eef2f7;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.intro-title .accent {
  color: var(--color-red);
}

.intro-para {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.intro-visual {
  position: relative;
}

.intro-stat-card {
  position: relative;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-stat-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.35) 0%, rgba(225, 29, 72, 0) 70%);
  pointer-events: none;
}

.intro-stat-year {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  align-items: baseline;
}

.intro-stat-plus {
  color: var(--color-red);
  font-size: 0.55em;
  margin-left: 0.12em;
}

.intro-stat-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 0.5rem;
}

.intro-stat-sub {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.intro-points span {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-section::before {
    top: auto;
    bottom: 0;
    right: 0;
    font-size: 9rem;
  }
}

/* ==========================================================================
   CATEGORY BANNER CARDS (Shop by Category)
   ========================================================================== */
.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.category-box-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.category-box-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cat-card-cover {
  display: block;
  height: 200px;
  background: var(--color-bg-subtle);
  position: relative;
  overflow: hidden;
}

.cat-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-box-card:hover .cat-card-cover img {
  transform: scale(1.06);
}

.cat-card-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.cat-card-body {
  padding: 1.5rem;
}

.cat-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.85rem;
}

.cat-card-title a:hover {
  color: var(--color-red);
}

.cat-sub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.cat-sub-pills .sub-pill {
  font-size: 0.75rem;
}

.cat-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.cat-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-red);
}

.cat-explore-link .arrow {
  transition: transform 0.25s ease;
}

.category-box-card:hover .cat-explore-link .arrow {
  transform: translateX(5px);
}

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

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

/* ==========================================================================
   PRODUCT SLIDER (no filters / no list — carousel like nnpower.in)
   ========================================================================== */
.product-slider-section {
  position: relative;
  overflow: hidden;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.slider-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.slider-subtitle {
  color: var(--color-text-secondary);
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.65;
}

.slider-nav {
  display: flex;
  gap: 0.6rem;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}

.slider-arrow:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #ffffff;
}

.product-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-slider-track::-webkit-scrollbar {
  display: none;
}

.product-slide {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.product-slide .product-card {
  height: 100%;
}

/* Fix product images being cut off (contain instead of cover) — slider + list pages */
.product-thumb,
.clean-product-thumb {
  height: 220px;
  background: #ffffff;
}

.product-thumb img,
.clean-card-image-link img {
  object-fit: contain !important;
  padding: 1.25rem;
}

.slider-cta {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .product-slide {
    flex: 0 0 260px;
  }
  .product-thumb,
  .clean-product-thumb {
    height: 190px;
  }
  .product-thumb img,
  .clean-card-image-link img {
    padding: 0.75rem;
  }
}

/* ==========================================================================
   ABOUT US STORY (Numbered chapters)
   ========================================================================== */
.about-story-container {
  max-width: 880px;
}

.about-story-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.about-story-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.about-story-intro {
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 1rem auto 0;
  font-size: 1.075rem;
  line-height: 1.7;
}

.about-chapter {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.75rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.about-chapter:last-of-type {
  border-bottom: none;
}

.about-chapter-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1.2;
}

.about-chapter-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.about-chapter-body p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.about-closing {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .about-chapter {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   CONTACT PAGE — Google Map & refined cards
   ========================================================================== */
.contact-map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: #f1f5f9;
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* ==========================================================================
   FEATURE CARDS — hover lift
   ========================================================================== */
.feature-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-red);
}

/* ==========================================================================
   FOOTER — credit line
   ========================================================================== */
.footer-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-credit a {
  color: #94a3b8;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-credit a:hover {
  color: #ffffff;
}

/* ==========================================================================
   PRODUCT BANNERS (promo banners, real product photos)
   ========================================================================== */
.product-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-banner {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 430px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.product-banner:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pb-media {
  position: absolute;
  inset: 0;
}

.pb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-banner:hover .pb-media img {
  transform: scale(1.06);
}

.pb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.18) 35%, rgba(15, 23, 42, 0.84) 100%);
}

.pb-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  color: #ffffff;
  z-index: 2;
}

.pb-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.pb-headline {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.pb-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.3rem;
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.product-banner:hover .pb-btn {
  background: var(--color-red);
  color: #ffffff;
}

@media (max-width: 1000px) {
  .product-banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-banner {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .product-banners-grid {
    grid-template-columns: 1fr;
  }
  .product-banner {
    min-height: 340px;
  }
}

/* ==========================================================================
   MOBILE DRAWER — scrollable
   ========================================================================== */
.mobile-nav-drawer {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Small responsive refinements
   ========================================================================== */
@media (max-width: 640px) {
  .hero-section {
    min-height: 560px;
  }
}
