/* ============================================
   PANCHWATI SCALE SERVICE — PREMIUM STYLESHEET v2
   Rich crimson + gold + deep navy theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Baloo+2:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Brand Colors — Rich Crimson + Gold + Navy */
  --crimson:       #c0392b;
  --crimson-dark:  #96281b;
  --crimson-light: #e74c3c;
  --crimson-glow:  rgba(192,57,43,0.35);

  --gold:          #d4a017;
  --gold-light:    #f0c040;
  --gold-pale:     #fdf3d0;

  --navy:          #0d1b2a;
  --navy-mid:      #1b2a3b;
  --navy-light:    #243447;

  --ink:           #0a0a12;
  --ink-soft:      #131320;
  --ink-mid:       #1e1e30;
  --ink-panel:     #252538;

  /* Surface */
  --surface-100:   #f4f5f7;
  --surface-200:   #eaebee;
  --surface-300:   #d8dade;
  --surface-white: #ffffff;

  /* Text */
  --text-dark:   #12131a;
  --text-body:   #3d3f52;
  --text-muted:  #72748a;
  --text-light:  #f0f2f8;
  --text-white:  #ffffff;

  /* WhatsApp */
  --wa:       #25d366;
  --wa-dark:  #1da851;

  /* Gradients */
  --grad-crimson:  linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  --grad-gold:     linear-gradient(135deg, #d4a017 0%, #f0c040 100%);
  --grad-hero:     linear-gradient(160deg, #0d1b2a 0%, #1a0a10 50%, #0a0a12 100%);
  --grad-section:  linear-gradient(180deg, #f4f5f7 0%, #eaebee 100%);
  --grad-dark:     linear-gradient(160deg, #0a0a12 0%, #1b2a3b 100%);

  /* Shadows */
  --sh-sm:    0 2px 10px rgba(0,0,0,0.10);
  --sh-md:    0 6px 24px rgba(0,0,0,0.15);
  --sh-lg:    0 12px 48px rgba(0,0,0,0.22);
  --sh-xl:    0 20px 70px rgba(0,0,0,0.30);
  --sh-red:   0 8px 32px rgba(192,57,43,0.35);
  --sh-gold:  0 8px 32px rgba(212,160,23,0.30);
  --sh-wa:    0 8px 32px rgba(37,211,102,0.40);

  /* Layout */
  --max-w:      1200px;
  --sec-pad:    90px 0;
  --sec-pad-sm: 64px 0;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   0.18s ease;
  --t-normal: 0.30s cubic-bezier(0.4,0,0.2,1);
  --t-slow:   0.50s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: var(--surface-100);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--t-fast); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  transition: var(--t-normal);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15,23,42,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--t-normal);
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.04);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--r-full);
  color: #334155;
  font-size: 0.9rem; font-weight: 600;
  transition: var(--t-fast);
}
.nav-link:hover, .nav-link.active {
  color: #c0392b;
  background: #f1f5f9;
}
.nav-cta {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: var(--wa);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.86rem; font-weight: 700;
  transition: var(--t-normal);
  white-space: nowrap;
  box-shadow: var(--sh-wa);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--wa-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.5);
  color: #fff;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r-sm); cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #0f2942; border-radius: 2px;
  transition: var(--t-normal);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO SECTION — Light Corporate Theme with Product Slider
   ================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 105px 24px 60px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
}

@keyframes certPanSlide {
  0% {
    transform: translateX(-6%) scale(1.04);
  }
  50% {
    transform: translateX(6%) scale(1.04);
  }
  100% {
    transform: translateX(-6%) scale(1.04);
  }
}

.hero-bg {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  z-index: 0;
  background-image: url('govt_stamping_certificate.jpg');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: contrast(1.12) brightness(0.96);
  pointer-events: none;
}

.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #f8fafc);
  z-index: 1;
}

.hero-container {
  position: relative; z-index: 3;
  width: 100%;
}



.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #475569;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.badge-panchwati {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
  box-shadow: 0 2px 8px rgba(153,27,27,0.08) !important;
}

.badge-dot.crimson-dot {
  background: #dc2626 !important;
}

.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d97706; flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:0.4; transform: scale(1.4); }
}

.hero-content-centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Single-Line Title Badge Rectangles */
.title-badge-rectangle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: 8px; /* Sharp rectangle with soft corners */
  white-space: nowrap;
  text-transform: uppercase;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 6px 0;
  transition: all 0.2s ease;
  max-width: 100%;
}

/* Sample 1: Gold Rectangle Badge */
.sample-badge-1 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.sample-badge-1 .txt-p { color: #c0392b; font-weight: 900; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }
.sample-badge-1 .txt-s { color: #0f2942; font-weight: 800; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }

/* Sample 2: Clean White Rectangle Badge with Navy Border */
.sample-badge-2 {
  background: #ffffff;
  border: 2px solid #0f2942;
  box-shadow: 0 4px 18px rgba(15, 41, 66, 0.12);
}
.sample-badge-2 .txt-p { color: #c0392b; font-weight: 900; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }
.sample-badge-2 .txt-s { color: #0f2942; font-weight: 800; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }

/* Sample 3: Soft Red Rectangle Badge */
.sample-badge-3 {
  background: linear-gradient(135deg, #fef2f2 0%, #ffe4e6 100%);
  border: 2px solid #e11d48;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.15);
}
.sample-badge-3 .txt-p { color: #991b1b; font-weight: 900; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }
.sample-badge-3 .txt-s { color: #0f2942; font-weight: 800; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }

/* Sample 4: Dark Navy Rectangle Badge */
.sample-badge-4 {
  background: #0f2942;
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(15, 41, 66, 0.3);
}
.sample-badge-4 .txt-p { color: #f59e0b; font-weight: 900; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }
.sample-badge-4 .txt-s { color: #ffffff; font-weight: 800; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }

/* Sample 5: Minimal Slate Rectangle Badge */
.sample-badge-5 {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.sample-badge-5 .txt-p { color: #d97706; font-weight: 900; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }
.sample-badge-5 .txt-s { color: #0f2942; font-weight: 800; font-size: clamp(1.15rem, 3.8vw, 2.3rem); }

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  text-align: center;
}

.hero-tagline {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 24px;
  font-weight: 500;
  text-align: center;
}
.hero-tagline .tag-item { color: #334155; font-weight: 600; }
.hero-tagline .sep { color: #c0392b; margin: 0 6px; font-weight: 700; }

.hero-contact-cards {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 16px;
}

@keyframes phoneRing {
  0%   { transform: rotate(0deg) scale(1); }
  6%   { transform: rotate(-12deg) scale(1.1); }
  12%  { transform: rotate(12deg) scale(1.1); }
  18%  { transform: rotate(-12deg) scale(1.1); }
  24%  { transform: rotate(12deg) scale(1.1); }
  30%  { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}

.hero-contact-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--r-md);
  box-shadow: 0 4px 18px rgba(15,23,42,0.08);
  transition: var(--t-normal);
  text-decoration: none;
}
.hero-contact-card:hover {
  border-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,163,74,0.18);
}
.contact-icon { font-size: 1.4rem; }
.contact-icon.green-phone {
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: phoneRing 3.2s ease-in-out infinite;
}
.contact-label {
  display: block; font-size: 0.68rem; color: #64748b; font-weight: 600; text-transform: uppercase;
}
.contact-value {
  display: block; font-size: 1.05rem; font-weight: 800; color: #0f2942;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* Hero Slider Column & Card Styles */
.hero-slider-col {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-slider-card {
  position: relative;
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15,23,42,0.12), 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.hero-slider-wrap {
  position: relative;
  height: 410px;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
  transform: scale(0.96);
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-img-box {
  width: 100%;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  padding: 12px;
}

.slide-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.hero-slide:hover .slide-img-box img {
  transform: scale(1.05);
}

.slide-caption-bar {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  text-align: left;
  position: relative;
}

.slide-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #c0392b;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.slide-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2942;
  margin-bottom: 2px;
}

.slide-spec {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.slider-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #0f2942;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-btn:hover {
  background: #c0392b;
  color: #ffffff;
  border-color: #c0392b;
  transform: translateY(-50%) scale(1.08);
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  width: 24px;
  border-radius: 5px;
  background: #c0392b;
}

/* ================================================
   SCROLL INDICATOR
   ================================================ */
.hero-scroll-indicator {
  position: absolute; bottom: 85px; left: 50%;
  transform: translateX(-50%); z-index: 3;
}
.hero-scroll-indicator span {
  display: block; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 20px; position: relative;
  animation: bounce 2.5s ease infinite;
}
.hero-scroll-indicator span::before {
  content: '';
  position: absolute; top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 9px;
  background: rgba(255,255,255,0.5);
  border-radius: 4px;
  animation: scroll-dot 2s ease infinite;
}
@keyframes scroll-dot {
  0%   { opacity:1; transform: translateX(-50%) translateY(0); }
  100% { opacity:0; transform: translateX(-50%) translateY(18px); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-10px); }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 34px;
  background: var(--grad-crimson);
  color: #fff; border-radius: var(--r-full);
  font-size: 0.95rem; font-weight: 700;
  transition: var(--t-normal);
  box-shadow: var(--sh-red);
  text-decoration: none; border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(192,57,43,0.55);
  filter: brightness(1.1); color: #fff;
}
.btn-primary.full-width { width: 100%; }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 34px;
  background: var(--wa); color: #fff;
  border-radius: var(--r-full);
  font-size: 0.95rem; font-weight: 700;
  transition: var(--t-normal);
  box-shadow: var(--sh-wa);
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.55);
  color: #fff;
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px;
  border: 2px solid var(--crimson);
  color: var(--crimson);
  border-radius: var(--r-full);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--t-normal);
  text-decoration: none; background: transparent;
}
.btn-outline:hover {
  background: var(--crimson); color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-red);
}
.btn-outline.full-width { width: 100%; }

/* ================================================
   TRUST STRIP
   ================================================ */
.trust-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink-mid) 100%);
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 3px solid var(--crimson);
  position: relative; z-index: 10;
}
.trust-strip-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 28px; flex: 1; min-width: 130px;
}
.trust-num {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.trust-text {
  font-size: 0.73rem; color: rgba(255,255,255,0.5);
  margin-top: 3px; text-align: center; font-weight: 500;
}
.trust-divider {
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ================================================
   SECTIONS COMMON
   ================================================ */
.section { padding: var(--sec-pad); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 58px; }

.section-label {
  display: inline-block;
  padding: 5px 18px;
  background: rgba(192,57,43,0.09);
  color: var(--crimson);
  border-radius: var(--r-full);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(192,57,43,0.2);
}
.section-label.light {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.15);
}
.section-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800; color: var(--text-dark);
  line-height: 1.2; margin-bottom: 14px;
}
.section-title.light { color: #fff; }
.section-desc {
  font-size: 1rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
}

/* ================================================
   SERVICES — with real images
   ================================================ */
.services { background: var(--surface-100); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px; margin-bottom: 60px;
}

.service-card {
  background: var(--surface-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--surface-300);
  transition: var(--t-normal);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
  border-color: rgba(192,57,43,0.18);
}

/* Image area */
.service-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #f8fafc;
  padding: 10px;
  transition: var(--t-slow);
}
.service-card:hover .service-img-wrap img { transform: scale(1.07); }

.service-img-label {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px;
  background: var(--crimson);
  color: #fff; border-radius: var(--r-full);
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}

.service-body {
  padding: 22px 22px 26px;
  border-top: 3px solid transparent;
  background-image: linear-gradient(white, white),
    linear-gradient(90deg, var(--crimson), var(--gold));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.service-name {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.service-desc {
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.65;
}

/* Navbar Highlighted Certificate Link */
.highlight-cert-nav {
  color: var(--gold-light) !important;
  font-weight: 700 !important;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.3);
  padding: 6px 14px !important;
  border-radius: var(--r-full);
}
.highlight-cert-nav:hover {
  background: rgba(212,160,23,0.25) !important;
  color: #fff !important;
}

/* Hero Certificate PDF Button */
.btn-cert-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-full);
  font-size: 0.9rem; font-weight: 700;
  background: linear-gradient(135deg, #d35400, #c0392b);
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 20px rgba(212,160,23,0.35);
  border: 1px solid rgba(243,156,18,0.5);
  transition: var(--t-normal);
}
.btn-cert-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(243,156,18,0.55);
  color: #fff;
}

/* ================================================
   FEATURED CERTIFICATE SHOWCASE SECTION
   ================================================ */
.cert-showcase-section {
  background: linear-gradient(180deg, var(--ink) 0%, #0d1522 100%);
  padding: 70px 0;
  position: relative;
}
.cert-showcase-card {
  background: rgba(18, 26, 40, 0.85);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(212,160,23,0.3);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(212,160,23,0.15);
}

.cert-showcase-header {
  background: linear-gradient(135deg, rgba(192,57,43,0.35), rgba(212,160,23,0.28));
  padding: 32px 36px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cert-gold-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 20px; border-radius: var(--r-full);
  background: rgba(212,160,23,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.cert-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.cert-main-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.1rem; font-weight: 800;
  color: #ffffff; margin-bottom: 6px;
  line-height: 1.25;
}
.cert-main-subtitle {
  font-size: 1.15rem; font-weight: 700;
  color: var(--gold-light); font-style: italic;
}

.cert-showcase-body {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; padding: 36px; align-items: center;
}

/* Certificate Document Visual Box */
.cert-doc-col { display: flex; flex-direction: column; gap: 12px; }
.cert-doc-frame {
  position: relative; border-radius: var(--r-md);
  overflow: hidden; border: 2px solid var(--gold);
  background: #fff; box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-doc-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 48px rgba(212,160,23,0.35);
}
.cert-watermark-seal {
  position: absolute; top: 12px; right: 12px;
  background: rgba(192,57,43,0.9); color: #fff;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
  letter-spacing: 0.8px; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cert-doc-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}
.cert-doc-overlay {
  position: absolute; inset: 0;
  background: rgba(10,15,25,0.75);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.cert-doc-frame:hover .cert-doc-overlay { opacity: 1; }
.cert-overlay-action-btn {
  background: var(--gold); color: #000;
  padding: 12px 24px; border-radius: var(--r-full);
  font-weight: 800; font-size: 0.88rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.cert-doc-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.6);
}
.cert-quick-link {
  color: var(--gold-light); font-weight: 700; text-decoration: none;
}
.cert-quick-link:hover { text-decoration: underline; color: #fff; }

/* Certificate Info Box */
.cert-info-col { color: #fff; }
.cert-badge-legal {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: #64ffda; margin-bottom: 12px;
}
.cert-info-title {
  font-size: 1.45rem; font-weight: 700; color: #fff;
  margin-bottom: 14px; line-height: 1.35;
}
.cert-info-desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.72);
  line-height: 1.65; margin-bottom: 24px;
}

.cert-feature-bullets {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px;
}
.cert-bullet { display: flex; gap: 14px; align-items: flex-start; }
.bullet-icon {
  font-size: 1.3rem; line-height: 1; flex-shrink: 0;
}
.cert-bullet strong { font-size: 0.92rem; color: #fff; display: block; margin-bottom: 2px; }
.cert-bullet p { font-size: 0.82rem; color: rgba(255,255,255,0.58); margin: 0; }

.cert-cta-buttons {
  display: flex; flex-direction: column; gap: 12px;
}
.btn-cert-pdf-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #d35400, #e67e22) !important;
  color: #ffffff !important; font-weight: 800; font-size: 0.95rem;
  text-decoration: none !important; box-shadow: 0 6px 20px rgba(211, 84, 0, 0.45);
  border: 1px solid #f39c12;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-cert-pdf-primary svg {
  fill: #ffffff !important;
}
.btn-cert-pdf-primary:hover {
  background: linear-gradient(135deg, #e67e22, #f39c12) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 126, 34, 0.6);
  color: #ffffff !important;
}

.btn-cert-wa-green {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13.5px 24px; border-radius: var(--r-md);
  background: #25d366 !important; color: #ffffff !important; font-weight: 800; font-size: 0.92rem;
  text-decoration: none !important; box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.25s ease;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-cert-wa-green svg {
  fill: #ffffff !important;
}
.btn-cert-wa-green:hover {
  background: #128c7e !important; transform: translateY(-2px); color: #ffffff !important;
}

/* Card Image Container for Certificate in Product 8 */
.cert-card-img-wrap {
  background: #f8fafc !important;
  padding: 6px !important;
}
.cert-card-img-wrap img {
  object-fit: contain !important;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ================================================
   PRODUCTS GALLERY GRID (Images with Border)
   ================================================ */
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.product-img-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 992px) {
  .product-img-card {
    height: 300px;
    padding: 14px;
  }
}

.product-img-card:hover {
  transform: translateY(-6px);
  border-color: #c0392b;
  box-shadow: 0 12px 30px rgba(192,57,43,0.18);
}

.product-img-card img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.product-img-card:hover img {
  transform: scale(1.04);
}

.view-full-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 41, 66, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.product-img-card:hover .view-full-badge {
  opacity: 1;
  background: #c0392b;
}

/* Single Image Per Row in Mobile View */
@media (max-width: 640px) {
  .product-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .product-img-card {
    height: 270px;
    padding: 10px;
    border-radius: 14px;
    border-width: 2px;
  }
}
  flex: 1.35; padding: 10px 10px; font-size: 0.78rem;
}
.product-pdf-btn {
  flex: 1; padding: 10px 10px; border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(212,160,23,0.25));
  color: #b47804; border: 1px solid rgba(212,160,23,0.4);
  font-size: 0.76rem; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  white-space: nowrap; transition: var(--t-fast);
}
.product-pdf-btn:hover {
  background: var(--gold); color: #000; border-color: var(--gold);
}

/* ================================================
   PRODUCTS SECTION
   ================================================ */
.products {
  background: linear-gradient(180deg, #eef0f4 0%, var(--surface-100) 100%);
}

/* Filter Tabs */
.filter-tabs {
  display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 46px;
}
.filter-tab {
  padding: 9px 22px;
  border-radius: var(--r-full);
  border: 2px solid var(--surface-300);
  background: var(--surface-white);
  color: var(--text-body);
  font-size: 0.86rem; font-weight: 600;
  cursor: pointer; transition: var(--t-normal);
  font-family: 'Inter', sans-serif;
}
.filter-tab:hover { border-color: var(--crimson); color: var(--crimson); }
.filter-tab.active {
  background: var(--grad-crimson);
  border-color: transparent; color: #fff;
  box-shadow: var(--sh-red);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.product-card {
  background: var(--surface-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--surface-300);
  transition: var(--t-normal); cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
  border-color: rgba(192,57,43,0.2);
}
.product-card.hidden { display: none !important; }

.product-img-wrap {
  position: relative; height: 195px; overflow: hidden;
}
.product-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-slow);
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-emoji {
  font-size: 4.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: var(--t-normal);
}
.product-card:hover .product-emoji { transform: scale(1.15) rotate(-4deg); }

/* Photo product images */
.product-img-photo {
  background: #0f172a;
  align-items: center; justify-content: center; padding: 0;
}
.product-img-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--t-slow);
}
.product-card:hover .product-img-photo img { transform: scale(1.08); }

.product-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,20,0.70); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--t-normal);
}
.product-card:hover .product-overlay { opacity: 1; }
.product-overlay-text {
  color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
.product-overlay-text::before { content: '💬'; font-size: 1.3rem; }

.product-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; z-index: 2;
}
.product-badge.digital    { background: rgba(13,110,253,0.88); color: #fff; }
.product-badge.mechanical { background: rgba(192,57,43,0.90); color: #fff; }
.product-badge.weights    { background: rgba(25,135,84,0.88); color: #fff; }
.product-badge.service    { background: rgba(111,66,193,0.88); color: #fff; }

.product-info { 
  padding: 18px; 
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.product-name { font-size: 0.98rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; line-height: 1.3; }
.product-spec { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; margin-top: auto; }

.product-wa-btn {
  width: 100%; padding: 11px 20px;
  background: var(--wa); color: #fff;
  border-radius: var(--r-full);
  font-size: 0.86rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--t-normal);
  font-family: 'Inter', sans-serif; cursor: pointer;
  box-shadow: 0 3px 14px rgba(37,211,102,0.28);
  border: none;
}
.product-wa-btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
}
.product-wa-btn:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37,211,102,0.45);
}

/* ================================================
   WHY US SECTION
   ================================================ */
.why-us {
  background: linear-gradient(160deg, var(--ink) 0%, var(--navy) 100%);
  position: relative; overflow: hidden;
}
.why-us::before {
  content: ''; position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(192,57,43,0.07) 0%, transparent 62%);
  pointer-events: none;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: var(--t-normal); position: relative; overflow: hidden;
}
.why-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-crimson);
  transform: scaleX(0); transform-origin: left;
  transition: var(--t-normal);
}
.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(192,57,43,0.22);
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.32);
}
.why-card:hover::after { transform: scaleX(1); }

/* Image icon for Why us cards */
.why-icon-img {
  width: 64px; height: 64px; border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 18px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.why-icon-img img { width: 100%; height: 100%; object-fit: cover; }
.why-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }

.why-card h3 {
  font-size: 1.04rem; font-weight: 700;
  color: #fff; margin-bottom: 10px;
}
.why-card p {
  font-size: 0.86rem; color: rgba(255,255,255,0.48); line-height: 1.68;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact { background: var(--surface-100); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 0; }

.contact-card-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--surface-300);
}
.contact-card-item:first-child { border-top: 1px solid var(--surface-300); }

.contact-card-icon {
  font-size: 1.25rem; flex-shrink: 0;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #fdf0ee, #fce0da);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(192,57,43,0.12);
}

.contact-card-label {
  display: block; font-size: 0.68rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 3px;
}
.contact-card-value {
  font-size: 0.97rem; font-weight: 600; color: var(--text-dark); line-height: 1.45;
}
.contact-card-value.link { color: var(--crimson); }
.contact-card-value.link:hover { color: var(--crimson-dark); }

.contact-cta-group {
  display: flex; flex-direction: column; gap: 12px; margin-top: 30px;
}

/* Map */
.contact-map {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-lg);
  height: 100%; min-height: 420px;
}
.map-wrapper { width: 100%; height: 100%; min-height: 420px; }
.map-wrapper iframe {
  width: 100%; height: 100%; min-height: 420px;
  border: none;
}
.map-overlay-card {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(10,10,18,0.93); backdrop-filter: blur(16px);
  border-radius: var(--r-md); padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap; box-shadow: var(--sh-lg);
  border: 1px solid rgba(255,255,255,0.09);
}
.map-pin { font-size: 1.4rem; }
.map-overlay-card strong { display: block; color: #fff; font-size: 0.9rem; font-weight: 700; }
.map-overlay-card span  { display: block; color: rgba(255,255,255,0.5); font-size: 0.76rem; }

/* ================================================
   FLOATING WHATSAPP — bulletproof fixed position
   ================================================ */
.floating-wa {
  position: fixed !important;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  transition: var(--t-normal);
  text-decoration: none;
  animation: float-in 0.5s ease 1.5s both;
  overflow: visible;
}
.floating-wa svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.floating-wa:hover {
  background: var(--wa-dark);
  transform: scale(1.13) translateY(-3px);
  box-shadow: 0 14px 48px rgba(37,211,102,0.65);
  color: #fff;
}
/* Pulse ring */
.floating-wa::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid rgba(37,211,102,0.55);
  animation: wa-ring 2.8s ease infinite;
  pointer-events: none;
}
@keyframes wa-ring {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.floating-wa-label { display: none !important; }

@keyframes float-in {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 44px 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 36px; align-items: center;
}
.footer-brand { display: flex; align-items: center; }
.footer-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 10px rgba(212,160,23,0.35));
}

.footer-info p { font-size: 0.84rem; color: rgba(255,255,255,0.48); margin-bottom: 5px; }
.footer-info a { color: rgba(255,255,255,0.68); }
.footer-info a:hover { color: var(--gold-light); }
.footer-cert { color: var(--gold-light) !important; font-weight: 600; font-size: 0.8rem !important; }

.footer-copy { text-align: right; }
.footer-copy p { font-size: 0.76rem; color: rgba(255,255,255,0.28); line-height: 1.7; }
.nexbuild-credit { margin-top: 4px; font-size: 0.76rem !important; color: rgba(255,255,255,0.45) !important; }
.nexbuild-credit a { color: var(--gold-light) !important; font-weight: 600; text-decoration: none; transition: var(--t-fast); }
.nexbuild-credit a:hover { color: #ffffff !important; text-decoration: underline; }

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================
   RESPONSIVE — TABLET (≤ 960px)
   ================================================ */
@media (max-width: 960px) {
  /* Mobile-only: Hide Product Slider & Fit Hero in Viewport */
  .hero-slider-col { display: none !important; }

  .hero {
    min-height: 88vh;
    min-height: 100dvh;
    padding: 78px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    width: 100%;
  }

  .hero-text-col {
    align-items: center;
    text-align: center;
    width: 100%;
    margin: auto 0;
    padding-top: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 14px;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
  }

  .hero-title-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.1;
  }
  .brand-panchwati-badge {
    font-size: clamp(1.8rem, 6.5vw, 2.7rem);
    padding: 6px 18px;
    border-radius: 8px;
    margin-bottom: 4px;
  }
  .brand-scale-service {
    font-size: clamp(1.05rem, 3.8vw, 1.35rem);
    font-weight: 700;
    color: #0f2942;
    margin-top: 4px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 6px;
  }

  .hero-tagline {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }

  .hero-contact-cards {
    margin-top: 140px !important;
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-direction: row !important;
  }

  .hero-contact-card {
    padding: 11px 18px;
    gap: 10px;
    flex: 1;
    max-width: 220px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  }

  .contact-icon { font-size: 1.1rem; }
  .contact-label { font-size: 0.6rem; }
  .contact-value { font-size: 0.86rem; }

  .hero-actions {
    width: 100%;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cert-hero, .btn-primary, .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.84rem;
  }

  /* Certificate background fit & auto slide on Mobile */
  .hero-bg {
    left: -35%; right: -35%;
    top: 0; bottom: 0;
    background-size: contain;
    background-position: center center;
    opacity: 0.30;
    filter: contrast(1.18) brightness(0.96);
    animation: certPanSlideMobile 14s ease-in-out infinite;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(10,10,18,0.98);
    backdrop-filter: blur(20px);
    padding: 20px; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    z-index: 999;
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-link { padding: 13px 16px; border-radius: var(--r-md); font-size: 1rem; }

  .cert-highlight { flex-direction: column; text-align: center; padding: 36px 24px; gap: 28px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .contact-map   { min-height: 300px; }
  .map-wrapper, .map-wrapper iframe { min-height: 300px; }

  /* Certificate Showcase Mobile Stack (<= 960px) */
  .cert-showcase-section { padding: 48px 0; }
  .cert-showcase-header { padding: 24px 18px 18px; }
  .cert-main-title { font-size: 1.5rem; }
  .cert-main-subtitle { font-size: 0.95rem; }
  .cert-showcase-body {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 20px 16px !important;
  }
  .cert-doc-col, .cert-info-col { width: 100% !important; }
  .cert-doc-frame { width: 100% !important; }
  .cert-doc-img { width: 100% !important; height: auto !important; }
  .cert-doc-overlay {
    opacity: 1 !important; position: relative !important;
    inset: auto !important; background: rgba(18,26,40,0.95) !important;
    padding: 10px !important;
  }
  .cert-overlay-action-btn {
    width: 100% !important; justify-content: center !important;
    font-size: 0.82rem !important; padding: 10px 14px !important;
  }
  .cert-info-title { font-size: 1.2rem; }
  .cert-info-desc { font-size: 0.86rem; }
  .cert-cta-buttons { width: 100% !important; }
  .btn-cert-pdf-primary, .btn-cert-wa-green {
    width: 100% !important; justify-content: center !important;
    font-size: 0.88rem !important;
  }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-brand { justify-content: center; }
  .footer-copy  { text-align: center; }

  .trust-divider { display: none; }
  .trust-item { min-width: 110px; padding: 8px 14px; }
}

@keyframes certPanSlideMobile {
  0%   { transform: translateX(-18%) scale(1.06); }
  50%  { transform: translateX(18%) scale(1.06); }
  100% { transform: translateX(-18%) scale(1.06); }
}

/* ================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ================================================ */
@media (max-width: 640px) {
  :root { --sec-pad: 64px 0; --sec-pad-sm: 48px 0; }

  .nav-cta { padding: 9px 14px; font-size: 0; }
  .nav-cta span { font-size: 1.2rem; }
  .nav-cta svg { width: 22px; height: 22px; }

  .hero { padding: 74px 14px 20px; min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); }

  .cert-showcase-card { border-radius: var(--r-lg); }
  .cert-gold-pill { font-size: 0.7rem; padding: 5px 14px; }
  .cert-main-title { font-size: 1.28rem; }
  .cert-showcase-body { padding: 16px 12px !important; gap: 20px !important; }
  .cert-bullet strong { font-size: 0.86rem; }
  .cert-bullet p { font-size: 0.78rem; }

  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-img-wrap { height: 180px; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Floating WA stays circular on mobile */
  .floating-wa { width: 56px; height: 56px; bottom: 22px; right: 18px; }

  .map-overlay-card { left: 14px; right: 14px; transform: none; white-space: normal; }

  .filter-tabs { gap: 8px; }
  .filter-tab { padding: 7px 14px; font-size: 0.8rem; }

  .cert-stamp { width: 120px; height: 120px; }
  .trust-num { font-size: 1.5rem; }
  .trust-text { font-size: 0.67rem; }
  .trust-item { min-width: 85px; padding: 6px 10px; }
}

@media (max-width: 380px) {
  .hero-title-main { font-size: 1.6rem; }
  .hero-badge { font-size: 0.68rem; padding: 5px 12px; }
}
