/* Single typeface for the entire site — Inter. No display or mono secondary faces. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── LIGHT THEME ──
     Semantic names are the source of truth. The older colour names below are
     kept as aliases so every existing rule flips over without being rewritten. */
  --bg:            #f4f8fd;   /* page background — cool near-white */
  --bg-alt:        #ffffff;   /* raised surfaces */
  --bg-tint:       #eef5fc;   /* banded sections */
  --surface:       #ffffff;
  --text:          #0a1f3d;   /* deep navy body text */
  --text-mid:      #4d647f;   /* secondary text */
  --text-soft:     #7c8ea6;   /* captions, meta */

  --blue:          #0057b8;
  --blue-bright:   #0062d6;
  --blue-glow:     #0a6ee0;
  --teal:          #0d8a76;   /* darkened for AA contrast on white */
  --teal-bright:   #10a892;
  --teal-dim:      rgba(13,138,118,0.10);
  --gold:          #c07f00;

  --border:        rgba(10,31,61,0.10);
  --border-strong: rgba(10,31,61,0.16);
  --border-blue:   rgba(0,98,214,0.18);

  /* Legacy aliases — do not use in new rules, they map onto the light palette */
  --navy: var(--bg);
  --navy-mid: var(--bg-alt);
  --navy-light: var(--bg-tint);
  --white: var(--text);
  --white-mid: var(--text-mid);
  --white-dim: rgba(10,31,61,0.05);
  --card-bg: var(--surface);
  /* One family, three aliases kept so existing rules keep working. */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --font-mono: var(--font-sans);
  --nav-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;
  /* Light themes read depth as shadow, not glow */
  --shadow-sm: 0 1px 2px rgba(10,31,61,0.05), 0 1px 3px rgba(10,31,61,0.04);
  --shadow-md: 0 4px 12px rgba(10,31,61,0.07), 0 2px 4px rgba(10,31,61,0.04);
  --shadow-lg: 0 14px 34px rgba(10,31,61,0.10), 0 4px 10px rgba(10,31,61,0.05);
  --glow-teal: 0 14px 34px rgba(13,138,118,0.16), 0 3px 8px rgba(10,31,61,0.05);
  --glow-blue: 0 14px 34px rgba(0,98,214,0.15), 0 3px 8px rgba(10,31,61,0.05);
}

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

/* Every element — including form controls, which do not inherit by default */
html, body, input, select, textarea, button, table {
  font-family: var(--font-sans);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Screenshot & copy protection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ─── GRID BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,31,61,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,61,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  /* Fade the grid out toward the bottom so it reads as texture, not graph paper */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 4%;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Header wordmark — company name and suffix on a single line, no icon tile */
.nav-logo-wordmark { white-space: nowrap; }
.nav-logo-wordmark .brand {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.015em;
}
.nav-logo-wordmark .brand .suffix {
  font-weight: 500;
  font-size: 0.72em;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.nav-logo-text .tagline {
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--white-mid);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 11px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--white-dim);
}

.nav-links a.active {
  color: var(--teal);
}

.nav-cta {
  flex-shrink: 0;
}

.btn-nav {
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── PAGE WRAPPER ─── */
main { padding-top: var(--nav-h); position: relative; z-index: 1; }

/* ─── SECTION COMMONS ─── */
.section { padding: 100px 5%; }
.section-sm { padding: 70px 5%; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}

/* Centered variant — replaces the old padding-left:38px hack */
.section-label.center { justify-content: center; }
.section-label.center::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}

/* ─── ICONS ─── */
/* Line icons replace the emoji set: consistent stroke, inherits colour. */
.ico {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ico-lg { width: 26px; height: 26px; }
.ico-xl { width: 32px; height: 32px; }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,87,184,0.28), rgba(0,201,167,0.16));
  border: 1px solid var(--border);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

/* Numeric / code-like strings — keep columns aligned now that the mono face is gone */
.num-tabular,
.cas,
.cas-no,
td.cas-no {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ─── CLIENTS / TRUSTED BY ─── */
.clients-section {
  padding: 90px 5%;
  position: relative;
}

.clients-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.clients-head .section-sub { margin: 0 auto; }

/* ─── AUTO-SCROLLING LOGO STRIP ─── */
.clients-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  /* Feather both edges so logos enter and leave instead of being chopped */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll var(--marquee-duration, 60s) linear infinite;
}

/* Hovering lets someone actually read a logo they spotted */
.clients-marquee:hover .clients-track { animation-play-state: paused; }

.clients-pass {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo {
  flex-shrink: 0;
  width: 190px;
  height: 104px;
  margin: 0 10px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.client-logo:hover {
  border-color: rgba(13,138,118,0.32);
  box-shadow: var(--glow-teal);
}

/* Logos render in their own brand colours */
/* Taller cap so portrait marks (Lupin, Sun Pharma) aren't dwarfed by the
   wide ones, which stay width-constrained regardless. */
.client-logo img {
  max-width: 100%;
  max-height: 66px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.client-logo:hover img { transform: scale(1.04); }

/* Name card — used when a company has no logo file yet. Styled to sit
   comfortably beside the real logos rather than look like a failure. */
.client-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.client-logo-text .sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .clients-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.clients-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 13px;
  color: var(--text-soft);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.section-title span {
  background: linear-gradient(90deg, var(--blue-glow), var(--teal-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 17px;
  color: var(--white-mid);
  max-width: 640px;
  line-height: 1.75;
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(13,138,118,0.35);
  box-shadow: var(--glow-teal);
  transform: translateY(-4px);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  box-shadow: 0 4px 14px rgba(0,98,214,0.22);
}
.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,98,214,0.30);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 10px;
  border: 1px solid var(--teal);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover {
  background: var(--teal-dim);
  transform: translateY(-2px);
}

/* ─── STAT / BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-dim);
  border: 1px solid rgba(13,138,118,0.28);
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  font-family: var(--font-mono);
}

/* ─── DIVIDER ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ─── GLOW ORBS (decorative) ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
/* Soft colour washes — much lighter than the dark theme's glows */
.orb-blue { background: rgba(0,98,214,0.10); }
.orb-teal { background: rgba(13,138,118,0.09); }

/* ─── FOOTER ─── */
footer {
  background: #0a1f3d;
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* The footer is the one deliberately dark band on the page — it anchors the
   light layout. Text colours are re-stated locally because the global tokens
   are now dark-on-light. */
footer .nav-logo-text .brand { color: #ffffff; }
footer .nav-logo-text .tagline { color: #4fd1b8; }

.footer-brand p {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  max-width: 280px;
  margin-top: 1rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: #4fd1b8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.42);
  font-size: 13px;
}

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: wa-pulse 2.5s infinite;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37,211,102,0.6);
}

.wa-btn svg { width: 30px; height: 30px; }

.wa-label {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.wa-float:hover .wa-label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.75); }
}

/* ─── PAGE HERO GENERIC ─── */
.page-hero {
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-content { position: relative; z-index: 1; max-width: 700px; }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE ───
   Collapses at 1024px rather than 900px: the single-line wordmark is wider
   than the old icon+stacked-text lockup, so the eight nav links plus the CTA
   no longer fit in the ~900–1024px band. */
@media (max-width: 1150px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(10,31,61,0.10);
    padding: 1.5rem 5%;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    text-decoration: none;
    color: var(--white-mid);
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .section { padding: 70px 5%; }
  .clients-section { padding: 60px 5%; }
  .client-logo { width: 150px; height: 86px; margin: 0 7px; padding: 0 14px; }
  .client-logo img { max-height: 54px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wa-float { bottom: 18px; right: 18px; }
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT-THEME SURFACE POLISH
   The per-page stylesheets build their panels from --card-bg/--border,
   which now resolve to white-on-light. On a dark background a 1px border
   was enough to separate a card from the page; on a light one it is not,
   so depth is added here centrally rather than editing eight files.
   ══════════════════════════════════════════════════════════════════ */

.product-card, .why-card, .info-card, .prod-card-m, .infra-card,
.pillar-card, .culture-card, .opening-card, .commit-item, .ehs-pillar,
.mv-card, .value-pill, .tl-content, .l-stat, .contact-info-card,
.contact-form, .apply-form, .float-card, .search-input {
  box-shadow: var(--shadow-sm);
}

.product-card:hover, .why-card:hover, .infra-card:hover, .pillar-card:hover,
.culture-card:hover, .opening-card:hover, .commit-item:hover, .ehs-pillar:hover,
.mv-card:hover, .value-pill:hover, .contact-info-card:hover, .prod-card-m:hover {
  box-shadow: var(--shadow-lg);
}

/* Products table — needs a solid surface and readable rules on white */
.product-table-wrap {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.product-table-wrap { overflow-x: auto; }
thead tr { background: #eaf1fb !important; }
tbody tr { border-bottom: 1px solid var(--border) !important; }
tbody tr:hover { background: #f2f7fe !important; }

/* Accent chips read better with a touch more saturation on white */
.api-badge, .tag-pill {
  background: rgba(0,98,214,0.07) !important;
  border-color: rgba(0,98,214,0.20) !important;
}
.tag-pill.loc {
  background: rgba(10,31,61,0.04) !important;
  border-color: var(--border) !important;
  color: var(--text-mid) !important;
}

.filter-btn { background: var(--surface); box-shadow: var(--shadow-sm); }
.filter-btn:hover, .filter-btn.active {
  background: rgba(13,138,118,0.09);
  border-color: rgba(13,138,118,0.35);
}

/* Gradient panels were tuned for a dark backdrop; lift them on light */
.about-card-main, .cta-banner, .motto-block, .facility-visual,
.policy-statement, .leader-avatar {
  box-shadow: var(--shadow-md);
}

/* Section banding gives the long pages rhythm without heavy borders */
.leader-section { background: var(--bg-tint) !important; }
.clients-section { background: var(--bg-alt); border-block: 1px solid var(--border); }

/* Focus ring — visible on light, and required for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Oversized ghost numerals were tuned against a dark backdrop; at 0.15–0.2
   opacity they vanish on white. */
.about-card-main .year-badge { opacity: 0.45 !important; }
.pillar-num { opacity: 0.35 !important; }
.motto-block::before { color: rgba(13,138,118,0.10) !important; }

/* EHS pillar accents — the original mint/lilac fail contrast on white */
.ehs-pillar.env .ehs-pillar-icon    { color: #0d8a76 !important; }
.ehs-pillar.health .ehs-pillar-icon { color: #2563c9 !important; }
.ehs-pillar.safety .ehs-pillar-icon { color: #b07400 !important; }
.ehs-pillar.env::before    { background: linear-gradient(90deg, #0d8a76, #10a892) !important; }
.ehs-pillar.health::before { background: linear-gradient(90deg, #0062d6, #5b56d6) !important; }
.ehs-pillar.safety::before { background: linear-gradient(90deg, #d99400, #d1651f) !important; }

/* Icon tiles: the accent wash needs more presence against white */
.icon-tile, .why-icon, .infra-icon, .c-icon, .v-icon, .ehs-pillar-icon {
  background: linear-gradient(135deg, rgba(0,98,214,0.10), rgba(13,138,118,0.12)) !important;
  border: 1px solid rgba(13,138,118,0.18) !important;
}

/* The policy quote sat on a dark panel — restate it for light */
.policy-statement p { color: var(--text) !important; }
