/* ============================================================
   RADIAL FACTORY — SHARED STYLES
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* --- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #0a0a0a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* --- Custom Scrollbar -------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }

/* --- Scroll Reveal ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* --- Navigation -------------------------------------------- */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#main-nav.scrolled {
  border-color: #f0f0f0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #D52B1E;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: #D52B1E; }

/* --- Buttons ----------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  padding: 0.8rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #0a0a0a;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background: #b01e14;
  color: #fff !important;
  border-color: #b01e14;
}
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #0a0a0a;
  padding: 0.8rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #0a0a0a;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline:hover { background: #0a0a0a; color: #fff !important; border-color: #0a0a0a; }
.btn-outline:active { transform: scale(0.98); }

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #D52B1E;
  color: #fff;
  padding: 0.8rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #D52B1E;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-red:hover { background: #b8211a; border-color: #b8211a; }
.btn-red:active { transform: scale(0.98); }

/* Yellow button — for CTAs on dark/black sections */
.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffdf01;
  color: #0a0a0a;
  padding: 0.8rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #ffdf01;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.btn-yellow:hover { background: #e6bc00; border-color: #e6bc00; }
.btn-yellow:active { transform: scale(0.98); }

/* --- Section Tag ------------------------------------------- */
.section-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D52B1E;
}

/* --- Performance Rating Bars ------------------------------- */
.rating-bar {
  height: 3px;
  background: #ebebeb;
  border-radius: 2px;
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  background: #0a0a0a;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.rating-fill.animated { transform: scaleX(1); }

/* --- Image Zoom -------------------------------------------- */
.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-zoom:hover img { transform: scale(1.04); }

/* --- Product Card ------------------------------------------ */
.product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  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;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: #e0e0e0;
}

/* --- Feature Card ------------------------------------------ */
.feature-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 2.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: #D52B1E;
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

/* --- Stats Counter ----------------------------------------- */
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

/* --- Select Custom ----------------------------------------- */
.select-custom {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230a0a0a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* --- Swiper Customisation ---------------------------------- */
.swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.2;
  width: 8px !important;
  height: 8px !important;
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: #ffdf01 !important;
  width: 24px !important;
  border-radius: 4px !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: #0a0a0a !important;
  width: 44px !important;
  height: 44px !important;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.875rem !important;
  font-weight: 700;
}

/* --- Cart Badge -------------------------------------------- */
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #D52B1E;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Montserrat', sans-serif;
}

/* --- Hero Section ------------------------------------------ */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* --- Image Panel ------------------------------------------- */
.img-panel {
  position: relative;
  overflow: hidden;
}
.img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-panel:hover img { transform: scale(1.03); }

/* --- Keyframe Animations ----------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in { animation: fadeIn 0.7s ease forwards; }
.animate-slide-right { animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-600 { animation-delay: 0.6s; }

/* Hero background image entrance */
@keyframes heroImageIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-image-animate {
  opacity: 0;
  animation: heroImageIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Initial state for animated hero elements */
.hero-animate {
  opacity: 0;
}

/* --- Compatible Badge -------------------------------------- */
.badge-compatible {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

/* --- Testimonial Card -------------------------------------- */
.testimonial-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 2.5rem;
}

/* --- Range Slider ------------------------------------------ */
input[type="range"] {
  -webkit-appearance: none;
  height: 3px;
  background: #e8e8e8;
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #0a0a0a;
  border-radius: 50%;
  cursor: pointer;
}

/* --- Divider Line ------------------------------------------ */
.divider {
  width: 40px;
  height: 3px;
  background: #D52B1E;
}
.divider-yellow {
  width: 40px;
  height: 3px;
  background: #ffdf01;
}

/* --- Yellow section tag variant --------------------------- */
.section-tag-yellow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffdf01;
}

/* --- Footer ----------------------------------------------- */
footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.7);
}
footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
footer a:hover { color: #fff; }

/* --- Form Input ------------------------------------------- */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #0a0a0a;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
}
.input-field:focus { border-color: #0a0a0a; }
.input-field::placeholder { color: #9ca3af; }
label.input-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
  font-size: 0.8125rem;
  color: #9ca3af;
}
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #0a0a0a; }

/* --- Mobile Menu Slide ------------------------------------ */
.mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { max-height: 400px; }

/* --- Service Card ----------------------------------------- */
.service-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  border-color: #D52B1E;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* --- Quantity Selector ------------------------------------ */
.qty-btn {
  width: 36px; height: 36px;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

/* --- Filter Tag ------------------------------------------- */
.filter-tag {
  padding: 0.4rem 1rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: #0a0a0a;
  white-space: nowrap;
}
.filter-tag:hover,
.filter-tag.active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

/* --- Checkout Steps --------------------------------------- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-dot.active { background: #0a0a0a; color: #fff; }
.step-dot.done { background: #D52B1E; color: #fff; }
.step-line {
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}
.step-line.done { background: #D52B1E; }

/* --- Loading State ---------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Sticky CTA Banner ------------------------------------ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-cta.visible { transform: translateY(0); }

/* --- Product Hero Image Reveal ---------------------------- */
@keyframes heroImgReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- Installation Card ------------------------------------ */
.install-card.selected {
  border-color: #ffdf01 !important;
  background: rgba(255,255,255,0.05);
}
.install-card-light.selected {
  border-color: #D52B1E !important;
  background: rgba(213,43,30,0.04);
}

/* --- Dark Qty Button (purchase section) ------------------- */
.qty-btn-dark {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn-dark:hover {
  background: #ffdf01;
  border-color: #ffdf01;
  color: #0a0a0a;
}

/* --- Paragraph justification ----------------------------- */
p { text-align: justify; }
.text-center p, [style*="text-align:center"] p { text-align: center; }

/* ============================================================
   3D HEADING SHADOW SYSTEM — Brand Colour Alternation
   Single crisp offset. Only h1 (page/section main heading).
   ============================================================ */

/* BLACK BG — white h1 → yellow shadow */
[class*="bg-[#0a0a0a]"] h1,
[style*="background:#0a0a0a"] h1,
[style*="background:rgba(10,10,10"] h1 {
  text-shadow: 2px 2px 0 rgba(255,223,1,0.55) !important;
}

/* BLACK BG — yellow accent span inside h1 → white shadow */
[class*="bg-[#0a0a0a]"] h1 span[style*="color:#ffdf01"],
[style*="background:#0a0a0a"] h1 span[style*="color:#ffdf01"],
[style*="background:rgba(10,10,10"] h1 span[style*="color:#ffdf01"] {
  text-shadow: 2px 2px 0 rgba(255,255,255,0.5) !important;
}

/* BLACK BG — red accent span inside h1 → white shadow */
[class*="bg-[#0a0a0a]"] h1 span[style*="color:#D52B1E"],
[style*="background:#0a0a0a"] h1 span[style*="color:#D52B1E"],
[style*="background:rgba(10,10,10"] h1 span[style*="color:#D52B1E"] {
  text-shadow: 2px 2px 0 rgba(255,255,255,0.45) !important;
}

/* RED BG — white h1 → dark shadow */
[class*="bg-[#D52B1E]"] h1,
[style*="background:#D52B1E"] h1 {
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4) !important;
}

/* RED BG — yellow span → white shadow */
[class*="bg-[#D52B1E]"] h1 span[style*="color:#ffdf01"],
[style*="background:#D52B1E"] h1 span[style*="color:#ffdf01"] {
  text-shadow: 2px 2px 0 rgba(255,255,255,0.5) !important;
}

@media (min-width: 1024px) {
  [class*="bg-[#0a0a0a]"] h1,
  [style*="background:#0a0a0a"] h1,
  [style*="background:rgba(10,10,10"] h1 {
    text-shadow: 4px 4px 0 rgba(255,223,1,0.55) !important;
  }
  [class*="bg-[#0a0a0a]"] h1 span[style*="color:#ffdf01"],
  [style*="background:#0a0a0a"] h1 span[style*="color:#ffdf01"],
  [style*="background:rgba(10,10,10"] h1 span[style*="color:#ffdf01"] {
    text-shadow: 4px 4px 0 rgba(255,255,255,0.5) !important;
  }
  [class*="bg-[#0a0a0a]"] h1 span[style*="color:#D52B1E"],
  [style*="background:#0a0a0a"] h1 span[style*="color:#D52B1E"],
  [style*="background:rgba(10,10,10"] h1 span[style*="color:#D52B1E"] {
    text-shadow: 4px 4px 0 rgba(255,255,255,0.45) !important;
  }
  [class*="bg-[#D52B1E]"] h1,
  [style*="background:#D52B1E"] h1 {
    text-shadow: 4px 4px 0 rgba(0,0,0,0.4) !important;
  }
  [class*="bg-[#D52B1E]"] h1 span[style*="color:#ffdf01"],
  [style*="background:#D52B1E"] h1 span[style*="color:#ffdf01"] {
    text-shadow: 4px 4px 0 rgba(255,255,255,0.5) !important;
  }
}
