/* ==========================================================================
   MP Ensystems Products and Services Pte. Ltd. — clean rebuild (no Squarespace runtime)
   Palette taken directly from the original Squarespace site's own custom CSS
   (#126a96 used for the "Our Projects" buttons, #139B48 used for the
   "scroll to top" accent) — these are the site's real brand colors.
   ========================================================================== */

:root{
  --navy:#0A1B51;         /* headings, nav, footer */
  --blue:#126A96;         /* site's own accent color — links, primary buttons */
  --blue-hover:#0E5478;   /* darkened accent for hover */
  --blue-tint:#E8F1F6;    /* light tint of accent — icon backgrounds, hover fills */
  --green:#139B48;        /* site's own secondary accent */
  --green-tint:#E7F5EC;   /* light tint of secondary accent */
  --ink-900:#16201A;
  --ink-600:#4C594F;
  --bg:#FFFFFF;
  --bg-tint:#F5F5F7;
  --font-head:"Poppins","Segoe UI",system-ui,sans-serif;
  --font-body:"Inter","Segoe UI",system-ui,sans-serif;
  --container:1180px;
  --radius:16px;
  --shadow:0 16px 40px rgba(10,27,81,.12);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; height:100%; }
body{
  margin:0; font-family:var(--font-body); color:var(--ink-900); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.65;
  min-height:100%; display:flex; flex-direction:column;
}
main{ flex:1 0 auto; display:flex; flex-direction:column; }
.site-header, .site-footer, .footer-copyright{ flex-shrink:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:700; margin:0; line-height:1.2; color:var(--navy); }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:88px 0; }
.section-sm{ padding:56px 0; }
.bg-tint{ background:var(--bg-tint); }
.section-head{ max-width:640px; margin-bottom:40px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.7rem,3.2vw,2.3rem); }
.eyebrow{ display:inline-block; font-weight:700; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--blue); margin-bottom:10px; }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding:13px 26px; border-radius:999px;
  font-weight:700; font-size:.92rem; border:1.5px solid transparent; transition:all .2s ease;
}
.btn-outline{ border-color:rgba(10,27,81,.22); color:var(--navy); }
.btn-outline:hover{ background:var(--blue-tint); border-color:var(--blue); }
.btn[aria-disabled="true"]{ opacity:.55; cursor:not-allowed; pointer-events:none; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100; background:#fff;
  border-bottom:1px solid rgba(10,27,81,.08);
}
.nav-wrap{ max-width:1429px; margin:0 auto; padding:24.6px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand-logo{ height:60px; width:auto; }
.nav-main{ display:flex; align-items:center; gap:32px; }
.nav-main a{ font-weight:600; font-size:1rem; color:var(--navy); transition:color .2s ease; }
.nav-main a:hover{ color:var(--blue); }
.nav-toggle{ display:none; background:none; border:none; padding:6px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:24px; height:2px; background:var(--navy); border-radius:2px; position:relative; transition:.2s ease;
}
.nav-toggle span::before{ position:absolute; top:-8px; }
.nav-toggle span::after{ position:absolute; top:8px; }

/* ---------- Hero ---------- */
.hero{ padding:56px 0 48px; background:var(--bg-tint); text-align:center; }
.hero-inner{ max-width:1000px; }
.hero-banner-wrap{ width:952px; max-width:100%; aspect-ratio:952/191; margin:0 auto 28px; border-radius:12px; overflow:hidden; background:#fff; }
.hero-banner{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.hero-tagline{ color:var(--ink-600); font-size:1.05rem; font-weight:500; max-width:800px; margin:0 auto; white-space:nowrap; }

/* ---------- About ---------- */
.split{ display:grid; grid-template-columns:1fr 1.2fr; gap:52px; align-items:center; }
.split img{ border-radius:var(--radius); box-shadow:var(--shadow); width:100%; height:465px; object-fit:cover; }
.split p{ color:var(--ink-600); font-size:1.02rem; }

/* ---------- Services ---------- */
.services-feature{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; margin-bottom:64px; }
.services-copy p{ color:var(--navy); font-size:1.08rem; line-height:1.7; margin-bottom:22px; }
.services-copy p:last-child{ margin-bottom:0; }
.services-media{ background:var(--green-tint); border-radius:6px; padding:28px; }
.services-media img{ width:100%; height:auto; }
.service-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; text-align:center; }
.service-card img{ width:120px; height:120px; object-fit:contain; margin:0 auto 20px; }
.service-card h4{ font-size:1.05rem; font-weight:500; color:var(--navy); }

/* ---------- Team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,310px)); gap:24px; justify-content:center; }
.team-card{ text-align:center; }
.team-card img{ width:310px; max-width:100%; height:286.36px; object-fit:cover; object-position:top; border-radius:var(--radius); box-shadow:var(--shadow); margin:0 auto 16px; }
.team-card h4{ font-size:1.05rem; margin-bottom:4px; }
.team-card .role{ color:var(--blue); font-weight:600; font-size:.88rem; display:block; }
.team-card .team-readmore{
  display:inline-flex; align-items:center; gap:6px; margin-top:16px; padding:10px 24px;
  border-radius:999px; background:var(--blue); color:#fff; font-weight:700; font-size:.88rem;
  transition:background .2s ease;
}
.team-card .team-readmore:hover{ background:var(--blue-hover); color:#fff; }
#our-team .section-head h2{ font-size:clamp(1.3rem,2.6vw,1.9rem); white-space:nowrap; }

/* ---------- Career ---------- */
.careers-band{ text-align:center; padding:64px 24px; border-radius:var(--radius); background:var(--green-tint); }
.careers-band h2{ margin-bottom:18px; }

/* ---------- Footer / Contact Us ---------- */
.site-footer{ background:#F2F8FB; color:var(--ink-900); padding:88px 0 0; }
.site-footer > .container{ padding-bottom:56px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:start; }
.footer-map{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); min-height:340px; }
.footer-map iframe{ width:100%; height:100%; min-height:340px; border:0; display:block; }
.footer-contact{ display:flex; flex-direction:column; gap:22px; }
.footer-logo{ width:276.92px; height:60px; max-width:100%; }
.footer-contact .contact-item{ display:flex; gap:16px; align-items:flex-start; }
.footer-contact .icon{
  width:44px; height:44px; border-radius:12px; background:var(--blue-tint); color:var(--blue);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.footer-contact b{ display:block; font-size:1rem; color:var(--navy); margin-bottom:6px; }
.footer-contact span{ color:var(--ink-600); font-size:.95rem; line-height:1.65; }

.footer-copyright{ background:var(--blue); color:rgba(255,255,255,.9); padding:24px 0; font-size:.88rem; border-top:1px solid rgba(255,255,255,.18); }
.footer-copyright .footer-simple{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.footer-links{ display:flex; flex-direction:row; align-items:center; gap:24px; flex-wrap:wrap; }
.footer-links a{ color:rgba(255,255,255,.9); font-weight:500; }
.footer-links a:hover{ color:#fff; }

/* ---------- Bio page (team member detail) ---------- */
.bio-page{ max-width:var(--container); margin:0 auto; padding:64px 24px 100px; }
.bio-grid{ display:grid; grid-template-columns:1fr 1.4fr; gap:48px; align-items:start; }
.bio-photo{ width:100%; height:420px; object-fit:cover; object-position:24% 24%; border-radius:var(--radius); box-shadow:var(--shadow); }
.bio-content h1{ font-size:1.9rem; margin-bottom:8px; }
.bio-content .role{ display:block; color:var(--green); font-weight:700; font-size:1.05rem; margin-bottom:20px; }
.bio-content p{ color:var(--ink-600); font-size:1.02rem; line-height:1.75; }

/* ---------- Scroll reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-group > .reveal:nth-child(1){ transition-delay:0ms; }
.reveal-group > .reveal:nth-child(2){ transition-delay:110ms; }
.reveal-group > .reveal:nth-child(3){ transition-delay:220ms; }
.reveal-group > .reveal:nth-child(4){ transition-delay:330ms; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- Legal pages (Privacy Policy / Terms & Conditions) ---------- */
.legal-page{ max-width:var(--container); margin:0 auto; padding:64px 24px 100px; }
.legal-page h1{ font-size:2.0375rem; color:var(--blue); margin-bottom:26px; }
.legal-page .legal-divider{ border:none; border-top:1px solid rgba(10,27,81,.15); margin:0 0 40px; }
.legal-page h2{ font-size:1.2rem; color:var(--blue); margin:38px 0 14px; }
.legal-page p{ color:var(--ink-600); font-size:.98rem; line-height:1.8; margin-bottom:18px; }

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .split{ grid-template-columns:1fr; }
  .split img{ height:260px; order:-1; }
  .services-feature{ grid-template-columns:1fr; }
  .services-media{ order:-1; }
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-contact .contact-item{ text-align:left; }
  .bio-grid{ grid-template-columns:1fr; }
  .bio-photo{ height:300px; }
  .nav-main{
    position:fixed; top:109px; right:0; bottom:0; left:0; background:#fff; flex-direction:column; align-items:flex-start;
    padding:24px; gap:18px; transform:translateX(100%); transition:transform .25s ease; overflow-y:auto;
  }
  .nav-main.mobile-open{ transform:translateX(0); }
  .nav-toggle{ display:block; }
}
@media (max-width:600px){
  .section{ padding:56px 0; }
  .service-grid{ grid-template-columns:1fr 1fr; }
  .footer-copyright .footer-simple{ flex-direction:column; text-align:center; }
  .hero-tagline{ white-space:normal; font-size:.95rem; }
  #our-team .section-head h2{ white-space:normal; font-size:1.5rem; }
}
