/* ============================================================
   Ruellco Instruments & Control – Main Stylesheet (Redesigned)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:        #0d1b2a;
  --ind-blue:    #1b2d4f;
  --accent:      #ff6b35;
  --accent-dark: #e55a28;
  --accent-glow: rgba(255,107,53,.35);
  --teal:        #00c9b1;
  --white:       #FFFFFF;
  --pale:        #fff8f5;
  --pale2:       #ffe8df;
  --slate:       #1e293b;
  --text-muted:  #64748b;
  --border:      #e8ddd8;
  --shadow-sm:   0 1px 4px rgba(13,27,42,.08);
  --shadow-md:   0 4px 20px rgba(13,27,42,.14);
  --shadow-lg:   0 10px 40px rgba(13,27,42,.20);
  --shadow-glow: 0 8px 32px rgba(255,107,53,.30);
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --max-w:       1200px;
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1b2d4f 35%, #0f3460 70%, #16213e 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #00c9b1 100%);
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-muted); }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.text-center { text-align: center; }
.text-accent  { color: var(--accent); }
.bg-pale  { background: var(--pale); }
.bg-navy  { background: var(--navy); }

/* Section Label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(30,136,229,.1);
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}
.section-label i { font-size: .9rem; }

.section-title { margin-bottom: 1rem; }
.section-subtitle {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.section-header { margin-bottom: 3rem; }

/* Divider */
.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--ind-blue));
  border-radius: 2px;
  margin: .75rem 0 1.25rem;
}
.divider.centered { margin: .75rem auto 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,136,229,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(23,37,84,.13);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-footer {
  height: 52px;
  filter: brightness(0) invert(1);
}
.footer-logo {
  margin-bottom: 1.25rem;
  display: inline-flex;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .8rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--accent);
  background: rgba(30,136,229,.07);
}
.main-nav > li > a i { font-size: .65rem; transition: transform var(--transition); }
.main-nav > li:hover > a > i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: .75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.main-nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition), background var(--transition);
}
.dropdown li a:hover {
  color: var(--accent);
  background: rgba(30,136,229,.06);
}
.dropdown li a i { width: 18px; color: var(--accent); font-size: .9rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-contact {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate);
}
.header-contact i { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: .25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.mobile-nav.open { max-height: 600px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--accent); background: rgba(30,136,229,.06); }
.mobile-nav .mobile-sub { padding-left: 1.5rem; }
.mobile-nav .mobile-sub a { font-size: .84rem; padding: .5rem .75rem; }
.mobile-nav .mobile-sep {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: .65rem .75rem .25rem;
}

/* =============================================
   PAGE HERO / BREADCRUMB BANNER
   ============================================= */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ind-blue) 60%, #1a3a5c 100%);
  padding: 130px 0 70px;
  overflow: hidden;
  margin-top: 72px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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");
}
.page-hero-geo {
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  background: rgba(30,136,229,.1);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-geo2 {
  position: absolute;
  bottom: -80px; left: 5%;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 550px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); font-weight: 500; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: .65rem; }

/* =============================================
   HOMEPAGE HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  margin-top: 72px;
}

/* Animated industrial grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,53,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-circles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.hc1 { width: 700px; height: 700px; top: -200px; right: -150px; }
.hc2 { width: 450px; height: 450px; top: 50px; right: 50px; border-color: rgba(255,107,53,.15); }
.hc3 { width: 280px; height: 280px; bottom: 80px; left: -80px; border-color: rgba(255,255,255,.08); }
.hc4 { width: 180px; height: 180px; top: 30%; right: 18%; background: rgba(255,107,53,.08); }

.hero-svg {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .18;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,107,53,.18);
  border: 1px solid rgba(255,107,53,.45);
  color: #ffb899;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge span { width: 6px; height: 6px; background: #ff6b35; border-radius: 50%; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(1.4); } }

.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content h1 em {
  font-style: normal;
  color: #ff9a70;
  display: block;
}
.hero-content p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat { }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat .lbl { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .2rem; }

/* Illustration panel */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Power plant image panel in hero */
.hero-powerplant-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.12);
  width: 100%;
  max-width: 520px;
}
.hero-powerplant-img img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}
.hero-powerplant-img:hover img {
  transform: scale(1.03);
}
.hero-img-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(10,22,40,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(30,136,229,.3);
  border-radius: 50px;
  padding: .55rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
.hero-img-badge i {
  color: #64b5f6;
  font-size: .95rem;
}

/* =============================================
   TRUST STRIP
   ============================================= */
.trust-strip {
  background: var(--navy);
  padding: 1.75rem 0;
  border-top: 3px solid var(--accent);
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.trust-item i {
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-item .trust-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.trust-item .trust-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: .15rem;
}

/* =============================================
   ABOUT PREVIEW
   ============================================= */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 420px;
}
.about-img-badge {
  position: absolute;
  bottom: 28px;
  right: -24px;
  background: var(--accent);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-img-badge .big-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-img-badge .small-txt { font-size: .75rem; margin-top: .2rem; color: rgba(255,255,255,.85); }
.about-features { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.about-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-feature i { color: var(--accent); font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }

/* =============================================
   SOLUTION CARDS
   ============================================= */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--ind-blue);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  cursor: pointer;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}
.sol-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(30,136,229,.1), rgba(36,74,120,.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.solution-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.solution-card p  { font-size: .875rem; margin-bottom: 1.25rem; }
.sol-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.solution-card:hover .sol-link { gap: .7rem; }

/* =============================================
   INDUSTRIES SECTION
   ============================================= */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  cursor: pointer;
}
.industry-card-bg {
  position: absolute;
  inset: 0;
  transition: transform var(--transition);
}
.industry-card:hover .industry-card-bg { transform: scale(1.05); }
.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--ind-blue) 0%, rgba(23,37,84,.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  transition: background var(--transition);
}
.industry-card:hover .industry-card-overlay {
  background: linear-gradient(160deg, var(--accent) 0%, var(--ind-blue) 100%);
}
.industry-card-overlay i { font-size: 2rem; color: rgba(255,255,255,.85); }
.industry-card-overlay span { font-size: .95rem; font-weight: 600; color: var(--white); text-align: center; }

/* =============================================
   CERTIFICATIONS STRIP
   ============================================= */
.cert-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.cert-badge .icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--ind-blue);
  box-shadow: var(--shadow-sm);
}
.cert-badge span { font-size: .78rem; font-weight: 600; color: var(--slate); text-align: center; }

/* =============================================
   KNOWLEDGE CENTRE TEASER
   ============================================= */
.kc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.kc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.kc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.kc-card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 1rem; }
.kc-card h4 { margin-bottom: .4rem; color: var(--navy); }
.kc-card p  { font-size: .85rem; }
.tag-soon {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(30,136,229,.12);
  color: var(--accent);
  padding: .2rem .6rem;
  border-radius: 50px;
  margin-top: .65rem;
  letter-spacing: .05em;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 4px solid var(--ind-blue);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}
.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.product-card-body p  { font-size: .875rem; flex: 1; margin-bottom: 1.25rem; }
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.spec-tag {
  font-size: .72rem;
  font-weight: 600;
  background: var(--pale);
  color: var(--ind-blue);
  padding: .25rem .65rem;
  border-radius: 50px;
}

/* =============================================
   CATEGORY OVERVIEW CARDS
   ============================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.cat-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card-img {
  height: 260px;
  object-fit: cover;
  width: 100%;
}
.cat-card-body {
  padding: 2rem;
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-card-body h3 { margin-bottom: .65rem; font-size: 1.3rem; }
.cat-card-body p  { font-size: .9rem; flex: 1; margin-bottom: 1.25rem; }

/* =============================================
   STATS SECTION
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-block {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
}
.stat-block .stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-block .stat-unit { color: var(--accent); }
.stat-block .stat-lbl { font-size: .875rem; color: var(--text-muted); }

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--ind-blue));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.why-card h4 { margin-bottom: .5rem; font-size: 1.05rem; }
.why-card p  { font-size: .875rem; }

/* =============================================
   CERTIFICATIONS
   ============================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card .cert-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(30,136,229,.12), rgba(36,74,120,.15));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--ind-blue);
  margin: 0 auto 1.25rem;
}
.cert-card h4 { font-size: 1rem; margin-bottom: .4rem; }
.cert-card p  { font-size: .82rem; }

/* =============================================
   INDUSTRIES PAGE
   ============================================= */
.industry-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.industry-section:last-child { border-bottom: none; }
.industry-section.reverse { }
.industry-section.reverse .industry-img { order: 2; }
.industry-section.reverse .industry-text { order: 1; }
.industry-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.industry-list { margin: 1.25rem 0; display: flex; flex-direction: column; gap: .6rem; }
.industry-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--slate);
}
.industry-list li i { color: var(--accent); font-size: .9rem; width: 18px; }

/* =============================================
   PROJECTS
   ============================================= */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card-img { width: 100%; height: 200px; object-fit: cover; }
.project-card-body { padding: 1.5rem; }
.project-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  background: rgba(30,136,229,.1);
  color: var(--accent);
  padding: .25rem .7rem;
  border-radius: 50px;
  margin-bottom: .75rem;
  letter-spacing: .04em;
}
.project-card-body h4 { margin-bottom: .5rem; font-size: 1rem; }
.project-card-body p { font-size: .85rem; }
.project-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted);
}
.project-meta i { color: var(--accent); }

/* =============================================
   CAREERS
   ============================================= */
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.job-info { flex: 1; }
.job-info h4 { margin-bottom: .3rem; }
.job-info p  { font-size: .875rem; }
.job-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.job-tag {
  font-size: .72rem; font-weight: 600;
  background: var(--pale);
  color: var(--ind-blue);
  padding: .2rem .6rem;
  border-radius: 50px;
}

/* =============================================
   CONTACT / FORMS
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { }
.contact-info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.ci-icon {
  width: 48px; height: 48px;
  background: rgba(30,136,229,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--accent);
  flex-shrink: 0;
}
.ci-text { }
.ci-text strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: .25rem; }
.ci-text span { font-size: .875rem; color: var(--text-muted); }

/* Form */
.enquiry-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: .4rem;
}
.form-group label span { color: var(--accent); }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--slate);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,136,229,.12);
}
.form-control.error { border-color: #ef4444; }
.error-msg { font-size: .78rem; color: #ef4444; margin-top: .3rem; display: none; }
.form-success {
  background: #ecfdf5;
  border: 1.5px solid #86efac;
  color: #166534;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  display: none;
  margin-top: 1rem;
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--pale);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  margin-top: 2rem;
}
.map-placeholder i { font-size: 2.5rem; color: var(--accent); }

/* =============================================
   KNOWLEDGE CENTRE
   ============================================= */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-card .res-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.resource-card h4 { margin-bottom: .5rem; }
.resource-card p  { font-size: .875rem; margin-bottom: 1rem; }
.coming-soon-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: .68rem; font-weight: 700;
  background: var(--pale);
  color: var(--text-muted);
  padding: .2rem .55rem;
  border-radius: 50px;
  letter-spacing: .05em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--ind-blue), var(--accent));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4.5rem 0 3rem;
}

.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand .logo-img-footer { filter: brightness(0) invert(1); }
.footer-brand > p { font-size: .875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .84rem; margin-bottom: .85rem;
}
.footer-contact-item i { color: var(--accent); margin-top: .15rem; flex-shrink: 0; }

.footer-col h5 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition), padding-left var(--transition);
  display: flex; align-items: center; gap: .5rem;
}
.footer-links a:hover { color: var(--white); padding-left: .35rem; }
.footer-links a i { font-size: .65rem; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; }
.footer-bottom .gstin {
  font-size: .78rem;
  background: rgba(255,255,255,.07);
  padding: .3rem .85rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-dark); }

/* =============================================
   ANIMATE ON SCROLL
   ============================================= */
.anim-fade { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.anim-fade.in-view { opacity: 1; transform: translateY(0); }
.anim-left { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.anim-left.in-view { opacity: 1; transform: translateX(0); }
.anim-right { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; }
.anim-right.in-view { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .15s; }
.stagger > *:nth-child(3) { transition-delay: .25s; }
.stagger > *:nth-child(4) { transition-delay: .35s; }
.stagger > *:nth-child(5) { transition-delay: .45s; }
.stagger > *:nth-child(6) { transition-delay: .55s; }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; color: var(--navy); }
.legal-content h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; color: var(--ind-blue); }
.legal-content p  { font-size: .9rem; margin-bottom: 1rem; color: var(--text-muted); line-height: 1.75; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li {
  font-size: .9rem; color: var(--text-muted);
  margin-bottom: .4rem; list-style: disc;
}
.legal-date {
  background: var(--pale);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.legal-date i { color: var(--accent); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .solutions-grid  { grid-template-columns: repeat(2, 1fr); }
  .kc-cards        { grid-template-columns: repeat(2, 1fr); }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .cert-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-top      { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-inner      { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual     { display: flex; justify-content: center; }
  .hero-powerplant-img { max-width: 100%; }
  .hero-powerplant-img img { height: 280px; }
}

@media (max-width: 900px) {
  .main-nav, .header-contact { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .about-preview   { grid-template-columns: 1fr; }
  .about-img-badge { right: 0; bottom: 16px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .cat-grid        { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .contact-layout  { grid-template-columns: 1fr; }
  .resource-grid   { grid-template-columns: repeat(2, 1fr); }
  .industry-section{ grid-template-columns: 1fr; gap: 2rem; }
  .industry-section.reverse .industry-img { order: 0; }
  .industry-section.reverse .industry-text { order: 0; }
  .about-img-wrap  { overflow: visible; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .section-pad { padding: 60px 0; }
  .solutions-grid  { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .products-grid   { grid-template-columns: 1fr; }
  .kc-cards        { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .cert-grid       { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: 1fr; }
  .resource-grid   { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .trust-strip-inner { gap: 1.25rem; }
  .trust-item .trust-num { font-size: 1.25rem; }
  .form-row        { grid-template-columns: 1fr; }
  .hero-stats      { gap: 1.25rem; flex-wrap: wrap; }
  .hero-ctas       { flex-direction: column; align-items: flex-start; }
  .hero-circles    { display: none; } /* Prevents overflow on mobile */
  .hero-powerplant-img img { height: 220px; }
  .hero-img-badge  { font-size: .72rem; padding: .45rem .9rem; }
  .about-img-badge { position: static; margin-top: 1rem; display: inline-block; }
  .hero-badge      { font-size: .68rem; }
  .container       { padding: 0 1rem; }
  .header-actions .btn-sm { display: none; } /* Hide "Get a Quote" btn in header on tiny screens */
  .enquiry-form    { padding: 1.5rem; }
  table            { font-size: .82rem; }
  table th, table td { padding: .65rem .85rem !important; }
  .cat-grid        { grid-template-columns: 1fr; }
  .job-card        { flex-direction: column; gap: 1rem; }
  .page-hero       { padding: 110px 0 50px; }
}

/* =============================================
   NOTIFICATION MESSAGES (success/error)
   ============================================= */
.alert-success, .alert-error {
  display: none;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  margin-top: 1rem;
  animation: fadeInUp .3s ease;
}
.alert-success { background: #ecfdf5; border: 1.5px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.alert-success.show, .alert-error.show { display: flex; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* =============================================
   404 PAGE
   ============================================= */
.not-found-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  margin-top: 72px;
}
.not-found-code {
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  opacity: .08;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.not-found-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}
.not-found-icon {
  width: 90px; height: 90px;
  background: rgba(30,136,229,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent);
  margin: 0 auto 2rem;
}
.not-found-inner h1 { margin-bottom: .75rem; }
.not-found-inner p  { font-size: 1.05rem; margin-bottom: 2rem; }
.not-found-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
