/* ===========================================================
   Seranti Pharma — custom styles (used alongside Tailwind CDN)
   Tailwind handles layout/spacing/responsiveness utility-first;
   this file covers brand gradients, the logo mark, the eyebrow
   dividers, and the hero slider mechanics that aren't clean
   one-liners in utility classes.
   =========================================================== */

:root{
  --navy:#0b3d91;
  --navy-dark:#082c69;
  --green:#3fa845;
  --green-dark:#2e8a33;
  --ink:#1c2a3a;
  --muted:#5c6b7a;
  --mist:#f4f7fb;
  --line:#e3e9f0;
  --footer:#0b1730;
}

html{scroll-behavior:smooth;}

/* ---------- Logo mark ---------- */
.brand-mark{
  border-radius:50%;
  background:conic-gradient(from 180deg, var(--navy), var(--green), var(--navy));
  display:flex;align-items:center;justify-content:center;
  position:relative;
}
.brand-mark::after{
  content:"+";
  color:#fff;font-weight:800;
}

/* ---------- Section eyebrow (title with side rules) ---------- */
.eyebrow{
  position:relative;
  display:inline-block;
}
.eyebrow::before, .eyebrow::after{
  content:"";
  position:absolute;
  top:50%;
  width:52px;
  height:2px;
  background:var(--green);
}
.eyebrow::before{right:calc(100% + 16px);}
.eyebrow::after{left:calc(100% + 16px);}

/* ---------- Hero background ---------- */
.hero-bg{
  background:linear-gradient(120deg,#eaf1fc 0%, #cfe1f7 55%, #a9c8ec 100%);
  position:relative;
  overflow:hidden;
}
.hero-bg::after{
  content:"";
  position:absolute;left:0;bottom:-4px;width:100%;height:14px;
  background:linear-gradient(90deg,var(--navy) 0%,var(--navy) 60%,var(--green) 60%,var(--green) 100%);
}

/* ---------- Hero product slider (single image per slide) ---------- */
.hero-slider{
  position:relative;
  width:100%;
  max-width:480px;
  margin:0 auto;
  aspect-ratio:1/1;
  background:transparent;
}
.hero-slide{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:scale(.94);
  transition:opacity .5s ease, transform .5s ease;
  pointer-events:none;
  background:transparent;
}
.hero-slide.is-active{
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
}
.hero-slide-img{
  max-width:100%;
  max-height:92%;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 24px 40px rgba(11,61,145,.28));
}
.hero-slide-fallback{
  display:none;
  align-items:center;
  justify-content:center;
  width:100%;
  height:80%;
  font-size:96px;
  opacity:.25;
}
.hero-slide-caption{
  margin-top:18px;
  font-size:13px;
  font-weight:700;
  color:var(--navy);
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(4px);
  padding:6px 18px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(11,61,145,.12);
}
.hero-nav-btn{
  width:38px;height:38px;border-radius:50%;
  background:#fff;color:var(--navy);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 16px rgba(11,61,145,.18);
  transition:background .2s ease, color .2s ease;
}
.hero-nav-btn:hover{background:var(--navy);color:#fff;}

/* ---------- Certification badge ring ---------- */
.cert-badge{
  width:88px;
  height:88px;
  border:2px solid var(--green);
  background:#fff;
  padding:8px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(11,61,145,.08);
}
.cert-badge img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* ---------- About section ---------- */
#about {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.about-layout{
  display:grid;
  grid-template-columns: 1fr 1.22fr;
  gap: 52px;
  align-items:center;
  max-width: 1220px;
  margin: 0 auto;
}
.about-facility-card{
  width: 100%;
  max-width: 520px;
  height: 370px;
  border-radius: 18px;
  overflow:hidden;
  background:linear-gradient(135deg,#b8c4d0 0%, #ced8e3 35%, #b7bec9 100%);
  box-shadow:0 10px 28px rgba(15,23,42,.06);
  position:relative;
}
.about-building-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.about-facility-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(113,126,138,.18), rgba(76,84,94,.12));
}
.about-facility-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-align:center;
  gap:10px;
  font-weight:800;
}
.about-facility-title{
  font-size: clamp(2rem, 2.3vw, 3.1rem);
  letter-spacing: .02em;
  line-height: 1.1;
  font-weight: 800;
}
.about-facility-subtitle{
  font-size: clamp(1.3rem, 1.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.3;
}
.about-copy {
  max-width: 650px;
}
.about-copy h2{
  color:var(--navy);
  font-size: clamp(1.8rem, 2.2vw, 2.7rem);
  font-weight:800;
  letter-spacing:-0.04em;
  margin:0 0 1.1rem;
  line-height:1.08;
  text-transform:uppercase;
}
.about-copy p{
  color:var(--muted);
  font-size: 1.05rem;
  line-height:1.65;
  margin:0 0 2.2rem;
  max-width: 630px;
}
.about-stats{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap: 2.3rem;
  margin-bottom:2.2rem;
  flex-wrap:wrap;
}
.stat-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width: 110px;
  gap:.45rem;
}
.stat-icon{
  width: 38px;
  height: 38px;
  object-fit:contain;
  display:block;
  margin-bottom: .2rem;
}
.stat-value{
  color:var(--navy);
  font-size: clamp(2.3rem, 3vw, 3.2rem);
  font-weight:900;
  line-height:1;
}
.stat-label{
  color:var(--muted);
  font-size:.8rem;
  text-align:center;
  line-height:1.4;
  min-height:2.7em;
}
.about-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.75rem;
  background:var(--navy);
  color:#fff;
  font-size:.87rem;
  font-weight:700;
  letter-spacing:.02em;
  padding:1.05rem 2.15rem;
  border-radius:999px;
  min-width: 290px;
  height: 52px;
  transition:background .2s ease, transform .2s ease;
}
.about-cta:hover{
  background:var(--navy-dark);
  transform:translateY(-1px);
}

/* ---------- Manufacturing section ---------- */
.manufacturing-title{
  position:relative;
  display:block;
  width:fit-content;
  margin:0 auto 2.3rem;
  text-align:center;
  color:var(--navy);
  font-size: clamp(1.8rem, 2.2vw, 2.7rem);
  font-weight:800;
  letter-spacing:-0.03em;
}
.manufacturing-title::before,
.manufacturing-title::after{
  content:"";
  position:absolute;
  top:50%;
  width:72px;
  height:2px;
  background:var(--green);
}
.manufacturing-title::before{right:calc(100% + 18px);}
.manufacturing-title::after{left:calc(100% + 18px);}
.manufacturing-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap:22px;
  align-items:stretch;
}
.manufacturing-flow{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:20px;
  padding:2rem 1.25rem 1.3rem;
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(15,23,42,.04);
  border:1px solid rgba(11,61,145,.06);
}
.step-unit{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:1rem;
  min-height:220px;
}
.step-unit:not(:last-child)::after{
  content:"→";
  position:absolute;
  right:-14px;
  top:52px;
  color:var(--green);
  font-size:2rem;
  font-weight:700;
}
.step-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  border:2px solid #dfe8f3;
  background:#f8fafc;
  color:var(--navy);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  font-weight:900;
  line-height:1;
  overflow:hidden;
  padding:8px;
}
.step-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.step-copy h5{
  margin:0 0 .5rem;
  color:var(--navy);
  font-size:.77rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.35;
}
.step-copy p{
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.5;
}
.cert-panel{
  background:linear-gradient(180deg, #0d3b8f, #0b2d73);
  border-radius:18px;
  padding:1rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:100%;
  box-shadow:0 14px 24px rgba(11,61,145,.18);
}
.cert-row{
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1rem .5rem;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.cert-row:last-child{border-bottom:0;}
.small-badge{
  width:64px;
  height:64px;
  border:2px solid rgba(255,255,255,.8);
  background:#fff;
  padding:8px;
  border-radius:50%;
  flex-shrink:0;
}
.small-badge img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.cert-copy{
  display:flex;
  flex-direction:column;
  gap:.25rem;
  color:#fff;
}
.cert-copy strong{
  font-size:1.15rem;
  line-height:1.2;
  font-weight:800;
}
.cert-copy span{
  font-size:.82rem;
  opacity:.95;
  line-height:1.25;
}

.segment-panel {
  max-width: 100%;
  width: 100%;
  text-align: center;
}
.segment-title {
  position:relative;
  display:inline-block;
  margin:0 0 1.5rem;
  color:var(--navy);
  font-size: clamp(1.8rem, 2.2vw, 2.7rem);
  font-weight:800;
  letter-spacing:-0.04em;
  line-height:1.1;
}
.segment-grid {
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap: 1.1rem 0.75rem;
  margin-bottom: 1.75rem;
  max-width: 100%;
  justify-items: center;
}
.segment-item {
  text-align:center;
}
.segment-item span {
  display:block;
  margin-top: .7rem;
  color:var(--ink);
  font-size: .82rem;
  font-weight:600;
  line-height:1.3;
}
.segment-icon {
  width: 52px;
  height: 52px;
  margin:0 auto;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.7rem;
  line-height:1;
  background:#edf5f4;
  box-shadow: inset 0 0 0 1px rgba(11,61,145,.06);
}
.segment-icon.pink { background:#fce9f0; }
.segment-icon.blue { background:#eaf2ff; }
.segment-icon.pale { background:#f3f2ff; }
.segment-icon.mint { background:#ebf8f2; }
.segment-icon.gray { background:#f3f5f6; }
.segment-icon.blush { background:#ffeaf5; }
.segment-icon.light { background:#edf7ff; }
.segment-icon.cyan { background:#e8f8fb; }
.segment-icon.amber { background:#fff3dc; }
.segment-icon.green { background:#edf9ee; }

.segment-cta {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.8rem;
  min-width: 290px;
  width: 290px;
  height: 64px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background:var(--navy);
  border:2px solid rgba(11,61,145,.8);
  color:#fff;
  font-size: 1.05rem;
  font-weight:800;
  letter-spacing:.04em;
  margin: 0 auto;
  transition:all .2s ease;
}
.segment-cta:hover {
  background:var(--navy);
  color:#fff;
}
.segment-cta span {
  font-size:1.2rem;
  line-height:1;
}

.global-presence-card {
  width: 100%;
  max-width: 1200px;
  margin-top: 0;
}
.global-presence-title {
  position:relative;
  display:inline-block;
  margin:0 0 1.2rem;
  color:var(--navy);
  font-size: clamp(2.3rem, 3vw, 4.3rem);
  font-weight:800;
  letter-spacing:-0.055em;
  line-height:1.05;
}
.global-presence-title::after {
  content:"";
  position:absolute;
  top:50%;
  left:calc(100% + 22px);
  width: 120px;
  height: 2px;
  background:var(--green);
}
.global-presence-copy {
  margin:0 0 1.5rem;
  color:var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 2rem);
  line-height:1.35;
  max-width: 760px;
  font-weight:400;
}
.global-presence-map-wrap {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow:hidden;
  background:linear-gradient(180deg, #dfeaf4 0%, #d3dfe8 100%);
  position:relative;
  margin-bottom: 1.3rem;
}
.global-presence-world-map {
  width: 100%;
  height: 100%;
  object-fit:cover;
  display:block;
}
.global-presence-list {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap: 0.8rem 1.4rem;
  padding:0;
  margin:0 0 1.8rem;
  align-items:center;
  justify-content:flex-start;
}
.global-presence-list li {
  display:flex;
  align-items:center;
  gap: .55rem;
  color:var(--ink);
  font-size: 1.2rem;
  font-weight:600;
  line-height:1.4;
}
.global-presence-list img {
  width: 18px;
  height: 18px;
  object-fit:contain;
  display:block;
}
.global-presence-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.8rem;
  min-width: 620px;
  height: 74px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 2px solid rgba(11,61,145,.9);
  background: var(--navy);
  color: #fff;
  font-size: 1.2rem;
  font-weight:800;
  letter-spacing: .03em;
  box-shadow:0 10px 24px rgba(11,61,145,.12);
}
.global-presence-cta span {
  font-size: 1.6rem;
  line-height:1;
}

/* ---------- Category / product thumb placeholders ---------- */
.thumb-gradient{
  background:linear-gradient(135deg,#dbe6f5,#c3d6ee);
}

/* ---------- Manufacturing step connector ---------- */
.mfg-arrow::after{
  content:"→";
  color:var(--green);
}

/* ---------- Testimonial quote mark ---------- */
.quote-mark{color:var(--green);}

/* ---------- Pharmacy partner brand logos ---------- */
.partner-logo-frame{
  width:100%;
  max-width:210px;
  height:120px;
  margin:0 auto 1.25rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(11,61,145,.08);
}
.partner-logo-img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:14px;
  display:block;
}
.medplus-brand{background:#e6493d;}
.pharmeasy-brand{background:#0c7d7a;}
.tata1mg-brand{background:#f28073;}
.tata1mg-wordmark{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  line-height:.9;
  color:#111;
  font-weight:900;
  letter-spacing:-.08em;
}
.tata1mg-wordmark .top{
  font-size:clamp(2.2rem, 3vw, 4rem);
}
.tata1mg-wordmark .bottom{
  font-size:clamp(3.6rem, 5vw, 6rem);
  margin-top:0.1em;
}

/* ---------- Utility color classes referencing brand vars ---------- */
.bg-brand-navy{background:var(--navy);}
.bg-brand-navy-dark{background:var(--navy-dark);}
.bg-brand-green{background:var(--green);}
.bg-brand-green-dark{background:var(--green-dark);}
.bg-brand-mist{background:var(--mist);}
.bg-brand-footer{background:var(--footer);}
.text-brand-navy{color:var(--navy);}
.text-brand-green{color:var(--green);}
.text-brand-muted{color:var(--muted);}
.border-brand-line{border-color:var(--line);}
.border-brand-navy{border-color:var(--navy);}
