/* ============================================================
   DPCL — Bootstrap Version Custom Styles
   Brand: Druthi Power Controls Pvt. Ltd.
   Colors: Logo Navy #02336F | Navy #0D1B4B | Sky Blue #3B82F6
   ============================================================ */

/* ------ CSS Custom Properties (Design Tokens) ------ */
:root {
  --brand-red:        #02336F;   /* Logo Navy — primary */
  --brand-red-light:  #1D5A9E;   /* Lighter tint of the logo navy */
  --brand-red-dark:   #011F42;   /* Deep tint of the logo navy */
  --brand-flame:      #3B82F6;   /* Sky Blue — accent */
  --brand-navy:       #0D1B4B;   /* Deep Navy */
  --brand-navy-light: #1A3380;   /* Medium Navy */
  --brand-green:      #1E7B34;
  --white:            #FFFFFF;
  --gray-50:          #F8F9FA;
  --gray-100:         #F2F2F2;
  --gray-200:         #D9D9D9;
  --gray-600:         #555555;
  --gray-800:         #2C2C2C;
  --gray-900:         #1A1A1A;

  --gradient-brand:   linear-gradient(135deg, #02336F 0%, #1D5A9E 100%);
  --gradient-navy:    linear-gradient(135deg, #0D1B4B 0%, #1A3380 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl:   0 16px 48px rgba(0,0,0,0.18);
  --shadow-brand:0 8px 24px rgba(2,51,111,0.28);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  --transition: 250ms cubic-bezier(0.4,0,0.2,1);
}

/* ------ Base Reset & Body ------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Several sections use Bootstrap's wider gutter utilities (row g-5 = 3rem
   gutter) inside a standard .container (which only pads 0.75rem). The row's
   negative margin is larger than the container's padding compensates for,
   exposing a ~12px sliver past the viewport edge on every page that uses
   g-5 — which was making the whole page horizontally scrollable on mobile.
   Nothing legitimate needs to overflow at the document level (the client
   logo marquee and org-chart both scroll within their own overflow:hidden/
   auto wrappers), so clipping it here is safe. */
html, body { overflow-x: hidden; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial Black, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-navy);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ------ Bootstrap Overrides ------ */
.btn-brand-red {
  background: var(--gradient-brand);
  border: none;
  color: var(--white);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.04em;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.btn-brand-red:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  background: linear-gradient(135deg, #2055C0 0%, #3B82F6 100%);
}
.btn-brand-red:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-outline-brand {
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  background: transparent;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 0.7rem 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.btn-outline-brand:hover {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--gradient-navy);
  border: none;
  color: var(--white);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.btn-navy:hover { color: var(--white); opacity: 0.9; transform: translateY(-2px); }

/* ------ NAVBAR ------ */
#mainNav {
  background: var(--white);
  box-shadow: none;
  transition: box-shadow 0.3s, background 0.3s;
  padding: 1rem 0;
  z-index: 1050;
}
#mainNav.scrolled {
  box-shadow: var(--shadow-lg);
  padding: 0.6rem 0;
}
.navbar-brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.65rem;
  border-radius: var(--radius-full);
  padding: 2px;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.brand-logo-wide {
  /* Wordmark logo — fixed height, auto width, no crop. */
  height: 56px; width: auto;
  flex-shrink: 0;
  object-fit: contain;
  transition: var(--transition);
}
/* ------ TRANSPARENT-OVER-HERO NAVBAR ------
   Opt-in via $transparentNav = true before including header.php.
   Starts fully transparent over a hero video/image, gains a solid
   dark backdrop once .scrolled is toggled (main.js, scrollY > 50). */
#mainNav.nav-transparent {
  background: transparent;
  box-shadow: none;
  /* !important needed to beat Bootstrap's .sticky-top !important rule —
     this takes the nav out of flow so the hero video starts at y:0 and
     sits flush behind it, instead of being pushed down by the nav's box. */
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 !important;
}
#mainNav.nav-transparent .container { padding-left: 0; }
@media (min-width: 1200px) {
  #mainNav.nav-transparent .navbar-collapse { padding-right: 0.5rem; }
}
#mainNav.nav-transparent.scrolled {
  background: rgba(13, 27, 75, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.nav-transparent .nav-link { color: rgba(255,255,255,0.92) !important; }
.nav-transparent .nav-link:hover,
.nav-transparent .nav-link.active { color: var(--white) !important; }
.nav-transparent .nav-link::after { background: var(--white); }
.nav-transparent .hamburger-line { background: var(--white); }
.nav-transparent .btn-outline-brand {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.nav-transparent .btn-outline-brand:hover {
  background: var(--white);
  color: var(--brand-red);
}
/* The logo sits inside its own opaque white corner panel — anchored flush
   to the top-left of the viewport, curved on the outer corner only — so
   it stays legible over any video frame regardless of brightness. Same
   white panel in both states, just scaled down slightly once scrolled. */
.nav-transparent .brand-badge {
  align-self: stretch;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 1rem 2.25rem 1rem 1.5rem;
  border-radius: 0 0 56px 0;
  transition: padding var(--transition), border-radius var(--transition), box-shadow var(--transition), background var(--transition);
}
#mainNav.nav-transparent.scrolled .brand-badge {
  padding: 0.65rem 1.75rem 0.65rem 1.5rem;
  border-radius: 0 0 32px 0;
  box-shadow: var(--shadow-md);
}
/* Scale the corner panel down on smaller screens so it never crowds the
   hamburger or eats into the hero. */
@media (max-width: 767.98px) {
  .nav-transparent .brand-badge {
    padding: 0.7rem 1.25rem 0.7rem 1rem;
    border-radius: 0 0 34px 0;
  }
  #mainNav.nav-transparent.scrolled .brand-badge {
    padding: 0.5rem 1.1rem 0.5rem 1rem;
    border-radius: 0 0 24px 0;
  }
  .brand-logo-wide { height: 42px; }
}

@media (max-width: 1199.98px) {
  .nav-transparent .navbar-collapse.show {
    background: rgba(13,27,75,0.97);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
  }
  .nav-transparent .navbar-collapse.show .nav-link { color: var(--white) !important; }

  /* Drawer must scroll rather than run off-screen on short viewports
     (landscape phones especially), and clear the fixed nav above it. */
  .navbar-collapse.show {
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Full-width tap rows in the drawer — 44px min touch target. */
  .navbar-collapse.show .nav-link {
    padding: 0.75rem 0.5rem !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .navbar-collapse.show .nav-cta-group { padding: 0 0.5rem; }
  .navbar-collapse.show .nav-cta-group .btn { flex: 1 1 0; }
  /* Both CTAs are useful in the drawer — space isn't constrained there. */
  .navbar-collapse.show .nav-cta-secondary { display: inline-flex !important; }
}
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-800) !important;
  letter-spacing: 0.02em;
  /* nowrap is the core fix: as a flex child the link was being squeezed
     until "About Us" broke onto a second line, making the whole bar 61px
     tall instead of 38px. Never let nav labels wrap. */
  white-space: nowrap;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition);
}
/* Tighten horizontal padding at 1200-1399px, where the container is only
   1140px and the full row would otherwise overflow. Restored at 1400px+. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-link { padding: 0.5rem 0.6rem !important; }
  .nav-link::after { left: 0.6rem; right: 0.6rem; }
  .nav-cta-secondary { display: none !important; }
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-red) !important;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
}
.dropdown-item {
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  color: var(--gray-800);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--brand-red); }

/* ------ MEGA MENU (Products / Industries) ------
   Desktop (≥1200px): hidden panel, opens on hover/focus of the parent <li>.
   Below 1200px: flattens to a static, always-expanded sublist inside the
   drawer — see the max-width:1199.98px override below. No extra JS either
   way; the existing drawer (Alpine mobileMenuOpen) handles show/hide. */
.mega-menu { position: relative; }
.mega-menu > .nav-link { display: flex; align-items: center; gap: 0.3rem; }
.mega-menu-caret { font-size: 0.65rem; transition: transform 0.25s ease; }
.mega-menu:hover .mega-menu-caret,
.mega-menu:focus-within .mega-menu-caret { transform: rotate(180deg); }

.mega-menu-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(720px, 92vw);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}
.mega-menu:hover .mega-menu-panel,
.mega-menu:focus-within .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
}
.mega-menu-grid--4col { grid-template-columns: repeat(4, 1fr); }

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition);
}
.mega-menu-item:hover { background: var(--gray-50); }
.mega-menu-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-red);
  font-size: 1.05rem;
}
.mega-menu-item-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-navy);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}
.mega-menu-item-desc {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.45;
}
.mega-menu-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mega-menu-footer-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-red);
}

@media (max-width: 1199.98px) {
  .mega-menu-panel {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    width: 100% !important;
    margin: 0.5rem 0 0.5rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 2px solid var(--gray-100);
    border-radius: 0;
    background: transparent;
  }
  .mega-menu-grid,
  .mega-menu-grid--4col { grid-template-columns: 1fr; }
  .mega-menu-caret { display: none; }
  .mega-menu-footer { display: none; }
  /* Drawer is dark on transparentNav pages — keep sublist text legible. */
  .nav-transparent .navbar-collapse.show .mega-menu-panel { border-left-color: rgba(255,255,255,0.2); }
  .nav-transparent .navbar-collapse.show .mega-menu-item-title { color: var(--white); }
  .nav-transparent .navbar-collapse.show .mega-menu-item-desc { color: rgba(255,255,255,0.6); }
  .nav-transparent .navbar-collapse.show .mega-menu-item:hover { background: rgba(255,255,255,0.08); }
}

/* Mobile hamburger — 44x44 min touch target (WCAG / Apple HIG) */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navbar-toggler:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: 6px;
}
.nav-transparent .navbar-toggler:focus-visible { outline-color: var(--white); }
.navbar-toggler-icon { width: 28px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger-line {
  display: block; height: 2px; background: var(--brand-navy); border-radius: 2px; transition: var(--transition);
}

/* ------ HERO SECTION ------ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gray-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,75,0.92) 0%, rgba(2,51,111,0.75) 100%);
}
.hero-overlay--video {
  background: linear-gradient(135deg, rgba(20,20,22,0.42) 0%, rgba(60,60,64,0.22) 100%);
}
.hero-content { position: relative; z-index: 2; }

/* ------ HERO VIDEO SECTION ------ */
.hero-video-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* dvh avoids the mobile browser-chrome jump */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-navy);
  /* Clear the fixed nav: the brand badge hangs ~110px below the viewport
     top (1rem pad + 44px logo + 1rem pad + curve), and was overlapping the
     hero's ISO/UL/FM badge. This reserves room for it. */
  padding-top: 132px;
  padding-bottom: 2rem;
}
@media (max-width: 1199.98px) {
  .hero-video-section { padding-top: 112px; }
}
@media (max-width: 575.98px) {
  .hero-video-section { padding-top: 96px; }
}
.hero-video-media,
.hero-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fallback poster is a real photo (not a text-covered page screenshot),
   so it can sit brighter than the old hero-bg — the gradient overlay
   still carries the text-contrast work. Swapped for <video> automatically
   once dpcl-assets/videos/hero.mp4 exists. */
.hero-video-poster { opacity: 0.55; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 8px; height: 8px; background: #3B82F6; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: #3B82F6; }
.hero-title .accent-fire { color: #DC2626; }
.hero-subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* Stat Strip */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
}
.stat-item .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  color: #3B82F6;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ------ SECTION COMMON ------ */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--brand-navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
}
.section-divider {
  width: 60px; height: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* ------ ABOUT / OVERVIEW CARDS ------ */
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-red);
}
.pillar-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}
.pillar-card h4 {
  font-size: 1.15rem;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}
.pillar-card p { font-size: 0.9rem; color: var(--gray-600); margin: 0; }

/* ------ CONTACT INFO STRIP (Phone/Email/WhatsApp/Hours cards) ------
   The text column is a flex child sitting next to a fixed-width icon
   circle. Flex children don't shrink below their content's natural width
   by default, so a long unbroken string (an email address, no spaces to
   wrap on) pushed straight past the card edge instead of wrapping.
   min-width:0 lets it shrink; overflow-wrap+clamp let it wrap/scale
   instead of overflowing at any card width. */
.contact-info-text { min-width: 0; }
.contact-info-value {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(0.8rem, 1.5vw + 0.35rem, 0.95rem);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ------ PRODUCT PAGE MEDIA ------
   Aspect-ratio driven instead of fixed px heights, so the panels scale
   correctly from 375px phones up to large desktops without distorting the
   artwork. aspect-ratio also reserves space before load (avoids CLS). */
.product-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--gray-100);
}
.product-media > img {
  width: 100%;
  height: 100%;
  display: block;
}
.product-media--main {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-xl);
}
.product-media--thumb {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
/* Montage artwork (letterboxed via object-fit:contain) reads better with a
   little breathing room than pinned edge-to-edge. */
.product-media--main > img[style*="contain"] { padding: 0.5rem; }
@media (min-width: 992px) {
  /* Slightly taller on desktop where the column is narrow and the adjacent
     product list is long — keeps the two columns visually balanced. */
  .product-media--main { aspect-ratio: 3 / 2; }
}

/* ------ PRODUCT CARDS ------ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid transparent;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-left-color: var(--brand-red);
}
.product-card-img {
  /* aspect-ratio instead of a fixed px height, so the card scales correctly
     from a full-width mobile card to a 1/3-width desktop card without the
     image looking squashed or over-tall at either extreme. */
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
@media (min-width: 992px) {
  .product-card-img { aspect-ratio: 3 / 2; }
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card-img img[style*="contain"] { padding: 0.5rem; transition: none; }
.product-card:hover .product-card-img img[style*="contain"] { transform: none; }
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-body { padding: 1.5rem; }
.product-card-title { font-size: 1rem; font-weight: 700; color: var(--brand-navy); margin-bottom: 0.5rem; }
.product-card-text { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 1rem; }
.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: var(--brand-red);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

/* ------ STATS COUNTER ------ */
.stats-section { background: var(--gradient-brand); position: relative; overflow: hidden; }
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Card treatment + a safer number size: the old clamp(3rem,6vw,4.5rem) render
   at 992-1199px (6 narrow col-lg-2 columns) overflowed sideways into the next
   column — "500+" and "40+" ran together with no visible gap. */
.stat-counter-card {
  text-align: center;
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.stat-counter-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
}
.stat-counter-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.85rem, 3.2vw, 3.1rem);
  color: var(--white);
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.stat-counter-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ------ INDUSTRIES ------ */
.industry-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 240px;
  cursor: pointer;
}
.industry-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.industry-card:hover img { transform: scale(1.1); }
.industry-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  transition: opacity var(--transition);
}
.industry-card:hover .industry-overlay { opacity: 0.85; }
.industry-label {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  z-index: 2;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.industry-arrow { opacity: 0; transform: translateX(-8px); transition: var(--transition); }
.industry-card:hover .industry-arrow { opacity: 1; transform: translateX(0); }

/* ------ CLIENT LOGOS ------ */
.clients-section { background: var(--gray-50); }
.client-logo-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.client-logo-wrap::before,
.client-logo-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.client-logo-wrap::before { left: 0; background: linear-gradient(to right, var(--gray-50), transparent); }
.client-logo-wrap::after  { right: 0; background: linear-gradient(to left, var(--gray-50), transparent); }

.client-logo-track {
  display: inline-flex;
  gap: 3rem;
  align-items: center;
  animation: marquee 40s linear infinite;
}
.client-logo-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 60px;
  padding: 0 0.5rem;
}
.client-logo-item img {
  max-width: 110px;
  max-height: 55px;
  object-fit: contain;
  opacity: 1;
}

/* ------ WHY CHOOSE US ------ */
.why-us-section { background: var(--white); }
.feature-row {
  display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon-wrap {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.feature-text h5 { font-size: 1rem; color: var(--brand-navy); margin-bottom: 0.3rem; }
.feature-text p  { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* ------ CERTIFICATIONS ------ */
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  height: 100%;
  width: 100%;
}
.cert-badge span:last-child { margin-top: auto; }
.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-red);
}
.cert-badge img { height: 64px; object-fit: contain; }
.cert-badge span { font-size: 0.8rem; font-weight: 700; color: var(--brand-navy); letter-spacing: 0.05em; }

/* ------ CONTACT / CTA BANNER ------ */
.cta-banner {
  background: var(--gradient-navy);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: rgba(255,255,255,0.8); }

/* ------ FOOTER ------ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 0;
}
/* Same treatment as the header: a solid white panel behind the logo,
   rather than floating it directly on the near-black footer. */
.footer-logo-panel {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.footer-logo-wide {
  height: 56px; width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 575.98px) {
  .footer-logo-wide { height: 46px; }
  .footer-logo-panel { padding: 0.65rem 1.1rem; }
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 300px; }
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-links a:hover { color: var(--brand-flame); }
.footer-links a::before { content: '›'; font-size: 1.1rem; color: var(--brand-red); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.footer-contact-item .icon {
  color: var(--brand-flame); font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--brand-flame); }

/* ------ UTILITIES ------ */
.text-brand-red { color: var(--brand-red) !important; }
.text-brand-navy { color: var(--brand-navy) !important; }
.text-brand-flame { color: var(--brand-flame) !important; }
.bg-brand-red { background: var(--brand-red) !important; }
.bg-gray-50 { background: var(--gray-50) !important; }
.bg-gray-100 { background: var(--gray-100) !important; }

/* ============================================================
   SKELETON LOADING ANIMATIONS
   ============================================================ */

/* ── Shimmer keyframe ── */
@keyframes skshimmer {
  0%   { background-position: -1200px 0; }
  100% { background-position:  1200px 0; }
}

.sk {
  background: linear-gradient(90deg, #eef0f3 25%, #e2e5ea 50%, #eef0f3 75%);
  background-size: 2400px 100%;
  animation: skshimmer 1.6s infinite linear;
  border-radius: 6px;
  display: block;
}

/* ── Top progress bar ── */
#top-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 10000;
  box-shadow: 0 0 10px rgba(2,51,111,0.5);
  transition: width 0.25s ease, opacity 0.4s ease;
  pointer-events: none;
}

/* ── Page skeleton overlay ── */
#page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #ffffff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  overflow: hidden;
}
#page-skeleton.sk-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* skeleton nav */
.sk-nav {
  height: 72px;
  background: white;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sk-logo  { width: 44px; height: 44px; border-radius: 8px; flex-shrink:0; }
.sk-brand { width: 90px; height: 14px; }
.sk-nav-links { display:flex; gap: 1.75rem; margin: 0 auto; }
.sk-nav-link  { width: 55px; height: 11px; }
.sk-cta-1     { width: 90px; height: 34px; border-radius: 8px; }
.sk-cta-2     { width: 120px; height: 34px; border-radius: 8px; }

/* skeleton hero */
.sk-hero {
  padding: 6rem 2rem 4rem;
  max-width: 1140px;
  margin: 0 auto;
}
.sk-badge  { width: 240px; height: 28px; border-radius: 999px; margin-bottom: 1.5rem; }
.sk-h1-a   { width: 72%; height: 52px; border-radius: 8px; margin-bottom: 1rem; }
.sk-h1-b   { width: 55%; height: 52px; border-radius: 8px; margin-bottom: 1rem; }
.sk-h1-c   { width: 40%; height: 52px; border-radius: 8px; margin-bottom: 1.75rem; }
.sk-sub-a  { width: 58%; height: 16px; border-radius: 4px; margin-bottom: 0.6rem; }
.sk-sub-b  { width: 44%; height: 16px; border-radius: 4px; margin-bottom: 2rem; }
.sk-btn-a  { display:inline-block; width: 168px; height: 50px; border-radius: 8px; margin-right: 1rem; }
.sk-btn-b  { display:inline-block; width: 148px; height: 50px; border-radius: 8px; }

/* ── Image fade-in (JS sets opacity:0 on unloaded images, removes on load) ── */
/* No CSS wrapper needed — handled directly on the img element via inline style */

/* ── Image content skeleton (shown until the real <img> inside has
   loaded, then removed by JS — unlike .sk-card's decorative sweep, this
   actually masks the loading image with an animated placeholder) ── */
.media-loading {
  background: linear-gradient(90deg, #eef0f3 25%, #e2e5ea 50%, #eef0f3 75%);
  background-size: 2400px 100%;
  animation: skshimmer 1.6s infinite linear;
}

/* ── Card skeleton sweep ── */
.sk-card {
  position: relative;
  overflow: hidden;
}
.sk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.55) 50%,
    transparent 100%);
  background-size: 2400px 100%;
  animation: skshimmer 1.6s infinite linear;
  pointer-events: none;
  border-radius: inherit;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.sk-card.sk-done::after { opacity: 0; }

/* ------ POLICY / LEGAL PAGE CARDS (Terms & Conditions, Privacy Policy) ------ */
.policy-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--brand-red);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--brand-flame);
}
.policy-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.policy-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.policy-card h2 {
  font-size: 1.15rem;
  color: var(--brand-navy);
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.policy-card p, .policy-card li { color: var(--gray-600); font-size: 0.95rem; line-height: 1.75; }
.policy-card p:last-child { margin-bottom: 0; }
.policy-card ul { padding-left: 1.1rem; margin-bottom: 0; }
.policy-card ul li { margin-bottom: 0.4rem; }
.policy-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

/* ------ BREADCRUMBS ------
   Every breadcrumb on the site sits in a dark-navy page-hero. Bootstrap's
   default divider colour (~rgb(33,37,41), meant for light backgrounds) was
   rendering almost invisibly against that navy, making "Home › About Us"
   look like an unexplained gap with no connector between the two words. */
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.35);
}
/* The markup sets font-size:.8rem inconsistently — on the inner <a> for
   "Home", but directly on the <li> for the current/active page (which has
   no link, just text). That gave the two <li> boxes different natural
   line-heights (the "Home" li inherited the default 16px context since its
   own font-size was never overridden, only its child's was), so inside the
   flex breadcrumb row they didn't sit at quite the same vertical position.
   Forcing font-size at the <li> level for both makes the line-height basis
   — and so the vertical centering — identical either way. */
.breadcrumb-item {
  font-size: 0.8rem;
}

/* ------ ORGANISATION CHART ------
   Desktop: classic pure-CSS connector-line tree (flex row of <ul>, each <li>
   ticks up to a horizontal line drawn as its parent <ul>'s top border).
   Mobile: the same markup collapses to an indented, collapsible list —
   horizontal trees don't fit narrow screens, so below 768px the connector
   lines are dropped and .org-toggle buttons (JS-driven) let users expand
   only the branches they want, instead of a huge scrolling wall. */
.org-chart {
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
}
.org-chart > ul { padding-top: 0; }
.org-chart ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.org-chart li {
  position: relative;
  margin: 0 0.6rem;
  padding-top: 2rem;
  text-align: center;
}
.org-chart li::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 2rem;
  border-left: 2px solid var(--gray-200);
}
.org-chart > ul > li::before { display: none; }
.org-chart li > ul {
  position: relative;
  padding-top: 2rem;
  margin-top: 0;
}
.org-chart li > ul::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  border-top: 2px solid var(--gray-200);
}
.org-node {
  position: relative;
  display: inline-block;
  min-width: 160px;
  max-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gray-400);
  box-shadow: var(--shadow-sm);
  padding: 0.65rem 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.org-node:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.org-node--red   { border-top-color: var(--brand-red); }
.org-node--navy  { border-top-color: var(--brand-navy); }
.org-node--flame { border-top-color: var(--brand-flame); }
.org-node--green { border-top-color: var(--brand-green); }
.org-node-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-navy);
  line-height: 1.3;
}
.org-node-role {
  font-size: 0.72rem;
  color: var(--gray-600);
  line-height: 1.3;
  margin-top: 0.15rem;
}
.org-toggle {
  display: none; /* desktop: tree is always fully expanded, no toggle needed */
  position: absolute;
  top: -0.9rem; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.65rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  cursor: pointer;
}
.org-toggle i { transition: transform var(--transition); }
.org-toggle[aria-expanded="false"] i { transform: rotate(-90deg); }

@media (max-width: 767.98px) {
  .org-chart { overflow-x: visible; padding: 0; }
  .org-chart ul {
    display: block;
    padding-left: 1.1rem;
    border-left: 2px dashed var(--gray-200);
  }
  .org-chart > ul { padding-left: 0; border-left: none; }
  .org-chart li {
    margin: 0.5rem 0;
    padding-top: 0;
    text-align: left;
  }
  .org-chart li::before,
  .org-chart li > ul::before { display: none; }
  .org-node { display: block; width: 100%; max-width: none; padding-right: 2.25rem; }
  .org-toggle {
    display: flex;
    top: 50%; left: auto; right: 0.6rem;
    transform: translateY(-50%);
  }
  .org-toggle[aria-expanded="false"] i { transform: rotate(-90deg); }
  /* collapsed branch: hide its child list entirely on mobile */
  .org-chart li.org-collapsed > ul { display: none; }
}

/* ------ ANIMATIONS ------ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ------ RESPONSIVE ------ */
@media (max-width: 991.98px) {
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 767.98px) {
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* The hero content (headline + subtitle + CTAs + 4 stats) stacks taller
     relative to a phone's shorter viewport than on desktop, pushing the
     stat row down into the scroll-indicator's fixed "2rem from bottom"
     position. The hint is a desktop nicety anyway — touchscreens don't
     need a "scroll down" affordance — so simplest correct fix is to just
     not show it below this breakpoint rather than chase exact offsets
     across every phone size. */
  .scroll-indicator { display: none; }
}


/* ------ HERO HIGHLIGHT CARDS (home) ------ */
.hero-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.hl-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: .8rem .85rem; border-radius: 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hl-card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .85rem; }
.hl-icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
}
.hl-icon i { color: #fff; font-size: 1.05rem; }
.hl-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .82rem; color: #fff; line-height: 1.25; }
.hl-desc { font-size: .72rem; color: rgba(255,255,255,0.68); line-height: 1.35; margin-top: .15rem; }
@media (min-width: 992px) {
  .hero-highlights { grid-template-columns: 1fr; gap: .6rem; }
  .hl-card, .hl-card:last-child { flex-direction: row; align-items: center; gap: .85rem; padding: .7rem 1rem; grid-column: auto; }
  .hl-title { font-size: .9rem; }
  .hl-desc { font-size: .78rem; }
}


/* ------ ABOUT FACT CARDS ------ */
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.about-fact {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 84px; padding: .9rem .6rem; border-radius: 12px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
}
.about-fact-val {
  font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--brand-red);
  font-size: clamp(1rem, 1.1rem + .2vw, 1.2rem); line-height: 1.15; overflow-wrap: anywhere;
}
.about-fact-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-600);
  margin-top: .35rem; line-height: 1.35;
}
@media (min-width: 576px) { .about-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px) and (max-width: 1199px) { .about-fact-val { font-size: 1rem; } .about-fact-label { font-size: .62rem; letter-spacing: .05em; } }


/* ------ MISSION / VISION / VALUES CARDS (about) ------ */
.mvv-card {
  display: flex; flex-direction: column; height: 100%; padding: 3rem; border-radius: 1rem;
  background: var(--gradient-navy); position: relative; overflow: hidden;
}
.mvv-watermark { position: absolute; top: -20px; right: -20px; font-size: 8rem; opacity: .06; line-height: 1; pointer-events: none; }
.mvv-icon {
  width: 52px; height: 52px; margin-bottom: 1.5rem; border-radius: 12px; font-size: 1.5rem;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
}
.mvv-title { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.mvv-lead { color: rgba(255,255,255,0.85); line-height: 1.8; font-size: .95rem; margin: 0; }
.mvv-sub { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); }
.mvv-sub-title { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #93C5FD; margin-bottom: .9rem; }
.mvv-list { list-style: none; padding: 0; margin: 0; }
.mvv-list li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .65rem; }
.mvv-tick { color: #93C5FD; line-height: 1.5; flex-shrink: 0; }
.mvv-item { font-size: .85rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
.mvv-item strong { color: #fff; }
.mvv-item small { display: block; font-size: .8rem; color: rgba(255,255,255,0.78); margin-top: 1px; }
.mvv-stats { margin-top: auto; padding-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.mvv-stat {
  min-height: 78px; padding: .6rem .35rem; border-radius: 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
}
.mvv-stat b { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; line-height: 1.1; }
.mvv-stat span { font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-top: .35rem; white-space: nowrap; }
@media (min-width: 1200px) { .mvv-lead { min-height: 5.5rem; } }
@media (min-width: 992px) and (max-width: 1199px) { .mvv-lead { min-height: 7.4rem; } .mvv-card { padding: 2.25rem; } }
@media (max-width: 991px) { .mvv-card { padding: 2rem; } }
@media (max-width: 400px) { .mvv-stat span { font-size: .56rem; letter-spacing: .03em; } .mvv-stat b { font-size: 1.15rem; } }

/* ------ ENQUIRY STATUS OVERLAY (loader, animated tick, error) ------ */
.enq-overlay {
  position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center;
  background: rgba(13,27,75,0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; padding: 1rem;
}
.enq-overlay.active { opacity: 1; visibility: visible; }
.enq-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 2.4rem 2rem 2rem; text-align: center;
  box-shadow: 0 30px 80px rgba(2,20,60,0.35); transform: translateY(18px) scale(.97);
  transition: transform .45s cubic-bezier(.2,.9,.25,1.2);
}
.enq-overlay.active .enq-card { transform: none; }
.enq-state { display: none; }
.enq-card[data-state="sending"] .enq-sending,
.enq-card[data-state="success"] .enq-success,
.enq-card[data-state="error"]   .enq-error { display: block; }
.enq-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--brand-navy, #0D1B4B); margin: 1.1rem 0 .4rem; }
.enq-sub { color: #5b6472; font-size: .9rem; line-height: 1.65; margin: 0 0 .5rem; }
.enq-sub strong { color: var(--brand-navy, #0D1B4B); }
.enq-ref { color: #8a93a3; font-size: .78rem; margin: .6rem 0 0; }
.enq-ref strong { color: var(--brand-red, #02336F); }
.enq-btn {
  margin-top: 1.25rem; border: 0; border-radius: 10px; padding: .7rem 2.2rem; font-weight: 700; font-size: .95rem; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #02336F, #1D5A9E); box-shadow: 0 8px 20px rgba(2,51,111,.25); transition: transform .2s, box-shadow .2s;
}
.enq-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(2,51,111,.32); }
.enq-btn-light { background: #fff; color: #b42318; border: 1.5px solid #f3b4ae; box-shadow: none; }

/* sending: ring spinner around a plane icon */
.enq-spinner { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.enq-spinner svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.enq-track { fill: none; stroke: #e4ebf5; stroke-width: 6; }
.enq-arc { fill: none; stroke: #1D5A9E; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 80 197; transform-origin: 50% 50%; animation: enqSpin 1.05s linear infinite; }
.enq-spinner i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: var(--brand-red, #02336F); animation: enqFloat 1.6s ease-in-out infinite; }
.enq-bar { height: 4px; border-radius: 99px; background: #e8eef7; overflow: hidden; margin-top: 1.1rem; }
.enq-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #02336F, #3B82F6); animation: enqSlide 1.3s ease-in-out infinite; }
@keyframes enqSpin { to { transform: rotate(360deg); } }
@keyframes enqFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,-3px); } }
@keyframes enqSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* success: circle draws, tick draws, soft ripple */
.enq-tick, .enq-cross { position: relative; width: 92px; height: 92px; margin: 0 auto; }
.enq-tick svg, .enq-cross svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.enq-ring { fill: rgba(16,185,129,0); stroke: #10b981; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 277; stroke-dashoffset: 277; }
.enq-check { fill: none; stroke: #10b981; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 64; stroke-dashoffset: 64; transform: rotate(90deg); transform-origin: 50% 50%; }
.enq-ripple { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(16,185,129,.35); opacity: 0; }
.enq-card.run .enq-ring { animation: enqDraw .7s cubic-bezier(.65,0,.35,1) forwards, enqFill .4s ease .6s forwards; }
.enq-card.run .enq-check { animation: enqDrawCheck .45s cubic-bezier(.65,0,.35,1) .62s forwards; }
.enq-card.run .enq-ripple { animation: enqRipple .9s ease-out .75s 1 forwards; }
.enq-rise { opacity: 0; transform: translateY(10px); }
.enq-card.run .enq-rise { animation: enqRise .5s ease forwards; }
.enq-card.run .enq-rise:nth-of-type(1) { animation-delay: .95s; }
.enq-card.run h5.enq-rise { animation-delay: .85s; }
.enq-card.run p.enq-rise:nth-of-type(1) { animation-delay: .95s; }
.enq-card.run p.enq-rise:nth-of-type(2) { animation-delay: 1.05s; }
.enq-card.run p.enq-ref { animation-delay: 1.15s; }
.enq-card.run button.enq-rise { animation-delay: 1.25s; }
@keyframes enqDraw { to { stroke-dashoffset: 0; } }
@keyframes enqFill { to { fill: rgba(16,185,129,.12); } }
@keyframes enqDrawCheck { to { stroke-dashoffset: 0; } }
@keyframes enqRipple { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes enqRise { to { opacity: 1; transform: none; } }

/* error: red circle, cross, little shake */
.enq-error .enq-ring { stroke: #ef4444; stroke-dashoffset: 0; }
.enq-x { fill: none; stroke: #ef4444; stroke-width: 7; stroke-linecap: round; transform: rotate(90deg); transform-origin: 50% 50%; }
.enq-card[data-state="error"] .enq-cross { animation: enqShake .5s ease .1s 1; }
@keyframes enqShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* submit button busy state on the page form */
.btn-busy { opacity: .75; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .enq-arc, .enq-spinner i, .enq-bar span, .enq-ripple { animation: none !important; }
  .enq-card.run .enq-ring, .enq-card.run .enq-check { animation: none !important; stroke-dashoffset: 0; }
  .enq-card.run .enq-ring { fill: rgba(16,185,129,.12); }
  .enq-card.run .enq-rise { animation: none !important; opacity: 1; transform: none; }
}

/* ------ FLOATING WHATSAPP BUTTON (bottom-left, every page) ------ */
.wa-float {
  position: fixed; z-index: 9990;
  left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0;
  height: 56px; min-width: 56px; padding: 0; border-radius: 28px;
  background: #25D366; color: #fff; text-decoration: none; overflow: visible;
  box-shadow: 0 10px 26px rgba(18,140,70,.38), 0 2px 6px rgba(0,0,0,.18);
  transition: transform .25s cubic-bezier(.2,.9,.25,1.2), box-shadow .25s ease, padding .3s ease, gap .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float i { font-size: 30px; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 56px; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(18,140,70,.46), 0 3px 8px rgba(0,0,0,.2); color: #fff; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #128C4A, 0 14px 32px rgba(18,140,70,.46); }
.wa-float:active { transform: scale(.96); }
.wa-ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(37,211,102,.7); opacity: 0; pointer-events: none; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .75; } 70%,100% { transform: scale(1.55); opacity: 0; } }
.wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  transition: max-width .35s ease, opacity .25s ease, padding .3s ease;
}
@media (min-width: 992px) {
  .wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 190px; opacity: 1; padding-right: 20px; }
}
@media (max-width: 575px) {
  .wa-float { height: 52px; min-width: 52px; border-radius: 26px; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .wa-float i { width: 52px; height: 52px; flex-basis: 52px; font-size: 28px; }
}
@media print { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-ring { animation: none; } .wa-float, .wa-label { transition: none; } }
