/* =========================================================
   Tesni Pharmaceuticals — Custom Styles
   Palette:  #0A4E9A (brand-600), #C8A45C (gold-400), #F8FAFC
   Fonts  :  Poppins (heading), Inter (body)
   ========================================================= */

:root {
  --brand: #0A4E9A;
  --brand-dark: #062E5C;
  --gold: #C8A45C;
  --canvas: #F8FAFC;
}

html, body { background-color: var(--canvas); }
body { font-feature-settings: "cv02","cv03","cv04"; }

/* Selection */
::selection { background: var(--brand); color: #fff; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #EEF2F7; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #0A4E9A, #062E5C); border-radius: 999px; border: 2px solid #EEF2F7; }

/* Grain overlay */
.noise-layer {
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
  background-size: 220px;
}

/* Reusable containers */
.section-wrap { max-width: 1400px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px)  { .section-wrap { padding-inline: 2rem; } }
@media (min-width: 1280px) { .section-wrap { padding-inline: 3rem; } }

/* Section eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(10,78,154,.06);
  color: #083E7A; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid rgba(10,78,154,.08);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,164,92,.15); }

/* Heading base */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', system-ui, sans-serif; letter-spacing: -0.01em; }

/* Fancy heading with gold underline swash */
.heading-swash { position: relative; display: inline-block; }
.heading-swash::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -6px; height: 6px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 999px; opacity: .8;
}

/* Glass navbar */
.nav-glass {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(10,78,154,0.08);
  box-shadow: 0 10px 30px -18px rgba(10,78,154,.25);
  transition: all .5s ease;
}
#site-header.is-scrolled .nav-glass {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 50px -25px rgba(10,78,154,.35);
}

/* Mobile menu open state */
#mobile-menu.is-open { transform: scaleY(1); opacity: 1; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  background: var(--brand); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(10,78,154,.45);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary:hover { background: #083E7A; transform: translateY(-2px); box-shadow: 0 22px 40px -12px rgba(10,78,154,.55); }
.btn-gold {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  background: linear-gradient(135deg, #E7CD8E 0%, #C8A45C 55%, #B08A3E 100%);
  color: #062E5C;
  box-shadow: 0 14px 30px -12px rgba(200,164,92,.55);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 22px 40px -12px rgba(200,164,92,.7); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  color: #0A4E9A; background: #fff; border: 1px solid rgba(10,78,154,.15);
  transition: all .25s ease;
}
.btn-ghost:hover { border-color: #0A4E9A; background: #EEF4FB; }

/* Cards */
.lux-card {
  background: #fff; border: 1px solid rgba(10,78,154,0.07);
  border-radius: 1.5rem; box-shadow: 0 10px 40px -20px rgba(10,78,154,.22);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.lux-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(10,78,154,.28);
  border-color: rgba(200,164,92,0.35);
}

/* Glass card (dark hero side) */
.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1.5rem;
}

/* Hero background layers */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(200,164,92,.18), transparent 60%),
    radial-gradient(900px 500px at 15% 90%, rgba(10,78,154,.35), transparent 60%),
    linear-gradient(135deg, #062E5C 0%, #0A4E9A 55%, #041F3E 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9), transparent 70%);
}

/* Capsule floating on hero */
.capsule {
  position: absolute; border-radius: 999px;
  background: linear-gradient(135deg, #E7CD8E, #C8A45C);
  box-shadow: 0 20px 40px -20px rgba(200,164,92,.6), inset 0 -6px 20px rgba(0,0,0,.15);
}
.capsule.blue {
  background: linear-gradient(135deg, #7BA1D5, #1F5CAA);
  box-shadow: 0 20px 40px -20px rgba(31,92,170,.6), inset 0 -6px 20px rgba(0,0,0,.15);
}
.capsule::after {
  content: ""; position: absolute; inset: 4px 50% 4px 4px;
  border-radius: 999px; background: rgba(255,255,255,.85);
}

/* Stat card */
.stat-card {
  padding: 1.5rem 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
  border: 1px solid rgba(10,78,154,.07);
  box-shadow: 0 8px 30px -14px rgba(10,78,154,.2);
  text-align: center;
}
.stat-number {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #0A4E9A 0%, #C8A45C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}

/* Timeline step */
.timeline-step {
  position: relative;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(10,78,154,.07);
  padding: 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(10,78,154,.25);
}
.timeline-step .step-num {
  position: absolute; top: -18px; left: 20px;
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, #E7CD8E, #C8A45C);
  color: #062E5C; font-family: 'Poppins', sans-serif; font-weight: 700;
  display: grid; place-content: center; box-shadow: 0 10px 25px -12px rgba(200,164,92,.7);
}

/* Product category card gradient border on hover */
.cat-card { position: relative; overflow: hidden; }
.cat-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(200,164,92,0), rgba(200,164,92,.55));
  opacity: 0; transition: opacity .35s ease; z-index: 0;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; z-index: 1; }

/* Featured product slider card */
.product-slide {
  background: #fff; border-radius: 1.5rem; padding: 1.5rem;
  border: 1px solid rgba(10,78,154,.08);
  box-shadow: 0 20px 50px -30px rgba(10,78,154,.25);
  transition: all .3s ease;
}
.product-slide img { transition: transform .5s ease; }
.product-slide:hover img { transform: scale(1.05); }

/* Testimonial */
.testimonial-card {
  background: #fff; border-radius: 1.5rem; padding: 2rem;
  border: 1px solid rgba(10,78,154,.07);
  box-shadow: 0 20px 50px -25px rgba(10,78,154,.22);
  position: relative;
}
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 6px; right: 18px;
  font-family: Georgia, serif; font-size: 6rem; line-height: 1;
  color: rgba(200,164,92,.25);
}

/* Star rating */
.stars { color: #C8A45C; letter-spacing: 2px; }

/* Divider ornament */
.divider-ornament {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.divider-ornament::before, .divider-ornament::after {
  content: ""; height: 1px; width: 70px;
  background: linear-gradient(90deg, transparent, rgba(200,164,92,.6), transparent);
}

/* Form inputs */
.field {
  width: 100%; border-radius: 12px; padding: .85rem 1rem;
  background: #fff; border: 1px solid rgba(10,78,154,.15);
  font-size: .95rem; color: #062E5C;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: #0A4E9A; box-shadow: 0 0 0 4px rgba(10,78,154,.12); }

/* Back to top visible state */
#back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Marquee (industries logos-like row) */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 3rem; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Utility: hero heading gradient */
.hero-title-gradient {
  background: linear-gradient(120deg, #FFFFFF 0%, #E7CD8E 55%, #C8A45C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Section paddings */
section { padding-block: 5rem; }
@media (min-width: 768px) { section { padding-block: 6rem; } }

/* Alert banner (form submit result) */
.alert { border-radius: 14px; padding: 12px 16px; font-weight: 500; }
.alert.success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
