﻿/* ============================================
   JAY PROTON INDUSTRIES - Main Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #c8202a;
  --primary-dk:   #9a1820;
  --accent:       #f5a623;
  --accent-dk:    #d4861a;
  --green:        #3d7a37;
  --text:         #1e2a35;
  --text-light:   #5a6675;
  --bg-light:     #f4f6fb;
  --border:       #dde3ea;
  --white:        #ffffff;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow:       0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --shadow-xl:    0 20px 60px rgba(0,0,0,.18);
  --radius:       8px;
  --radius-lg:    14px;
  --radius-full:  9999px;
  --trans:        .28s cubic-bezier(.4,0,.2,1);
  --trans-fast:   .16s ease;
  --trans-spring: .38s cubic-bezier(.34,1.28,.64,1);
}

html { scroll-behavior: smooth; }

/* ---- Accessibility: screen-reader only ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Scroll-reveal animation (JS adds .reveal / .revealed) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.34,1.1,.64,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform var(--trans-spring), box-shadow var(--trans), background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
  border: 2px solid transparent;
  will-change: transform;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.btn:active { transform: scale(.96) !important; transition-duration: .08s !important; }
.btn-primary  { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover  { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(213,134,26,.38); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover  { background: var(--white); color: var(--primary); border-color: var(--white); transform: translateY(-3px); }
.btn-dark { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-dark:hover { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(154,24,32,.32); }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--primary-dk);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 7px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: rgba(255,255,255,.85); transition: color var(--trans); }
.top-bar a:hover { color: var(--accent); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item i { color: var(--accent); font-size: .9rem; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--trans), background var(--trans);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 64px; width: auto; display: block; object-fit: contain; }
.logo-icon {
  width: 54px; height: 54px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon i { color: var(--accent); font-size: 1.5rem; }
.logo-text .brand { font-size: 1.45rem; font-weight: 800; color: var(--primary); letter-spacing: .5px; line-height: 1.1; }
.logo-text .tagline { font-size: .72rem; color: var(--text-light); letter-spacing: 1.5px; text-transform: uppercase; }

/* ---- Main Nav ---- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: var(--trans);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg-light); }
.nav-link i { font-size: .7rem; margin-left: 4px; }

/* Dropdown */
.dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: 240px;
  border-top: 3px solid var(--accent);
  z-index: 200;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s cubic-bezier(.4,0,.2,1), visibility .22s;
}
.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .88rem;
  color: var(--text);
  transition: var(--trans);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); padding-left: 24px; }
.dropdown-menu .sub-item { position: relative; }
.dropdown-menu .sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px 0;
  border-top: 3px solid var(--accent);
}
.dropdown-menu .sub-item:hover .sub-menu { display: block; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--primary);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
  transform-origin: center;
}
/* Animate to X when active */
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0d2645;
  height: clamp(320px, 62vh, 620px);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transition: transform 6s ease;
}
.slide.active .slide-bg { transform: scale(1.04); }
.slide-bg.hidden { display: none; }
/* img.slide-bg — used for the LCP hero slide (slide 1) */
img.slide-bg {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}
.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active .slide-video { opacity: 1; }
.slide-video.hidden { display: none; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,30,60,.72) 0%, rgba(10,30,60,.45) 60%, rgba(0,0,0,.2) 100%);
}
.slide-2 .slide-bg { background-image: url('../images/Slider%202.webp'); }
.slide-3 .slide-bg { background-image: url('../images/Slider%203.webp'); }
.slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  text-align: center;
  padding: 0 24px;
}
.slide-content .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.slide-content h2 { font-size: clamp(1.5rem, 4.5vw, 2.9rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.slide-content p { font-size: clamp(.88rem, 2vw, 1.08rem); opacity: .9; margin-bottom: 30px; max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.75; }
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Slider controls */
.slider-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.slider-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--trans);
}
.slider-dot.active { background: var(--accent); border-color: var(--white); transform: scale(1.2); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  font-size: 1.1rem;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dk) 0%, #c8202a 60%, #e0242f 100%);
  color: var(--white);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 12px 20px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .8rem; opacity: .8; margin-top: 4px; text-transform: uppercase; letter-spacing: .8px; }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-header { text-align: center; margin-bottom: 44px; }
.section-header .pre-title {
  display: inline-block;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 800; color: var(--primary); line-height: 1.2; }
.section-header .divider {
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 16px;
}
.section-header p { color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* ============================================
   HOT PRODUCTS
   ============================================ */
.hot-products { padding: clamp(48px,7vh,80px) 0; background: var(--bg-light); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-spring), box-shadow var(--trans);
  border: 1px solid var(--border);
  will-change: transform;
}
.product-card:hover {
  box-shadow: 0 16px 44px rgba(13,59,110,.16);
  transform: translateY(-8px) scale(1.012);
}
.product-img {
  height: 280px;
  overflow: hidden;
  background: #f9f9f9;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 8px;
  box-sizing: border-box;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
  mix-blend-mode: multiply;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}
.product-body { padding: 16px 18px 18px; }
.product-body h3 { font-size: .97rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.3; }
.product-body p { font-size: .82rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { font-size: .78rem; padding: 7px 14px; flex: 1; text-align: center; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; border-radius: 12px; overflow: hidden; }
.about-img-wrap img { width: 100%; height: clamp(260px, 40vw, 440px); object-fit: cover; border-radius: var(--radius-lg); }
.about-badge-float {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(232,118,10,.35);
}
.about-badge-float .years { font-size: 2rem; line-height: 1; display: block; }
.about-badge-float .yrs-label { font-size: .78rem; opacity: .9; }
.about-content h2 { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.about-content .lead { font-size: 1.05rem; color: var(--text-light); margin-bottom: 24px; }
.about-details { margin-bottom: 28px; }
.detail-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: var(--primary); min-width: 170px; }
.detail-value { color: var(--text-light); }
.about-points { margin-bottom: 28px; }
.about-point {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.point-icon {
  width: 42px; height: 42px;
  background: rgba(13,59,110,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.point-icon i { color: var(--primary); font-size: 1.1rem; }
.point-text h4 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.point-text p { font-size: .84rem; color: var(--text-light); }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section { background: linear-gradient(145deg, var(--primary-dk) 0%, var(--primary) 100%); padding: clamp(48px,7vh,80px) 0; color: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--trans-spring), background var(--trans), box-shadow var(--trans);
  will-change: transform;
}
.feature-card:hover { background: rgba(255,255,255,.14); transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.feature-icon {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.feature-icon i { color: var(--white); font-size: 1.5rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: .84rem; opacity: .75; line-height: 1.6; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: clamp(48px,7vh,84px) 0; background: var(--bg-light); }
.testimonials-carousel { position: relative; padding: 0 50px; overflow: hidden; }
.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease;
  width: 100%;
}
.testimonials-track .testimonial-card {
  flex: 0 0 calc(33.333% - 19px);
  min-width: 0;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.2); }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--trans-spring), box-shadow var(--trans);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 5rem;
  color: var(--accent);
  opacity: .15;
  font-family: Georgia, serif;
  line-height: 1;
}
.stars { color: #f59e0b; margin-bottom: 14px; }
.testimonial-text { font-size: .93rem; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: .9rem; }
.reviewer-role { font-size: .78rem; color: var(--text-light); }

/* ============================================
   ENQUIRY SECTION
   ============================================ */
.enquiry-section { padding: clamp(48px,7vh,84px) 0; }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.enquiry-info h2 { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.enquiry-info p { color: var(--text-light); margin-bottom: 28px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
}
.contact-card-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon i { color: var(--accent); font-size: 1.1rem; }
.contact-card-text .label { font-size: .75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .8px; }
.contact-card-text .value { font-size: .97rem; font-weight: 700; color: var(--primary); margin-top: 2px; }
.contact-card-text .value a { color: inherit; }
.contact-card-text .value a:hover { color: var(--accent); }
.enquiry-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.enquiry-form h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--trans);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(200,32,42,.10);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .78rem; color: var(--text-light); margin-top: 10px; }
.form-success {
  display: none;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  margin-top: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #6b0e12; color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-name { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: transform var(--trans-spring), background var(--trans);
  font-size: .9rem;
}
.social-btn:hover { background: var(--accent); transform: translateY(-3px) scale(1.1); }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.65); transition: var(--trans); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .85rem; }
.footer-contact-item i { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
}
.footer-bottom a { color: var(--accent); }

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #25d366;
  color: var(--white);
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--trans);
}
/* Composited pulse ring — uses transform+opacity so browser skips paint entirely */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,.55);
  animation: pulse-green 2s ease-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
.whatsapp-float:hover { transform: scale(1.12); background: #1da851; }
@keyframes pulse-green {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 30px;
  z-index: 9998;
  background: var(--primary);
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--trans);
  box-shadow: 0 4px 14px rgba(13,59,110,.3);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--accent); }

/* ============================================
   CROSS-BROWSER BASE FIXES
   ============================================ */
/* Prevent iOS font size bump */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* Touch-friendly tap highlight */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
/* Input font-size >= 16px prevents iOS auto-zoom */
input, select, textarea {
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
/* Prevent horizontal scroll globally */
body { overflow-x: hidden; }
/* Buttons minimum touch target */
.btn, button { min-height: 44px; touch-action: manipulation; }
/* All images responsive by default */
img { max-width: 100%; height: auto; display: block; }
/* Smooth transitions with reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: rgba(200,32,42,.15); color: var(--text); }

.container { padding-inline: clamp(14px, 3vw, 24px); }

/* ============================================
   RESPONSIVE — 1100px (Large Tablet / Small Desktop)
   ============================================ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hot-products .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   RESPONSIVE — 900px (Tablet)
   ============================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .enquiry-grid { grid-template-columns: 1fr; }
  .testimonials-carousel { padding: 0 45px; }
  .testimonials-track .testimonial-card { flex: 0 0 calc(50% - 14px); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hot-products .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .hero-slider { height: 440px; }
  .slide-content h2 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   RESPONSIVE — 768px (Mobile Landscape / Small Tablet)
   ============================================ */
@media (max-width: 768px) {
  /* Top bar */
  .top-bar { display: none; }

  /* Header */
  .header-inner { padding: 10px 0; }
  .logo-img { height: 48px; }
  .logo-text .brand { font-size: 1.1rem; }
  .logo-text .tagline { display: none; }

  /* Mobile nav */
  .main-nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 12px 36px rgba(0,0,0,.15);
    padding: 10px 0;
    z-index: 999;
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .26s ease, transform .26s cubic-bezier(.4,0,.2,1), visibility .26s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link { padding: 13px 20px; border-radius: 0; font-size: .95rem; }
  .nav-link i.fa-chevron-down { float: right; margin-top: 4px; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 4px solid var(--accent);
    margin-left: 20px;
    border-radius: 0;
    /* reset animation for mobile */
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transition: none !important;
    display: none;
  }
  .nav-item.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 10px 18px; font-size: .9rem; }
  .nav-toggle { display: flex; }

  /* Hero slider */
  .hero-slider { height: 380px; }
  .slide-content { padding: 0 16px; max-width: 100%; }
  .slide-content h2 { font-size: 1.65rem; }
  .slide-content p { font-size: .9rem; margin-bottom: 22px; }
  .slide-btns { gap: 10px; }
  .slide-btns .btn { padding: 10px 20px; font-size: .85rem; }
  .slider-arrow { display: none; }

  /* Sections */
  .section-header h2 { font-size: 1.8rem; }
  .section-header p { font-size: .92rem; }
  .hot-products, .why-section, .testimonials, .enquiry-section { padding: 50px 0; }
  .about-section { padding: 50px 0; }

  /* Grids */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hot-products .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Stats bar */
  .stats-bar { padding: 18px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-num { font-size: 1.6rem; }

  /* About section layout */
  .about-grid { gap: 24px; }

  /* Enquiry form */
  .enquiry-form { padding: 24px 18px; }

  /* Floating buttons */
  .whatsapp-float { bottom: 18px; right: 18px; width: 48px; height: 48px; font-size: 1.3rem; }
  .back-to-top { bottom: 78px; right: 18px; }

  /* =====================================================
     MOBILE STATIC HERO — eliminates score variability
     Removes: setInterval compositor layers, Ken Burns
     zoom animation, opacity-transition slide layers,
     continuous WhatsApp GPU animation.
     ===================================================== */

  /* Remove inactive slides from the render tree entirely
     (prevents compositor layers + stops CSS bg image loads) */
  .slide:not(.active) { display: none !important; }

  /* Kill slide transition — no cross-fade on mobile */
  .slide { transition: none !important; }

  /* Kill Ken Burns zoom — was a 6-second GPU animation on
     the LCP image, making LCP timing variable each run */
  .slide-bg,
  .slide.active .slide-bg {
    transition: none !important;
    transform:  none !important;
  }

  /* Hide slider dot-nav (no slides to switch on mobile) */
  .slider-nav { display: none !important; }

  /* Disable WhatsApp pulse ring animation —
     continuous compositor work throughout audit window */
  .whatsapp-float::before { animation: none !important; }

  /* Reset will-change on hover-only elements.
     Buttons/cards promoted on mobile waste GPU layers
     since touch devices never trigger :hover. */
  .btn,
  .product-card,
  .feature-card,
  .testimonial-card,
  .social-btn { will-change: auto !important; }
}

/* ============================================
   RESPONSIVE — 520px (Mobile Portrait)
   ============================================ */
@media (max-width: 520px) {
  .container { padding: 0 14px; }

  /* Hero */
  .hero-slider { height: 320px; }
  .slide-content h2 { font-size: 1.3rem; line-height: 1.25; }
  .slide-content p { font-size: .83rem; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-btns { -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; }
  .slide-btns .btn { font-size: .78rem; padding: 9px 16px; min-height: 40px; }
  .slide-content .badge { font-size: .68rem; padding: 4px 12px; }

  /* Section headings */
  .section-header h2 { font-size: 1.55rem; }
  .section-header .pre-title { font-size: .72rem; }

  /* Grids */
  .products-grid { grid-template-columns: 1fr; gap: 12px; }
  .hot-products .products-grid { grid-template-columns: 1fr; }
  .testimonials-carousel { padding: 0 40px; }
  .testimonials-track .testimonial-card { flex: 0 0 100%; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .testimonials-track { gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .cert-grid { grid-template-columns: 1fr; }

  /* Stat numbers */
  .stat-num { font-size: 1.5rem; }
  .stat-item { padding: 10px 10px; }

  /* Page banner */
  .page-banner h1 { font-size: 1.4rem; }
  .breadcrumb { font-size: .78rem; flex-wrap: wrap; justify-content: center; gap: 4px; }

  /* Cards */
  .product-card-img, .prod-card-img { height: 180px; }
  .testimonial-card { padding: 20px 16px; }
  .feature-card { padding: 22px 16px; }

  /* Footer */
  .footer-brand p { font-size: .82rem; }
  .footer-bottom { -webkit-flex-direction: column; flex-direction: column; text-align: center; }

}

/* ============================================
   RESPONSIVE — 380px (Small phones)
   ============================================ */
@media (max-width: 380px) {
  .hero-slider { height: 280px; }
  .slide-content h2 { font-size: 1.15rem; }
  .logo-text .brand { font-size: 1rem; }
  .section-header h2 { font-size: 1.35rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

