/* ============================================================
   SCBMB Trustee Berhad — 3rd Eye
   Design system & styles for the static marketing site
   Palette inspired by the Standard Chartered brand (navy / blue / green)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy-900: #071a33;
  --navy-800: #0b2447;
  --navy-700: #10305c;
  --blue-600: #0061c7;
  --blue-500: #1f78d1;
  --blue-050: #eaf2fc;
  --green-600: #00913d;
  --green-500: #00a546;
  --green-050: #e8f6ee;

  /* Neutrals */
  --ink:      #0f1b2d;
  --slate-700:#334155;
  --slate-600:#475569;
  --slate-500:#64748b;
  --slate-400:#94a3b8;
  --line:     #e4e9f0;
  --line-soft:#eef2f7;
  --bg:       #f6f8fb;
  --bg-alt:   #ffffff;
  --white:    #ffffff;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (8pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(15,27,45,.06);
  --sh-sm: 0 2px 8px rgba(15,27,45,.06);
  --sh-md: 0 10px 30px rgba(15,27,45,.08);
  --sh-lg: 0 24px 60px rgba(11,36,71,.14);

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.18; margin: 0 0 var(--sp-4); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 var(--sp-4); color: var(--slate-600); }
ul { color: var(--slate-600); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-soft { background: var(--bg); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green-500); border-radius: 2px; }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; margin: 0 auto var(--sp-7); }
.section-head p { font-size: 1.06rem; }
.lead { font-size: 1.12rem; color: var(--slate-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: 13px 24px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--sh-md); }
.btn-accent { background: var(--green-500); color: #fff; box-shadow: var(--sh-sm); }
.btn-accent:hover { background: var(--green-600); color: #fff; box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--sh-sm); border-bottom-color: var(--line); background: rgba(255,255,255,.95); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); width: 100%; }
.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--slate-700); font-weight: 500; font-size: .96rem;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--blue-600); background: var(--blue-050); }
.nav-links a.active { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(560px, 82vh, 760px);
  padding: calc(var(--header-h) + var(--sp-7)) 0 var(--sp-7);
  border-bottom: 4px solid var(--green-500);
  background:
    linear-gradient(90deg, rgba(7,26,51,.92) 0%, rgba(7,26,51,.74) 32%, rgba(7,26,51,.34) 58%, rgba(7,26,51,.06) 100%),
    url('../img/SCB_Trustee_Banner.svg') no-repeat center right / cover;
}
.hero::after { display: none; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 640px; }
.hero h1 { color: #fff; }
.hero-inner h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: var(--sp-5); text-shadow: 0 2px 18px rgba(3,12,28,.45);
}
.hero-inner h1::after {
  content: ""; display: block; width: 68px; height: 4px; border-radius: 2px;
  background: var(--green-500); margin-top: var(--sp-4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #eaf2fc; padding: 7px 14px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 600; margin-bottom: var(--sp-5);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(3,12,28,.45)); }

/* trust strip under hero */
.trust-strip { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-8); padding-top: var(--sp-5); }
.trust-strip ul { display: flex; flex-wrap: wrap; gap: var(--sp-6); list-style: none; margin: 0; padding: 0; }
.trust-strip li { display: flex; align-items: center; gap: var(--sp-2); color: #cfdcee; font-size: .95rem; font-weight: 500; }
.trust-strip .ico { width: 20px; height: 20px; color: #7fe3a6; flex: none; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); box-shadow: var(--sh-xs); }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; line-height: 1.1; }
.stat .num small { font-size: 1.1rem; font-weight: 700; color: var(--blue-600); }
.stat .label { color: var(--slate-500); font-size: .95rem; margin-top: 4px; }

/* ---------- Split content rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split--media-left .media { order: -1; }
.media img { width: 100%; height: auto; }
.check-list { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--slate-700); }
.check-list .ico { width: 22px; height: 22px; color: var(--green-500); flex: none; margin-top: 2px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); }
.cards-flow .card { flex: 1 1 320px; max-width: 360px; }
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-7); }
.value { display: flex; gap: var(--sp-4); align-items: flex-start; }
.value .ico-wrap { width: 46px; height: 46px; border-radius: var(--r-md); background: rgba(255,255,255,.12); color: #7fe3a6; display: flex; align-items: center; justify-content: center; flex: none; }
.value .ico-wrap .ico { width: 24px; height: 24px; }
.value h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.value p { color: #cddbec; font-size: .95rem; margin: 0; }

/* ---------- People row slider ---------- */
.card-slider { position: relative; margin-top: var(--sp-7); }
.slider-viewport {
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-track {
  display: flex; flex-wrap: nowrap; gap: var(--sp-5); width: max-content;
  list-style: none; margin: 0; padding: 6px 2px 16px;
}
.slide-tile {
  scroll-snap-align: start; flex: 0 0 auto; width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-4); box-shadow: var(--sh-xs);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.slide-tile:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: #d4deea; }
.slide-ico {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-050); color: var(--blue-600);
}
.slide-ico .ico { width: 42px; height: 42px; }
.slide-tile:nth-child(3n+2) .slide-ico { background: var(--green-050); color: var(--green-600); }
.slide-tile:nth-child(3n)   .slide-ico { background: #e9eef6; color: var(--navy-700); }
.slide-tile h3 { margin: 0; font-size: 1.06rem; }

.slider-btn {
  position: absolute; top: calc(50% - 5px); transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy-800); box-shadow: var(--sh-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.slider-btn:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.slider-btn.prev { left: -12px; }
.slider-btn.next { right: -12px; }
.slider-btn[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.slider-btn .ico { width: 22px; height: 22px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--sh-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #d4deea; }
.card h3 { margin-bottom: var(--sp-2); }
.card p { margin: 0; font-size: .98rem; }
.card-ico {
  width: 52px; height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: var(--blue-050); color: var(--blue-600); margin-bottom: var(--sp-4);
}
.card-ico .ico { width: 26px; height: 26px; }
.card-ico.green { background: var(--green-050); color: var(--green-600); }
.card-ico.navy { background: #e9eef6; color: var(--navy-700); }

/* feature card with top rule */
.feature { border-top: 3px solid var(--blue-600); }
.feature:nth-child(3n+2) { border-top-color: var(--green-500); }
.feature:nth-child(3n) { border-top-color: var(--navy-700); }

/* ---------- Why choose / trust panel ---------- */
.panel {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: #fff; border-radius: var(--r-xl); padding: var(--sp-8);
  position: relative; overflow: hidden;
}
.panel h2 { color: #fff; }
.panel p { color: #d7e3f2; }
.panel .check-list li { color: #e7eef8; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: stretch; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-7); box-shadow: var(--sh-xs); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
.info-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-list .ico-wrap { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-050); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex: none; }
.info-list .ico-wrap .ico { width: 22px; height: 22px; }
.info-list .k { font-weight: 700; color: var(--navy-800); margin: 0 0 2px; font-size: .95rem; }
.info-list .v { margin: 0; color: var(--blue-600); font-size: .98rem; }
.info-list .v a { word-break: break-word; }
.hours-note { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line-soft); }
.contact-media { border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: var(--sp-6); box-shadow: var(--sh-xs); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--blue-600), var(--navy-700));
  color: #fff; border-radius: var(--r-xl); padding: var(--sp-8); text-align: center;
  box-shadow: var(--sh-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe7f6; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6da; padding: var(--sp-8) 0 var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { color: #b9c6da; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); font-size: .95rem; }
.footer-brand img { height: 44px; background: #fff; border-radius: var(--r-sm); padding: 6px 12px; }
.footer-brand p { color: #93a4bd; margin-top: var(--sp-4); font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: .88rem; color: #8195b0;
}
.footer-legal { max-width: 70ch; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-600); color: #fff; border: none; cursor: pointer; box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background .2s ease; z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-700); }
.to-top .ico { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; background: #fff; color: var(--navy-800);
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 2000; box-shadow: var(--sh-md);
  transition: top .2s ease; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .hero { min-height: clamp(480px, 72vh, 640px); }
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split--media-left .media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: var(--sp-8) 0; }
  /* On small screens, darken more evenly and keep the subject centred behind the copy */
  .hero {
    min-height: 74vh;
    background:
      linear-gradient(180deg, rgba(7,26,51,.80) 0%, rgba(7,26,51,.66) 100%),
      url('../img/SCB_Trustee_Banner.svg') no-repeat center center / cover;
  }
  .nav-toggle { display: flex; }
  .slider-btn { display: none; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-md);
    padding: var(--sp-3); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav-links a:hover { background: var(--blue-050); }
  .nav .desk-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .panel, .cta-band { padding: var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-bottom { flex-direction: column; }
  .value-strip { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .slide-tile { width: 78vw; max-width: 320px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
