/* ============================================================
   TANCURE PHARMA — Global Stylesheet
   ============================================================ */

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

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --primary:        #7B1255;
  --primary-dark:   #5a0d3e;
  --primary-light:  #f9edf4;
  --primary-mid:    #a81870;
  --gold:           #c9933a;
  --gold-light:     #fdf3e3;
  --dark:           #0d1118;
  --dark-2:         #1a1f2e;
  --gray:           #64748b;
  --gray-light:     #f1f5f9;
  --border:         #e2e8f0;
  --white:          #ffffff;
  --shadow-sm:      0 1px 8px rgba(0,0,0,0.06);
  --shadow:         0 4px 24px rgba(123,18,85,0.10);
  --shadow-lg:      0 16px 48px rgba(123,18,85,0.16);
  --radius:         18px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font:           'Poppins', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.7; overflow-x: hidden; }
html.menu-open,
body.menu-open { overflow: hidden; overscroll-behavior: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1260px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ── Section Labels ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 16px;
  border-radius: 100px; margin-bottom: 14px;
}
.eyebrow-gold {
  background: var(--gold-light); color: var(--gold);
}

/* ── Typography ─────────────────────────────────────────────── */
.heading-xl { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.18; }
.heading-lg { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.25; }
.heading-md { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.text-primary { color: var(--primary); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--gray); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 30px; border-radius: 100px;
  font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(123,18,85,0.32); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white    { background: var(--white); color: var(--primary); }
.btn-white:hover  { background: var(--primary-light); transform: translateY(-2px); }
.btn-ghost    { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover  { background: rgba(255,255,255,0.22); }
.btn-lg   { padding: 16px 40px; font-size: 1rem; }
.btn-sm   { padding: 9px 20px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-nav-cta { background: var(--primary); color: var(--white); padding: 10px 24px; border-radius: 100px; font-size: 0.88rem; font-weight: 600; }
.btn-nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding: 14px 0;
}
.nav-container {
  max-width: 1260px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 0;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 68px; width: auto; transition: var(--transition); }
.navbar.scrolled .logo-img { height: 56px; filter: none; }
.navbar:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }
/* For pages with light hero (about, products, etc.) */
.navbar.light-hero:not(.scrolled) .logo-img { filter: none; }

.nav-links { display: flex; align-items: center; list-style: none; gap: 2px; margin-left: auto; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; padding: 8px 16px;
  border-radius: 8px; transition: var(--transition); position: relative;
}
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active { color: #fff; background: rgba(255,255,255,0.14); }
.navbar.scrolled .nav-links a { color: var(--dark); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.navbar.scrolled .nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* active underline */
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  list-style: none;
}


.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 10px; z-index: 1001; position: relative; }
.hamburger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span { background: var(--primary) !important; }
.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); }

.mobile-logo-wrap, .mobile-social-wrap { display: none; }

/* ── Marquee Strip ───────────────────────────────────────────── */
.marquee-strip { background: var(--primary); padding: 13px 0; overflow: hidden; }
.marquee-inner { display: flex; gap: 52px; width: max-content; animation: marquee 24s linear infinite; }
.marquee-inner span { color: #fff; font-size: 0.84rem; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.marquee-inner i { color: rgba(255,255,255,0.55); font-size: 0.75rem; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Hero (Home) ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #7B1255 0%, #5a0d3e 45%, #2e0620 100%);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 0 5vw; gap: 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 50%, rgba(201,147,58,0.07), transparent);
  pointer-events: none;
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shapes span {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-shapes span:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -150px; }
.hero-shapes span:nth-child(2) { width: 350px; height: 350px; bottom: -120px; left: -80px; }
.hero-shapes span:nth-child(3) { width: 160px; height: 160px; top: 30%; left: 42%; background: rgba(201,147,58,0.06); }

.hero-content { z-index: 2; padding-top: 140px; padding-bottom: 60px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 22px; border-radius: 100px; margin-bottom: 32px;
}
.hero-eyebrow i { color: var(--gold); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.08rem; color: rgba(255,255,255,0.72); max-width: 500px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; align-items: center; gap: 0; }
.hero-stat { padding: 0 28px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; display: block; }
.hero-stat-label { font-size: 0.76rem; color: rgba(255,255,255,0.55); }
.hero-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.18); }

/* Hero Visual */
.hero-visual { z-index: 2; padding-top: 80px; display: flex; justify-content: center; align-items: center; }
.hero-cards { position: relative; width: 340px; height: 380px; }
.hero-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 230px; height: 230px;
  background: radial-gradient(circle, rgba(201,147,58,0.15), transparent 70%);
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.08);
}
.h-card {
  position: absolute; background: rgba(255,255,255,0.09);
  backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px; padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-weight: 600; font-size: 0.92rem;
}
.h-card i { font-size: 1.5rem; color: var(--gold); }
.h-card-1 { top: 0; left: 0; animation: floatA 4s ease-in-out infinite; }
.h-card-2 { top: 48%; right: 0; transform: translateY(-50%); animation: floatB 4s ease-in-out 1.4s infinite; }
.h-card-3 { bottom: 0; left: 24px; animation: floatA 4s ease-in-out 2.8s infinite; }

@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes floatB { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 14px))} }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: 180px 0 100px;
  background: linear-gradient(145deg, #7B1255 0%, #5a0d3e 55%, #2e0620 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,147,58,0.06), transparent);
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a, .breadcrumb span { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb i { font-size: 0.6rem; color: rgba(255,255,255,0.35); }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.68); max-width: 560px; }
.page-hero-deco {
  position: absolute; right: 5vw; top: 50%; transform: translateY(-50%);
  opacity: 0.06; font-size: 14rem; color: #fff; z-index: 0;
  pointer-events: none; line-height: 1;
}

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar { background: var(--white); box-shadow: var(--shadow); position: relative; z-index: 10; }
.stats-bar .container { display: flex; }
.stat-item {
  flex: 1; text-align: center; padding: 36px 20px;
  border-right: 1px solid var(--border); transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--primary-light); }
.stat-item .num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; display: block; }
.stat-item .label { font-size: 0.82rem; color: var(--gray); margin-top: 5px; }

/* ── About (Home) ────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; max-width: 460px; border-radius: 24px; object-fit: cover; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-float-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
}
.about-float-badge .badge-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; }
.about-float-badge strong { display: block; font-size: 1rem; color: var(--dark); }
.about-float-badge small { color: var(--gray); font-size: 0.78rem; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0 36px; }
.af-item { display: flex; gap: 14px; align-items: flex-start; }
.af-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; }
.af-item strong { display: block; font-size: 0.92rem; }
.af-item small { color: var(--gray); font-size: 0.78rem; }

/* ── Categories Grid ─────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.cat-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 32px 26px;
  position: relative; overflow: hidden; transition: var(--transition);
  cursor: default;
}
.cat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--clr, var(--primary)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cat-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card:hover::after { transform: scaleX(1); }

.cat-icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: color-mix(in srgb, var(--clr, var(--primary)) 10%, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--clr, var(--primary)); margin-bottom: 18px;
}
.cat-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.cat-card p  { font-size: 0.84rem; color: var(--gray); margin-bottom: 16px; line-height: 1.65; }
.cat-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.cat-card ul li { font-size: 0.82rem; color: var(--gray); padding-left: 16px; position: relative; }
.cat-card ul li::before { content: '›'; position: absolute; left: 0; color: var(--clr, var(--primary)); font-weight: 700; }

.cat-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--clr, var(--primary)); transition: gap 0.25s; }
.cat-link:hover { gap: 10px; }

/* ── Product Cards ───────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); overflow: hidden; transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card-top { padding: 28px 24px 0; position: relative; }
.product-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  background: var(--primary); color: #fff;
}
.product-badge.new { background: #16a34a; }
.product-badge.hot { background: #ea580c; }
.product-icon {
  width: 68px; height: 68px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 16px;
}
.product-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.product-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--primary); margin-bottom: 10px; display: block; }
.product-card p { font-size: 0.84rem; color: var(--gray); line-height: 1.65; }
.product-card-bottom { padding: 18px 24px 24px; }

/* ── Filter Tabs ─────────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 9px 20px; border-radius: 100px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--gray); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ── Why Us ──────────────────────────────────────────────────── */
.why-section {
  background: linear-gradient(145deg, #7B1255 0%, #5a0d3e 100%);
}
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.why-item { display: flex; align-items: flex-start; gap: 18px; }
.why-ico { width: 50px; height: 50px; flex-shrink: 0; background: rgba(255,255,255,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--gold); }
.why-item h4 { color: #fff; font-size: 0.98rem; margin-bottom: 4px; }
.why-item p  { color: rgba(255,255,255,0.62); font-size: 0.84rem; }

.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-stat-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: var(--transition);
}
.why-stat-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.why-stat-card i { font-size: 1.8rem; color: var(--gold); margin-bottom: 12px; display: block; }
.why-stat-card .wnum { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.why-stat-card .wlabel { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 5px; }

/* ── Certifications ──────────────────────────────────────────── */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
  background: var(--gray-light, #f1f5f9); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; transition: var(--transition);
  border: 1.5px solid var(--border);
}
.cert-card:hover { background: var(--white); transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cert-ico { width: 70px; height: 70px; margin: 0 auto 18px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--primary); }
.cert-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.cert-card p { font-size: 0.84rem; color: var(--gray); line-height: 1.65; }

/* ── Timeline (Horizontal Stepper) ───────────────────────────── */
.timeline-h {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline-h::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  z-index: 0;
  opacity: 0.35;
}

.tl-h-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 16px; position: relative;
}
.tl-h-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; position: relative; z-index: 1;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-light), var(--shadow);
  margin-bottom: 20px; transition: var(--transition);
  flex-shrink: 0;
}
.tl-h-item:hover .tl-h-dot {
  transform: scale(1.1);
  background: var(--primary-dark);
  box-shadow: 0 0 0 5px var(--primary-light), var(--shadow-lg);
}
.tl-h-year {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 8px;
  background: var(--primary-light); padding: 3px 10px; border-radius: 100px;
  display: inline-block;
}
.tl-h-content h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.tl-h-content p  { font-size: 0.82rem; color: var(--gray); line-height: 1.65; }

/* ── Legacy timeline classes (mobile fallback kept) ──────────── */
.tl-year { font-size: 0.76rem; font-weight: 700; letter-spacing: 1.5px; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }

/* ── Values ──────────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  text-align: center; padding: 36px 20px;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  transition: var(--transition); background: var(--white);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.value-icon { width: 68px; height: 68px; margin: 0 auto 18px; background: var(--primary-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--primary); transition: var(--transition); }
.value-card:hover .value-icon { background: var(--primary); color: var(--white); }
.value-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 0.83rem; color: var(--gray); line-height: 1.65; }

/* About: Mission / Vision */
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

/* ── Process Steps ───────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 44px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light)); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num { width: 88px; height: 88px; margin: 0 auto 20px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--primary-light); }
.process-step h4 { font-size: 0.96rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.82rem; color: var(--gray); line-height: 1.65; }

/* ── Testimonials ────────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: var(--transition); }
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.testi-card.featured { background: linear-gradient(145deg, var(--primary), var(--primary-dark)); border-color: transparent; }
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-stars i { color: #f59e0b; font-size: 0.88rem; }
.testi-card.featured .testi-stars i { color: var(--gold); }
.testi-text { font-size: 0.9rem; color: var(--gray); line-height: 1.75; margin-bottom: 22px; font-style: italic; }
.testi-card.featured .testi-text { color: rgba(255,255,255,0.8); }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 42px; height: 42px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.testi-card.featured .testi-av { background: rgba(255,255,255,0.15); color: #fff; }
.testi-author strong { font-size: 0.9rem; color: var(--dark); display: block; }
.testi-card.featured .testi-author strong { color: #fff; }
.testi-author small { font-size: 0.78rem; color: var(--gray); }
.testi-card.featured .testi-author small { color: rgba(255,255,255,0.6); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.contact-info-card { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.ci-icon { width: 46px; height: 46px; flex-shrink: 0; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--primary); }
.ci-icon.gold { background: var(--gold-light); color: var(--gold); }
.ci-body h5 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.ci-body p  { margin: 0; font-size: 0.84rem; color: var(--gray); line-height: 1.65; }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a { width: 38px; height: 38px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.9rem; transition: var(--transition); }
.social-row a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.contact-form-wrap { background: var(--gray-light, #f1f5f9); border-radius: var(--radius); padding: 44px 40px; }
.contact-form-wrap h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.contact-form-wrap > p { font-size: 0.88rem; color: var(--gray); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.88rem;
  background: var(--white); color: var(--dark); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123,18,85,0.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(145deg, #7B1255 0%, #5a0d3e 100%);
  padding: 80px 0; text-align: center;
}
.cta-section h2 { font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-section p { font-size: 1.05rem; color: rgba(255,255,255,0.7); margin-bottom: 36px; max-width: 560px; margin-inline: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────── */
/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: #080a0f; position: relative; border-top: 1px solid rgba(123,18,85,0.15); }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}
.footer-top { padding: 90px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1fr; gap: 60px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.8; margin: 22px 0 28px; max-width: 320px; }
.footer-logo-img { height: 58px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.95rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(123,18,85,0.3); }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: var(--transition); display: flex; align-items: center; gap: 0; }
.footer-col a:hover { color: #fff; transform: translateX(5px); }
.footer-col a:hover::before { content: '›'; margin-right: 8px; color: var(--primary); font-weight: 800; }

.footer-legal {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-legal-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-legal-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.footer-legal-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
}
.footer-legal-card p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-legal-card p + p { margin-top: 8px; }
.footer-legal-card a {
  color: rgba(255,255,255,0.8);
}
.footer-legal-card a:hover {
  color: #fff; text-decoration: underline;
}
.footer-legal-note {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding: 24px;
  background: rgba(123,18,85,0.05);
  border: 1px solid rgba(123,18,85,0.15);
  border-radius: var(--radius-sm);
  text-align: center;
}
.footer-legal-note span { display: inline-block; margin-bottom: 6px; }
.footer-legal-note p { font-style: italic; max-width: 800px; margin: 0 auto; font-size: 0.82rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 30px 0; background: rgba(0,0,0,0.2); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }
.footer-credit { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-credit strong { color: rgba(255,255,255,0.65); font-weight: 600; }

/* ── Back to Top ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 46px; height: 46px; background: var(--primary); color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.96rem; box-shadow: 0 4px 16px rgba(123,18,85,0.35);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Motion Init States (prevent FOUC) ──────────────────────── */
[data-fade] { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-fade].visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────────── */
/* ── Responsive ──────────────────────────────────────────────── */

/* TABLET LANDSCAPE (1080px and below) */
@media (max-width: 1080px) {
  .container { padding: 0 40px; }
  .hero { gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .footer-legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* TABLET PORTRAIT / SMALL LAPTOP (992px and below) */
@media (max-width: 992px) {
  .section { padding: 80px 0; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; min-height: auto; }
  .hero-content { padding-top: 48px; padding-bottom: 40px; }
  .hero-visual { padding-top: 20px; padding-bottom: 80px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero p { margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { display: flex; justify-content: center; }
  .about-img-wrap img { max-width: 100%; height: auto; aspect-ratio: 16/9; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  /* Stats: wrap into multi-row at tablet so items don't get too narrow */
  .stats-bar .container { flex-wrap: wrap; }
  .stat-item { flex: 1 1 calc(33.333% - 2px); border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  /* Page hero reduced at tablet */
  .page-hero { padding: 150px 0 80px; }
}

/* MOBILE (768px and below) */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-sm { padding: 48px 0; }
  .heading-xl { font-size: 2rem; }
  .heading-lg { font-size: 1.75rem; }
  .page-hero { padding: 130px 0 64px; }
  .page-hero h1 { font-size: clamp(1.6rem,6vw,2.4rem); }
  .page-hero-deco { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 20px; }
  
  .navbar { padding: 12px 0; }
  .nav-container { justify-content: space-between; position: relative; padding: 0 20px; }
  .logo-img { height: 56px; }
  .navbar.scrolled .logo-img { height: 48px; }
  .nav-links { display: none; }
  .hamburger { display: flex; margin-left: auto; z-index: 1001; padding: 8px; }
  .hamburger span { width: 24px; }

  /* Mobile Menu logic in components.js - styling here */
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    position: fixed; inset: 0; width: auto; height: 100dvh;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(123,18,85,0.99) 0%, rgba(74,10,51,0.99) 100%);
    margin: 0;
    padding: calc(78px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    z-index: 1000; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: menuFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes menuFadeIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

  .mobile-logo-wrap { display: flex; justify-content: center; margin-bottom: 28px; width: 100%; }
  .mobile-menu-logo { height: 62px; width: auto; filter: brightness(0) invert(1); }
  
  .nav-links li { width: 100%; text-align: center; }
  .nav-links.open li > a:not(.btn) { 
    display: inline-block;
    color: rgba(255,255,255,0.9) !important; 
    font-size: clamp(1.15rem, 4.4vw, 1.45rem); 
    font-weight: 700;
    padding: 14px 0; 
    width: 100%;
    transition: var(--transition);
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .nav-links.open li > a:not(.btn):hover { color: var(--gold) !important; transform: scale(1.1); }
  .nav-links.open li > a:not(.btn).active { color: var(--gold) !important; }
  
  .mobile-social-wrap { margin-top: 28px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; width: 100%; }
  .mobile-social-wrap p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.5); margin-bottom: 20px; font-weight: 600; }
  .mobile-social { display: flex; gap: 25px; justify-content: center; }
  .mobile-social a { font-size: 1.4rem !important; color: #fff !important; width: auto !important; padding: 0 !important; opacity: 0.8; }
  .mobile-social a:hover { opacity: 1; color: var(--gold) !important; transform: translateY(-5px); }
  
  .hamburger.open span { background: #fff !important; }
  
  .mobile-logo-wrap, .mobile-social-wrap { display: block; }

  .hero-shapes { display: none; }
  .hero-visual { display: none; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero { padding-top: 84px; gap: 32px; }
  .hero-content { padding-top: 40px; padding-bottom: 16px; }

  .nav-links.open .nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 22px;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open .nav-cta .btn-nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
  }
  .nav-links.open .nav-cta .header-search-container {
    display: flex;
    width: 100%;
    margin-left: 0;
  }
  .nav-links.open .nav-cta #headerSearchInput {
    width: 100% !important;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 16px 12px 42px;
  }
  .nav-links.open .nav-cta i { color: rgba(255,255,255,0.5); }
  
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero-divider { display: none; }
  
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-img-wrap { flex-direction: column; align-items: center; }
  .about-img-wrap img { max-width: 100%; }
  .about-float-badge { position: static; right: auto; bottom: auto; width: 100%; max-width: 360px; margin-top: 16px; }
  .about-features { grid-template-columns: 1fr 1fr; text-align: left; }
  
  .cat-grid { grid-template-columns: 1fr; }
  .certs-grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .stats-bar .container { flex-direction: column; }
  .stat-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 22px 20px; }
  .stat-item:last-child { border-bottom: none; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 16px; }
  .timeline-h { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .timeline-h::before { display: none; }
}

/* SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 40px 0; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-divider { display: none; }
  .hero-stat { padding: 0; }
  .page-hero { padding: 116px 0 52px; }
  /* Grids go single column */
  .cat-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card-top { padding: 16px 14px 0; }
  .product-card-bottom { padding: 12px 14px 16px; }
  .product-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 12px; margin-bottom: 10px; }
  .product-card h4 { font-size: 0.88rem; }
  .product-cat { font-size: 0.68rem; }
  .product-card p { font-size: 0.78rem; }
  .product-card ul { display: none; }
  .product-badge { font-size: 0.6rem; padding: 3px 8px; }
  .values-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .certs-grid-4 { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; }
  .cat-card { padding: 22px 18px; }
  .footer-bottom-links { flex-direction: column; gap: 10px; }
  .timeline-h { grid-template-columns: 1fr; row-gap: 28px; }
  /* About badge hide at very small — no room */
  .about-float-badge { display: none; }
  /* CTA section compact */
  .cta-section { padding: 60px 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   TANCURE PHARMA — v2 Enhancements
   ============================================================ */

/* ── Scroll Progress Bar ─────────────────────────────────────── */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; z-index: 2001;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary-mid));
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  transition: none;
}

/* ── WhatsApp Floating Button ────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 88px; right: 28px; z-index: 998;
  width: 50px; height: 50px;
  background: #25d366; color: #fff;
  border-radius: 50%; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(14px);
}
.whatsapp-fab.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
  background: #1ebe5d;
}

/* ── Custom Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
::selection { background: var(--primary); color: #fff; }

/* ── Button Shine ────────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 160%; }

/* ── Gradient Text ───────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Page Fade-In ────────────────────────────────────────────── */
body { animation: pageFadeIn 0.45s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Hero Dot Grid Overlay ───────────────────────────────────── */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 1;
}
.hero-content { z-index: 3; }
.hero-visual  { z-index: 3; }

/* ── Hero Rotating Rings ─────────────────────────────────────── */
.hero-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
}
.hero-ring-1 {
  width: 290px; height: 290px;
  margin-top: -145px; margin-left: -145px;
  border: 1px solid rgba(255,255,255,0.09);
  animation: heroRingCW 30s linear infinite;
}
.hero-ring-2 {
  width: 205px; height: 205px;
  margin-top: -102px; margin-left: -102px;
  border: 1px dashed rgba(201,147,58,0.28);
  background: radial-gradient(circle, rgba(201,147,58,0.09), transparent 70%);
  animation: heroRingCW 20s linear infinite reverse;
}
@keyframes heroRingCW { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Hero Logo Centre ────────────────────────────────────────── */
.hero-logo-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 2;
}
.hero-logo-center img {
  width: 130px; height: auto; display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 28px rgba(201,147,58,0.55));
  animation: logoBob 4.2s ease-in-out infinite;
}
@keyframes logoBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── 4-Column Grid Variant ───────────────────────────────────── */
.certs-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) {
  .certs-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .certs-grid-4 { grid-template-columns: 1fr; }
}

/* ── Image Hover Lift ────────────────────────────────────────── */
.about-img-wrap img {
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.55s ease;
}
.about-img-wrap:hover img {
  transform: scale(1.025);
  box-shadow: 0 28px 70px rgba(123,18,85,0.2);
}

/* ── Process Step Hover ──────────────────────────────────────── */
.step-num { transition: transform 0.32s ease, box-shadow 0.32s ease; }
.process-step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 0 0 7px rgba(123,18,85,0.09), 0 0 0 15px rgba(123,18,85,0.04);
}

/* ── Enhanced Card Shadows ───────────────────────────────────── */
.cat-card:hover        { box-shadow: 0 22px 64px rgba(123,18,85,0.14); }
.cert-card:hover       { box-shadow: 0 22px 64px rgba(123,18,85,0.12); }
.value-card:hover      { box-shadow: 0 22px 64px rgba(123,18,85,0.12); }
.testi-card:hover      { box-shadow: 0 22px 64px rgba(123,18,85,0.11); }
.product-card:hover    { box-shadow: 0 22px 64px rgba(123,18,85,0.13); }
.why-stat-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15),
              0 18px 48px rgba(0,0,0,0.22);
}

/* ── Stat Number Accent ──────────────────────────────────────── */
.stat-item:hover .num { color: var(--primary-dark); transition: color 0.3s ease; }

/* ── Footer Gold Link Hover ──────────────────────────────────── */
.footer-legal-card a { transition: var(--transition); }
.footer-legal-card a:hover { color: var(--gold); }

/* ── Mobile ring hide ────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-ring-1, .hero-ring-2 { display: none; }
}

/* ── Search UI (Inline) ───────────────────────────────────────── */
.header-search-container {
  position: relative;
  display: flex;
  align-items: center;
}
#headerSearchInput {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 10px 16px 10px 42px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.82rem;
  width: 180px;
  transition: var(--transition);
  outline: none;
}
.navbar.scrolled #headerSearchInput {
  background: var(--gray-light);
  border-color: var(--border);
  color: var(--dark);
}
#headerSearchInput:focus {
  width: 240px;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
}
.navbar.scrolled #headerSearchInput:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(123, 18, 85, 0.08);
}
.header-search-container i {
  position: absolute;
  left: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: var(--transition);
}
.navbar.scrolled .header-search-container i { color: var(--gray); }
#headerSearchInput:focus + i { color: var(--gold); }
.navbar.scrolled #headerSearchInput:focus + i { color: var(--primary); }

.header-search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
  overflow: hidden;
}
.header-search-results.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.header-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--dark);
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-light);
}
.header-search-item:last-child { border-bottom: none; }
.header-search-item:hover { background: var(--primary-light); color: var(--primary); }
.header-search-item i { position: static !important; font-size: 0.9rem !important; opacity: 0.6; color: var(--primary) !important; }
.h-res-title { display: block; font-size: 0.88rem; font-weight: 600; line-height: 1.2; }
.h-res-cat { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.6; font-weight: 700; }

.header-search-empty { padding: 20px; text-align: center; font-size: 0.85rem; color: var(--gray); }

@media (max-width: 992px) {
  .header-search-container { margin-left: 0; margin-top: 12px; width: 100%; }
  #headerSearchInput { width: 100% !important; padding: 12px 16px 12px 42px; font-size: 1rem; }
  .header-search-results { width: 100%; position: fixed; top: auto; bottom: 0; left: 0; border-radius: 20px 20px 0 0; }
}

/* ============================================================
   MOBILE OVERHAUL — Enhanced Mobile Experience (v3)
   ============================================================ */

/* ── Critical Bug Fixes ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Testimonials: was staying at 3-column on mobile */
  .testi-grid { grid-template-columns: 1fr; gap: 18px; }

  /* Footer legal: was missing mobile collapse */
  .footer-legal-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-legal-card {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .footer-legal-card:last-child { border-bottom: none; padding-bottom: 0; }
  .footer-legal-note { margin-top: 0 !important; padding: 20px 16px !important; }

  /* About image: 4/3 is better than the 16/9 set at 992px */
  .about-img-wrap img { aspect-ratio: 4/3; }

  /* Re-enable hero rings hidden by the 992px rule */
  .hero-ring-1, .hero-ring-2 { display: block; }
}

/* ── Hero: Show Simplified Visual + Better Sizing ─────────────── */
@media (max-width: 768px) {
  .hero { min-height: 100dvh; }

  /* Better heading scale for small screens */
  .hero h1 { font-size: clamp(1.72rem, 7.5vw, 2.2rem); line-height: 1.22; }
  .hero p { font-size: 0.93rem; margin-bottom: 24px; }
  .hero-eyebrow { font-size: 0.7rem; padding: 8px 14px; margin-bottom: 18px; }
  .hero-actions { gap: 10px; margin-bottom: 26px; }
  .hero-actions .btn-lg { padding: 13px 24px; font-size: 0.9rem; }
  .hero-stat { padding: 0 11px; }
  .hero-stat:first-child { padding-left: 0; }
  .hero-stat-num { font-size: 1.35rem; }
  .hero-stat-label { font-size: 0.66rem; }

  /* Re-enable hero visual as a clean logo-only element */
  .hero-visual { display: flex; padding-top: 0; padding-bottom: 44px; }
  .hero-cards  { width: 230px; height: 230px; }
  .hero-logo-center img { width: 92px; }
  .h-card { display: none; }
}

/* ── Stats Bar: 2-Column Grid Instead of Stacked List ─────────── */
@media (max-width: 768px) {
  .stats-bar .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    flex: unset;
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px 12px;
    text-align: center;
  }
  /* Right border on odd items (left column) */
  .stat-item:nth-child(odd):not(:last-child) {
    border-right: 1px solid var(--border);
  }
  /* Last item (5th) spans full width */
  .stat-item:last-child {
    grid-column: 1 / -1;
    border-bottom: none;
    border-right: none;
  }
}

/* ── Card Padding & Component Tweaks ─────────────────────────── */
@media (max-width: 768px) {
  .hero h1,
  .page-hero h1,
  .cert-card p,
  .stat-item .label,
  .tl-h-content p,
  .footer-legal-card p,
  .about-features small {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .certs-grid { grid-template-columns: 1fr; }
  .cert-card    { padding: 26px 18px; }
  .testi-card   { padding: 24px 20px; }
  .testi-stars  { margin-bottom: 10px; }
  .testi-text   { font-size: 0.88rem; margin-bottom: 18px; }
  .why-stat-card { padding: 22px 14px; }
  .why-stat-card .wnum { font-size: 1.8rem; }
  .why-stat-card .wlabel { font-size: 0.75rem; }
  .cat-card ul li { font-size: 0.8rem; }

  /* Page hero inner padding */
  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }

  /* Section heading tighter on mobile */
  .heading-lg { font-size: clamp(1.5rem, 5.5vw, 1.85rem); }
  .heading-md { font-size: clamp(1.25rem, 4.5vw, 1.6rem); }

  /* CTA section */
  .cta-section { padding: 64px 0; }
  .cta-section h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .cta-section p  { font-size: 0.93rem; }

  /* Footer spacing */
  .footer-top { padding: 60px 0 44px; }
  .footer-grid { gap: 36px; }
  .footer-legal { margin-top: 36px; padding-top: 28px; }
  .footer-col h4 { margin-bottom: 18px; }

  /* Marquee: slightly larger text on mobile so it's readable */
  .marquee-inner span { font-size: 0.82rem; gap: 6px; }

  /* Section intro text */
  .section > .container > div[style*="text-align:center"] p,
  .section > .container > div[style*="text-align: center"] p {
    font-size: 0.9rem;
  }

  /* Map container: reduce height on mobile */
  .map-wrap { height: 300px !important; }
}

/* ── Very Small Mobile ≤ 480px Refinements ──────────────────── */
@media (max-width: 480px) {
  /* Hero visual: scale down on tiny screens */
  .hero-visual { padding-bottom: 32px; }
  .hero-cards  { width: 170px; height: 170px; }
  .hero-logo-center img { width: 70px; }
  .certs-grid { grid-template-columns: 1fr; }

  /* Stat numbers: slightly tighter */
  .stat-item .num   { font-size: 1.9rem; }
  .stat-item .label { font-size: 0.75rem; }

  /* Footer legal: compact on tiny screens */
  .footer-legal-card { padding: 16px 0; }
}

/* ============================================================
   FINAL MOBILE HEADER GUARD
   ============================================================ */
@media (max-width: 768px) {
  .nav-container { min-height: 56px; }
  .logo, .hamburger { position: relative; z-index: 1002; }

  .nav-links[hidden] { display: none !important; }
  .nav-links:not(.open) { display: none !important; }
  .nav-links.open { display: flex !important; }

  .nav-cta { display: none; }
  .nav-links.open .nav-cta { display: flex !important; }
  .nav-links.open .btn-nav-cta { display: inline-flex !important; }
  .nav-links.open .header-search-container { display: flex !important; }
}
