/* ============================================================
   AlienTek Automation — Main Stylesheet
   Exact match to original design
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ──────────────────────────────────────────────────────────────
   PALETTE TOKENS — single source of truth for the public site.
   Every repeated colour / gradient below is referenced with
   var() so the whole palette can be re-tuned in one place.
   (admin.css keeps its own --ap-* tokens for the dashboard.)
────────────────────────────────────────────────────────────── */
:root {
  /* brand blues */
  --c-primary: #1565c0;
  --c-primary-dark: #0d47a1;
  --c-primary-soft: #e8f0fe;
  --c-primary-tint: #eff6ff;

  /* text ramp */
  --c-ink: #1a1a2e;
  --c-text: #374151;
  --c-body: #4b5563;
  --c-muted: #6b7280;

  /* lines + surfaces */
  --c-border: #e5e9f5;
  --c-border-soft: #e8edf5;
  --c-border-control: #dce3f5;
  --c-section: #f0f4ff;

  /* shared gradients */
  --grad-hero: linear-gradient(115deg, #092268 0%, #103db8 45%, #1565c0 75%, #1976d2 100%);
  --grad-brand: linear-gradient(120deg, #0a1f6e 0%, #0d47a1 50%, #1565c0 100%);
  --grad-photo: linear-gradient(135deg, #c4d9f8 0%, #d8eaff 50%, #c0d5f8 100%);

  /* project placeholder ladder — shared by home .proj-thumb and
     /projects .pfc-img, which used to drift apart slightly */
  --ph-1: linear-gradient(135deg, #bbdefb, #c8e6ff);
  --ph-2: linear-gradient(135deg, #b3d9f9, #cde8ff);
  --ph-3: linear-gradient(135deg, #c5d8f8, #d8e8ff);
  --ph-4: linear-gradient(135deg, #b8d4f6, #cce2ff);
  --ph-5: linear-gradient(135deg, #c0dcfa, #d0eaff);
  --ph-6: linear-gradient(135deg, #b5d2f5, #c8e0ff);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--c-ink); background: #fff;
  font-size: 14px; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ============================================================  NAVBAR  */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 1000;
}
.nav-wrap {
  display: flex; align-items: center;
  height: 64px; gap: 8px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* the logo artwork carries the name, so nothing is typeset beside it */
.brand-logo { height: 46px; width: auto; display: block; }

.nav-menu { display: flex; gap: 0; flex: 1; justify-content: center; align-items: center; }
.nav-menu a {
  font-size: 13px; font-weight: 500; color: var(--c-text);
  padding: 5px 11px; transition: color .2s; white-space: nowrap;
}
.nav-menu a:hover { color: var(--c-primary); }
.nav-menu a.active { color: var(--c-primary); font-weight: 600; border-bottom: 2px solid var(--c-primary); }

.nav-support {
  display: flex; align-items: center; gap: 5px;
  background: var(--c-primary-soft); color: var(--c-primary);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  border: none; cursor: pointer; flex-shrink: 0; font-family: inherit;
}

/* Support dropdown */
.support-wrap { position: relative; flex-shrink: 0; }
.support-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 240px; background: #fff;
  border: 1px solid var(--c-border); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(15,23,42,.16);
  padding: 6px; display: none; z-index: 1000;
}
.support-wrap.open .support-menu { display: block; animation: supFade .16s ease; }
@keyframes supFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.support-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; font-size: 13px; font-weight: 600;
  color: var(--c-ink); border-radius: 7px; text-decoration: none;
  transition: background .15s, color .15s;
}
.support-menu a i { color: var(--c-primary); width: 16px; text-align: center; }
.support-menu a:hover { background: var(--c-primary-tint); color: var(--c-primary); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--c-primary-dark); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mob-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff; z-index: 999;
  padding: 12px 20px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  flex-direction: column; gap: 2px;
  border-top: 2px solid var(--c-primary-soft);
}
.mob-menu.open { display: flex; }
.mob-menu a {
  display: block; padding: 10px 14px;
  font-size: 14px; font-weight: 500; color: var(--c-text);
  border-radius: 6px; transition: background .2s;
}
.mob-menu a:hover, .mob-menu a.active { background: var(--c-primary-tint); color: var(--c-primary); }
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 998;
}
.mob-overlay.open { display: block; }

/* ============================================================  BUTTONS  */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .22s;
  font-family: inherit; letter-spacing: .2px;
}
.btn-solid  { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-solid:hover  { background: var(--c-primary-dark); border-color: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(21,101,192,.4); }
.btn-ghost  { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover  { background: rgba(255,255,255,.12); }
.btn-white  { background: #fff; color: var(--c-primary-dark); border-color: #fff; font-size: 15px; padding: 13px 44px; }
.btn-white:hover  { background: var(--c-primary-soft); }

/* ============================================================  HERO  */
.hero {
  position: relative;
  background: var(--grad-hero);
  overflow: hidden; min-height: 420px;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,136,229,.38) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: center;
  padding: 58px 20px; max-width: 1180px; margin: 0 auto; width: 100%;
}
.hero-text h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 400; color: #fff; line-height: 1.25; margin-bottom: 12px;
}
.hero-text h1 strong { font-weight: 800; }
.hero-text p { color: rgba(255,255,255,.82); font-size: 13.5px; line-height: 1.75; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero right: control panel illustration */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.ctrl-panel {
  width: 100%; max-width: 400px; height: 260px;
  border-radius: 12px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #1c3880 0%, #1e4896 40%, #17346e 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cp-screen {
  position: absolute; top: 28px; left: 28px;
  width: 130px; height: 90px;
  background: rgba(0,10,35,.8);
  border: 2px solid #42a5f5; border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 0 24px rgba(66,165,245,.35), inset 0 0 12px rgba(66,165,245,.08);
  z-index: 2;
}
.cp-screen-line {
  height: 4px; border-radius: 2px; background: #42a5f5; opacity: .75;
}
.cp-leds { display: flex; gap: 6px; margin-top: 4px; }
.cp-led {
  width: 8px; height: 8px; border-radius: 50%;
}
.cp-led.g { background: #43a047; box-shadow: 0 0 6px #43a047; }
.cp-led.r { background: #e53935; box-shadow: 0 0 6px #e53935; }
.cp-btns {
  position: absolute; top: 28px; right: 24px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 7px;
  width: 140px;
}
.cp-btn { height: 22px; border-radius: 3px; border: 1px solid rgba(255,255,255,.2); }
.cp-btn.r { background: #e53935; }
.cp-btn.g { background: #43a047; }
.cp-btn.y { background: #fdd835; }
.cp-btn.b { background: #1e88e5; }
.cp-btn.o { background: #fb8c00; }
.cp-btn.w { background: rgba(255,255,255,.25); }
.cp-worker {
  position: absolute; right: 16px; bottom: 0;
  display: flex; align-items: flex-end;
}
.cp-worker i { font-size: 110px; color: rgba(255,255,255,.1); }
.cp-bottom-row {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; gap: 8px;
}
.cp-knob {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
}
.cp-switch {
  width: 44px; height: 20px; border-radius: 3px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
}

/* ============================================================  SECTION COMMON  */
.sec { padding: 60px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { font-size: 1.65rem; font-weight: 800; color: var(--c-ink); margin-bottom: 8px; }
.sec-head p  { font-size: 13px; color: var(--c-muted); }

/* ============================================================  WHO WE ARE  */
.who-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center;
}
.who-text h2 { font-size: 1.6rem; font-weight: 800; color: var(--c-ink); margin-bottom: 14px; }
.who-text p  { font-size: 13.5px; color: var(--c-body); line-height: 1.8; margin-bottom: 22px; }

.who-photo {
  width: 100%; height: 250px; border-radius: 10px; overflow: hidden;
  position: relative;
  background: var(--grad-photo);
  display: flex; align-items: center; justify-content: center;
}
/* ============================================================  SERVICES  */
.svc-bg { background: var(--c-section); }
/* Core Services / Projects / Products Supply share ONE column ladder (see the
   shared media rule at the end of this file) so the three home sections never
   step down at different breakpoints. */
.svc-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; margin-bottom: 22px;
  grid-auto-rows: 1fr;
}
.svc-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 8px; padding: 22px 12px; text-align: center;
  cursor: pointer; transition: all .25s;
}
.svc-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 6px 22px rgba(21,101,192,.13);
  transform: translateY(-3px);
}
/* Photo banner card-top (was a 52px icon box — too small for photography) */
.svc-icon {
  width: calc(100% + 24px); height: 132px; background: var(--c-primary-soft);
  border-radius: 8px 8px 0 0;
  display: flex; align-items: center; justify-content: center;
  margin: -22px -12px 14px; font-size: 22px; color: var(--c-primary);
  overflow: hidden;
}
.svc-label { font-size: 12.5px; font-weight: 600; color: var(--c-ink); line-height: 1.55; }

/* ============================================================  PRODUCTS SUPPLY  */
.supply-wrap { padding: 36px 0; border-top: 1px solid var(--c-border-soft); }
.supply-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.supply-top h2 { font-size: 1.2rem; font-weight: 800; color: var(--c-ink); margin-bottom: 5px; }
.supply-top p  { font-size: 12.5px; color: var(--c-muted); }

/* ============================================================  WHY CHOOSE US  */
.why-sec {
  background: var(--grad-brand);
  padding: 48px 0; position: relative; overflow: hidden;
}
.why-sec::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.why-sec::after {
  content: ''; position: absolute;
  left: -100px; bottom: -100px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,150,250,.18) 0%, transparent 65%);
}
.why-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: 48px; flex-wrap: wrap;
}
.why-title { font-size: 1.75rem; font-weight: 800; color: #fff; flex-shrink: 0; min-width: 185px; }
.why-cols  { display: flex; gap: 48px; flex-wrap: wrap; flex: 1; }
.why-col   { display: flex; flex-direction: column; gap: 14px; }
.why-row   { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500; }
.why-row i { color: #64b5f6; font-size: 16px; flex-shrink: 0; }

/* ============================================================  PROJECTS  */
.proj-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px; margin-bottom: 18px;
  grid-auto-rows: 1fr;
}
.proj-card {
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--c-border);
  cursor: pointer; transition: all .25s;
}
.proj-card:hover { box-shadow: 0 8px 28px rgba(21,101,192,.15); transform: translateY(-3px); }
/* Industries We Serve — columns come from the shared home ladder below */
.ind-cards { display: grid; gap: 18px; grid-auto-rows: 1fr; }
.proj-thumb {
  height: 145px; display: flex; align-items: center;
  justify-content: center; font-size: 40px; color: var(--c-primary);
  position: relative; overflow: hidden;
}
.proj-thumb.t1 { background: var(--ph-1); }
.proj-thumb.t2 { background: var(--ph-2); }
.proj-thumb.t3 { background: var(--ph-3); }
.proj-thumb.t4 { background: var(--ph-4); }
.proj-thumb::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), #42a5f5, var(--c-primary)); opacity: .4;
}
.proj-name { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--c-ink); text-align: center; }

.view-all {
  flex: 1; min-width: 140px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--c-primary); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--c-primary);
  cursor: pointer; transition: all .2s; padding: 12px; text-align: center;
}
.view-all em { font-style: italic; margin-left: 3px; }
.view-all:hover { background: var(--c-primary); color: #fff; }

/* ============================================================  CTA  */
.cta-sec {
  background: var(--grad-brand);
  padding: 74px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-sec::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-sec::after {
  content: ''; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(30,136,229,.2) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #fff; margin-bottom: 24px; }

/* ============================================================  FOOTER  */
.footer { background: #08133a; padding: 52px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1.5fr 1fr;
  gap: 36px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fc h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.fc p, .fc li { font-size: 12.5px; color: rgba(255,255,255,.62); line-height: 1.9; }
.fc a { color: rgba(255,255,255,.62); transition: color .2s; }
.fc a:hover { color: #fff; }
.fc-contact-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.fc-contact-item i { color: rgba(100,181,246,.8); width: 14px; margin-top: 2px; font-size: 12px; flex-shrink: 0; }
.fc-contact-item span { color: #fff; font-size: 12.5px; }
.social-row { display: flex; gap: 8px; margin-top: 8px; }
.soc-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; transition: background .2s;
}
.soc-btn:hover { background: var(--c-primary); }
/* No URL configured in Site Settings yet — keep the slot, mute it out */
.soc-btn.is-empty { opacity: .38; filter: grayscale(1); cursor: not-allowed; pointer-events: none; }
/* Desktop: ONE centred line (copyright + credit, no separator between them).
   Stacks back to two centred lines below 640px, where the 451px combined text
   no longer fits. The small 5px margin lives on the second span (not on `gap`)
   so the bar keeps gap:3px — the value that must match the admin .ap-footer. Text-to-text spacing = 3px gap + 5px = 8px. */
.footer-bar {
  padding: 13px 20px;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 3px; text-align: center;
  font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.62);
}
.footer-bar span + span { margin-left: 5px; }
.footer-bar strong { color: rgba(100,181,246,.9); font-weight: 600; }

/* ============================================================  PAGE BANNER  */
.page-banner {
  background: var(--grad-hero);
  padding: 52px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.page-banner p  { font-size: 14px; color: rgba(255,255,255,.75); }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.65); }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ============================================================  ABOUT PAGE  */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-text h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.about-text p  { font-size: 13.5px; color: var(--c-body); line-height: 1.8; margin-bottom: 14px; }
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.stat-box {
  flex: 1; min-width: 100px;
  background: var(--c-primary-soft); border-radius: 10px;
  padding: 18px 14px; text-align: center;
}
.stat-box .num { font-size: 1.8rem; font-weight: 800; color: var(--c-primary); line-height: 1; }
.stat-box .lbl { font-size: 11px; color: var(--c-body); margin-top: 4px; font-weight: 500; }

.about-photo {
  width: 100%; height: 300px; border-radius: 10px; overflow: hidden;
  background: var(--grad-photo);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.team-card-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; }
.team-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; padding: 24px 16px; text-align: center;
  transition: all .25s;
}
.team-card:hover { border-color: var(--c-primary); box-shadow: 0 6px 22px rgba(21,101,192,.1); transform: translateY(-2px); }
.team-avatar {
  width: 96px; height: 96px; background: var(--c-primary-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 32px; color: var(--c-primary);
  overflow: hidden; border: 3px solid var(--c-primary-soft);
}
.team-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--c-muted); }

.mission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.mission-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; padding: 24px 18px; text-align: center;
}
/* Mission/Vision/Values: photo banner instead of a 54px badge */
.mission-card .mc-icon {
  width: calc(100% + 36px); height: 124px; background: var(--c-primary-soft);
  border-radius: 10px 10px 0 0;
  display: flex; align-items: center; justify-content: center;
  margin: -24px -18px 16px; font-size: 22px; color: var(--c-primary);
  overflow: hidden;
}
.mission-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.mission-card p  { font-size: 12.5px; color: var(--c-body); line-height: 1.7; }

/* ============================================================  PRODUCTS PAGE  */
.prod-cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.pcat-btn {
  padding: 9px 20px; border: 1.5px solid var(--c-border-control);
  background: #fff; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--c-text);
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.pcat-btn:hover, .pcat-btn.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.prod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.prod-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; overflow: hidden;
  transition: all .25s; cursor: pointer;
}
.prod-card:hover { border-color: var(--c-primary); box-shadow: 0 6px 22px rgba(21,101,192,.13); transform: translateY(-3px); }
.prod-img {
  height: 150px; display: flex; align-items: center;
  justify-content: center; font-size: 42px; color: var(--c-primary);
}
.prod-img.bg1 { background: linear-gradient(135deg, #e3edff, #eff5ff); }
.prod-img.bg2 { background: linear-gradient(135deg, #e0eaff, #edf4ff); }
.prod-img.bg3 { background: linear-gradient(135deg, #dce8ff, #ecf4ff); }
.prod-img.bg4 { background: linear-gradient(135deg, #d8e6ff, #eaf3ff); }
.prod-info { padding: 14px; }
.prod-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.prod-brand { font-size: 11px; color: var(--c-muted); }
.prod-tag {
  display: inline-block; background: var(--c-primary-soft); color: var(--c-primary);
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-top: 6px;
}
.brand-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--c-border); }
.brand-logos-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 24px; }
.brand-logo-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; padding: 30px 20px; text-align: center;
}
.brand-logo-card .b-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.brand-logo-card p { font-size: 12px; color: var(--c-muted); line-height: 1.7; }

/* ============================================================  SERVICES PAGE  */
.svc-full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.svc-full-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; padding: 28px 20px;
  transition: all .25s; cursor: pointer;
}
.svc-full-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 8px 28px rgba(21,101,192,.12);
  transform: translateY(-3px);
}
/* Full-width photo banner on service detail cards */
.sfc-icon {
  width: calc(100% + 40px); height: 150px; background: var(--c-primary-soft);
  border-radius: 10px 10px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--c-primary);
  margin: -28px -20px 18px;
  overflow: hidden;
}
.sfc-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sfc-desc  { font-size: 12.5px; color: var(--c-body); line-height: 1.75; }
.sfc-list  { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.sfc-list li { font-size: 12px; color: var(--c-muted); display: flex; gap: 6px; align-items: flex-start; }
.sfc-list li::before { content: '•'; color: var(--c-primary); flex-shrink: 0; margin-top: 1px; }

.process-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-top: 44px; }
.proc-step {
  text-align: center; padding: 20px 12px;
  background: #fff; border: 1.5px solid var(--c-border); border-radius: 8px;
  position: relative;
}
.proc-step::after {
  content: '→'; position: absolute; top: 50%; right: -14px; transform: translateY(-50%);
  font-size: 16px; color: var(--c-primary); font-weight: 700;
}
.proc-step:last-child::after { display: none; }
.proc-num {
  width: 38px; height: 38px; background: var(--c-primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin: 0 auto 10px;
}
.proc-label { font-size: 11.5px; font-weight: 600; color: var(--c-ink); }

/* ============================================================  PROJECTS PAGE  */
.proj-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.pfilt {
  padding: 8px 18px; border: 1.5px solid var(--c-border-control);
  background: #fff; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; color: var(--c-text);
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.pfilt:hover, .pfilt.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.proj-full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.pfc {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--c-border); cursor: pointer; transition: all .25s;
}
.pfc:hover { box-shadow: 0 8px 28px rgba(21,101,192,.15); transform: translateY(-3px); }
.pfc-img {
  height: 170px; position: relative;
  overflow: hidden;
}
.pfc-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.pfc-img.c1 { background: var(--ph-1); }
.pfc-img.c2 { background: var(--ph-2); }
.pfc-img.c3 { background: var(--ph-3); }
.pfc-img.c4 { background: var(--ph-4); }
.pfc-img.c5 { background: var(--ph-5); }
.pfc-img.c6 { background: var(--ph-6); }
.pfc-body { padding: 14px 16px; }
.pfc-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pfc-industry { font-size: 11px; color: var(--c-primary); font-weight: 600; }
.pfc-desc { font-size: 12px; color: var(--c-muted); margin-top: 6px; line-height: 1.6; }

/* ============================================================  CLIENTS PAGE  */
.clients-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.client-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; padding: 24px 16px; text-align: center;
  transition: all .25s; cursor: pointer;
}
.client-card:hover { border-color: var(--c-primary); box-shadow: 0 6px 22px rgba(21,101,192,.1); }
.client-logo {
  width: 76px; height: 76px; border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.client-logo img {
  width: 100%; height: 100%; object-fit: cover;
}
.client-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.client-industry { font-size: 11.5px; color: var(--c-muted); }

.testimonials { margin-top: 60px; }
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.test-card {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; padding: 22px 18px;
}
.test-stars { color: #fdd835; font-size: 13px; margin-bottom: 10px; }
.test-text  { font-size: 12.5px; color: var(--c-body); line-height: 1.75; font-style: italic; margin-bottom: 14px; }
.test-author { display: flex; align-items: center; gap: 10px; }
.test-avatar {
  width: 46px; height: 46px; background: var(--c-primary-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--c-primary);
}
.test-name { font-size: 12.5px; font-weight: 700; }
.test-co   { font-size: 11px; color: var(--c-muted); }

/* ============================================================  CONTACT PAGE  */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.contact-info h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.ci-item { display: flex; gap: 14px; margin-bottom: 20px; }
.ci-icon {
  width: 44px; height: 44px; background: var(--c-primary-soft); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--c-primary); flex-shrink: 0;
}
.ci-label { font-size: 11px; color: var(--c-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.ci-val { font-size: 13.5px; font-weight: 600; color: var(--c-ink); }

.contact-form-wrap h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-grp { display: flex; flex-direction: column; gap: 6px; }
.form-grp label { font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.form-grp input,
.form-grp textarea,
.form-grp select {
  padding: 11px 14px; border: 1.5px solid var(--c-border-control);
  border-radius: 6px; font-size: 13px; font-family: inherit;
  outline: none; transition: border-color .2s; resize: vertical;
  background: #fff;
}
.form-grp input:focus,
.form-grp textarea:focus,
.form-grp select:focus { border-color: var(--c-primary); }
.form-full { margin-bottom: 16px; }

.map-box {
  margin-top: 52px; border-radius: 10px; overflow: hidden;
  height: 280px; border: 1.5px solid var(--c-border);
  background: linear-gradient(135deg, var(--c-primary-soft), #dce8ff);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.map-box i { font-size: 48px; color: var(--c-primary); opacity: .4; }
.map-box p { font-size: 13px; color: var(--c-muted); }

/* ============================================================  ALERTS  */
.alert-success {
  background: #e8f5e9; border: 1px solid #a5d6a7;
  color: #2e7d32; padding: 12px 18px; border-radius: 6px;
  margin-bottom: 20px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}

/* ============================================================  ANIMATIONS  */
@keyframes blink-led { 0%,100%{opacity:.35} 50%{opacity:1} }
@keyframes bar-anim  { 0%,100%{width:30px} 50%{width:75px} }
@keyframes bar-anim2 { 0%,100%{width:20px} 50%{width:55px} }
@keyframes bar-anim3 { 0%,100%{width:40px} 50%{width:70px} }

.anim-led  { animation: blink-led 1.8s infinite; }
.anim-led2 { animation: blink-led 1.8s infinite; animation-delay:.7s; }
.anim-b1   { animation: bar-anim  2.5s ease-in-out infinite; }
.anim-b2   { animation: bar-anim2 2.5s ease-in-out infinite; animation-delay:.5s; }
.anim-b3   { animation: bar-anim3 2.5s ease-in-out infinite; animation-delay:1s; }

/* ============================================================  RESPONSIVE  */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3,1fr); }
  .proj-full-grid { grid-template-columns: repeat(2,1fr); }
  .process-row { grid-template-columns: repeat(3,1fr); }
  .proc-step:nth-child(3)::after { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-btns { justify-content: center; }
  .who-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .why-inner { flex-direction: column; gap: 22px; align-items: flex-start; }
  .supply-top { flex-direction: column; gap: 14px; }
  .svc-full-grid { grid-template-columns: repeat(2,1fr); }
  .clients-grid { grid-template-columns: repeat(3,1fr); }
  .test-grid { grid-template-columns: repeat(2,1fr); }
  .brand-logos-row { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .nav-menu, .support-wrap { display: none; }
  .hamburger { display: flex; }

  .prod-grid { grid-template-columns: repeat(2,1fr); }
  .proj-full-grid { grid-template-columns: 1fr; }
  .svc-full-grid { grid-template-columns: 1fr; }
  .team-card-row { grid-template-columns: repeat(2,1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: repeat(2,1fr); }
  .proc-step:nth-child(2)::after { display: none; }
  .clients-grid { grid-template-columns: repeat(2,1fr); }
  .test-grid { grid-template-columns: 1fr; }
  .brand-logos-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { padding: 14px 16px; flex-direction: column; }
  .footer-bar span + span { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 12px; }
  .why-cols { flex-direction: column; gap: 16px; }

  .view-all { min-width: 130px; flex-shrink: 0; }
}

@media (max-width: 400px) {
  .brand-logo { height: 36px; }
  .prod-grid { grid-template-columns: 1fr; }
  .team-card-row { grid-template-columns: 1fr; }
}

/* ============================================================  IMAGE SLOTS  */
/* Content cards switched from Font Awesome icons to real photography.        */
.svc-icon, .sfc-icon, .mc-icon, .team-avatar, .test-avatar { overflow: hidden; }
.svc-icon img, .sfc-icon img, .mc-icon img, .team-avatar img, .test-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; display: block;
}
.prod-img { overflow: hidden; padding: 0; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.about-photo img, .who-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================  POLISH  */
/* Subtle zoom on card photography for a more premium, animated feel */
.svc-icon img, .sfc-icon img, .mc-icon img, .prod-img img, .proj-thumb img,
.pfc-img img, .client-logo img, .team-avatar img { transition: transform .4s ease; }
.svc-card:hover .svc-icon img,
.svc-full-card:hover .sfc-icon img,
.mission-card:hover .mc-icon img,
.prod-card:hover .prod-img img,
.proj-card:hover .proj-thumb img,
.pfc:hover .pfc-img img,
.client-card:hover .client-logo img,
.team-card:hover .team-avatar img { transform: scale(1.06); }

/* Keep photo cards aligned when labels wrap to two lines */
.svc-card { display: flex; flex-direction: column; }
.svc-card .svc-icon { flex-shrink: 0; }
.svc-card .svc-label { margin-top: auto; }

/* ============================================================  PRODUCTS SUPPLY (home) */
.supply-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 20px;
  grid-auto-rows: 1fr;
}
.supply-card {
  display: block; background: #fff; border: 1.5px solid var(--c-border);
  border-radius: 10px; overflow: hidden; transition: all .25s;
}
.supply-card:hover {
  border-color: var(--c-primary); box-shadow: 0 8px 24px rgba(21,101,192,.12);
  transform: translateY(-3px);
}
.supply-img { height: 130px; overflow: hidden; }
.supply-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.supply-card:hover .supply-img img { transform: scale(1.06); }
.supply-info { padding: 12px 14px; }
.supply-name { font-size: 13px; font-weight: 700; color: var(--c-ink); }
.supply-brand { font-size: 11px; color: var(--c-muted); margin-top: 3px; }

.brand-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px 32px; padding: 16px 24px; background: #f8faff;
  border: 1px solid var(--c-border-soft); border-radius: 10px;
}
.bs-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--c-muted);
}
.bs-item { font-size: 17px; font-weight: 800; letter-spacing: 1px; color: var(--c-text); text-transform: uppercase; }
/* Both "View All" links (Products + Projects) share .view-all; keep them flush right */
.supply-top .view-all { flex: 0 0 auto; }

/* 404 error page */
.err-sec { text-align: center; padding: 84px 0; }
.err-code { font-size: 92px; font-weight: 800; color: var(--c-primary); letter-spacing: 4px; line-height: 1; }
.err-title { font-size: 1.5rem; font-weight: 800; color: var(--c-ink); margin: 14px 0 10px; }
.err-text { font-size: 14px; color: var(--c-muted); margin-bottom: 26px; }

/* ============================================================  SHARED HOME LADDER */
/*   The three home card grids — Our Core Services (.svc-grid), Our Projects
   (.proj-grid), Industrial Automation Products We Supply (.supply-grid) — plus
   the Industries grid (.ind-cards) use ONE ladder so they always match each
   4-up from desktop down, 2-up on tablets and phones. Declared last so it
   wins over each grid's base rule. */
.svc-grid, .proj-grid, .supply-grid, .ind-cards { grid-template-columns: repeat(4,1fr); }
@media (max-width: 768px) {
  .svc-grid, .proj-grid, .supply-grid, .ind-cards { grid-template-columns: repeat(2,1fr); }
}
