/* Medifrance Biotech - Shared Stylesheet */
:root {
  --navy: #0b2559;
  --blue: #163d8c;
  --sky: #2f7fe0;
  --light-sky: #eaf2fd;
  --white: #ffffff;
  --grey: #5a6472;
  --light-grey: #f4f7fb;
  --shadow: 0 8px 24px rgba(11, 37, 89, 0.08);
}

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

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top utility bar */
.topbar {
  background: var(--navy);
  color: #cfe0f9;
  font-size: 12.5px;
  padding: 8px 24px;
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-links a { color: #cfe0f9; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.topbar-links a:hover { color: var(--white); }
.topbar-tagline { color: #9dc3f5; font-style: italic; letter-spacing: 0.2px; }

@media (max-width: 768px) {
  .topbar-tagline { display: none; }
}
@media (max-width: 560px) {
  .topbar { display: none; }
}

/* Header / Nav */
header {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 260;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, padding 0.3s ease, background 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 21px;
  color: var(--navy);
  line-height: 1.15;
}

.logo span { color: var(--sky); }

.logo-text small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--grey);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.logo-badge {
  background: linear-gradient(135deg, var(--sky), var(--navy));
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(22, 61, 140, 0.35);
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  padding: 9px 16px;
  border-radius: 24px;
  transition: color 0.25s ease, background 0.25s ease;
  display: inline-block;
}

nav a:hover { color: var(--navy); background: var(--light-sky); }
nav a.active { color: var(--white); background: var(--sky); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 24px;
  font-weight: 700 !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(11,37,89,0.25);
  transition: transform 0.25s ease, background 0.25s ease !important;
}
.nav-cta:hover { background: var(--sky) !important; transform: translateY(-2px); }

@media (max-width: 768px) {
  .nav-cta { display: none; }
}

/* Hero Slider Carousel */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  padding: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 24px;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,37,89,0.88) 0%, rgba(22,61,140,0.80) 55%, rgba(11,37,89,0.70) 100%);
  z-index: 1;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide .hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-slide.active .hero-text h1 {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.active .hero-text p {
  animation: heroFadeUp 0.6s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.active .hero-badges {
  animation: heroFadeUp 0.6s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.active .hero-cta-btns {
  animation: heroFadeUp 0.6s 0.30s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  user-select: none;
}
.hero-nav-btn:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-50%) scale(1.08);
}
.hero-nav-btn.prev { left: 28px; }
.hero-nav-btn.next { right: 28px; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: var(--sky);
  width: 34px;
  border-radius: 6px;
  border-color: var(--sky);
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text { max-width: 560px; }

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero h1 span { color: #7fb6ff; }

.hero p {
  font-size: 17px;
  color: #dbe6f9;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 700;
  margin-top: 10px;
  transition: 0.2s;
}

.btn:hover { background: var(--navy); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 6px;
  font-weight: 700;
  margin-left: 12px;
}

.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Page header (for inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}

.page-header h1 { font-size: 34px; margin-bottom: 10px; }
.page-header p { color: #cfe0f9; }

/* Sections */
section { padding: 64px 24px; }

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-title p { color: var(--grey); max-width: 600px; margin: 0 auto; }

/* Feature grid (quality icons) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--light-grey);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-6px); }

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-sky);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.feature-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 17px; }
.feature-card p { color: var(--grey); font-size: 14px; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border: 1px solid #e6ecf5;
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: 0.2s;
}

.product-card:hover { border-color: var(--sky); transform: translateY(-4px); }

.product-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.product-card h3 { color: var(--navy); margin-bottom: 8px; }
.product-card p { color: var(--grey); font-size: 14px; }

/* GMP strip */
.gmp-strip {
  background: var(--light-sky);
  text-align: center;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.gmp-strip span {
  background: var(--navy);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  margin-right: 10px;
}

/* About page */
.about-grid {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.about-grid .about-text { flex: 1; min-width: 280px; }
.about-grid .about-visual {
  flex: 1;
  min-width: 280px;
  background: var(--light-sky);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.about-text h2 { color: var(--navy); font-size: 28px; margin-bottom: 16px; }
.about-text p { color: var(--grey); margin-bottom: 16px; }

.md-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.md-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
}

.md-card h4 { font-size: 18px; }
.md-card span { color: #9dc3f5; font-size: 13px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.value-box {
  background: var(--light-grey);
  border-left: 4px solid var(--sky);
  padding: 20px;
  border-radius: 8px;
}

.value-box h4 { color: var(--navy); margin-bottom: 6px; }
.value-box p { color: var(--grey); font-size: 14px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 36px;
}

.contact-info-card h3 { margin-bottom: 24px; font-size: 20px; }

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-row h5 { font-size: 13px; color: #9dc3f5; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-row p, .contact-row a { color: #eaf2fd; font-size: 14.5px; }

.contact-form {
  background: var(--light-grey);
  border-radius: 14px;
  padding: 36px;
}

.contact-form h3 { color: var(--navy); margin-bottom: 20px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dfee;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.map-box {
  margin-top: 40px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  background: var(--navy);
  color: #cfe0f9;
  padding: 50px 24px 20px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-inner h4 { color: var(--white); margin-bottom: 16px; font-size: 16px; }
.footer-inner p { font-size: 13.5px; color: #a9bfe0; margin-bottom: 10px; }
.footer-inner ul li { margin-bottom: 10px; }
.footer-inner ul li a { font-size: 13.5px; color: #cfe0f9; }
.footer-inner ul li a:hover { color: var(--sky); }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #8fa8cc;
}

@media (max-width: 768px) {
  .navbar { flex-wrap: nowrap; }
  .hero h1 { font-size: 30px; }
  .hero-slider { min-height: 480px; }
  .hero-slide { padding: 60px 20px; min-height: 480px; }
  .hero-nav-btn { width: 40px; height: 40px; font-size: 18px; }
  .hero-nav-btn.prev { left: 12px; }
  .hero-nav-btn.next { right: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-grid { flex-direction: column; }
  .gallery-teaser-row { grid-template-columns: repeat(2, 1fr); }
  .form-group input, .form-group textarea { font-size: 16px; }
}

/* ================= Animations ================= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 127, 224, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(47, 127, 224, 0); }
}

/* Scroll-reveal: elements start hidden, JS adds .in-view on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }
.reveal-delay-4.in-view { transition-delay: 0.4s; }
.reveal-delay-5.in-view { transition-delay: 0.5s; }

/* Hero entrance animation (plays on load, no scroll needed) */
.hero-text h1 { animation: fadeInUp 0.8s ease both; }
.hero-text p { animation: fadeInUp 0.8s ease 0.15s both; }
.hero-badges { animation: fadeInUp 0.8s ease 0.3s both; }
.hero-text > div:last-child { animation: fadeInUp 0.8s ease 0.45s both; }

.badge-pill { animation: float 3s ease-in-out infinite; }
.badge-pill:nth-child(2) { animation-delay: 0.3s; }
.badge-pill:nth-child(3) { animation-delay: 0.6s; }

.btn { animation: pulseGlow 2.4s ease-in-out infinite; }
.btn:hover { animation: none; transform: translateY(-2px); }

.feature-icon, .product-icon { transition: transform 0.35s ease; }
.feature-card:hover .feature-icon,
.product-card:hover .product-icon { transform: rotate(-8deg) scale(1.1); }

.logo-badge { transition: transform 0.4s ease; }
.logo:hover .logo-badge { transform: rotate(360deg); }

/* ================= Carousel ================= */

.carousel-section { padding: 64px 24px; background: var(--light-grey); }

.carousel {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 56px 60px;
  min-height: 280px;
}

.carousel-slide-icon {
  font-size: 64px;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3.5s ease-in-out infinite;
}

.carousel-slide-text h3 { font-size: 26px; margin-bottom: 10px; }
.carousel-slide-text p { color: #dbe6f9; font-size: 15px; max-width: 560px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  z-index: 5;
}

.carousel-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7d5ea;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
}

.carousel-dot.active { background: var(--sky); width: 26px; border-radius: 6px; }

@media (max-width: 640px) {
  .carousel-slide { flex-direction: column; text-align: center; padding: 40px 24px; }
  .carousel-slide-text p { max-width: 100%; }
}

/* ================= Extra motion: navbar, hamburger, stats, back-to-top, ripple ================= */

header.scrolled { box-shadow: 0 4px 18px rgba(11,37,89,0.14); background: rgba(255,255,255,0.97); }
header.scrolled .navbar { padding: 8px 24px; }
header.scrolled .logo-badge { width: 36px; height: 36px; font-size: 16px; }
header.scrolled .logo-text small { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 220;
    position: relative;
  }
  nav ul {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 250px;
    max-width: 80vw;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 85px 28px 30px;
    gap: 20px;
    box-shadow: -6px 0 24px rgba(0,0,0,0.14);
    display: none;
    z-index: 200;
  }
  nav ul.open {
    display: flex;
    animation: drawerSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes drawerSlide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  nav ul li { width: 100%; }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
    color: var(--navy);
    font-weight: 600;
  }
  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(11,37,89,0.4);
    z-index: 150;
  }
  .nav-overlay.open { display: block; animation: fadeIn 0.3s ease; }
}

/* Hero floating shapes */
.hero { position: relative; overflow: hidden; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-shape.s1 { width: 180px; height: 180px; top: -40px; right: 8%; animation-duration: 7s; }
.hero-shape.s2 { width: 110px; height: 110px; bottom: -20px; left: 6%; animation-duration: 5s; animation-delay: 0.8s; }
.hero-shape.s3 { width: 70px; height: 70px; top: 30%; right: 22%; animation-duration: 8s; animation-delay: 1.4s; }

/* Stats counter */
.stats-section {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  padding: 60px 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
}
.stat-box .stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #7fb6ff;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
}
.stat-box p { color: #cfe0f9; margin-top: 8px; font-size: 14px; letter-spacing: 0.3px; }

/* Carousel progress bar */
.carousel-progress {
  height: 3px;
  background: rgba(255,255,255,0.25);
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 6;
}
.carousel-progress-bar { height: 100%; background: var(--sky); width: 0%; }
.carousel-slide { position: relative; }

/* Carousel fade+scale transition variant */
.carousel-track { will-change: transform; }
.carousel-slide-icon { transition: transform 0.4s ease; }

/* Button ripple */
.btn, .btn-outline {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(3.5); opacity: 0; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 29px;
  bottom: 158px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(11,37,89,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 300;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sky); }

/* Card entrance scale-in variant used with reveal */
.reveal.scale-in { transform: translateY(20px) scale(0.92); }
.reveal.scale-in.in-view { transform: translateY(0) scale(1); }

/* ================= Call floating button ================= */
.call-float {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1976d2;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(25, 118, 210, 0.45);
  z-index: 300;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.call-float svg { width: 26px; height: 26px; }
.call-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1976d2;
  animation: callPulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes callPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.85); opacity: 0; }
}
.call-float:hover {
  background: var(--navy);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 37, 89, 0.4);
}

/* ================= WhatsApp floating button ================= */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  z-index: 300;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
.whatsapp-float:hover {
  background: #1ebe5a;
  transform: scale(1.08) translateY(-2px);
}

@media (max-width: 560px) {
  .whatsapp-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .call-float { width: 50px; height: 50px; right: 16px; bottom: 74px; }
  .call-float svg { width: 22px; height: 22px; }
  .back-to-top { right: 19px; bottom: 132px; width: 44px; height: 44px; }
}

/* ================= Facility gallery ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.12); }

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(11,37,89,0.85), transparent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover::after { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-teaser-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.gallery-teaser-row .gallery-item { aspect-ratio: 1 / 1; }

/* ================= Authentic Testimonials ================= */
.testimonial-trust-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid #e1e8f5;
  border-radius: 30px;
  padding: 8px 22px;
  width: fit-content;
  margin: -10px auto 36px;
  box-shadow: 0 4px 14px rgba(11, 37, 89, 0.05);
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}
.testimonial-trust-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}
.testimonial-trust-score {
  font-weight: 800;
  color: var(--navy);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(11, 37, 89, 0.10);
  border-color: #bcd4f5;
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.testimonial-stars span {
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}

.testimonial-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
}

.testimonial-service-tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--sky);
  background: var(--light-sky);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.testimonial-quote {
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
  font-style: normal;
}
.testimonial-quote::before { content: '\201C'; font-size: 18px; color: var(--sky); font-weight: 700; }
.testimonial-quote::after { content: '\201D'; font-size: 18px; color: var(--sky); font-weight: 700; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #f1f4f9;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d5e5f8;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-author h5 {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.testimonial-author .author-role {
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.35;
  display: block;
}
.testimonial-author .author-location {
  color: #6b7280;
  font-size: 11.5px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ================= Tablet tuning ================= */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { gap: 28px; }
}

/* ================= Small phones ================= */
@media (max-width: 480px) {
  .navbar { padding: 10px 16px; gap: 10px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-badge { width: 38px; height: 38px; font-size: 15px; }
  .logo-text small { display: none; }

  .hero-slider { min-height: 460px; }
  .hero-slide { padding: 48px 18px 46px; min-height: 460px; }
  .hero-nav-btn { display: none; }
  .hero-dots { bottom: 14px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 14.5px; }
  .hero-badges { gap: 10px; }
  .badge-pill { font-size: 12px; padding: 7px 13px; }
  .hero-shape.s1 { width: 110px; height: 110px; }
  .hero-shape.s3 { display: none; }

  .btn, .btn-outline { display: block; text-align: center; margin-left: 0; width: 100%; }
  .btn-outline { margin-top: 10px; }

  section { padding: 44px 18px; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 23px; }
  .page-header { padding: 40px 18px; }
  .page-header h1 { font-size: 25px; }

  .stats-section { padding: 40px 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-box .stat-number { font-size: 30px; }

  .carousel-slide { padding: 30px 18px; min-height: unset; gap: 18px; }
  .carousel-slide-icon { width: 76px; height: 76px; font-size: 38px; }
  .carousel-slide-text h3 { font-size: 19px; }
  .carousel-btn { width: 34px; height: 34px; font-size: 13px; }

  .feature-card, .product-card, .testimonial-card, .value-box { padding: 22px 18px; }
  .about-visual, .contact-info-card, .contact-form { padding: 24px; }

  .md-card { flex-direction: column; text-align: center; padding: 22px; gap: 12px; }

  .gallery-teaser-row { grid-template-columns: 1fr; }

  .whatsapp-float, .call-float, .back-to-top { width: 48px; height: 48px; }
  .back-to-top { right: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .call-float svg { width: 22px; height: 22px; }

  .product-catalog-grid { grid-template-columns: 1fr; gap: 20px; }
  .image-lightbox-wrap { padding: 20px 16px; width: 95vw; max-height: 92vh; overflow-y: auto; }
  .image-lightbox-img-box { height: 220px; }
  .image-lightbox-title { font-size: 18px; margin-top: 12px; }
  .image-lightbox-comp { font-size: 13px; }
}

/* ================= Product Showcase & Formulations Catalog ================= */
.badge-pill-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light-sky);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.product-item-card {
  background: var(--white);
  border: 1px solid #e6ecf5;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-item-card:hover {
  border-color: var(--sky);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 37, 89, 0.12);
}

.product-item-image-wrap {
  position: relative;
  height: 250px;
  padding: 18px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.product-item-image-wrap img {
  max-width: 90%;
  max-height: 215px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-item-card:hover .product-item-image-wrap img {
  transform: scale(1.05);
}

.product-zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11, 37, 89, 0.08);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.product-item-card:hover .product-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.product-item-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-item-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--light-sky);
  color: var(--sky);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.product-item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}

.product-item-comp {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-item-packaging {
  font-size: 12px;
  color: var(--navy);
  background: #f0f4fa;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 600;
  width: fit-content;
}

.product-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.btn-product-inquire {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--sky);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-product-inquire:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-product-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid #d0dbe9;
  color: var(--navy);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-product-view:hover {
  background: var(--light-sky);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Lightbox Modal */
.image-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(11, 37, 89, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox-wrap {
  position: relative;
  max-width: 620px;
  width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: lbZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-img-box {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-lightbox-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  margin-top: 16px;
  text-align: center;
}

.image-lightbox-comp {
  color: var(--grey);
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
  max-width: 520px;
  line-height: 1.5;
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--grey);
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  background: #f0f4fa;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.image-lightbox-close:hover {
  background: var(--navy);
  color: var(--white);
}

/* ================= Client logo ================= */
.navbar { padding-top: 10px; padding-bottom: 10px; }
.logo-img { height: 64px; width: auto; display: block; transition: height 0.3s ease, transform 0.3s ease; }
.logo:hover .logo-img { transform: scale(1.03); }
header.scrolled .navbar { padding-top: 6px; padding-bottom: 6px; }
header.scrolled .logo-img { height: 50px; }
@media (max-width: 480px) {
  .logo-img { height: 46px; }
  header.scrolled .logo-img { height: 40px; }
}

/* Footer logo */
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}
.footer-logo:hover { transform: translateY(-2px); }
.footer-logo img { height: 56px; width: auto; display: block; }
