/* ============================================================
   NDS — Nik Daru Spadana  ·  Main Stylesheet
   © 2024  —  All Rights Reserved
   ============================================================ */

/* ----- 1. Font-Face Declarations ----- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ----- 2. CSS Custom Properties ----- */
:root {
  --primary: #0d6544;
  --primary-light: #10b981;
  --primary-dark: #064e3b;
  --accent-red: #dc2626;
  --accent-red-light: #fef2f2;
  --accent-blue: #2563eb;
  --accent-green: #059669;

  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-alt: #f3f4f6;

  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.3s ease;
}

/* ----- 3. Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  direction: rtl;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ----- 4. Container ----- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ----- 5. Top Contact Bar ----- */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.top-bar-item:hover {
  color: #fff;
}

.top-bar-item svg,
.top-bar-item i {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ----- 6. Main Header ----- */
.main-header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
}

.brand-title-text {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: #ecfdf5;
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}

.mobile-toggle:hover {
  background: var(--bg-alt);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--text-dark);
}

/* ----- 7. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(13, 101, 68, 0.35);
}

.btn-secondary {
  background: var(--accent-red);
  color: #fff;
}

.btn-secondary:hover {
  background: #b91c1c;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: #ecfdf5;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----- 8. Hero Section ----- */
.hero {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

/* Subtle decorative dots pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.8;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  margin-top: 3.5rem;
}

.hero-stat-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  flex: 1;
  min-width: 130px;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  display: block;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 0.25rem;
  display: block;
}

/* ----- 9. Page Hero (Inner Pages) ----- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.page-hero-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 550px;
  margin-inline: auto;
}

/* ----- 10. Breadcrumb ----- */
.breadcrumb-wrap {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--primary);
  font-weight: 600;
}

/* ----- 11. Section Styles ----- */
.section {
  padding: 5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: #ecfdf5;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title-wrap .section-subtitle {
  margin-inline: auto;
}

/* ----- 12. Features Grid ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-green { background: #ecfdf5; color: var(--accent-green); }
.icon-blue  { background: #eff6ff; color: var(--accent-blue); }
.icon-red   { background: #fef2f2; color: var(--accent-red); }
.icon-orange { background: #fff7ed; color: #ea580c; }

.feature-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 1rem 0 0.5rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ----- 13. Product Cards ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.product-image-wrap {
  background: var(--bg-alt);
  padding: 2rem;
  text-align: center;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
  margin-inline: auto;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.tag-red   { background: #fef2f2; color: #dc2626; }
.tag-blue  { background: #eff6ff; color: #2563eb; }
.tag-green { background: #ecfdf5; color: #059669; }

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: var(--text-dark);
  line-height: 1.4;
}

.product-brief {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ----- 14. Product Single Page ----- */
.product-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-gallery-box {
  background: var(--bg-alt);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: sticky;
  top: 6rem;
}

.gallery-main-img {
  max-height: 400px;
  width: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.product-info-col h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-dark);
}

.product-subtitle-en {
  color: var(--text-light);
  font-size: 0.9rem;
  direction: ltr;
  text-align: right;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.product-badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pharma-badge {
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 600;
}

.product-desc-text {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Spec Table */
.spec-table-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th {
  background: var(--bg-alt);
  text-align: right;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  width: 40%;
}

.spec-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

/* ----- 15. Tabs ----- */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin: 3.5rem 0 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

/* ----- 16. Contact Grid ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  padding: 2.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-method {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background: #ecfdf5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-method-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-method-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-method-text a {
  color: var(--text-muted);
}

.contact-method-text a:hover {
  color: var(--primary);
}

.form-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ----- 17. Forms ----- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ----- 18. Blog Grid ----- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-thumb-wrap {
  height: 200px;
  overflow: hidden;
}

.blog-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.blog-card:hover .blog-thumb-wrap img {
  transform: scale(1.08);
}

.blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.blog-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 1rem;
  transition: gap var(--transition);
}

.blog-read-more:hover {
  gap: 0.6rem;
}

/* ----- 19. Map ----- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ----- 20. Pill List ----- */
.pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.6;
}

.pill-check {
  width: 28px;
  height: 28px;
  background: #ecfdf5;
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ----- 21. Pagination ----- */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-num,
.page-nav-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.page-num:hover,
.page-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-num.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ----- 22. Footer ----- */
.main-footer {
  background: var(--primary-dark);
  color: #fff;
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition), padding-right var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  padding-right: 0.3rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  align-items: flex-start;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ----- 23. About Grid ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text-col .section-title {
  text-align: right;
}

/* ----- 24. Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger delays for grid children */
.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }

/* ----- 25. Responsive ----- */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .hero-stat-box {
    padding: 1rem 1.25rem;
  }
}

/* Mobile */
/* Mobile (<= 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on entire page */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  body {
    padding-bottom: 75px; /* Prevent floating bar from overlapping footer */
  }

  /* Navigation Drawer */
  .nav-menu {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 300px);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    gap: 0.35rem;
  }

  .nav-menu.open {
    display: flex !important;
    animation: slideDrawer 0.3s ease-out;
  }

  @keyframes slideDrawer {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: auto;
    padding: 3.5rem 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
    line-height: 1.35;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.8;
  }

  /* Compact 2x2 Stats Grid for Mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2.25rem;
  }

  .hero-stat-box {
    padding: 0.85rem 0.65rem;
    min-width: auto;
    border-radius: var(--radius-md);
  }

  .hero-stat-num {
    font-size: 1.45rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  /* 3D Hero Stage on Mobile */
  .hero-3d-stage {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-lg);
  }

  .stage-display {
    min-height: 220px;
    margin: 1rem 0;
  }

  .stage-product-img {
    max-height: 190px;
  }

  .stage-floating-chip {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }

  .stage-chip-top-left {
    top: 5%;
    right: 2%;
  }

  .stage-chip-bottom-right {
    bottom: 5%;
    left: 2%;
  }

  .stage-nav-pill {
    font-size: 0.76rem;
    padding: 0.45rem 0.35rem;
  }

  .stage-footer-info {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .stage-footer-btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem;
  }

  /* Grids Stack to 1 Column */
  .features-grid,
  .product-grid,
  .product-single-grid,
  .contact-grid,
  .about-grid,
  .blog-grid,
  .footer-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .product-gallery-box {
    position: static;
  }

  .top-bar {
    display: none;
  }

  .page-hero {
    padding: 2.75rem 0;
  }

  .page-hero-title {
    font-size: 1.55rem;
  }

  .product-info-col h1 {
    font-size: 1.55rem;
  }

  .tabs-nav {
    margin: 1.75rem 0 1.25rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .tab-btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
  }

  .contact-info-card,
  .form-card {
    padding: 1.5rem 1.2rem;
  }

  /* Table Mobile Scroll Protection */
  .spec-table-wrap,
  div:has(> table) {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .spec-table {
    min-width: 520px;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.7rem 0.85rem;
    font-size: 0.84rem;
  }

  /* Form Elements Font Size (Prevents iOS Zoom) */
  input, select, textarea, .form-control {
    font-size: 16px !important;
  }
}

/* Small mobile (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-title-wrap {
    margin-bottom: 2rem;
  }

  .container {
    padding-inline: 0.9rem;
  }

  .btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
    min-height: 44px; /* Accessible touch target */
  }

  .product-image-wrap {
    padding: 1.25rem;
    min-height: 170px;
  }

  .product-thumb {
    max-height: 155px;
  }

  /* Hide header CTA on very narrow phones to avoid logo overlap */
  .nav-actions .btn {
    display: none;
  }

  .brand-logo-img {
    height: 38px;
  }
}

/* ----- 26. Mobile Menu Overlay ----- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  backdrop-filter: blur(2px);
}

.menu-overlay.active {
  display: block;
}

/* ----- 27. Custom Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--bg-alt);
}

/* ----- 28. Selection ----- */
::selection {
  background: var(--primary-light);
  color: #fff;
}

::-moz-selection {
  background: var(--primary-light);
  color: #fff;
}

/* ----- Utility Classes ----- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.bg-light { background: var(--bg-light); }
.bg-alt   { background: var(--bg-alt); }

/* Content prose (for blog/article body) */
.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-right: 1.5rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.prose blockquote {
  border-right: 4px solid var(--primary-light);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #ecfdf5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* ============================================================
   NDS LUXURY PHARMA 2026 DESIGN SYSTEM & INTERACTIVE UPGRADES
   ============================================================ */

/* ----- 1. Hero Grid & Split Showcase ----- */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .hero-pulse-badge {
    display: flex;
    width: 100%;
    font-size: 0.76rem;
    padding: 0.4rem 0.75rem;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
  }
  .hero-trust-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
  }
  .hero-trust-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    box-sizing: border-box;
  }
}

/* ----- 2. Interactive Hero 3D Stage ----- */
.hero-3d-stage {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 30px rgba(16, 185, 129, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-3d-stage:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.25);
}

.stage-glow-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
  transition: background 0.5s ease;
}

.hero-3d-stage[data-active="repellent"] .stage-glow-ambient {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, transparent 70%);
}
.hero-3d-stage[data-active="cooling"] .stage-glow-ambient {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
}
.hero-3d-stage[data-active="afterbite"] .stage-glow-ambient {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
}

.stage-nav-pills {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  gap: 0.3rem;
  position: relative;
  z-index: 3;
}

.stage-nav-pill {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.stage-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.stage-nav-pill.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 800;
}

.stage-display {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  z-index: 2;
}

.stage-product-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92) translateY(15px);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-product-item.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.stage-product-img {
  max-height: 270px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s ease;
}

.stage-product-item:hover .stage-product-img {
  transform: translateY(-8px) scale(1.03);
}

/* Floating Spec Chips */
.stage-floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: float-chip 3s ease-in-out infinite alternate;
}

.stage-chip-top-left {
  top: 15%;
  right: 5%;
}

.stage-chip-bottom-right {
  bottom: 12%;
  left: 5%;
  animation-delay: 1.5s;
}

@keyframes float-chip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.stage-footer-info {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.stage-footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.stage-footer-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.15rem;
}

.stage-footer-btn {
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.stage-footer-btn:hover {
  background: #ecfdf5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .hero-3d-stage {
    padding: 1rem 0.65rem;
    margin-top: 1.25rem;
    border-radius: var(--radius-lg);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .stage-nav-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    padding: 0.2rem;
    width: 100%;
    box-sizing: border-box;
  }
  .stage-nav-pill {
    font-size: 0.72rem;
    padding: 0.45rem 0.15rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    justify-content: center;
    gap: 0.2rem;
  }
  .stage-display {
    min-height: 190px;
    margin: 0.75rem 0;
    overflow: hidden;
  }
  .stage-product-img {
    max-height: 155px;
  }
  .stage-floating-chip {
    font-size: 0.65rem;
    padding: 0.25rem 0.45rem;
  }
  .stage-chip-top-left {
    top: 4px;
    right: 4px;
  }
  .stage-chip-bottom-right {
    bottom: 4px;
    left: 4px;
  }
  .stage-footer-info {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
  }
  .stage-footer-title {
    font-size: 0.88rem;
  }
  .stage-footer-desc {
    font-size: 0.75rem;
  }
  .stage-footer-btn {
    width: 100%;
    text-align: center;
    padding: 0.55rem;
  }
}

.advisor-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .advisor-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.calc-radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .calc-radio-group {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .calc-radio-group label {
    width: 100%;
    box-sizing: border-box;
  }
  .calculator-card {
    padding: 1.5rem 1rem !important;
  }
}

/* ----- 3. Interactive Smart Product Advisor ----- */
.advisor-wrapper {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-top: 2rem;
}

.advisor-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .advisor-tabs {
    grid-template-columns: 1fr;
  }
}

.advisor-tab-btn {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: right;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.advisor-tab-btn:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.advisor-tab-btn.active {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 4px 16px rgba(13, 101, 68, 0.12);
}

.advisor-tab-icon {
  font-size: 1.8rem;
  line-height: 1;
  background: #ecfdf5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.advisor-tab-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
}

.advisor-tab-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
  line-height: 1.4;
}

.advisor-content-box {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  animation: fadeIn 0.4s ease;
}

.advisor-content-box.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 820px) {
  .advisor-content-box.active {
    grid-template-columns: 1fr;
  }
}

.advisor-feature-tag {
  display: inline-block;
  background: #ecfdf5;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.advisor-product-preview {
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.advisor-product-preview img {
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

/* ----- 4. B2B Enterprise Calculator ----- */
.calculator-card {
  background: linear-gradient(145deg, #064e3b 0%, #0d6544 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.25);
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.calc-slider-wrap {
  margin: 2rem 0;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.calc-slider-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #6ee7b7;
}

.calc-range {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #34d399;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  border: 3px solid #ffffff;
  transition: transform 0.2s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-result-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.calc-result-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.calc-result-label {
  font-size: 1rem;
  color: #a7f3d0;
  font-weight: 700;
}

.calc-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
}

.calc-spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.calc-spec-item strong {
  color: #ffffff;
}

/* ----- 5. Botanical Lab Showcase ----- */
.botanical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.botanical-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.botanical-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.12);
}

.botanical-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.botanical-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.botanical-molecule {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.botanical-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.botanical-effect {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.botanical-target {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ----- 6. Luxury Floating Quick-Action Bar ----- */
.floating-quick-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.floating-quick-bar:hover {
  transform: translateY(-2px);
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.floating-btn-phone {
  background: var(--primary);
  color: #ffffff;
}

.floating-btn-phone:hover {
  background: var(--primary-light);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.floating-btn-bale {
  background: #10b981;
  color: #ffffff;
}

.floating-btn-bale:hover {
  background: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.floating-btn-top {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.floating-btn-top:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .floating-quick-bar {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    padding: 0.35rem 0.45rem !important;
    gap: 0.35rem !important;
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box !important;
  }
  .floating-btn {
    flex: 1;
    justify-content: center;
    padding: 0.45rem 0.35rem !important;
    font-size: 0.74rem !important;
  }
  .floating-btn-top {
    flex-shrink: 0;
    width: 32px !important;
    height: 32px !important;
  }
}



/* ==========================================================================
   NDS UI/UX 2.0 Enhancements (Visual & Interaction Polish)
   ========================================================================== */

/* 1. Reading Scroll Progress Bar */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
  z-index: 999999;
  width: 0%;
  transform-origin: right;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* 2. Branded Form Focus & Live Validation */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.22) !important;
  background-color: #ffffff !important;
}

.input-validation-wrap {
  position: relative;
  display: block;
}

.input-validation-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  display: none;
  pointer-events: none;
  transition: all 0.2s ease;
}

.input-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

.input-valid + .input-validation-icon,
.input-validation-wrap.valid .input-validation-icon {
  display: inline-block;
  color: #10b981;
}

.input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* 3. Hero 3D Stage Ambient Ground Shadow & Progress */
.stage-ground-shadow {
  width: 180px;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 70%);
  margin: -14px auto 0 auto;
  border-radius: 50%;
  filter: blur(4px);
  animation: shadow-pulse 3s ease-in-out infinite alternate;
}

@keyframes shadow-pulse {
  0% { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1.08); opacity: 0.85; }
}

.stage-nav-pill {
  position: relative;
  overflow: hidden;
}

.stage-nav-pill.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  height: 3px;
  background: #34d399;
  width: 100%;
  animation: pill-progress 6s linear forwards;
}

@keyframes pill-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* 4. Comparison Section (Dianthus vs Chemical Repellents) */
.comparison-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.comparison-card {
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.comparison-card-winner {
  background: #ffffff;
  border: 2px solid #10b981;
  box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.15);
}

.comparison-card-loser {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  opacity: 0.9;
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.comparison-badge-winner {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.comparison-badge-loser {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.comparison-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.comparison-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.96rem;
  line-height: 1.6;
}

.comparison-icon-winner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison-icon-loser {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* 5. Interactive FAQ Accordion */
.faq-section {
  padding: 4.5rem 0;
  background: #ffffff;
}

.faq-container {
  max-width: 820px;
  margin: 2.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: #10b981;
  box-shadow: 0 8px 20px -3px rgba(16, 185, 129, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  background: none;
  border: none;
  text-align: right;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.faq-item.active .faq-question {
  color: #047857;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #ecfdf5;
  color: #047857;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
  color: var(--text-body);
  line-height: 1.85;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.35rem;
}

/* 6. Calculator Stepper Controls & Tiered Discounts */
.calc-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.calc-stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.calc-stepper-btn:hover {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
  transform: scale(1.08);
}

.calc-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #064e3b;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-top: 0.85rem;
  animation: pulse-border 2s infinite alternate;
}

@keyframes pulse-border {
  from { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  to { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* 7. Live Sales Online Indicator in Floating Bar */
.live-status-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: #ffffff;
  font-weight: 600;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.live-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #10b981;
  animation: live-pulse-ring 1.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes live-pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* 8. Toast Feedback */
.nds-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #111827;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  z-index: 9999999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nds-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* 9. Layout Stability & Mobile Safe Area */
.blog-card-img,
.product-catalog-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floating-quick-bar {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
  @media (max-width: 600px) {
    .floating-quick-bar {
      bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    }
  }
}
