/* ============================================================
   RS APPAREL & SOURCING — MODERN UI/UX REDESIGN
   v2.0 — September 2026
   ============================================================ */

/* ========== GRADIENT TEXT FOR HEADINGS ========== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--premium) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-white {
  background: linear-gradient(135deg, var(--bg-color, #fff)fff 0%, var(--accent) 60%, var(--premium) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== ALTERNATING SECTION BACKGROUNNS ========== */
.section-alt-1 { background: var(--white); }
.section-alt-2 { background: var(--bg); }
.section-alt-pattern {
  background: var(--white);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(22,134,74,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(18,59,93,0.03) 0%, transparent 50%);
}
.section-alt-dark-pattern {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-image:
    radial-gradient(circle at 10% 90%, rgba(22,134,74,0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(217,164,65,0.08) 0%, transparent 40%);
}

/* ========== SECTION DIVIDERS ========== */
.section-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}
.section-divider-top { margin-top: -1px; }
.section-divider-bottom { margin-bottom: -1px; }
.divider-wave-white svg path { fill: var(--white); }
.divider-wave-alt svg path { fill: var(--bg); }
.divider-wave-dark svg path { fill: var(--primary); }

/* ========== DECORATIVE CIRCLES ========== */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.deco-circle-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(22,134,74,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.deco-circle-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(18,59,93,0.06) 0%, transparent 70%);
  bottom: -60px; left: -60px;
}
.deco-circle-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217,164,65,0.05) 0%, transparent 70%);
  top: 50%; left: -200px;
  transform: translateY(-50%);
}

/* ========== GLASS MORPHISM ========== */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
}
.glass-dark {
  background: rgba(26,29,46,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ========== HERO ENHANCEMENTS ========== */
/* Animated gradient background */
.hero-gradient-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(-45deg, #1a1d2e, #1a1d2e, #0d2a47, var(--secondary-color, #1a1d2e), #1a1d2e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating elements */
.hero-float {
  position: absolute;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}
.hero-float-shape {
  animation: floatUp 6s ease-in-out infinite;
}
.hero-float-shape:nth-child(2) { animation-delay: -2s; animation-duration: 8s; }
.hero-float-shape:nth-child(3) { animation-delay: -4s; animation-duration: 7s; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.hero-float-circle {
  width: 80px; height: 80px;
  border: 2px solid rgba(22,134,74,0.3);
  border-radius: 50%;
}
.hero-float-square {
  width: 60px; height: 60px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  transform: rotate(45deg);
}
.hero-float-line {
  width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22,134,74,0.3), transparent);
}

/* Typewriter effect */
.typewriter-container {
  display: inline-block;
  position: relative;
}
.typewriter {
  border-right: 3px solid var(--accent);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Parallax effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========== PRODUCT CARD ENHANCEMENTS ========== */
.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,29,46,0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.product-card:hover::after {
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.product-card-img {
  position: relative;
}
.product-card-img img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-card-img img {
  transform: scale(1.12);
}

/* View Details button overlay */
.product-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-card-overlay {
  transform: translateY(0);
  opacity: 1;
}
.product-card-overlay .btn {
  width: 100%;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius);
}
.product-card-overlay .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Category badges */
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 20px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(22,134,74,0.3);
}
.product-badge.new { background: linear-gradient(135deg, #10b981, #059669); }
.product-badge.hot { background: linear-gradient(135deg, #ef4444, #dc2626); }
.product-badge.stock { background: linear-gradient(135deg, var(--primary), var(--secondary)); }

/* ========== SKELETON LOADING ========== */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, #f0f3f5 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 16px; margin-bottom: 8px; width: 80%; }
.skeleton-text-sm { height: 12px; margin-bottom: 6px; width: 60%; }
.skeleton-title { height: 28px; margin-bottom: 12px; width: 50%; }
.skeleton-image { height: 200px; width: 100%; }

/* ========== IMAGE LAZY LOADING FADE-IN ========== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"].lazy-visible {
  opacity: 1;
}

/* ========== BORDER-LEFT ACCENT ========== */
.border-left-accent {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* ========== ICON BOXES ========== */
.icon-box {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.icon-box-orange {
  background: linear-gradient(135deg, rgba(22,134,74,0.15), rgba(22,134,74,0.05));
  color: var(--accent);
}
.icon-box-navy {
  background: linear-gradient(135deg, rgba(26,29,46,0.12), rgba(26,29,46,0.04));
  color: var(--primary);
}
.icon-box-gold {
  background: linear-gradient(135deg, rgba(217,164,65,0.15), rgba(217,164,65,0.05));
  color: var(--premium);
}
.icon-box-green {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
  color: #10b981;
}
.feature-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(22,134,74,0.15);
}

/* ========== COUNTER ANIMATION ========== */
.stat-counter {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--premium));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* Stats section */
.stats-section {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stats-item {
  padding: 24px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.stats-item:hover {
  background: rgba(22,134,74,0.04);
  transform: translateY(-4px);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(22,134,74,0.3);
}

/* ========== ENHANCED FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--primary) 0%, #060e18 100%);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(22,134,74,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.footer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(217,164,65,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
}
.footer h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.footer-newsletter {
  margin-top: 20px;
}
.footer-newsletter-form {
  display: flex;
  gap: 8px;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: all 0.3s ease;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}
.footer-newsletter-form button {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.footer-newsletter-form button:hover {
  background: var(--button-hover-color, #16864A);
  transform: translateY(-1px);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-bottom-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 20px;
}
.footer-bottom-bar p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ========== ENHANCED CONTACT FORM ========== */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.error-message {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 500;
}
.success-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  color: #059669;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.error-global {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  color: #dc2626;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
@keyframes btnSpin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ========== STAGGER ANIMATIONS ========== */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Slide in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.4,0,0.2,1);
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.4,0,0.2,1);
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ========== SMOOTH PAGE TRANSITION ========== */
.page-transition {
  animation: pageIn 0.5s ease-out;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== MODERN CTA SECTION ========== */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--button-hover-color, #16864A) 50%, var(--premium) 100%);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.03) 20px,
    rgba(255,255,255,0.03) 40px
  );
  pointer-events: none;
}

/* ========== RESPONSIVE MODERN ADDITIONS ========== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-counter { font-size: 2.2rem; }
  .footer-newsletter-form { flex-direction: column; }
  .footer-bottom-bar { flex-direction: column; gap: 12px; text-align: center; }
  .scroll-indicator { display: none; }
  .hero-float { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PROCESS TIMELINE — Homepage Only
   ============================================ */
.process-timeline{position:relative;display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin:32px 0}
.process-timeline-line{display:none}
.process-step-card{position:relative;background:var(--bg-color, #fff);border:1px solid var(--border-color, #e5e5e5);border-radius:16px;padding:28px 24px;transition:all .3s ease;overflow:hidden}
.process-step-card::before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,var(--primary-color, #55B878),var(--link-hover-color, #16864A));transform:scaleY(0);transform-origin:top;transition:transform .3s ease}
.process-step-card:hover{border-color:var(--primary-color, #55B878);box-shadow:0 8px 30px rgba(22,134,74,.12);transform:translateY(-4px)}
.process-step-card:hover::before{transform:scaleY(1)}
.process-step-icon{width:48px!important;height:48px!important;border-radius:14px;background:linear-gradient(135deg,rgba(22,134,74,.1),rgba(22,134,74,.05));display:flex;align-items:center;justify-content:center;margin-bottom:18px;color:var(--primary-color, #55B878);transition:all .3s ease}
.process-step-icon svg{width:24px!important;height:24px!important}
.process-step-card:hover .process-step-icon{background:linear-gradient(135deg,var(--primary-color, #55B878),var(--link-hover-color, #16864A));color:var(--bg-color, #fff);transform:scale(1.05)}
.process-step-num{position:absolute;top:20px;right:20px;font-size:2.2rem;font-weight:800;color:rgba(22,134,74,.08);line-height:1;transition:color .3s ease}
.process-step-card:hover .process-step-num{color:rgba(22,134,74,.15)}
.process-step-card h4{font-size:1.05rem;font-weight:700;color:#0A0A0A;margin-bottom:8px;transition:color .3s ease}
.process-step-card:hover h4{color:var(--primary-color, #55B878)}
.process-step-card p{font-size:.88rem;color:var(--muted-text-color, #666);line-height:1.6;margin:0}
.process-cta{display:inline-flex;align-items:center;gap:8px;margin-top:8px;transition:all .3s ease}
.process-cta .btn-arrow{width:18px;height:18px;transition:transform .3s ease}
.process-cta:hover .btn-arrow{transform:translateX(4px)}
@media(max-width:768px){.process-timeline{grid-template-columns:1fr;gap:16px}.process-step-card{padding:24px 20px}.process-step-num{font-size:1.8rem;top:16px;right:16px}}

/* Premium Footer */
.footer-premium {
    background: linear-gradient(180deg, var(--secondary-color, #064e3b) 0%, var(--header-bg, #064e3b) 100%);
    color: #c8c8c8;
    padding: 80px 0 0;
    line-height: 1.6;
    font-size: 15px;
}
.footer-premium .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-premium .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-premium .footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
}
.footer-premium h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.footer-premium a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
    margin-bottom: 10px;
}
.footer-premium a:hover {
    color: var(--primary-color, #059669);
}
.footer-premium .footer-bottom-bar {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}
@media (max-width: 768px) {
    .footer-premium .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-premium .footer-bottom-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
