/* ── Lucida Handwriting Std — self-hosted ── */
@font-face {
  font-family: 'Lucida Handwriting Std';
  src: url('../../fonts/LucidaHandwritingStd-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lucida Handwriting Std';
  src: url('../../fonts/LucidaHandwritingStd-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════
   TAILORED BAY ENGINEERING — Warm Gray / Amber Theme
   ═══════════════════════════════════════════════════ */
:root {
  --bg:        #f5f8ff;
  --bg2:       #e8f0f8;
  --bg3:       #dce8f4;
  --bg4:       #ccdaeb;
  --surface:   #ffffff;
  --border:    #c5d5e8;
  --text:      #0a1628;
  --muted:     #4a6080;
  --accent:    #05afff;
  --accent-h:  #0390d8;
  --accent-lt: #e0f5ff;
  --steel:     #3d5a7a;
  --heading-font: 'Oswald', sans-serif;
}
body { background: var(--bg); color: var(--text); }
.section-label { color: var(--accent); }
.section-sub { color: var(--muted); }

/* ─── NAV ─── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 1.5%; background: transparent; backdrop-filter: none; border-bottom: none; transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s; }
/* scrolled handled in hero block below */
.nav-logo { font-family: var(--heading-font); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.nav-logo span { color: var(--accent); }
.nav-dept-badge { display: none; }
/* ── Nav logo — identical to Digital ── */
.nav-logo-img {
  display: inline-block;
  position: relative;
  text-decoration: none;
}
.nav-logo-img-el {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 2px 0;
}
.nav-logo-dept {
  font-family: 'Blacksword', cursive;
  font-size: 26px;
  font-weight: normal;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  position: absolute;
  left: 100%;
  bottom: 19px;
  margin-left: -22px;
  pointer-events: none;
}




.nav-links { display: flex; gap: 1.75rem; align-items: center; flex: 1; justify-content: center; }
/* Explicitly force desktop nav visible above 900px */
@media (min-width: 901px) {
  .nav-links { display: flex !important; flex-direction: row !important; position: static !important; background: none !important; padding: 0 !important; gap: 1.75rem !important; flex: 1 !important; justify-content: center !important; font-size: 0.875rem !important; z-index: auto !important; }
  .nav-cta { display: inline-flex !important; }
  .hamburger { display: none !important; }
}
.nav-links a { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.80); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-back { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,0.15); padding: 7px 14px; border-radius: 100px; transition: all 0.2s; }

.nav-back:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff; font-weight: 700; font-size: 0.82rem; padding: 10px 22px; border-radius: 100px; border: none; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); }
.nav-portal-icon { display: flex; align-items: center; justify-content: center; margin-right: 0.5rem; flex-shrink: 0; color: rgba(255,255,255,0.75); }
.nav-portal-icon-img { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.nav-portal-icon:hover { color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
#navbar.nav-open .nav-links { display: flex !important; flex-direction: column !important; position: fixed !important; top: 68px !important; left: 0 !important; right: 0 !important; bottom: 0 !important; background: #061c2e !important; backdrop-filter: blur(20px) !important; padding: 1rem 5% !important; gap: 1.5rem !important; font-size: 1.15rem !important; z-index: 9999 !important; overflow-y: auto !important; width: 100% !important; box-sizing: border-box !important; }
#navbar.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navbar.nav-open .hamburger span:nth-child(2) { opacity: 0; }
#navbar.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO — Full-width, matches Digital layout exactly ─── */
#hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  background: #061c2e;
}

/* Teal gradient — mirrors Digital purple, top-RIGHT and bottom-LEFT */
.hero-bg-gradient {
  position: absolute; inset: 0; z-index: 0;
  background: #061c2e;
}
/* Top-right teal (mirrors Digital top-left purple) */
.hero-bg-gradient::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 90% 185% at 105% -5%,
    rgba(5, 175, 255, 0.82)  0%,
    rgba(3, 130, 200, 0.60) 18%,
    rgba(2,  80, 140, 0.38) 32%,
    rgba(1,  40,  80, 0.18) 48%,
    transparent               100%
  );
}
/* Bottom-left teal (mirrors Digital bottom-right purple) */
.hero-bg-gradient::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 84% 167% at -5% 105%,
    rgba(3, 140, 210, 0.72)  0%,
    rgba(2, 100, 170, 0.50) 20%,
    rgba(1,  60, 110, 0.28) 40%,
    rgba(0,  25,  50, 0.10) 58%,
    transparent               100%
  );
}

/* IMAGE LEFT, TEXT RIGHT — reverse of Digital */
.hero-layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}
.hero-visual {
  order: 1;
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}
.hero-text {
  order: 2;
  position: relative; z-index: 2;
  text-align: left;
  padding: 140px 7% 100px 5%;  /* right-heavy padding, mirror of Digital */
}
.hero-eng-img {
  width: 83%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* Hero title — identical size to Digital */
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s 0.1s ease both;
}
/* Teal gradient on em */
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #40d8ff 0%, #05afff 45%, #0390d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.5s 0.2s ease both;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s ease both;
}

/* btn-primary — teal gradient matching engineering accent */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, #05afff, #0390d8);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 14px 32px; border-radius: 100px; border: none;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(5,175,255,0.35);
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(5,175,255,0.45); }

/* btn-secondary — ghost pill */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.10); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 14px 32px; border-radius: 100px; border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer; font-family: inherit; transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(5,175,255,0.6); background: rgba(5,175,255,0.12); }

/* Scrolled nav — dark teal translucent */
#navbar.scrolled {
  background: rgba(4,20,35,0.80);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}


  /* hero-visual visible */
  .hero-text { order: 2; padding: 140px 6% 80px; }
}
@media (max-width: 580px) { .hero-buttons { flex-direction: column; align-items: flex-start; } } }

/* ─── Oswald / Open Sans Tuning ─── */
.section-label { letter-spacing: 4px; font-weight: 600; }
.section-title, .page-hero-title, .hero-title, .card-title,
.footer-brand-name, .cta-band-title, .nav-logo,
.dept-title, .why-title, .service-title, .cad-item-title,
.step-title, .pricing-tier, .testimonial-author,
.footer-col-title, .portfolio-name, .stat-num,
h1, h2, h3 { font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; }
body, p, li, a, input, select, textarea, button,
.section-sub, .service-desc, .cad-item-desc, .why-desc,
.step-desc, .pricing-note, .testimonial-text,
.card-desc, .footer-brand-desc, .footer-links a,
.hero-sub, .page-hero-sub, .cta-band-sub { font-family: 'Open Sans', sans-serif; }
.nav-logo { letter-spacing: 1px; }
.hero-badge, .hero-badge-dot + span, .nav-dept-badge { font-family: 'Open Sans', sans-serif; font-weight: 600; }


/* ─── Logo image in navbar ─── */
/* Engineering dark colour tokens */
:root {
  --night-eng: #061c2e;  /* teal-dark — replaces purple-black */
  --night-eng-d: #04111f; /* deeper teal — footer bg */
}

/* ─── Engineering footer — digital-style 4-col ─── */
footer.eng-footer { background: #04111f; }
.eng-footer .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.8fr !important; gap: 3rem; margin-bottom: 2.5rem; }
.eng-footer .footer-logo-link {
  display: inline-block;
  position: relative;
  margin-bottom: 0;
  text-decoration: none;
  /* Ensure the whole logo+word unit never overflows its column */
  max-width: 100%;
}
.eng-footer .footer-logo-img {
  height: 57px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}
.eng-footer .footer-logo-dept {
  font-family: 'Blacksword', cursive;
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  position: absolute;
  left: 100%;
  bottom: 17px;
  margin-left: -17px;
}
.eng-footer .footer-brand-desc { color: rgba(255,255,255,0.45); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.eng-footer .footer-back-link { font-size: 0.82rem; color: var(--accent); text-decoration: none; }
.eng-footer .footer-back-link:hover { text-decoration: underline; }
.eng-footer .footer-col-title { font-family: 'Oswald', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.eng-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.eng-footer .footer-links li { padding-left: 0; transition: padding-left 0.2s; margin-bottom: 0.4rem; }
.eng-footer .footer-links li:hover { padding-left: 1rem; }
.eng-footer .footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); text-decoration: none; position: relative; transition: color 0.2s; }
.eng-footer .footer-links a:hover { color: var(--accent); }
.eng-footer .footer-links li:hover a::before { opacity: 1; }
.eng-footer .footer-links a::before { content: '→'; position: absolute; left: -1rem; opacity: 0; color: var(--accent); font-size: 0.75rem; transition: opacity 0.2s; }
.eng-footer .footer-contact-item { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 1rem; }
.eng-footer .footer-contact-icon { width: 32px; height: 32px; flex-shrink: 0; background: rgba(5,175,255,0.12); border: 1px solid rgba(5,175,255,0.25); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; }
.eng-footer .footer-contact-icon svg { color: var(--accent); }
.eng-footer .footer-contact-item:hover .footer-contact-icon { background: rgba(5,175,255,0.25); border-color: rgba(5,175,255,0.5); }
.eng-footer .footer-contact-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1px; }
.eng-footer .footer-contact-val { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.4; transition: color 0.2s; }
.eng-footer .footer-contact-val a { color: rgba(255,255,255,0.6); text-decoration: none; position: relative; transition: color 0.2s; }
.eng-footer .footer-contact-val a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.25s ease; }
.eng-footer .footer-contact-val a:hover { color: var(--accent); }
.eng-footer .footer-contact-val a:hover::after { width: 100%; }
.eng-footer .footer-contact-item:hover .footer-contact-val { color: rgba(255,255,255,0.85); }
.eng-footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 1rem; }
.eng-footer .footer-bottom-links { display: flex; gap: 1.5rem; }
.eng-footer .footer-bottom-links a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.eng-footer .footer-bottom-links a:hover { color: var(--accent); }
@media (max-width: 900px) { .eng-footer .footer-top { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .eng-footer .footer-top { grid-template-columns: 1fr !important; } }

/* ─── WhatsApp button ─── */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #04111f; color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 13px 28px; border-radius: 100px;
  border: 1.5px solid rgba(37,211,102,0.35); cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-whatsapp:hover { background: #0a2040; box-shadow: 0 4px 20px rgba(37,211,102,0.2); border-color: rgba(37,211,102,0.6); }
.btn-whatsapp svg { flex-shrink: 0; color: #25D366; }

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { order: 1; }
  .hero-text   { order: 2; }
  .hero-eng-img { width: 70%; }
}

/* ─── Animated Mechanical Drawing — hero background ─── */
.hero-mech-bg {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
  opacity: 0.13; /* same visibility as Digital code window */
}
.hero-mech-bg svg {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}
@keyframes mechRotate   { from{transform-origin:50% 50%;transform:rotate(0deg)}   to{transform-origin:50% 50%;transform:rotate(360deg)} }
@keyframes mechRotateR  { from{transform-origin:50% 50%;transform:rotate(0deg)}   to{transform-origin:50% 50%;transform:rotate(-360deg)} }
@keyframes mechDash     { from{stroke-dashoffset:200} to{stroke-dashoffset:0} }
@keyframes mechPulse    { 0%,100%{opacity:.4} 50%{opacity:1} }
@keyframes mechScan     { 0%{transform:translateY(0)} 100%{transform:translateY(60px)} }
@keyframes mechDraw     { from{stroke-dashoffset:600} to{stroke-dashoffset:0} }

.mech-gear-a   { animation: mechRotate  12s linear infinite; }
.mech-gear-b   { animation: mechRotateR  8s linear infinite; }
.mech-gear-c   { animation: mechRotate  18s linear infinite; }
.mech-pulse    { animation: mechPulse    3s ease-in-out infinite; }
.mech-scan     { animation: mechScan     4s ease-in-out infinite alternate; }
.mech-draw-1   { stroke-dasharray:600; animation: mechDraw 6s ease forwards; }
.mech-draw-2   { stroke-dasharray:400; animation: mechDraw 8s 1s ease forwards; }
.mech-draw-3   { stroke-dasharray:300; animation: mechDraw 5s 2s ease forwards; }

/* ═══ Stats bar — matches Digital exactly, teal colours ═══ */
#stats {
  padding: 40px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
  line-height: 1.4;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) { .stats-grid { grid-template-columns: 1fr; } }

/* ═══ Sub-page hero — teal, full-width, 2-col, matches Digital ═══ */

/* Image sizing — same as Digital */
.page-hero-img img {
  width: 100%; max-width: 528px; height: auto;
  display: block; margin: 0 auto;
  animation: fadeUp 0.7s 0.3s ease both;
}
/* Tablet (≤900px): single column, image hidden — same as Digital */
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-img { display: none; }
}
}

/* page-hero sizing handled above */

/* ── Page hero — exact Digital structure, teal colours ── */
.page-hero {
  background: #061c2e;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;      /* same top/bottom as Digital hero inner padding */
}
/* Top-right teal glow — same as home hero */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 90% 185% at 105% -5%,
    rgba(5, 175, 255, 0.82)  0%,
    rgba(3, 130, 200, 0.60) 18%,
    rgba(2,  80, 140, 0.38) 32%,
    rgba(1,  40,  80, 0.18) 48%,
    transparent               100%
  );
  pointer-events: none; z-index: 0;
}
/* Bottom-left teal glow — same as home hero */
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 84% 167% at -5% 105%,
    rgba(3, 140, 210, 0.72)  0%,
    rgba(2, 100, 170, 0.50) 20%,
    rgba(1,  60, 110, 0.28) 40%,
    rgba(0,  25,  50, 0.10) 58%,
    transparent               100%
  );
  pointer-events: none; z-index: 0;
}
/* 2-col grid — identical to Digital, extra side padding for desktop */
.page-hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 100%;
  width: 100%;
}
/* Beat base.css .page-hero-inner { max-width: 680px } with higher specificity */
.page-hero .page-hero-inner { max-width: 100% !important; }
.page-hero-text { max-width: 600px; }
.page-hero-label { color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 0; }
.page-hero-title { color: #fff; }
.page-hero-sub   { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: 1.5rem; }
.page-hero-img {
  display: flex; align-items: center; justify-content: center;
}
/* Image sizing — same as Digital */
.page-hero-img img {
  width: 100%; max-width: 528px; height: auto;
  display: block; margin: 0 auto;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* ── Tablet ≤900px: single column, image hidden — same as Digital ── */
@media (max-width: 900px) {
  .page-hero { padding: 100px 0 60px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-img { display: none; }
}

/* ── Mobile ≤580px: image top, text below — same as Digital ── */
@media (max-width: 580px) {
  .page-hero { padding: 80px 0 50px; }
  .page-hero-inner { grid-template-columns: 1fr !important; }
  .page-hero-img {
    display: flex !important;
    order: 1 !important;
    margin-bottom: 0;
  }
  .page-hero-img img { max-width: 264px !important; /* 220 × 1.2 */ }
  .page-hero-text { order: 2 !important; }
  .page-hero-title { font-size: clamp(1.6rem, 8vw, 2.5rem) !important; }
}

/* ═══ What We Do — wider container, 2x2 grid right side ═══ */
.cad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: min(1430px, 93vw);
  margin: 2rem auto 0;
}
.cad-services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-content: start;
}
.cad-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cad-item:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(5,175,255,0.08); }
.cad-item-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.cad-item-icon { font-size: 1.3rem; }
.cad-item-title { font-family: var(--heading-font); font-size: 0.95rem; font-weight: 700; color: var(--text); }
.cad-item-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .cad-grid { grid-template-columns: 1fr; }
  .cad-services-list { grid-template-columns: 1fr; }
}

/* ═══ Engineering service cards — same as Digital pf-card + service card ═══ */
.eng-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .eng-services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eng-services-grid { grid-template-columns: 1fr; } }

.eng-svc-card {
  background: #fff;
  border: 1px solid rgba(5,175,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.eng-svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5,175,255,0.5);
  box-shadow: 0 20px 50px rgba(5,175,255,0.12);
}
.eng-svc-thumb {
  aspect-ratio: 16/10;
  background: rgba(5,175,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: background 0.3s;
}
.eng-svc-card:hover .eng-svc-thumb { background: rgba(5,175,255,0.10); }
.eng-svc-info { padding: 1.1rem 1.25rem 1.4rem; }
.eng-svc-icon {
  width: 40px; height: 40px;
  background: rgba(5,175,255,0.10);
  border: 1px solid rgba(5,175,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0;
  transition: background 0.3s;
}
.eng-svc-card:hover .eng-svc-icon { background: var(--accent); }
.eng-svc-title { font-family: var(--heading-font); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.eng-svc-desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.85rem; }
.eng-svc-learn { font-size: 0.82rem; font-weight: 700; color: var(--accent); text-decoration: none; transition: gap 0.2s; }

/* ═══ Project cards — same as Digital pf-card ═══ */
.eng-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .eng-pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eng-pf-grid { grid-template-columns: 1fr; } }

/* ═══ Testimonials carousel — same as Digital ═══ */
#testimonials { background: var(--bg2); padding: 90px 0 60px; }
.testi-carousel { max-width: 860px; margin: 0 auto; text-align: center; }
.testi-quote-mark { display: none; }
.testi-quote-text {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  font-family: var(--heading-font);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 80px;
  transition: opacity 0.4s ease;
}
.testi-quote-text::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
.testi-quote-text::after  { content: "\201D"; color: var(--accent); margin-left: 2px; }
.testi-author-line {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-bottom: 2.5rem;
  font-size: 0.9rem; color: var(--muted); font-weight: 500;
  transition: opacity 0.4s ease;
}
.testi-author-name { font-weight: 700; color: var(--text); }
.testi-avatars { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg3);
  border: 3px solid transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: border-color 0.25s, transform 0.25s;
}
.testi-avatar.active { border-color: var(--accent); transform: scale(1.15); }
.testi-avatar:hover  { border-color: rgba(5,175,255,0.5); }

/* ═══ How We Work — step circles with border like Digital ═══ */
.process-steps::before { display: none !important; }
.step-num { background: var(--surface); border-color: var(--border); color: var(--muted); }
.step-num.active { border-color: var(--accent); color: var(--accent); background: rgba(5,175,255,0.10); }
.step-title { color: var(--text); }
.step-desc  { color: var(--muted); }

/* ═══ WhatsApp button — Engineering style (teal border, dark bg) ═══ */
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #04111f; color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 14px 28px; border-radius: 100px;
  border: 1.5px solid rgba(37,211,102,0.35);
  cursor: pointer; font-family: inherit; text-decoration: none;
  width: auto;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-whatsapp:hover { background: #0a2040; box-shadow: 0 4px 20px rgba(37,211,102,0.2); border-color: rgba(37,211,102,0.6); }
.btn-whatsapp svg { flex-shrink: 0; color: #25D366; }

/* ── How We Work: line behind circles, not through them ── */
.process-steps { position: relative; }
.process-steps::before { display: none !important; }
.step-num { position: relative; z-index: 1; background: var(--surface); }


/* ── Services cards on engineering — same structure as Digital ── */
.eng-services-section { background: #e8f0f8; padding: 90px 0 0; overflow: hidden; width: 100%; box-sizing: border-box; }
.eng-services-section .container { max-width: min(1430px, 93vw); }
.services-grid-eng {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 1100px) { .services-grid-eng { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services-grid-eng { grid-template-columns: 1fr; } }

.svc-card-eng {
  background: #fff;
  border: 1px solid rgba(5,175,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.svc-card-eng:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #0390d8);
  box-shadow: 0 24px 60px rgba(5,175,255,0.35);
}
.svc-thumb-eng {
  aspect-ratio: 4/3;
  background: rgba(5,175,255,0.05);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 1rem 1rem 0;
}
.svc-thumb-eng img { width:85%; height:100%; object-fit:contain; object-position:center bottom; }
.svc-info-eng { padding: 1.1rem 1.25rem 1.4rem; display:flex; flex-direction:column; flex:1; }
.svc-icon-eng {
  width: 40px; height: 40px;
  background: rgba(5,175,255,0.10);
  border: 1px solid rgba(5,175,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 0;
  transition: background 0.3s;
}
.svc-card-eng:hover .svc-icon-eng { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
.svc-title-eng { font-family: var(--heading-font); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.svc-desc-eng  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.85rem; flex:1; }
.svc-learn-eng { font-size: 0.82rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.svc-card-eng:hover .svc-title-eng,
.svc-card-eng:hover .svc-desc-eng,
.svc-card-eng:hover .svc-learn-eng { color: #fff; }

/* ── Our Work dark grid on home ── */
.eng-work-section { background: #061c2e; padding: 90px 0 0; overflow: hidden; width: 100%; box-sizing: border-box; }

/* ── What We Do cards — 4-col grid matching Digital service cards ── */
.cad-services-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) { .cad-services-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cad-services-list { grid-template-columns: 1fr; } }
.cad-grid { grid-template-columns: 1fr; max-width: min(1430px, 93vw); }
.cad-schematic { display: none; }

/* ─── Why Engineering — same as Digital why-section ────────────────── */
#why-section {
  background: #061c2e;
  padding: 104px 0;
}
#why-section .section-label { color: var(--accent); }
#why-section .section-title { color: #fff; }
#why-section .why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
#why-section .why-card {
  background: rgba(5,175,255,0.06);
  border: 1px solid rgba(5,175,255,0.12);
  border-radius: 14px;
  padding: 1.75rem;
}
#why-section .why-card:hover {
  border-color: rgba(5,175,255,0.45);
  background: rgba(5,175,255,0.14);
}
#why-section .why-icon { font-size: 1.6rem; margin-bottom: 0; }
#why-section .why-title { color: #fff; font-family: var(--heading-font); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
#why-section .why-desc  { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.65; }
@media (max-width: 1000px) { #why-section .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { #why-section .why-grid { grid-template-columns: 1fr; } }

/* ─── Our Story equivalent — eng-story section ──────────────────────── */
#eng-story {
  background: #e8f0f8;
  padding: 90px 0 0;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
#eng-story .container {
  max-width: min(1430px, 93vw);
}
.eng-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}
.eng-story-illus {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.eng-story-svg {
  width: 100%; max-width: 420px;
  border-radius: 16px;
  background: rgba(5,175,255,0.05);
  border: 1px solid rgba(5,175,255,0.15);
  padding: 1.5rem;
  box-sizing: border-box;
}
.eng-story-text .section-label { color: var(--accent); display: block; margin-bottom: 0.5rem; }
.eng-story-text .section-title { color: var(--text); margin-bottom: 1rem; }
.eng-story-text p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }
.eng-story-quote {
  background: rgba(5,175,255,0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.eng-story-quote-text {
  font-family: 'Comic Sans Pro', 'Comic Sans MS', cursive !important;
  font-size: 1.44rem !important;
  font-weight: normal;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.eng-story-quote-cite {
  font-family: 'Comic Sans Pro', 'Comic Sans MS', cursive !important;
  font-weight: 400;
  font-size: 1.35rem !important;
  color: var(--accent);
  display: block;
  margin-top: 0.25rem;
  line-height: 1.3;
}
@media (max-width: 800px) { .eng-story-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── Contact detail — flex row like Digital ────────────────────────── */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(5,175,255,0.10);
  border: 1px solid rgba(5,175,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.contact-detail:hover .contact-detail-icon {
  background: rgba(5,175,255,0.2);
  border-color: rgba(5,175,255,0.4);
}
.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
  display: block;
}
.contact-detail-val {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.contact-detail-val a { color: var(--text); text-decoration: none; }
.contact-detail-val a:hover { color: var(--accent); }

/* ─── Our Work dark cards — same as Digital ────────────────────────── */

/* ─── Services page — Mechanical CAD & Laser cards like home svc cards ─ */
.eng-svc-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: min(1430px, 93vw);
}
@media (max-width: 1100px) { .eng-svc-section-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .eng-svc-section-grid { grid-template-columns: 1fr; } }

/* base.css line: top:27px left:10% right:10% height:1px — this is correct for 5-col */
/* Problem was z-index and background of step-num not matching section bg */

/* Remove old conflicting rules and set clean definitive ones */
.process-steps { position: relative; }

/* The line sits at z-index 0 — circles sit at z-index 1+ */
/* Force with !important to override any cascade issues */
.process-steps::before { display: none !important; }

/* Each step circle: solid background matching section, sits on top of line */
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border) !important;
  background: var(--surface) !important; /* solid — covers the line behind */
  color: var(--muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--heading-font) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  margin: 0 auto 1rem !important;
  position: relative !important;
  z-index: 2 !important; /* above the line */
  transition: all 0.3s !important;
}
.step-num.active {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: rgba(5,175,255,0.10) !important;
}


/* ══ Portfolio / project card CSS — copied from Digital, teal colours ══ */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pf-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(170,44,165,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(170,44,165,0.1);
}
.pf-card-link { display: block; text-decoration: none; color: inherit; }
.pf-card[data-cat="hide"] { display: none; }

/* Desktop mockup frame */
.pf-mockup {
  position: relative;
  background: #0d0d0d;
  padding: 10px 10px 0;
  border-radius: 10px 10px 0 0;
}
.pf-screen-frame {
  background: #1a1a1a;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
.pf-screen-inner {
  width: 100%; height: 100%;
  overflow: hidden;
  /* allow flex centering for emoji placeholders */
}
.pf-screenshot {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: object-position 3s ease;
}
.pf-card:hover .pf-screenshot { object-position: bottom center; }
.pf-arrow {
  position: absolute; top: 14px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(170,44,165,0.85); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
}
.pf-card:hover .pf-arrow { opacity: 1; transform: scale(1); }

/* Info block */
.pf-info { padding: 1.1rem 1.25rem 1.4rem; }
.pf-name-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0;
}
.pf-name {
  font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600;
  color: #fff; letter-spacing: 0.3px;
}
.pf-arrow-sm {
  font-size: 1rem; color: var(--accent);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.pf-card:hover .pf-arrow-sm { opacity: 1; transform: translateX(0); }
.pf-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  line-height: 1.5; margin-bottom: 0.85rem;
}
.pf-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ptag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.3px;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(170,44,165,0.18); color: #aa2ca5;
}

@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }

/* ── Engineering Our Work dark section overrides (scoped to .eng-work-section) ── */
.eng-work-section .pf-card {
  background: rgba(5,175,255,0.04);
  border-color: rgba(5,175,255,0.10);
}
.eng-work-section .pf-card:hover {
  border-color: rgba(5,175,255,0.50);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(5,175,255,0.15);
}
.eng-work-section .pf-mockup  { background: #060e18; }
.eng-work-section .pf-screen-frame { background: #0a1520; }
.eng-work-section .pf-screen-inner { background: #0a1520; }
.eng-work-section .pf-name    { color: #fff; }
.eng-work-section .pf-desc    { color: rgba(255,255,255,0.5); }
.eng-work-section .ptag       { background: rgba(5,175,255,0.20); color: #40d8ff; }
.eng-work-section .pf-arrow   { background: rgba(5,175,255,0.85); }
.eng-work-section .pf-arrow-sm { color: var(--accent); }

/* ── Engineering Portfolio light section overrides (scoped to #portfolio.pf-light) ── */
#portfolio.pf-light { background: #e8f0f8; }
#portfolio.pf-light .pf-card {
  background: #fff;
  border-color: rgba(5,175,255,0.15);
}
#portfolio.pf-light .pf-card:hover {
  border-color: rgba(5,175,255,0.45);
  box-shadow: 0 20px 50px rgba(5,175,255,0.12);
}
#portfolio.pf-light .pf-mockup      { background: rgba(5,175,255,0.06); }
#portfolio.pf-light .pf-screen-frame { background: rgba(5,175,255,0.08); }
#portfolio.pf-light .pf-name        { color: var(--text); }
#portfolio.pf-light .pf-desc        { color: var(--muted); }
#portfolio.pf-light .ptag           { background: rgba(5,175,255,0.12); color: var(--accent); }
#portfolio.pf-light .pf-arrow       { background: rgba(5,175,255,0.85); }
#portfolio.pf-light .pf-arrow-sm    { color: var(--accent); }
#portfolio.pf-light .pf-tab         { border-color: rgba(5,175,255,0.25); color: var(--muted); background: #fff; }
#portfolio.pf-light .pf-tab.active  { background: var(--accent); border-color: var(--accent); color: #fff; }
#portfolio.pf-light .pf-tab:hover   { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════════════════
   HOW WE WORK — definitive fix matching Digital exactly
   ====================================================== */

/* The connecting line — sits BEHIND circles via z-index 0 */
.process-steps {
  position: relative;
}
.process-steps::before { display: none !important; }

/* Step number circles — solid bg so they visually cover the line */
.process-step {
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--heading-font) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  margin: 0 auto 1rem !important;
  position: relative !important;
  z-index: 2 !important;
  transition: all 0.3s !important;
}
.step-num.active {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: rgba(5,175,255,0.10) !important;
}
.step-title { color: var(--text) !important; }
.step-desc  { color: var(--muted) !important; }

/* Dark bg How We Work (if used on dark section) */
.dark-how .step-num {
  background: #061c2e !important;
  border-color: rgba(5,175,255,0.3) !important;
}
.dark-how .step-num.active {
  background: rgba(5,175,255,0.15) !important;
  border-color: var(--accent) !important;
}
.dark-how .step-title { color: #fff !important; }
.dark-how .step-desc  { color: rgba(255,255,255,0.55) !important; }

/* ══ Laser & Craft dark section ══ */
.laser-section {
  background: #061c2e;
  padding: 80px 0;
}
.laser-section .section-label { color: var(--accent); }
.laser-section .section-title { color: #fff; }
.laser-section .section-sub   { color: rgba(255,255,255,0.6); }
.laser-section .svc-card-eng  {
  background: rgba(5,175,255,0.05);
  border-color: rgba(5,175,255,0.15);
}
.laser-section .svc-card-eng:hover {
  background: linear-gradient(135deg, var(--accent), #0390d8);
  border-color: transparent;
}
.laser-section .svc-title-eng  { color: #fff; }
.laser-section .svc-desc-eng   { color: rgba(255,255,255,0.55); }
.laser-section .svc-learn-eng  { color: rgba(5,175,255,0.8); }
.laser-section .svc-icon-eng   {
  background: rgba(5,175,255,0.12);
  border-color: rgba(5,175,255,0.25);
}

/* ══ View All Projects btn matching Digital ══ */
.our-work-cta .btn-outline {
  border-color: rgba(255,255,255,0.35) !important;
  color: #fff !important;
}
.our-work-cta .btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
}

/* ══ Contact: Send Message btn same size as Digital ══ */
#contact .form-btn-full {
  padding: 14px 32px !important;
  font-size: 0.9rem !important;
  width: auto !important;
}

/* ══ Visit Digital Dept — pill-shaped, teal accent ══ */
.contact-info .btn-outline {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  border-radius: 100px !important;
  padding: 10px 22px !important;
  font-size: 0.85rem !important;
}
.contact-info .btn-outline:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════
   3D FLOATING SHADOW — Engineering cards without borders
   ====================================================== */

/* Service cards — light bg (svc-card-eng white cards) */
.svc-card-eng {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(5,175,255,0.06),
    0 16px 40px rgba(5,175,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border-color: transparent !important;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.svc-card-eng:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 24px rgba(5,175,255,0.20),
    0 24px 60px rgba(5,175,255,0.18);
  border-color: transparent !important;
}

/* Laser section dark svc cards */
.laser-section .svc-card-eng {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.25),
    0 8px 24px rgba(5,175,255,0.08),
    0 20px 48px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.04);
  border-color: transparent !important;
}
.laser-section .svc-card-eng:hover {
  box-shadow:
    0 4px 16px rgba(5,175,255,0.25),
    0 16px 48px rgba(5,175,255,0.20),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Portfolio light pf-cards */
#portfolio.pf-light .pf-card {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 14px rgba(5,175,255,0.06),
    0 16px 40px rgba(5,175,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: transparent !important;
}
#portfolio.pf-light .pf-card:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 24px rgba(5,175,255,0.18),
    0 24px 60px rgba(5,175,255,0.16);
}

/* Our Work dark pf-cards */
.eng-work-section .pf-card {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 24px rgba(5,175,255,0.06),
    0 20px 48px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.03);
  border-color: transparent !important;
}
.eng-work-section .pf-card:hover {
  box-shadow:
    0 4px 16px rgba(5,175,255,0.22),
    0 16px 48px rgba(5,175,255,0.18),
    0 32px 80px rgba(0,0,0,0.35);
}

/* Why section dark cards */
#why-section .why-card {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.25),
    0 8px 24px rgba(5,175,255,0.06),
    0 20px 48px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.04);
  border-color: transparent !important;
}
#why-section .why-card:hover {
  box-shadow:
    0 4px 16px rgba(5,175,255,0.20),
    0 16px 48px rgba(5,175,255,0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border-color: transparent !important;
}

/* Our Story SVG card */
.eng-story-svg {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 14px rgba(5,175,255,0.08),
    0 16px 40px rgba(5,175,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border-color: transparent !important;
}

/* ── Mechanical CAD section cards — floating shadow (same as laser section) */
.cad-section .svc-card-eng,
section:not(.laser-section) .svc-card-eng {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(5,175,255,0.06),
    0 16px 40px rgba(5,175,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border-color: transparent !important;
}

/* ── laser-cutting-machine.png — used as icon, teal filter */
.laser-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  /* Already has transparent bg; tint to teal using filter */
  filter: hue-rotate(180deg) saturate(1.5) brightness(1.1);
}

/* ══ How We Work — definitive, copied from Digital, teal recolour ══
   Remove any previous attempts and start clean.
   Key insight from Digital source: ::before is a 1px line in base.css,
   digital.css sets its background gradient. step-num gets bg from surface.
   The z-index 1 on .step-num and z-index 0 on ::before is the correct order. */
.process-steps {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important;
  margin-top: 3rem !important;
  position: relative !important;
}
/* THE LINE: absolutely positioned, sits UNDER circles (z-index 0) */
.process-steps::before { display: none !important; }
/* Each step: text-align centre, padding, relative + z-index 1 to sit above line */
.process-step {
  text-align: center !important;
  padding: 0 0.75rem !important;
  position: relative !important;
  z-index: 1 !important;
}
/* THE CIRCLE: solid bg (not transparent!) so it covers the line where they overlap */
.step-num {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--heading-font) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  margin: 0 auto 1rem !important;
  position: relative !important;
  z-index: 2 !important;
  transition: all 0.3s !important;
  /* This solid background is what covers the line — critical */
}
.step-num.active {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: rgba(5,175,255,0.10) !important;
}
.step-title { color: var(--text) !important; font-weight: 700 !important; }
.step-desc  { color: var(--muted) !important; font-size: 0.78rem !important; }
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr !important; }
  .process-steps::before { display: none !important; }
}

/* ── Sub-page hero image — matches Digital sizing exactly ── */
.page-hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-img-el {
  width: 90%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: fadeUp 0.7s 0.3s ease both;
}
@media (max-width: 900px) {
  .page-hero-img { display: none; }
}

/* ══════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE & RESPONSIVE FIXES
   ====================================================== */

/* Navbar — full parity with Digital mobile behaviour */
@media (max-width: 900px) {
  #navbar { padding: 0 4% !important; }
  .nav-links { display: none; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0; background: rgba(6,28,46,0.98);
    backdrop-filter: blur(20px); padding: 2rem 1.5rem; gap: 0.5rem;
    z-index: 999;  }
  #navbar.nav-open .nav-links { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(5,175,255,0.1); color: #fff !important; }
  .nav-back { display: none; }  /* hidden until hamburger opens */
  .nav-cta { display: none; }
  .hamburger { display: flex !important; }
}

/* Hero full-width on all screens */
#hero, .page-hero, .eng-services-section, .eng-work-section,
section, .laser-section { width: 100% !important; overflow-x: hidden; }

/* Prevent horizontal scroll site-wide */
body { overflow-x: hidden; max-width: 100vw; }

/* Sub-page heroes — same height as privacy/terms (padding 120px top) */
.page-hero {
  padding: 120px 0 80px !important;
  width: 100% !important;
  box-sizing: border-box;
  background: #061c2e !important;  /* ensure dark bg overrides base.css */
}
/* page-hero tablet/mobile handled above */

/* Service cards — full-width on mobile */
@media (max-width: 560px) {
  .services-grid-eng { grid-template-columns: 1fr !important; }
  .eng-pf-grid, .pf-grid { grid-template-columns: 1fr !important; }
  .eng-svc-section-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .cad-services-list { grid-template-columns: 1fr !important; }
  .eng-story-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .process-steps { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .footer-top { grid-template-columns: 1fr !important; }
  .hero-buttons { flex-direction: column !important; align-items: flex-start !important; }
  .btn-primary, .btn-secondary, .btn-whatsapp { width: 100% !important; justify-content: center !important; box-sizing: border-box !important; }
}

/* "View All Projects" btn-outline on dark bg — pill with white border */
.eng-work-section .btn-outline,
.our-work-cta .btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  color: #fff !important;
  border-radius: 100px !important;
  padding: 13px 28px !important;
  background: transparent !important;
}
.eng-work-section .btn-outline:hover,
.our-work-cta .btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* "Visit Digital Dept" in contact info panel — teal pill with border */
.contact-info .btn-outline {
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  border-radius: 100px !important;
  padding: 10px 22px !important;
  font-size: 0.85rem !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
}
.contact-info .btn-outline:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Our Story image — remove all filters/effects, clean render */
.eng-story-illus img {
  -webkit-filter: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  width: 83% !important;
  max-width: 460px !important;
}

/* Policy hero images — teal, no green */
.policy-hero-img-teal {
  filter: hue-rotate(165deg) saturate(1.3) brightness(1.0) !important;
}

/* eng-story-quote-text defined above — no duplicate */

/* Bouncing images in svc-thumb-eng */
@keyframes engBounce1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes engBounce2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes engBounce3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes engBounce4 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.svc-thumb-eng img {
  width: 85%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  margin: 0 auto;
}
.services-grid-eng .svc-card-eng:nth-child(1) .svc-thumb-eng img { animation: engBounce1 2.8s ease-in-out infinite 0s; }
.services-grid-eng .svc-card-eng:nth-child(2) .svc-thumb-eng img { animation: engBounce2 2.8s ease-in-out infinite 0.4s; }
.services-grid-eng .svc-card-eng:nth-child(3) .svc-thumb-eng img { animation: engBounce3 2.8s ease-in-out infinite 0.8s; }
.services-grid-eng .svc-card-eng:nth-child(4) .svc-thumb-eng img { animation: engBounce4 2.8s ease-in-out infinite 1.2s; }

/* svc-thumb-eng — aspect ratio same as Digital service-thumb */
.svc-thumb-eng {
  aspect-ratio: 4/3 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 1rem 1rem 0 !important;
}

/* ══════════════════════════════════════════════════════
   ENGINEERING — COMPREHENSIVE MOBILE RESPONSIVENESS
   ====================================================== */

html, body { overflow-x: hidden !important; max-width: 100% !important; }
*, *::before, *::after { box-sizing: border-box; }

/* ── Tablet: 900px ── */
@media (max-width: 900px) {
  /* Navbar: hide links, show hamburger */
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex !important; }

  /* Navbar logo auto-resize */
  
  

  /* Mobile nav overlay — full screen, dark teal */
  #navbar.nav-open .nav-links {
    display: flex !important; flex-direction: column !important;
    position: fixed !important; top: 68px !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: #061c2e !important; backdrop-filter: blur(20px) !important;
    padding: 1rem 5% !important; gap: 1.5rem !important;
    font-size: 1.15rem !important; z-index: 9999 !important;
    overflow-y: auto !important; width: 100% !important;
    box-sizing: border-box !important;
  }
  #navbar.nav-open .nav-links a {
    color: #fff !important;
    font-size: 1.15rem !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(5,175,255,0.15) !important;
  }
  #navbar.nav-open .nav-back {
    display: inline-flex !important;
    color: rgba(5,175,255,0.8) !important;
    font-size: 0.52rem !important;
    border: 1px solid rgba(5,175,255,0.3) !important;
    padding: 5px 11px !important;
    border-radius: 100px !important;
    white-space: nowrap !important;
    align-items: center !important;
  }

  /* Hamburger lines — white on dark */
  .hamburger span { background: #fff !important; }
  #navbar.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #navbar.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  #navbar.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  /* Hero layout handled at 768px */

  /* Page hero — keep side-by-side on tablet */
  .page-hero { padding: 100px 0 60px !important; }

  /* Story */
  .eng-story-grid { grid-template-columns: 1fr !important; }
  .eng-story-illus { order: 1; }
  .eng-story-text { order: 2; }

  /* Why */
  #why-section .why-grid { grid-template-columns: 1fr 1fr !important; }

  /* Services grid */
  .services-grid-eng, .eng-svc-section-grid { grid-template-columns: 1fr 1fr !important; }

  /* Our Work */
  .pf-grid { grid-template-columns: 1fr 1fr !important; }

  /* Footer */
  .eng-footer .footer-top { grid-template-columns: 1fr 1fr !important; }
}

/* ── Mobile: 580px ── */
@media (max-width: 580px) {
  /* Navbar logo even smaller */
  
  

  /* ALL grids → 1 card per row */
  .services-grid-eng,
  .eng-svc-section-grid,
  #why-section .why-grid,
  .pf-grid,
  .stats-grid,
  .cad-services-list,
  .eng-footer .footer-top { grid-template-columns: 1fr !important; }

  /* Page heroes on mobile: image top, text below, image visible */
  .page-hero-inner { grid-template-columns: 1fr !important; }
  .page-hero-img { order: 1 !important; display: flex !important; margin-bottom: 1.5rem; }
  .page-hero-img img, .page-hero-img-el { max-width: 200px !important; }
  .page-hero-text { order: 2 !important; }
  .page-hero { padding: 80px 0 50px !important; }
  /* Policy heroes same treatment */
  .policy-hero-inner[style*="grid"] { display: flex !important; flex-direction: column !important; }
  .policy-hero-inner > div:last-child { order: -1 !important; margin-bottom: 1.5rem; }
  .policy-hero-inner > div:last-child img { max-width: 180px !important; }

  /* Footer logo */
  .eng-footer .footer-logo-img {
  height: 57px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}
  .eng-footer .footer-logo-dept {
  font-family: 'Blacksword', cursive;
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  position: absolute;
  left: 100%;
  bottom: 17px;
  margin-left: -17px;
}

  /* Buttons */
  .hero-buttons { flex-direction: column !important; align-items: stretch !important; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100% !important; justify-content: center !important; box-sizing: border-box !important; }

  /* Typography */
  .hero-title { font-size: clamp(1.8rem, 9vw, 2.8rem) !important; letter-spacing: -1px !important; }
  .section-title { font-size: clamp(1.4rem, 7vw, 2rem) !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr !important; }
  

  /* Containers */
  .container { padding-left: 4% !important; padding-right: 4% !important; }
}

/* ══ Logo never wider than its column / screen ══ */



/* Responsive logo + dept scaling — fluid, not stepped */
/* Use container query approach via vw units */

@media (max-width: 900px) {
  
  
}
@media (max-width: 600px) {
   }

}

/* Footer logo same treatment */
@media (max-width: 600px) {
  .eng-footer .footer-logo-img {
  height: 57px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}
  .eng-footer .footer-logo-dept {
  font-family: 'Blacksword', cursive;
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  position: absolute;
  left: 100%;
  bottom: 17px;
  margin-left: -17px;
}
}




/* ══ Hero gradient overlay fix ══ */
/* The hero-bg-gradient divs have ::before and ::after that create
   the teal glow. Remove any that might appear over the image column */
.hero-bg-gradient { pointer-events: none; }

/* ══ Engineering home hero — same breakpoints as Digital ══ */
@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
  .hero-visual {
    display: flex !important;
    order: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 27px !important;
  }
  .hero-text {
    order: 2 !important;
    padding: 2px 5% 60px !important;
    text-align: center !important;
  }
  .hero-text .hero-buttons { justify-content: center !important; }
  .hero-eng-img { width: 70% !important; max-width: 300px !important; }
}
@media (max-width: 480px) {
  .hero-visual {
    display: flex !important;
    order: 1 !important;
    justify-content: center !important;
    padding-top: 27px !important;
  }
  .hero-text {
    order: 2 !important;
    padding: 2px 5% 50px !important;
    text-align: center !important;
  }
  .hero-text .hero-buttons { justify-content: flex-start !important; }
}

/* ══ Navbar & footer logo — 40% smaller on devices < 768px ══ */
@media (max-width: 768px) {
  /* Nav logo: 64px × 0.6 = 38px */
  
  /* "Digital/Engineering" dept word — same proportions as desktop */
  
  /* Footer logo: 57px × 0.6 = 34px */
  .eng-footer .footer-logo-img {
    height: 46px !important;
  }
  .eng-footer .footer-logo-dept {
    font-size: 19px !important;
    bottom: 14px !important;
    margin-left: -14px !important;
  }
}

/* ── Nav logo: 40% smaller at ≤768px (matches Digital) ── */
@media (max-width: 768px) {
  .nav-logo-img-el { height: 38px !important; }
  .nav-logo-dept   { font-size: 16px !important; bottom: 11px !important; margin-left: -11px !important; }
}

/* ── eng-story-grid: reduce gap on smaller screens to prevent overflow ── */
@media (max-width: 1100px) {
  .eng-story-grid { gap: 3rem; }
}
@media (max-width: 800px) {
  .eng-story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .eng-story-illus { min-height: auto; }
}

/* ── Sub-page hero text: 5% left indent on screens > 1024px only ── */
@media (min-width: 1025px) {
  .page-hero-text { padding-left: 8%; }
}

/* ── Contact form — matches Digital exactly, teal colours ── */
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 14px rgba(5,175,255,0.06),
    0 16px 40px rgba(5,175,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem; font-family: inherit;
  color: var(--text); background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5,175,255,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bot-check {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: rgba(5,175,255,0.06);
  border: 1px solid rgba(5,175,255,0.18);
  border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.bot-check input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0;
  accent-color: var(--accent); margin-top: 2px; cursor: pointer;
}
.bot-check label { font-size: 0.8rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.bot-check label a { color: var(--accent); }
.form-consent { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.form-consent a { color: var(--accent); }

/* ── Contact form: stack inputs at ≤768px ── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr !important; }
}

/* ── Policy body content (Privacy & Terms) ── */
.policy-body { max-width: 860px; margin: 0 auto; padding: 60px 5% 80px; }
.policy-body h2 {
  font-family: 'Oswald', sans-serif; font-size: 1.3rem; color: var(--text);
  margin: 2.5rem 0 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(5,175,255,0.2);
}
.policy-body p, .policy-body li {
  color: var(--muted); font-size: 0.93rem; line-height: 1.85; margin-bottom: 0.75rem;
}
.policy-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.policy-body a { color: var(--accent); }
.policy-highlight {
  background: rgba(5,175,255,0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.policy-highlight p { margin: 0; color: var(--text); font-weight: 500; font-size: 0.9rem; }
.law-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(5,175,255,0.12); color: var(--accent);
  padding: 2px 7px; border-radius: 4px; margin-right: 6px; vertical-align: middle;
}
.currency-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.currency-table th, .currency-table td {
  text-align: left; padding: 0.65rem 0.9rem; font-size: 0.875rem; border: 1px solid var(--border);
}
.currency-table th {
  background: rgba(5,175,255,0.10); color: var(--text);
  font-family: 'Oswald', sans-serif; font-weight: 600;
}
.currency-table tr:nth-child(even) td { background: var(--bg2); }
.currency-table td { color: var(--muted); }


/* Services & Company side-by-side on mobile */
@media (max-width: 768px) {
  .footer-top {
    grid-template-areas:
      "logo"
      "mid"
      "contact" !important;
    grid-template-columns: 1fr !important;
  }
  .footer-top > div:first-child  { grid-area: logo; }
  .footer-top > div:last-child   { grid-area: contact; }
  /* Middle two cols (Services + Company) wrapped in a row */
}


/* ── Engineering footer mobile (≤768px) ── */
@media (max-width: 768px) {
  .eng-footer .footer-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "logo    logo"
      "svc     company"
      "contact contact" !important;
    gap: 2rem 1.5rem !important;
  }
  .eng-footer .footer-top > div:nth-child(1) {
    grid-area: logo;
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .eng-footer .footer-top > div:nth-child(1) .footer-logo-link {
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
  }
  .eng-footer .footer-top > div:nth-child(1) .footer-brand-desc { text-align: center; }
  .eng-footer .footer-top > div:nth-child(1) .footer-back-link  { text-align: center; display: block; }
  .eng-footer .footer-top > div:nth-child(2) {
    grid-area: svc;
    text-align: center;
  }
  .eng-footer .footer-top > div:nth-child(2) .footer-links { text-align: center; }
  .eng-footer .footer-top > div:nth-child(3) {
    grid-area: company;
    text-align: center;
  }
  .eng-footer .footer-top > div:nth-child(3) .footer-links { text-align: center; }
  .eng-footer .footer-top > div:nth-child(4) {
    grid-area: contact;
    text-align: center;
  }
  .eng-footer .footer-top > div:nth-child(4) .footer-contact-item {
    justify-content: center;
  }
  .eng-footer .footer-bottom {
    flex-direction: column; text-align: center; gap: 0.5rem;
  }
  .eng-footer .footer-bottom-links { justify-content: center; }
}

/* ── Hamburger scroll lock — no scroll when menu is open ── */
body.nav-open-lock {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}



}
/* nav-back mobile pill */

/* ── nav-back in hamburger: 20% smaller font, pill unchanged ── */
#navbar.nav-open .nav-back {
  display: inline-flex !important;
  font-size: 0.52rem !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  padding: 5px 11px !important;
  border-radius: 100px !important;
  color: rgba(255,255,255,0.55) !important;
  white-space: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
}
#navbar.nav-open .nav-back:hover { color: var(--accent) !important; }

/* ── svc-card-eng hover: Get a Quote button turns black ── */
.svc-card-eng:hover .svc-learn-eng {
  color: #000 !important;
  font-weight: 700 !important;
}
.laser-section .svc-card-eng:hover .svc-learn-eng {
  color: #000 !important;
}

/* ── Hamburger menu: teal hover/active matching Digital purple ── */
#navbar.nav-open .nav-links a:hover,
#navbar.nav-open .nav-links a.active {
  color: var(--accent) !important;
}

/* ── How We Work: 4 short lines between circles, not through them ── */
.process-steps { position: relative; }
.process-step { position: relative; text-align: center; padding: 0 0.5rem; }

/* Each step except the last gets a connector line on its right side */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px; /* centre of 54px circle */
  /* Start at right edge of circle, end before next circle starts */
  left: calc(50% + 27px + 4px);   /* circle right edge + gap */
  right: calc(-50% + 27px + 4px); /* stops before next circle left edge */
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(5,175,255,0.3));
  z-index: 0;
}
/* step-num sits above connector lines */
.step-num {
  position: relative !important;
  z-index: 2 !important;
}

/* ── nav-back pill in hamburger menu — final override ── */
#navbar.nav-open .nav-links .nav-back,
#navbar.nav-open .nav-back {
  display: inline-flex !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: rgba(5,175,255,0.7) !important;
  border: 1px solid rgba(5,175,255,0.3) !important;
  padding: 7px 16px !important;
  border-radius: 100px !important;
  white-space: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  text-decoration: none !important;
}
#navbar.nav-open .nav-back:hover { color: var(--accent) !important; border-color: var(--accent) !important; }

/* nav-back desktop hidden */
@media (min-width: 901px) {
  .nav-links .nav-back { display: none !important; }
}
#navbar.nav-open .nav-links .nav-back,
#navbar.nav-open .nav-back {
  display: inline-flex !important;
}

/* ── Mobile: portal icon snaps next to hamburger ── */
@media (max-width: 900px) {
  /* nav-links is hidden but still takes flex space — collapse it */
  .nav-links { flex: 0 !important; }
  /* portal icon sits right next to hamburger with no gap */
  .nav-portal-icon { margin-left: auto; margin-right: 0.4rem; }
}
