/* =========================================================
   FABMECH INDUSTRIES — Design System
   Premium · Minimal · Industrial · Corporate
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --navy:        #0E1B33;
  --navy-800:    #14243F;
  --navy-700:    #1B3054;
  --steel:       #5E7DB8;
  --steel-600:   #4E6CA6;
  --steel-300:   #96AEDA;
  --steel-100:   #E7EDF8;

  /* Neutrals */
  --charcoal:    #23282F;
  --ink:         #1C2430;
  --muted:       #6A7385;
  --line:        #E4E8F0;
  --grey-50:     #F6F8FC;
  --grey-100:    #EEF2F8;
  --white:       #FFFFFF;

  /* Effects */
  --shadow-sm:   0 2px 8px rgba(14,27,51,.06);
  --shadow-md:   0 12px 30px rgba(14,27,51,.10);
  --shadow-lg:   0 30px 60px rgba(14,27,51,.16);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   26px;

  /* Rhythm */
  --container:   1220px;
  --section-y:   clamp(64px, 9vw, 130px);
  --ease:        cubic-bezier(.22,.61,.36,1);

  --font:        'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--steel); color: #fff; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p  { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #45505f; line-height: 1.7; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.bg-grey  { background: var(--grey-50); }
.bg-navy  { background: var(--navy); color: #dfe6f2; }
.bg-navy h1,.bg-navy h2,.bg-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel-600);
}
.bg-navy .eyebrow { color: var(--steel-300); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: .6; }
.eyebrow--center::after { content: ""; width: 26px; height: 2px; background: currentColor; opacity: .6; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--steel); color: #fff; box-shadow: 0 10px 24px rgba(94,125,184,.35); }
.btn--primary:hover { background: var(--steel-600); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(94,125,184,.42); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--steel); color: var(--steel-600); }
.bg-navy .btn--ghost, .hero-slider .btn--ghost, .cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.bg-navy .btn--ghost:hover, .hero-slider .btn--ghost:hover, .cta .btn--ghost:hover { border-color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: box-shadow .4s, padding .4s;
  padding: 12px 0;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line);
}
.nav.scrolled { padding: 8px 0; box-shadow: 0 6px 22px rgba(14,27,51,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__logo { height: 40px; width: auto; display: block; transition: height .4s var(--ease); }
.nav.scrolled .brand__logo { height: 35px; }
@media (max-width: 560px) { .brand__logo, .nav.scrolled .brand__logo { height: 32px; } }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  color: var(--ink); transition: color .25s, background .25s; position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--steel-600); background: var(--steel-100); }

/* Dropdown */
.nav__item { position: relative; display: inline-flex; }
.nav__item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav__item > a .caret { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.nav__item:hover > a .caret { transform: rotate(180deg); }
.nav__dd {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 260px; padding: 10px; margin-top: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 50;
}
.nav__dd::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__item:hover .nav__dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dd a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  color: var(--ink) !important; font-weight: 600; font-size: .93rem; background: transparent !important;
}
.nav__dd a small { display: block; font-weight: 500; font-size: .76rem; color: var(--muted); margin-top: 1px; }
.nav__dd a:hover { background: var(--steel-100) !important; color: var(--steel-600) !important; }
.nav__dd a .ddic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--steel-100); color: var(--steel-600); display: grid; place-items: center; }
.nav__dd a:hover .ddic { background: var(--steel); color: #fff; }
.nav__dd a .ddic svg { width: 18px; height: 18px; }
.nav__dd--foot { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.nav__dd--foot a { justify-content: space-between; color: var(--steel-600) !important; }

/* drawer sublinks */
.nav__drawer .sub { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__drawer .sub > .h { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 1.4rem; font-weight: 700; padding: 15px 0; cursor: pointer; user-select: none; }
.nav__drawer .h-r { display: inline-flex; align-items: center; gap: 14px; }
.nav__drawer .h-r > span { color: var(--steel-300); font-size: 1rem; }
.nav__drawer .chev { width: 10px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav__drawer .sub.open .chev { transform: translateY(2px) rotate(-135deg); }
.nav__drawer .sub__links { display: grid; gap: 2px; max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.nav__drawer .sub.open .sub__links { max-height: 460px; padding-bottom: 10px; }
.nav__drawer .sub__links a { font-size: 1.08rem !important; font-weight: 600; color: var(--steel-300) !important; padding: 11px 0 !important; border: none !important; justify-content: flex-start !important; }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 11px 22px; }

.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: .3s var(--ease); }
.nav__toggle span:nth-child(1){ top: 17px; } .nav__toggle span:nth-child(2){ top: 23px; } .nav__toggle span:nth-child(3){ top: 29px; }
.nav__toggle { color: var(--navy); }
body.menu-open { overflow: hidden; }
body.menu-open .nav__toggle span:nth-child(1){ top: 23px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2){ opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3){ top: 23px; transform: rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--navy);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 92px 30px 44px; padding-top: calc(88px + env(safe-area-inset-top, 0px));
  transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
body.menu-open .nav__drawer { transform: translateX(0); visibility: visible; }
.nav__drawer a { color: #fff; font-size: 1.4rem; font-weight: 700; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.nav__drawer > a > span { color: var(--steel-300); font-size: 1rem; }
.nav__drawer .btn { margin-top: 26px; justify-content: center; flex: none; }

/* ============================================================
   HERO — badge / inner / actions (shared by the hero slider)
   ============================================================ */
.hero__inner { max-width: 860px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .8rem; font-weight: 600; color: #cdd8ec;
  background: rgba(255,255,255,.04);
}
.hero__badge b { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.hero__inner .lead { color: #b7c2d6; margin-top: 24px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ============================================================
   MARQUEE (clients)
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 68px; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: #9aa6bd; white-space: nowrap; opacity: .8; transition: color .3s; }
.marquee__track span:hover { color: var(--steel-600); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* Feature card */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; position: relative;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--steel-100); color: var(--steel-600); margin-bottom: 22px; }
.feature__icon svg { width: 27px; height: 27px; }
.feature h3 { margin-bottom: 10px; font-size: 1.28rem; }
.feature p { font-size: .98rem; }
.feature__no { position: absolute; top: 26px; right: 30px; font-size: .8rem; font-weight: 700; color: var(--line); letter-spacing: .1em; }

/* Service card */
.svc {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  color: #fff; isolation: isolate; transition: transform .5s var(--ease);
}
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,27,51,.15), rgba(14,27,51,.88)); transition: opacity .4s; }
.svc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc:hover .svc__img { transform: scale(1.08); }
.svc:hover { transform: translateY(-6px); }
.svc__no { font-size: .78rem; font-weight: 700; letter-spacing: .2em; color: var(--steel-300); margin-bottom: auto; }
.svc h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.svc p { color: rgba(255,255,255,.82); font-size: .96rem; margin-bottom: 18px; }
.svc__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: #fff; }
.svc__link svg { width: 16px; transition: transform .3s var(--ease); }
.svc:hover .svc__link svg { transform: translateX(5px); }
.svc--tall { min-height: 420px; }

/* Stat block */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 40px 28px; text-align: center; }
.bg-navy .stats { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.bg-navy .stat { background: var(--navy); }
.stat .num { font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.bg-navy .stat .num { color: #fff; }
.stat .num .u { color: var(--steel); }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 3.2rem; font-weight: 800; color: var(--steel-100); line-height: 1; letter-spacing: -.03em; }
.bg-navy .step::before { color: rgba(150,174,218,.16); }
.step h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.step p { font-size: .95rem; }
.step__line { position: absolute; top: 12px; left: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--steel), transparent); opacity: .3; }

/* Split (image + content) */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px,6vw,80px); align-items: center; }
.split > * { min-width: 0; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split__badge {
  position: absolute; bottom: -26px; left: -26px; background: var(--steel); color: #fff;
  padding: 24px 28px; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.split__badge .num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.split__badge .lbl { font-size: .82rem; opacity: .9; margin-top: 4px; }

/* Checklist */
.ticks { display: grid; gap: 14px; margin-top: 26px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; color: #3a4453; font-weight: 500; }
.ticks li svg { flex: none; width: 22px; height: 22px; color: var(--steel-600); margin-top: 1px; }
.bg-navy .ticks li { color: #cdd7e8; } .bg-navy .ticks li svg { color: var(--steel-300); }

/* Industry chips */
.industries { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ind {
  display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: .35s var(--ease);
}
.ind:hover { border-color: var(--steel); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.ind__icon { width: 50px; height: 50px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.ind__icon svg { width: 24px; height: 24px; }
.ind h4 { font-size: 1.08rem; color: var(--navy); }
.ind p { font-size: .86rem; margin-top: 2px; }

/* Testimonials */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 34px; height: 100%; display: flex; flex-direction: column; }
.tcard .quote { font-size: 3rem; line-height: .6; color: var(--steel-300); font-family: Georgia, serif; margin-bottom: 8px; }
.tcard p { color: #34404f; font-size: 1.05rem; line-height: 1.65; flex: 1; }
.tcard__who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.tcard__av { width: 48px; height: 48px; border-radius: 50%; background: var(--steel); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.tcard__who b { color: var(--navy); display: block; font-size: .98rem; }
.tcard__who span { color: var(--muted); font-size: .84rem; }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 16px; font-size: .9rem; }

/* Icon panel (replaces images in split sections) */
.icon-panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3.3; min-height: 330px; max-width: 100%; min-width: 0;
  background: radial-gradient(120% 120% at 30% 15%, var(--navy-700), var(--navy) 72%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(150,174,218,.18);
}
.icon-panel__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(150,174,218,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(150,174,218,.08) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: radial-gradient(ellipse 82% 82% at 50% 42%, #000, transparent 76%); mask-image: radial-gradient(ellipse 82% 82% at 50% 42%, #000, transparent 76%); }
.icon-panel__glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(72px); background: radial-gradient(circle, rgba(94,125,184,.5), transparent 65%); top: -70px; right: -70px; }
.icon-panel__ring { position: absolute; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(150,174,218,.22); }
.icon-panel__ring::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; border: 1px dashed rgba(150,174,218,.16); }
.icon-panel__icon { position: relative; z-index: 2; width: clamp(88px, 15vw, 132px); height: auto; color: var(--steel-300); }
.icon-panel__label { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2; text-align: center; color: #9fb0cc; font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.member { position: relative; }
.member__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--grey-100); border: 1px solid var(--line); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,27,51,.5)); opacity: 0; transition: opacity .4s; }
.member:hover .member__photo::after { opacity: 1; }
.member__badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--steel); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; box-shadow: var(--shadow-sm); }
.member__badge svg { width: 13px; height: 13px; }
.member__info { padding-top: 18px; text-align: center; }
.member__info h3 { font-size: 1.22rem; }
.member__info .role { color: var(--steel-600); font-weight: 600; font-size: .92rem; margin-top: 5px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: #fff; padding: clamp(48px,7vw,84px); text-align: center; }
.cta__glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(94,125,184,.5), transparent 65%); top: -160px; left: 50%; transform: translateX(-50%); }
.cta .container-narrow { position: relative; z-index: 2; max-width: 660px; margin-inline: auto; }
.cta h2 { color: #fff; }
.cta p { color: #b7c2d6; margin-top: 16px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.pagehead { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(150px,20vh,210px) 0 clamp(60px,7vw,90px); }
.pagehead__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(150,174,218,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(150,174,218,.08) 1px,transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 80% at 60% 10%, #000, transparent 70%); }
.pagehead__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(94,125,184,.4), transparent 65%); top: -220px; right: -80px; }
.pagehead .container { position: relative; z-index: 2; }
.pagehead h1 { color: #fff; max-width: 800px; }
.pagehead .lead { color: #b7c2d6; margin-top: 18px; max-width: 620px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: #93a2bf; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; } .crumbs .sep { opacity: .5; }
.crumbs .cur { color: var(--steel-300); }

/* ============================================================
   GALLERY
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filters button {
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--muted); border: 1.5px solid var(--line); transition: .3s var(--ease); background: #fff;
}
.filters button:hover { color: var(--navy); border-color: var(--steel-300); }
.filters button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.masonry { columns: 3; column-gap: 20px; }
.masonry__item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; transition: opacity .4s, transform .4s; }
.masonry__item img { width: 100%; transition: transform .6s var(--ease); }
.masonry__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(14,27,51,.82)); opacity: 0; transition: opacity .4s; }
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover::after { opacity: 1; }
.masonry__cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.masonry__item:hover .masonry__cap { opacity: 1; transform: none; }
.masonry__cap b { display: block; font-size: 1.1rem; }
.masonry__cap span { font-size: .82rem; color: var(--steel-300); text-transform: uppercase; letter-spacing: .12em; }
.masonry__item.hide { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,14,26,.94); display: none; place-items: center; padding: 40px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 40px 90px rgba(0,0,0,.6); }
.lightbox__cap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #dfe6f2; font-weight: 600; }
.lightbox__x, .lightbox__nav { position: absolute; color: #fff; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .3s; }
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__x { top: 26px; right: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 26px; } .lightbox__nav.next { right: 26px; }
.lightbox__nav svg, .lightbox__x svg { width: 24px; height: 24px; }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.faq__q .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: .3s; position: relative; }
.faq__q .ic::before,.faq__q .ic::after { content: ""; position: absolute; background: var(--steel-600); border-radius: 2px; transition: .3s; }
.faq__q .ic::before { width: 12px; height: 2px; } .faq__q .ic::after { width: 2px; height: 12px; }
.faq__item.open .faq__q .ic { background: var(--steel); border-color: var(--steel); }
.faq__item.open .faq__q .ic::before,.faq__item.open .faq__q .ic::after { background: #fff; }
.faq__item.open .faq__q .ic::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding-bottom: 26px; font-size: 1rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: .97rem; color: var(--ink); background: #fff; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(94,125,184,.14); }
.field.error input, .field.error select, .field.error textarea { border-color: #e5484d; }
.field .err { color: #e5484d; font-size: .78rem; display: none; }
.field.error .err { display: block; }
.form__note { font-size: .82rem; color: var(--muted); }
.form-success { display: none; background: #ecfdf3; border: 1px solid #abefc6; color: #067647; padding: 16px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-success.show { display: flex; gap: 10px; align-items: center; }

/* Contact info card */
.info { display: grid; gap: 4px; }
.info__row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info__row:last-child { border: none; }
.info__ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--steel-100); color: var(--steel-600); display: grid; place-items: center; }
.info__ic svg { width: 22px; }
.info__row h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.info__row a, .info__row p { color: var(--navy); font-weight: 600; font-size: 1.02rem; }
.info__row a:hover { color: var(--steel-600); }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.2); }

.card-pad { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px,4vw,44px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #9fb0cc; padding-top: clamp(60px,8vw,90px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer .brand__name { color: #fff; } .footer .brand__tag { color: var(--steel-300); }
.footer .brand__logo { height: 54px; width: auto; }
.footer__about p { margin-top: 20px; font-size: .95rem; max-width: 320px; line-height: 1.7; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: #cdd8ec; transition: .3s; }
.footer__social a:hover { background: var(--steel); border-color: var(--steel); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 19px; }
.footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 22px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { font-size: .96rem; transition: color .25s, padding .25s; }
.footer__links a:hover { color: #fff; padding-left: 5px; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .95rem; align-items: flex-start; }
.footer__contact svg { width: 18px; flex: none; margin-top: 3px; color: var(--steel-300); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.footer__bottom a:hover { color: #fff; }

/* WhatsApp float */
.wa {
  position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease); animation: wa-pulse 2.4s infinite;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 32px; height: 32px; }
@keyframes wa-pulse { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.5),0 12px 30px rgba(37,211,102,.45);} 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0),0 12px 30px rgba(37,211,102,.45);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0),0 12px 30px rgba(37,211,102,.45);} }

/* ============================================================
   HERO SLIDER (full-width, under navbar)
   ============================================================ */
.hero-slider { position: relative; min-height: clamp(600px, 92vh, 900px); background: var(--navy); overflow: hidden; display: flex; align-items: center; }
.hero-slider .slider__track { position: absolute; inset: 0; z-index: 0; height: 100%; }
.hero-slider .slide { min-width: 100%; height: 100%; aspect-ratio: auto; position: relative; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,16,32,.94) 0%, rgba(9,16,32,.74) 42%, rgba(9,16,32,.4) 74%, rgba(9,16,32,.6) 100%); }
.hero-slider__content { position: relative; z-index: 5; width: 100%; padding-top: 100px; padding-bottom: 56px; }
.hero-slider__content h1 { color: #fff; }
.hero-slider__content h1 .accent { color: var(--steel-300); }
.hero-slider__content .lead { color: #c3cee0; margin-top: 22px; max-width: 610px; }
.hero-slider__content .hero__actions { margin-top: 34px; }
.hero-slider .slider__nav { background: rgba(255,255,255,.12); }
.hero-slider .slider__dots { bottom: 30px; }
@media (max-width: 640px) { .hero-slider .slider__nav { display: none; } .hero-slider__content { padding-top: 120px; } }

/* ============================================================
   SLIDER PRIMITIVES (shared by the hero slider)
   ============================================================ */
.slider__track { display: flex; transition: transform .7s var(--ease); }
.slide { position: relative; min-width: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; transition: background .3s, transform .3s; z-index: 3; }
.slider__nav:hover { background: rgba(255,255,255,.28); }
.slider__nav svg { width: 22px; height: 22px; }
.slider__nav.prev { left: 20px; } .slider__nav.next { right: 20px; }
.slider__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.slider__dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.4); transition: width .3s, background .3s; }
.slider__dots button.active { width: 28px; background: var(--steel-300); }

/* ============================================================
   UPLOADS GALLERY (service pages)
   ============================================================ */
.upgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.upitem { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--navy-800); }
.upitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.upitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(14,27,51,.85)); opacity: 0; transition: opacity .4s; }
.upitem:hover img { transform: scale(1.07); }
.upitem:hover::after { opacity: 1; }
.upitem__cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; font-weight: 700; font-size: .98rem; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.upitem:hover .upitem__cap { opacity: 1; transform: none; }
.upitem__zoom { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .4s; }
.upitem:hover .upitem__zoom { opacity: 1; }
.upitem__zoom svg { width: 17px; height: 17px; }
.upcount { text-align: center; color: var(--steel-300); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 26px; }
@media (max-width: 860px) { .upgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .upgrid { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"]{ transition-delay: .08s; }
[data-reveal][data-delay="2"]{ transition-delay: .16s; }
[data-reveal][data-delay="3"]{ transition-delay: .24s; }
[data-reveal][data-delay="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { [data-reveal]{ opacity:1; transform:none; transition:none; } .marquee__track{ animation:none; } .wa{ animation:none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4, .grid-3, .stats, .process { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .industries { grid-template-columns: repeat(2,1fr); }
  .masonry { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .grid-2, .split { grid-template-columns: minmax(0,1fr); }
  .split--reverse .split__media { order: 0; }
  .split__badge { left: 20px; bottom: 20px; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .stats, .process, .grid-3, .industries { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .container { padding-inline: 20px; }
}
