/*
Theme Name: Biofril Enterprise
Theme URI: https://biofril.com
Author: BIOFRIL Healthcare
Description: Premium pharmaceutical website theme for BIOFRIL Healthcare Pvt. Ltd.
Version: 2.0
*/


/* === BIOFRIL THEME STYLES === */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

/* ── OUTER SHELL ── */
body{
  font-family:'Inter',sans-serif;
  background:#020c1e;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(8,40,100,.8) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(4,60,100,.6) 0%, transparent 40%);
  min-height:100vh;
}
.page-shell{
  max-width:1000px;
  margin:28px auto;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 60px 160px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
}

/* ── NAVBAR ── */
.navbar{
  background:#fff;
  display:flex;align-items:center;
  padding:0 24px;height:62px;
  border-bottom:1.5px solid #eaeff8;
  box-shadow:0 2px 14px rgba(10,30,80,.07);
  position:sticky;top:0;z-index:999;
}
.nav-logo{display:flex;align-items:center;gap:10px;margin-right:20px;text-decoration:none;}
.nav-logo img{height:44px;width:auto;object-fit:contain;}
.nav-links{display:flex;align-items:center;list-style:none;flex:1;}
.nav-links li a{
  font-size:.75rem;font-weight:500;color:#374151;
  text-decoration:none;padding:0 9px;line-height:62px;
  display:block;white-space:nowrap;position:relative;
  transition:color .2s;letter-spacing:-.015em;
}
.nav-links li a.active{color:#0b1c45;font-weight:600;}
.nav-links li a.active::after{
  content:'';position:absolute;bottom:0;left:9px;right:9px;
  height:2.5px;border-radius:2px;
  background:linear-gradient(90deg,#1565c0,#0891b2);
}
.nav-links li a:hover{color:#1565c0;}
.nav-right{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:auto;}
.social-btn{
  width:24px;height:24px;border-radius:5px;background:#f2f5fa;
  display:flex;align-items:center;justify-content:center;
  color:#64748b;text-decoration:none;transition:all .2s;
}
.social-btn:hover{background:#1565c0;color:#fff;}
.social-btn svg{width:10px;height:10px;}
.enquire-btn{
  margin-left:10px;background:#0891b2;color:#fff;
  padding:7px 18px;border-radius:20px;font-size:.75rem;
  font-weight:600;text-decoration:none;white-space:nowrap;
  transition:background .2s;letter-spacing:.01em;
}
.enquire-btn:hover{background:#0778a0;}

/* ══════════════════════════════════
   HERO — REAL IMAGE AS BACKGROUND
══════════════════════════════════ */
.hero{
  position:relative;
  height:400px;
  overflow:hidden;
  display:flex;
  align-items:center;
}
/* Real 3D render fills the entire hero */
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-bg img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}
/* Dark gradient overlay on left so text is readable */
.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,
      rgba(6,15,40,0.80) 0%,
      rgba(6,18,50,0.72) 28%,
      rgba(6,18,50,0.40) 52%,
      rgba(6,18,50,0.05) 72%,
      transparent       88%),
    linear-gradient(180deg,
      rgba(0,0,0,0.08) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0,0,0,0.12) 100%);
}
/* Star particles via CSS */
.hero-overlay::before{
  content:'';
  position:absolute;inset:0;
  background-image:
    radial-gradient(circle 1.2px at  6% 15%,rgba(255,255,255,.85) 0%,transparent 100%),
    radial-gradient(circle 1.8px at 12% 48%,rgba(255,255,255,.65) 0%,transparent 100%),
    radial-gradient(circle 1px  at 19% 80%,rgba(200,240,255,.75) 0%,transparent 100%),
    radial-gradient(circle 1.5px at 25%  8%,rgba(255,255,255,.80) 0%,transparent 100%),
    radial-gradient(circle 1px  at 32% 62%,rgba(255,255,255,.45) 0%,transparent 100%),
    radial-gradient(circle 1.8px at 38% 30%,rgba(255,255,255,.70) 0%,transparent 100%),
    radial-gradient(circle 1px  at  4% 38%,rgba(150,220,255,.60) 0%,transparent 100%),
    radial-gradient(circle 1.5px at 10% 90%,rgba(255,255,255,.50) 0%,transparent 100%);
  pointer-events:none;
}
/* Text content sits above overlay */
.hero-content{
  position:relative;
  z-index:2;
  padding:0 52px;
  max-width:480px;
}
.hero-content h1{
  font-family:'Poppins',sans-serif;
  font-size:2.15rem;
  font-weight:600;
  line-height:1.16;
  color:#fff;
  margin-bottom:0;
  text-shadow:0 2px 20px rgba(0,10,40,.5);
}
.hero-content h1 .line2{
  display:block;
  font-weight:700;
  color:#22d4ee;
  text-shadow:0 4px 24px rgba(0,200,240,.7);
  font-size:2.25rem;
}
.hero-sub{
  font-size:.85rem;
  color:rgba(255,255,255,.82);
  margin:14px 0 24px;
  letter-spacing:.01em;
}
.hero-btns{display:flex;gap:10px;margin-bottom:26px;flex-wrap:wrap;}
.btn-explore{
  background:#0891b2;color:#fff;
  padding:10px 22px;border-radius:7px;
  font-size:.83rem;font-weight:600;
  text-decoration:none;
  box-shadow:0 4px 18px rgba(8,145,178,.5);
  transition:all .25s;
}
.btn-explore:hover{background:#0778a0;transform:translateY(-2px);}
.btn-pcd{
  background:rgba(255,255,255,.08);
  border:1.8px solid rgba(255,255,255,.55);
  color:#fff;padding:10px 22px;border-radius:7px;
  font-size:.83rem;font-weight:500;
  text-decoration:none;transition:all .25s;
}
.btn-pcd:hover{background:rgba(255,255,255,.18);transform:translateY(-2px);}
.hero-dots{display:flex;gap:6px;}
.dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3);transition:all .4s;}
.dot.on{width:20px;border-radius:4px;background:#fff;}

/* ── TRUST BAR ── */
.trust-bar{background:#f5f6fc;border-top:1px solid #eceff6;border-bottom:1px solid #eceff6;}
.trust-grid{display:grid;grid-template-columns:repeat(6,1fr);}
.trust-item{
  display:flex;flex-direction:column;align-items:center;
  padding:14px 8px 12px;
  border-right:1px solid rgba(200,212,235,.45);
  cursor:default;transition:background .2s;text-align:center;
}
.trust-item:last-child{border-right:none;}
.trust-item:hover{background:#eef2fc;}
.trust-item img{width:38px;height:38px;object-fit:contain;margin-bottom:6px;}
.trust-lbl{font-family:'Poppins',sans-serif;font-weight:600;font-size:.64rem;color:#1a2a50;line-height:1.35;}

/* ── ABOUT ── */
.about-sec{background:linear-gradient(180deg,#eef2fa 0%,#e4eaf7 100%);padding:50px 36px;}
.sec-title-hr{display:flex;align-items:center;gap:16px;margin-bottom:24px;}
.sec-title-hr::before,.sec-title-hr::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#c0cde8 40%,#c0cde8 60%,transparent);}
.sec-title-hr h2{font-family:'Poppins',sans-serif;font-size:1.42rem;font-weight:400;color:#1a2a50;white-space:nowrap;}
.sec-title-hr h2 strong{font-weight:700;}
.about-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.about-split-card{display:grid;grid-template-columns:1fr 1fr;border-radius:12px;overflow:hidden;box-shadow:0 6px 28px rgba(10,20,70,.11);min-height:262px;}
.about-split-img img{width:100%;height:100%;object-fit:cover;display:block;}
.about-split-text{background:#fff;padding:22px 18px;display:flex;flex-direction:column;justify-content:center;}
.about-split-text h3{font-family:'Poppins',sans-serif;font-size:.95rem;font-weight:400;color:#0f1f3d;margin-bottom:8px;line-height:1.3;}
.about-split-text h3 strong{font-weight:700;}
.about-split-text p{font-size:.73rem;color:#64748b;line-height:1.65;margin-bottom:16px;}
.btn-learn{display:inline-block;background:#0891b2;color:#fff;padding:8px 18px;border-radius:6px;font-size:.75rem;font-weight:600;text-decoration:none;transition:background .2s;}
.btn-learn:hover{background:#0778a0;}
.about-img-card{border-radius:12px;overflow:hidden;box-shadow:0 6px 28px rgba(10,20,70,.11);min-height:262px;}
.about-img-card img{width:100%;height:100%;object-fit:cover;display:block;}

/* ── PRODUCT CATEGORIES ── */
.products-sec{
  background:linear-gradient(180deg,#e8ebf5 0%,#d8deee 60%,#cad4e8 100%);
  padding:44px 32px 52px;position:relative;
}
.products-sec::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 90% 50% at 50% 0%,rgba(195,215,245,.55) 0%,transparent 55%);
}
.sec-title-plain{text-align:center;margin-bottom:28px;position:relative;z-index:1;}
.sec-title-plain h2{font-family:'Poppins',sans-serif;font-size:1.4rem;font-weight:700;color:#0f1f3d;}
.sec-title-plain p{font-size:.78rem;color:#475569;margin-top:5px;}
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;position:relative;z-index:1;margin-bottom:11px;}

/* Row 1 full cards */
.pcard{
  background:#fff;border-radius:10px;overflow:hidden;
  box-shadow:0 2px 18px rgba(15,31,100,.07);
  border:1px solid rgba(205,215,240,.65);
  cursor:pointer;transition:all .3s;display:flex;flex-direction:column;position:relative;
}
.pcard:hover{transform:translateY(-5px);box-shadow:0 12px 36px rgba(15,31,100,.14);border-color:rgba(26,100,200,.2);}
.pcard::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#1565c0,#0891b2);
  transform:scaleX(0);transform-origin:left;transition:transform .3s;
}
.pcard:hover::before{transform:scaleX(1);}
.pcard-inner{padding:16px 14px 12px;flex:1;display:flex;flex-direction:column;}
.pcard-icon-wrap{width:52px;height:52px;border-radius:14px;background:#f0f5ff;display:flex;align-items:center;justify-content:center;margin-bottom:11px;overflow:hidden;flex-shrink:0;}
.pcard-icon-wrap img{width:100%;height:100%;object-fit:contain;}
.pcard h3{font-family:'Poppins',sans-serif;font-weight:700;font-size:.82rem;color:#0f1f3d;margin-bottom:5px;line-height:1.3;}
.pcard p{font-size:.71rem;color:#64748b;line-height:1.6;margin-bottom:10px;flex:1;}
.pcard-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;}
.view-range{font-size:.73rem;color:#1565c0;font-weight:600;text-decoration:none;}
.view-range::after{content:' A';}
.view-range:hover{color:#0d47a1;}
.prod-badge{background:#e8f1ff;color:#1565c0;font-size:.62rem;font-weight:700;padding:2px 7px;border-radius:20px;white-space:nowrap;}

/* Neuro featured */
.pcard-neuro{background:linear-gradient(160deg,#cce6f8 0%,#b4d4f0 40%,#c8e2f8 100%);border-color:rgba(26,100,200,.18);}
.pcard-neuro::before{transform:scaleX(1);}
.pcard-neuro .neuro-img-top{width:100%;height:100px;object-fit:cover;object-position:center;display:block;}
.pcard-neuro .pcard-inner{padding:10px 14px 12px;}

/* Row 2 slim cards */
.pcard-slim{
  background:#fff;border-radius:10px;overflow:hidden;
  box-shadow:0 2px 18px rgba(15,31,100,.07);
  border:1px solid rgba(205,215,240,.65);
  cursor:pointer;transition:all .3s;display:flex;flex-direction:column;position:relative;
}
.pcard-slim:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(15,31,100,.12);}
.pcard-slim::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#1565c0,#0891b2);
  transform:scaleX(0);transform-origin:left;transition:transform .3s;
}
.pcard-slim:hover::before{transform:scaleX(1);}
.pcard-inner-slim{padding:18px 14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;}
.pcard-icon-wrap-sm{width:50px;height:50px;border-radius:14px;background:#f0f5ff;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.pcard-icon-wrap-sm img{width:100%;height:100%;object-fit:contain;}
.pcard-slim h3{font-family:'Poppins',sans-serif;font-weight:700;font-size:.82rem;color:#0f1f3d;line-height:1.3;}

/* ── WAVE TRANSITION ── */
.wave-divider{
  height:55px;
  background:linear-gradient(180deg,#cad4e8 0%,#1a4474 100%);
  clip-path:ellipse(56% 100% at 50% 100%);
  margin-top:-2px;
}

/* ── FOOTER ── */
.site-footer{background:#0b1c45;padding:40px 36px 0;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:24px;padding-bottom:28px;}
.footer-brand img{height:40px;margin-bottom:11px;filter:brightness(0) invert(1);}
.footer-brand p{font-size:.72rem;color:rgba(255,255,255,.6);line-height:1.65;margin-bottom:13px;}
.footer-socials{display:flex;gap:6px;}
.footer-social-btn{width:27px;height:27px;border-radius:6px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);text-decoration:none;transition:all .2s;}
.footer-social-btn:hover{background:#0891b2;color:#fff;}
.footer-social-btn svg{width:11px;height:11px;}
.footer-col h4{font-family:'Poppins',sans-serif;font-size:.8rem;font-weight:700;color:#fff;margin-bottom:12px;}
.footer-col ul{list-style:none;}
.footer-col ul li{margin-bottom:6px;}
.footer-col ul li a{font-size:.72rem;color:rgba(255,255,255,.6);text-decoration:none;transition:color .2s;}
.footer-col ul li a:hover{color:#22d4ee;}
.footer-contact-item{display:flex;align-items:flex-start;gap:7px;margin-bottom:8px;}
.footer-contact-item svg{width:12px;height:12px;color:#0891b2;flex-shrink:0;margin-top:2px;}
.footer-contact-item span{font-size:.71rem;color:rgba(255,255,255,.65);line-height:1.45;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:13px 0;display:flex;align-items:center;justify-content:space-between;}
.footer-bottom p{font-size:.68rem;color:rgba(255,255,255,.4);}
.footer-bottom-links{display:flex;gap:14px;}
.footer-bottom-links a{font-size:.67rem;color:rgba(255,255,255,.38);text-decoration:none;transition:color .2s;}
.footer-bottom-links a:hover{color:#22d4ee;}

/* ── MODAL ── */
.prod-modal{display:none;position:fixed;inset:0;background:rgba(5,15,50,.72);z-index:2000;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(4px);}
.prod-modal.open{display:flex;}
.modal-box{background:#fff;border-radius:16px;width:100%;max-width:860px;max-height:88vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 40px 100px rgba(0,0,0,.4);}
.modal-header{padding:16px 20px;border-bottom:1px solid #eef0f8;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(90deg,#0b1c45,#1565c0);}
.modal-header h3{font-family:'Poppins',sans-serif;font-size:.98rem;font-weight:700;color:#fff;}
.modal-count{font-size:.7rem;color:#a5f3fc;font-weight:600;display:block;margin-top:2px;}
.modal-close{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.15);border:none;color:#fff;cursor:pointer;font-size:.95rem;display:flex;align-items:center;justify-content:center;transition:background .2s;}
.modal-close:hover{background:rgba(255,255,255,.3);}
.modal-search-wrap{padding:11px 16px;border-bottom:1px solid #eef0f8;background:#f8f9ff;}
.modal-search{width:100%;padding:8px 13px;border:1.5px solid #dde4f0;border-radius:8px;font-size:.78rem;outline:none;font-family:'Inter',sans-serif;}
.modal-search:focus{border-color:#0891b2;}
.modal-table-wrap{overflow-y:auto;flex:1;}
.prod-table{width:100%;border-collapse:collapse;}
.prod-table thead th{position:sticky;top:0;background:#0b1c45;color:#fff;padding:8px 12px;font-size:.71rem;font-weight:700;text-align:left;white-space:nowrap;z-index:1;}

/* ── REVEAL ── */
.rv{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease;}
.rv.show{opacity:1;transform:none;}

/* ── RESPONSIVE ── */
@media(max-width:780px){
  .prod-grid{grid-template-columns:repeat(2,1fr);}
  .about-2col{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .trust-grid{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:540px){
  .hero-content{padding:0 28px;}
  .hero-content h1{font-size:1.6rem;}
  .nav-links{display:none;}
  .prod-grid{grid-template-columns:1fr;}
  .trust-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr;}
  .about-split-card{grid-template-columns:1fr;}
}
