/* ================================================================
   INDUSTRIAL CODING — 2026 · Material Design 3
   Fonts: Rajdhani (headings) + DM Sans (body)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand palette — slightly elevated vibrancy */
  --navy:       #1C3352;   /* primary */
  --navy-hover: #152844;   /* pressed state */
  --navy-dark:  #0E1F35;   /* darkest bg */
  --navy-mid:   #243F63;   /* lighter variant */
  --gold:       #D4A515;   /* primary accent */
  --gold-light: #EBB91E;   /* hover */
  --gold-on:    #6B510A;   /* text ON gold container */
  --gold-cont:  #FFF3C8;   /* tonal container */

  /* Surfaces */
  --surface:    #ffffff;
  --surf-1:     #F5F7FC;
  --surf-2:     #ECF0F8;
  --surf-3:     #E2E8F3;

  /* Text */
  --on-surf:    #0E1F35;
  --on-surf-v:  #4A5E78;   /* muted */
  --on-surf-d:  #7A8FA8;   /* disabled */

  /* Outline */
  --outline:    #C6CDD9;
  --outline-v:  #E4E9F2;

  /* Elevation */
  --e1: 0 1px 3px rgba(14,31,53,.06), 0 1px 8px rgba(14,31,53,.04);
  --e2: 0 2px 6px rgba(14,31,53,.07), 0 4px 16px rgba(14,31,53,.07);
  --e3: 0 4px 12px rgba(14,31,53,.08), 0 8px 32px rgba(14,31,53,.09);
  --e4: 0 8px 24px rgba(14,31,53,.10), 0 16px 56px rgba(14,31,53,.12);

  /* Shape scale */
  --r-xs:   6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  28px;
  --r-max: 9999px;

  /* Motion */
  --ease-s: .18s cubic-bezier(.2,0,0,1);
  --ease-m: .28s cubic-bezier(.2,0,0,1);
  --ease-l: .42s cubic-bezier(.2,0,0,1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--on-surf); background: var(--surface);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: 'Rajdhani', sans-serif; line-height: 1.2; }
p     { line-height: 1.7; }

/* ── Loader ────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--navy-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.loader img {
  width: 76px;
  animation: _spin 1.6s linear infinite;
  filter: drop-shadow(0 0 18px rgba(212,165,21,.5));
}
.loader p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold); opacity: .7; margin: 0;
}
.loader.hidden { animation: _fadeOut .6s ease forwards; }
@keyframes _spin    { to { transform: rotate(360deg); } }
@keyframes _fadeOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--outline-v);
  padding: 8px 0; box-shadow: none;
  transition: box-shadow var(--ease-m);
}
.navbar.scrolled { box-shadow: var(--e2); }

.navbar-brand img {
  height: 46px; width: auto !important; object-fit: contain;
  transition: transform var(--ease-s);
}
.navbar-brand img:hover { transform: scale(1.04); }

.navbar-nav { gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--navy) !important;
  padding: 8px 16px !important; border-radius: var(--r-max);
  transition: background var(--ease-s);
  white-space: nowrap;
}
.nav-link:hover { background: var(--surf-1); color: var(--navy) !important; }
.nav-link i { font-size: 12px; opacity: .55; }

/* ── Hamburger ──── 3 bars → X ─────────────────────────────────── */
.navbar-toggler {
  border: 1.5px solid var(--outline);
  border-radius: var(--r-xs); padding: 8px 10px;
  background: transparent; cursor: pointer;
  position: relative; width: 42px; height: 38px;
}
.bar {
  display: block; position: absolute;
  left: 10px; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform var(--ease-m), opacity var(--ease-s), top var(--ease-m);
}
.bar-1 { top: 10px; }
.bar-2 { top: 18px; }
.bar-3 { top: 26px; }

/* Open state — X */
.navbar-toggler.open .bar-1 { top: 18px; transform: rotate(45deg); }
.navbar-toggler.open .bar-2 { opacity: 0; transform: scaleX(0); }
.navbar-toggler.open .bar-3 { top: 18px; transform: rotate(-45deg); }

/* Mobile nav */
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 10px 0 16px; border-top: 1px solid var(--outline-v); margin-top: 8px; }
  .navbar-nav { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .nav-link { border-radius: var(--r-sm); padding: 10px 14px !important; }
}

/* ── Page Header / Hero ────────────────────────────────────────── */
.page-header {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--navy-dark); overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(212,165,21,.13) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-header::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(145deg, rgba(14,31,53,.96) 0%, rgba(28,51,82,.75) 55%, rgba(14,31,53,.3) 100%);
}
.page-header .container { position: relative; z-index: 3; }
.page-header-short { min-height: 46vh; }

/* Hero logo */
.brand img {
  max-width: 320px; width: 68%;
  margin: 0 auto;
  filter: drop-shadow(0 4px 28px rgba(212,165,21,.25));
  animation: _float 5s ease-in-out infinite;
}
@keyframes _float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* Inner page headings */
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700; color: #fff;
  letter-spacing: 1px; line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,.7);
  font-weight: 400; margin-top: 12px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ── Gears ─────────────────────────────────────────────────────── */
.gear {
  position: absolute; pointer-events: none;
  opacity: .10; will-change: transform; z-index: 2;
  filter: saturate(.7);
}
.gear-big    { width: 36%; top:-10%; left: -6%; }
.gear-meduim { width: 24%; top: 18%; left: 27%; }
.gear-small  { width: 18%; top: 56%; left:  9%; }
.gear-big-special    { width: 34%; left: -6%; top: -4%; }
.gear-meduim-special { width: 22%; left: 25%; top:  6%; }

/* ── Scroll arrow ──────────────────────────────────────────────── */
.scrolldown {
  display: inline-flex; color: var(--gold) !important;
  animation: _bounce 2.2s ease infinite; margin-top: 36px;
  transition: color var(--ease-s);
}
.scrolldown:hover { color: var(--gold-light) !important; }
@keyframes _bounce {
  0%,100% { transform: translateY(0); }
  55%      { transform: translateY(11px); }
}

/* ── Main raised ───────────────────────────────────────────────── */
.main { background: var(--surface); }
.main-raised {
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -4px 32px rgba(14,31,53,.08);
  margin-top: -24px; position: relative; z-index: 4;
}

/* ── Stats strip ───────────────────────────────────────────────── */
.stats-strip {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 40px 0;
}
.stat-item  { text-align: center; padding: 8px 16px; }
.stat-number {
  display: block; font-family: 'Rajdhani', sans-serif;
  font-size: 48px; font-weight: 700;
  color: var(--gold); line-height: 1; letter-spacing: -1px;
}
.stat-label {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.48); margin-top: 5px;
}

/* ── Section helpers ───────────────────────────────────────────── */
.section        { padding: 60px 0; }
.section-basic  { padding: 32px 0 8px; }
.section-label  {
  display: inline-block; font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
h2.text-blue        { font-weight: 700; color: var(--navy) !important; font-size: clamp(22px,3.5vw,36px); }
h2.text-light-blue  { font-weight: 700; color: var(--navy) !important; font-size: clamp(20px,3vw,30px); }
h2.text-dark-yellow { font-weight: 700; color: var(--gold-on) !important; font-size: clamp(20px,3vw,30px); }
.text-blue          { color: var(--navy) !important; }
.text-light-blue    { color: var(--navy) !important; }
.text-dark-yellow   { color: var(--gold-on) !important; }
.text-yellow        { color: var(--gold) !important; }
.text-light-gray    { color: var(--outline) !important; }

/* ── Service Cards (MD3 elevated surface) ──────────────────────── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--outline-v);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  height: 100%;
  transition: box-shadow var(--ease-m), transform var(--ease-m), border-color var(--ease-m);
  position: relative;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--e3);
  transform: translateY(-5px);
}

/* Tonal icon container */
.sc-icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--surf-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
  transition: background var(--ease-m);
}
.sc-icon i { font-size: 21px; color: var(--navy); transition: color var(--ease-m); }
.service-card:hover .sc-icon { background: var(--navy); }
.service-card:hover .sc-icon i { color: var(--gold); }

.sc-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px; font-weight: 700; letter-spacing: .5px;
  color: var(--navy); margin: 0 0 10px;
}
.sc-body {
  font-size: 14px; line-height: 1.72;
  color: var(--on-surf-v); flex: 1; margin: 0 0 24px;
}

/* Button — CRITICAL: z-index so it's clickable above any parent layer */
.sc-action {
  position: relative; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--navy);
  padding: 9px 18px; border-radius: var(--r-max);
  background: var(--surf-2); border: none; cursor: pointer;
  transition: background var(--ease-s), color var(--ease-s);
  align-self: flex-start;
  text-decoration: none;
}
.sc-action:hover { background: var(--navy); color: #fff; }
.sc-action:hover i { color: var(--gold); }
.sc-action i { font-size: 11px; transition: color var(--ease-s); }

/* ── Carousel ──────────────────────────────────────────────────── */
.carousel { border-radius: var(--r-lg) !important; overflow: hidden; box-shadow: var(--e4) !important; }
.carousel-item img { object-fit: cover; height: 420px; width: 100%; }
.carousel-indicators { bottom: 14px; gap: 6px; }
.carousel-indicators li {
  width: 8px; height: 8px; border-radius: var(--r-max);
  border: 2px solid var(--gold); background: transparent;
  opacity: 1; margin: 0; transition: width var(--ease-s), background var(--ease-s);
}
.carousel-indicators .active { background: var(--gold); width: 24px; }
.carousel-control-prev, .carousel-control-next {
  width: 40px; height: 40px; background: rgba(14,31,53,.65);
  border-radius: var(--r-max); top: 50%; transform: translateY(-50%);
  opacity: 1; backdrop-filter: blur(8px);
}
.carousel-control-prev { left: 14px; }
.carousel-control-next { right: 14px; }

/* ── Legacy .card ──────────────────────────────────────────────── */
.card {
  border: 1px solid var(--outline-v) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--e1) !important;
  transition: box-shadow var(--ease-m), transform var(--ease-m) !important;
  overflow: hidden; background: var(--surface);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--e3) !important; }
.card-body  { padding: 24px !important; }
.card-text  { color: var(--on-surf-v); font-size: 14px; line-height: 1.72; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary, .btn-primary:focus {
  background: var(--navy) !important; color: #fff !important;
  border: none !important; border-radius: var(--r-max) !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 13px !important; font-weight: 700 !important;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 24px !important; box-shadow: none !important;
  transition: background var(--ease-s) !important;
}
.btn-primary:hover { background: var(--navy-hover) !important; box-shadow: var(--e2) !important; }

/* ── Services page bands ───────────────────────────────────────── */
.blue-gradient-left    { background: var(--surf-1); }
.yellow-gradient-right { background: #fffdf0; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-col h6 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}

/* Vertical nav list */
.footer-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-nav li a {
  display: inline-block;
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,.52) !important;
  transition: color var(--ease-s);
}
.footer-nav li a:hover { color: var(--gold) !important; }

.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-contact li a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.52) !important;
  transition: color var(--ease-s);
}
.footer-contact li a:hover { color: var(--gold) !important; }
.footer-contact i { width: 14px; text-align: center; color: var(--gold); font-size: 13px; }

.footer-desc {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,.42); margin: 0 0 20px;
}
.footer-logo { height: 46px; width: auto !important; object-fit: contain; margin-bottom: 16px; }
.footer-divider { border-color: rgba(255,255,255,.07) !important; margin: 28px 0 18px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.28); text-align: center; }

/* Footer separator on desktop */
.footer-col + .footer-col { border-left: 1px solid rgba(255,255,255,.07); padding-left: 40px; }
@media (max-width: 991.98px) {
  .footer-col + .footer-col { border-left: none; padding-left: 0; }
}

/* ── About img ─────────────────────────────────────────────────── */
.img-raised { border-radius: var(--r-lg); box-shadow: var(--e3); }

/* ── Misc ──────────────────────────────────────────────────────── */
hr   { border-color: var(--outline-v) !important; margin: 24px 0; }
.link-hover { transition: color var(--ease-s); }
.link-hover:hover { color: var(--gold) !important; }
.centervertically  { padding: 8%; }
.vertical-center   { margin: 10% 0; }
.parallax-cus { background-attachment:fixed; background-position:center; background-repeat:no-repeat; background-size:cover; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .gear-big    { width: 56%; top: 0;   left: -8%; }
  .gear-meduim { width: 40%; top: 28%; left: 34%; }
  .gear-small  { width: 28%; top: 52%; left:  6%; }
  .gear-big-special    { width: 56%; top: 0;   left: -8%; }
  .gear-meduim-special { width: 40%; top: 28%; left: 34%; }
  .brand img   { max-width: 240px; width: 70%; }
  .service-card { padding: 24px 20px 20px; }
  .vertical-center { margin: 24px 0; }
  .stats-strip { padding: 28px 0; }
  .stat-number { font-size: 40px; }
  .carousel-item img { height: 260px; }
}
@media (max-width: 575.98px) {
  .gear-big    { width: 70%; top: 1%;  left:-10%; }
  .gear-meduim { width: 50%; top: 30%; left: 38%; }
  .gear-small  { display: none; }
  .main-raised { border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: -14px; }
  .section     { padding: 40px 0; }
  .stat-number { font-size: 32px; }
  .stat-label  { font-size: 10px; letter-spacing: 1.5px; }
  .carousel-item img { height: 200px; }
  h2.text-light-blue, h2.text-dark-yellow { font-size: 22px; }
}
@media (min-width: 576px) { .separator-line { display: none; } }
