/* =========================================================================
   MILESTONE GLOBAL BANK
   Design system — "The Summit"
   Brand palette: Primary Green #3ED32F + Primary Blue #07109F + Grey #8A8A8A,
   on clean white. Blue carries dominant surfaces & headings (it holds
   contrast at any size); green is the high-energy accent — CTAs, badges,
   stat highlights, active states — always paired with dark ink so it stays
   readable. Grey is quiet supporting text and hairlines.
   Type: Manrope (display) / Inter (body) / IBM Plex Mono (data & labels)
   Signature: the summit mark — two peaks meeting, echoed in section
   dividers and card corners.
   ========================================================================= */

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

:root{
  /* --- palette --- */
  --ink:        #14161F;   /* near-black, cool cast — headings on light, body text */
  --ink-soft:   #595B66;   /* secondary body text */
  --blue:       #07109F;   /* PRIMARY BRAND BLUE — headers, hero/footer, primary CTA */
  --blue-2:     #0A14C2;   /* hover / brighter */
  --blue-deep:  #050B70;   /* deepest sections, pressed state */
  --blue-pale:  #EBEBF7;   /* light tint panels, chips */
  --blue-pale-2:#CDCFEB;   /* borders/accents on blue tints */
  --green:      #3ED32F;   /* PRIMARY BRAND GREEN — accent CTAs (w/ dark ink), badges, highlights */
  --green-2:    #34BC27;   /* hover on green elements */
  --green-deep: #1D7A17;   /* text-safe green (links, checks, small labels) */
  --green-pale: #E3F9E0;   /* light tint panels, success/halal badges */
  --grey:       #8A8A8A;   /* BRAND GREY — quiet meta text, borders */
  --grey-dark:  #595959;   /* readable secondary paragraphs */
  --grey-light: #E7E7EC;   /* hairline / card border */
  --grey-pale:  #F4F5F9;   /* recessed panels, alt sections */
  --paper:      #FFFFFF;   /* page background */
  --paper-2:    #F4F5F9;   /* recessed panels (alias of grey-pale) */
  --card:       #FFFFFF;
  --line:       #E7E7EC;
  --line-strong:#D3D5E0;
  --rust:       #C0392B;   /* errors, sparing */
  --ok:         #1D7A17;
  --amber:      #B8863A;   /* status colour only (admin pending badges) — not a brand colour */
  --amber-deep: #8F6526;

  /* --- type --- */
  --f-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(7,16,159,.05), 0 10px 28px rgba(7,16,159,.07);
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; }
[id]{ scroll-margin-top:120px; }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
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(--f-display);
  color:var(--blue);
  margin:0 0 .5em;
  line-height:1.14;
  font-weight:700;
}
h1{ font-size:clamp(2.3rem,5vw,3.8rem); font-weight:800; letter-spacing:-.02em; }
h2{ font-size:clamp(1.8rem,3.2vw,2.4rem); letter-spacing:-.01em; }
h3{ font-size:1.28rem; }
p{ margin:0 0 1em; }
.container{ width:min(1180px, 92%); margin-inline:auto; }
.eyebrow{
  font-family:var(--f-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--green-deep);
  display:flex; align-items:center; gap:.6em;
  margin-bottom:.9em;
  font-weight:600;
}
.eyebrow::before{
  content:''; width:22px; height:2px; background:var(--green); display:inline-block; border-radius:2px;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--blue); outline-offset:2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------------------------------------------------------------- seal / mark --- */
.seal{
  --s: 88px;
  width:var(--s); height:var(--s);
  border-radius:50%;
  border:1.5px solid var(--blue-pale-2);
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  flex-shrink:0;
}
.seal::before{
  content:''; position:absolute; inset:6px; border-radius:50%;
  border:1px dashed var(--green); opacity:.55;
}
.seal img{ width:64%; height:64%; object-fit:contain; }

/* ================================================================== HEADER / NAV === */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.topbar{
  background:var(--blue);
  color:#fff;
  font-family:var(--f-mono);
  font-size:.74rem;
  letter-spacing:.03em;
}
.topbar .container{ display:flex; justify-content:space-between; align-items:center; padding:.5rem 0; flex-wrap:wrap; gap:.4rem; }
.topbar a{ color:var(--blue-pale); }
.topbar-links{ display:flex; gap:1.4rem; align-items:center; }
.topbar-links a:hover{ color:var(--green); }
.topbar-mobile{ display:none; gap:1rem; align-items:center; font-size:.78rem; }

.navwrap{ display:flex; align-items:center; justify-content:space-between; padding:1.1rem 0; }
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand-mark{
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.brand-name{ font-family:var(--f-display); font-weight:800; font-size:1.2rem; color:var(--blue); line-height:1.05; }
.brand-name small{ display:block; font-family:var(--f-mono); font-weight:600; font-size:.6rem; letter-spacing:.14em; color:var(--grey); text-transform:uppercase; margin-top:.3em; }

.mainnav{ display:flex; align-items:center; }
.nav-scroll{ display:flex; align-items:center; gap:2rem; }
.nav-bottom{ display:none; }
.mainnav a{
  font-size:.92rem; font-weight:600; color:var(--ink);
  position:relative; padding:.2rem 0;
}
.mainnav a::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background:var(--green); transform:scaleX(0); transform-origin:left; transition:transform .2s ease; border-radius:2px;
}
.mainnav a:hover::after, .mainnav a.active::after{ transform:scaleX(1); }
.mainnav a.active{ color:var(--blue); }
.navicon{ display:none; } /* mobile-only nav icons — see media query below */

.nav-cta{ display:flex; align-items:center; gap:.7rem; }
.navtoggle{ display:none; }

/* ---------------------------------------------------------- MEGA MENU --- */
.nav-item{ position:relative; display:flex; align-items:center; }
.nav-item > a{ display:flex; align-items:center; gap:.35em; }
.nav-item > a .chev{ width:12px; height:12px; flex-shrink:0; transition:transform .2s ease; }
.nav-item.has-mega:hover > a .chev,
.nav-item.has-mega.open > a .chev{ transform:rotate(180deg); }

.mega-panel{
  position:absolute; top:100%; left:50%;
  transform:translateX(-50%);
  width:min(780px, 86vw);
  padding-top:18px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s ease, visibility .18s;
  z-index:70;
}
.nav-item.has-mega:hover .mega-panel,
.nav-item.has-mega.open .mega-panel{
  opacity:1; visibility:visible; pointer-events:auto;
}
.mega-inner{
  display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:2rem;
  background:var(--paper);
  border:1px solid var(--line);
  border-top:3px solid var(--green);
  border-radius:var(--radius);
  box-shadow:0 24px 48px rgba(7,16,159,.14);
  padding:1.8rem;
  transform:translateY(8px);
  transition:transform .18s ease;
}
.nav-item.has-mega:hover .mega-inner,
.nav-item.has-mega.open .mega-inner{
  transform:translateY(0);
}
.mega-heading{
  display:block; font-family:var(--f-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--grey); margin-bottom:.9rem; padding-bottom:.6rem; border-bottom:1px solid var(--line);
}
.mega-col{ display:flex; flex-direction:column; }
.mega-col-services{ gap:.2rem; }
.mega-link{
  display:flex; align-items:flex-start; gap:.7rem; padding:.55rem .4rem; border-radius:var(--radius-sm);
  transition:background .15s ease;
}
.mega-link:hover{ background:var(--paper-2); }
.mega-link .mega-icon{
  width:32px; height:32px; border-radius:50%; background:var(--blue-pale); border:1px solid var(--blue-pale-2);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--blue);
}
.mega-link .mega-icon svg{ width:16px; height:16px; }
.mega-link b{ display:block; font-size:.88rem; color:var(--blue); font-weight:700; }
.mega-link small{ display:block; font-size:.76rem; color:var(--grey); margin-top:.15em; line-height:1.35; }
.mega-col-links{ gap:.1rem; }
.mega-col-links a{
  padding:.5rem .4rem; font-size:.88rem; font-weight:600; color:var(--ink); border-radius:var(--radius-sm);
}
.mega-col-links a:hover{ background:var(--paper-2); color:var(--blue); }
.mega-cta{
  grid-column:1 / -1; margin-top:.6rem; padding-top:1.4rem; border-top:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap;
}
.mega-cta h4{ font-family:var(--f-display); color:var(--blue); margin:0 0 .2em; font-size:1.05rem; }
.mega-cta p{ margin:0; font-size:.84rem; color:var(--grey-dark); }

/* ================================================================== BUTTONS ======= */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--f-body); font-weight:700; font-size:.92rem;
  padding:.85em 1.6em; border-radius:999px;
  border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--blue-2); }
.btn-gold{ background:var(--green); color:var(--ink); box-shadow:0 8px 20px rgba(62,211,47,.28); }
.btn-gold:hover{ background:var(--green-2); color:var(--ink); }
.btn-ghost{ background:transparent; color:var(--blue); border-color:var(--blue); }
.btn-ghost:hover{ background:var(--blue); color:#fff; }
.btn-ghost-light{ background:transparent; color:#fff; border-color:rgba(255,255,255,.55); }
.btn-ghost-light:hover{ background:rgba(255,255,255,.12); }
.btn-portal{ background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.35); gap:.5em; }
.btn-portal:hover{ background:rgba(255,255,255,.18); }
.btn-sm{ padding:.55em 1.2em; font-size:.82rem; }
.btn-block{ width:100%; justify-content:center; }

/* ================================================================== HERO ========== */
.hero{
  position:relative; overflow:hidden;
  background:var(--blue);
  color:#fff;
  padding:5.5rem 0 6rem;
}
.hero::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(560px 420px at 92% -10%, rgba(62,211,47,.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(62,211,47,.10), transparent 60%);
  pointer-events:none;
}
.hero-grid{ position:relative; display:grid; grid-template-columns:1.15fr .85fr; gap:3.5rem; align-items:center; }
.hero h1{ color:#fff; }
.hero .eyebrow{ color:var(--green); }
.hero .eyebrow::before{ background:var(--green); }
.hero-lead{ font-size:1.12rem; color:rgba(255,255,255,.84); max-width:46ch; }
.hero-actions{ display:flex; gap:1rem; margin-top:2rem; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:2.2rem; margin-top:3rem; flex-wrap:wrap; }
.hero-stats div{ font-family:var(--f-mono); }
.hero-stats b{ display:block; font-family:var(--f-display); font-size:1.9rem; color:var(--green); font-weight:800; }
.hero-stats span{ font-size:.72rem; letter-spacing:.05em; text-transform:uppercase; opacity:.78; }

.hero-panel{
  background:#fff; color:var(--ink);
  border-radius:var(--radius);
  padding:2rem;
  box-shadow:0 30px 60px rgba(0,0,0,.25);
  border-top:4px solid var(--green);
}
.hero-panel .seal{ margin-bottom:1rem; }
.hero-panel h3{ margin-bottom:.3rem; }
.hero-panel .fine{ font-family:var(--f-mono); font-size:.72rem; color:var(--green-deep); letter-spacing:.04em; text-transform:uppercase; }
.passbook-line{ display:flex; justify-content:space-between; gap:1rem; padding:.6rem 0; border-bottom:1px dashed var(--line-strong); font-size:.88rem; }
.passbook-line:last-child{ border-bottom:none; }
.passbook-line span{ color:var(--grey-dark); }
.passbook-line b{ font-family:var(--f-mono); color:var(--blue); text-align:right; }

/* ------------------------------------------------------------ HERO SLIDER --- */
.hero-slider{ padding:0; }
.slider-bg{ position:absolute; inset:0; }
.slider-bg .slide-bg{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition:opacity 1s ease;
}
.slider-bg .slide-bg.active{ opacity:1; }
.slider-bg::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(5,11,112,.95) 0%, rgba(7,16,159,.90) 38%, rgba(7,16,159,.58) 68%, rgba(7,16,159,.42) 100%);
}
.hero-slider .hero-grid{ padding:5.5rem 0 6rem; }
.slider-content{ position:relative; min-height:320px; }
.slider-content .slide-text{
  position:absolute; inset:0 auto 0 0; width:100%;
  opacity:0; visibility:hidden; transform:translateY(14px);
  transition:opacity .55s ease, transform .55s ease, visibility .55s;
}
.slider-content .slide-text.active{ position:relative; opacity:1; visibility:visible; transform:translateY(0); }
.slider-dots{
  position:relative; z-index:2; display:flex; justify-content:center; gap:.6rem; padding-bottom:2.2rem;
}
.slider-dots button{
  width:9px; height:9px; border-radius:50%; border:1px solid rgba(255,255,255,.5);
  background:transparent; padding:0; cursor:pointer; transition:background .2s ease, width .2s ease;
}
.slider-dots button.active{ background:var(--green); border-color:var(--green); width:22px; border-radius:5px; }
.slider-arrow{
  position:absolute; top:42%; transform:translateY(-50%); z-index:3;
  width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.4);
  background:rgba(7,16,159,.35); color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:1.3rem; line-height:1; transition:background .2s ease, border-color .2s ease;
}
.slider-arrow:hover{ background:rgba(255,255,255,.15); border-color:var(--green); }
.slider-arrow.prev{ left:1rem; }
.slider-arrow.next{ right:1rem; }
@media (max-width: 720px){
  .slider-arrow{ display:none; }
  .slider-content{ min-height:440px; }
}

/* ================================================================== SECTIONS ====== */
.section{ padding:5rem 0; }
.section-alt{ background:var(--paper-2); }
.section-head{ max-width:62ch; margin-bottom:3rem; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-dark{ background:var(--blue); color:#fff; }
.section-dark h2{ color:#fff; }
.section-dark .eyebrow{ color:var(--green); }
.section-dark .eyebrow::before{ background:var(--green); }

/* card grid */
.grid{ display:grid; gap:1.6rem; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); padding:1.9rem;
  box-shadow:var(--shadow-card);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform:translateY(-3px); border-color:var(--blue-pale-2); box-shadow:0 18px 36px rgba(7,16,159,.12); }
.card .num{ font-family:var(--f-mono); color:var(--grey); font-size:.78rem; letter-spacing:.06em; }
.card-icon{
  width:48px; height:48px; border-radius:14px; background:var(--green-pale);
  border:1px solid #CDF0C8;
  display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem;
}
.card-icon svg{ width:22px; height:22px; color:var(--green-deep); }
.card h3{ margin-bottom:.4rem; }
.card p{ color:var(--grey-dark); font-size:.94rem; margin-bottom:0; }

.card-link{ margin-top:1rem; font-weight:700; font-size:.86rem; color:var(--blue); display:inline-flex; align-items:center; gap:.4em; }

/* value strip */
.value-strip{ display:flex; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.value-strip div{ flex:1; padding:1.6rem 1rem; text-align:center; border-right:1px solid var(--line); }
.value-strip div:last-child{ border-right:none; }
.value-strip b{ display:block; font-family:var(--f-display); font-size:1.7rem; color:var(--blue); font-weight:800; }
.value-strip span{ font-family:var(--f-mono); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--grey); }

/* "Why choose Milestone" comparison table */
.compare-table{
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  background:var(--card); box-shadow:var(--shadow-card);
}
.compare-row{ display:grid; grid-template-columns:1.1fr 1fr 1fr; border-bottom:1px solid var(--line); }
.compare-row:last-child{ border-bottom:none; }
.compare-head{ background:var(--paper-2); }
.compare-head .compare-col-them, .compare-head .compare-col-us{
  font-family:var(--f-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700;
  color:var(--grey); display:flex; align-items:center;
}
.compare-label{ padding:1rem 1.2rem; font-weight:700; color:var(--ink); background:var(--paper-2); display:flex; align-items:center; font-size:.92rem; }
.compare-col-them, .compare-col-us{ padding:1rem 1.2rem; font-size:.88rem; display:flex; align-items:center; gap:.6em; }
.compare-col-them{ color:var(--grey); }
.compare-col-them::before{ content:'\2715'; color:#C7C9D6; font-size:.85em; flex-shrink:0; }
.compare-col-us{ color:var(--green-deep); font-weight:700; background:var(--green-pale); }
.compare-col-us::before{ content:'\2713'; color:var(--green-deep); flex-shrink:0; }
.compare-head .compare-col-them::before, .compare-head .compare-col-us::before{ content:''; }

/* CTA banner */
.cta-banner{
  background:var(--blue); color:#fff;
  border-radius:var(--radius); padding:3rem; display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-banner::after{ content:''; position:absolute; inset:0; background:radial-gradient(480px 300px at 100% 0%, rgba(62,211,47,.18), transparent 65%); }
.cta-banner h2{ color:#fff; margin-bottom:.3rem; position:relative; }
.cta-banner p{ color:rgba(255,255,255,.82); margin:0; position:relative; }
.cta-banner > *{ position:relative; }

/* timeline / process */
.timeline{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; counter-reset:step; }
.timeline li{ counter-increment:step; position:relative; padding-top:2.6rem; border-top:2px solid var(--line-strong); }
.timeline li::before{
  content:counter(step, decimal-leading-zero);
  position:absolute; top:-.85em; left:0;
  font-family:var(--f-mono); font-size:.85rem; color:var(--green-deep); font-weight:600;
  background:var(--paper); padding-right:.6em;
}
.timeline h4{ font-family:var(--f-body); font-weight:700; font-size:1rem; color:var(--blue); margin-bottom:.3rem; }
.timeline p{ font-size:.88rem; color:var(--grey-dark); }

/* ================================================================== FOOTER ======== */
.site-footer{ background:var(--blue-deep); color:rgba(255,255,255,.85); padding:4rem 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr; gap:2.2rem; padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,.15); }
.site-footer h4{ color:#fff; font-family:var(--f-mono); font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1.1rem; }
.site-footer a{ display:block; padding:.3rem 0; font-size:.9rem; color:rgba(255,255,255,.72); }
.site-footer a:hover{ color:var(--green); }
.footer-brand p{ color:rgba(255,255,255,.68); font-size:.9rem; max-width:32ch; }
.footer-bottom{ display:flex; justify-content:space-between; padding:1.6rem 0; font-size:.8rem; color:rgba(255,255,255,.55); flex-wrap:wrap; gap:.6rem; }
.footer-bottom a{ color:rgba(255,255,255,.8); text-decoration:underline; text-underline-offset:2px; }
.footer-bottom a:hover{ color:#fff; }
.footer-legal-note{ font-size:.76rem; color:rgba(255,255,255,.45); padding:1.1rem 0 1.6rem; border-top:1px solid rgba(255,255,255,.08); }
.social-row{ display:flex; gap:.8rem; }
.social-row a{ width:34px; height:34px; border:1px solid rgba(255,255,255,.3); border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0; }
.social-row a:hover{ border-color:var(--green); background:rgba(62,211,47,.12); }
.social-row svg{ width:16px; height:16px; }

/* ================================================================== BREADCRUMB / PAGE HERO */
.page-hero{ background:var(--blue); color:#fff; padding:3.4rem 0; }
.page-hero h1{ color:#fff; margin-bottom:.4rem; font-size:clamp(2rem,4vw,2.8rem); }
.crumbs{ font-family:var(--f-mono); font-size:.76rem; color:var(--green); letter-spacing:.03em; }
.crumbs a{ color:rgba(255,255,255,.7); }

/* ================================================================== FORMS ========= */
.form-panel{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:2.4rem; box-shadow:var(--shadow-card); }
.form-section-title{ font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:var(--grey); border-bottom:1px solid var(--line); padding-bottom:.6rem; margin:2rem 0 1.2rem; }
.form-section-title:first-child{ margin-top:0; }
.field-row{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.2rem; }
.field{ margin-bottom:1.2rem; }
.field label{ display:block; font-size:.82rem; font-weight:700; color:var(--blue); margin-bottom:.4rem; }
.field .hint{ font-size:.76rem; color:var(--grey); margin-top:.3rem; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=date],
.field input[type=password],
.field input[type=file],
.field select,
.field textarea{
  width:100%; padding:.75em .9em; border:1px solid var(--line-strong); border-radius:var(--radius-sm);
  background:#fff; font-family:var(--f-body); font-size:.94rem; color:var(--ink);
}
.field textarea{ min-height:110px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--blue); }
.radio-group{ display:flex; gap:1.4rem; flex-wrap:wrap; }
.radio-group label{ display:flex; align-items:center; gap:.5em; font-weight:500; font-size:.9rem; color:var(--ink); }
.checkline{ display:flex; gap:.6em; align-items:flex-start; font-size:.86rem; color:var(--grey-dark); }
.required{ color:var(--rust); }

.alert{ padding:1rem 1.2rem; border-radius:var(--radius-sm); font-size:.9rem; margin-bottom:1.5rem; border:1px solid; }
.alert-success{ background:var(--green-pale); border-color:var(--ok); color:var(--ok); }
.alert-error{ background:#FBEAE7; border-color:var(--rust); color:var(--rust); }

/* ================================================================== TABLES ======== */
table.data-table{ width:100%; border-collapse:collapse; font-size:.9rem; }
.data-table th{ font-family:var(--f-mono); text-transform:uppercase; font-size:.7rem; letter-spacing:.06em; color:var(--grey); text-align:left; padding:.8rem; border-bottom:2px solid var(--line-strong); }
.data-table td{ padding:.8rem; border-bottom:1px solid var(--line); }
.data-table tr:hover td{ background:var(--paper-2); }
.badge{ display:inline-block; padding:.25em .7em; border-radius:20px; font-size:.72rem; font-weight:700; font-family:var(--f-mono); }
.badge-pending{ background:#FBF1DC; color:var(--amber-deep); }
.badge-approved{ background:var(--green-pale); color:var(--ok); }
.badge-rejected{ background:#FBEAE7; color:var(--rust); }

/* ================================================================== MISC PAGE BITS  */
.news-card img, .gallery-item img{ aspect-ratio:4/3; object-fit:cover; width:100%; border-radius:var(--radius) var(--radius) 0 0; }
.news-card{ padding:0; overflow:hidden; }
.news-card > a{ display:block; }
.news-card .body{ padding:1.5rem; }
.news-card .date{ font-family:var(--f-mono); font-size:.72rem; color:var(--grey); text-transform:uppercase; letter-spacing:.05em; }
.news-card h3 a:hover{ color:var(--blue-2); }

.gallery-item{ position:relative; overflow:hidden; border-radius:var(--radius); border:1px solid var(--line); }
.gallery-item figcaption{ position:absolute; inset:auto 0 0 0; padding:.8rem 1rem; background:linear-gradient(to top, rgba(5,11,112,.85), transparent); color:#fff; font-size:.82rem; }

.download-row{ display:flex; align-items:center; justify-content:space-between; padding:1.1rem 1.4rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--card); margin-bottom:.9rem; }
.download-row .meta{ font-family:var(--f-mono); font-size:.72rem; color:var(--grey); }
.download-row .filename{ font-weight:700; color:var(--blue); }

.faq-item{ border-bottom:1px solid var(--line); padding:1.3rem 0; }
.faq-item summary{ cursor:pointer; font-weight:700; color:var(--blue); list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; font-family:var(--f-mono); font-size:1.3rem; color:var(--green-deep); }
.faq-item[open] summary::after{ content:'\2013'; }
.faq-item p{ margin-top:.8rem; color:var(--grey-dark); font-size:.92rem; }

.map-embed{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); }
.map-embed iframe{ width:100%; height:340px; border:0; }

.contact-info-item{ display:flex; gap:1rem; padding:1.2rem 0; border-bottom:1px solid var(--line); }
.contact-info-item .card-icon{ margin-bottom:0; }

/* leadership / board */
.leader-card{ text-align:center; display:block; }
.leader-card .photo{ width:96px; height:96px; border-radius:50%; background:var(--blue-pale); border:2px solid var(--blue); margin:0 auto 1rem; display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-size:1.4rem; font-weight:800; color:var(--blue); }
.leader-card .role{ font-family:var(--f-mono); font-size:.72rem; color:var(--grey); text-transform:uppercase; letter-spacing:.05em; }

/* pill / chip badges (halal, sharia, CBN-style trust chips) */
.chip-row{ display:flex; gap:.7rem; flex-wrap:wrap; }
.chip{ display:inline-flex; align-items:center; gap:.5em; padding:.5em 1em; border-radius:999px; background:var(--paper-2); border:1px solid var(--line); font-size:.8rem; font-weight:600; color:var(--ink); }
.chip svg{ width:15px; height:15px; color:var(--green-deep); }

/* stat / trust bar (logos or numbers row) */
.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; text-align:center; }
.stat-row b{ display:block; font-family:var(--f-display); font-size:2.2rem; font-weight:800; color:var(--blue); }
.stat-row span{ font-size:.82rem; color:var(--grey-dark); }

/* pagination */
.pagination{ display:flex; gap:.5rem; justify-content:center; margin-top:2.5rem; }
.pagination a{ width:38px; height:38px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line-strong); border-radius:var(--radius-sm); font-family:var(--f-mono); font-size:.85rem; }
.pagination a.active{ background:var(--blue); color:#fff; border-color:var(--blue); }

/* category tabs (Personal / Business / Digital banking) */
.tab-row{ display:flex; gap:.6rem; flex-wrap:wrap; justify-content:center; margin-bottom:2.6rem; }
.tab-row a{ padding:.6em 1.3em; border-radius:999px; border:1px solid var(--line-strong); font-size:.86rem; font-weight:600; color:var(--ink); }
.tab-row a:hover{ border-color:var(--blue); color:var(--blue); }
.tab-row a.active{ background:var(--blue); border-color:var(--blue); color:#fff; }

/* ================================================================== RESPONSIVE ==== */
@media (max-width: 1080px){
  .footer-grid{ grid-template-columns:1fr 1fr 1fr; }
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .timeline{ grid-template-columns:repeat(2,1fr); }
  .field-row{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 720px){
  .mainnav{
    position:fixed; inset:0 0 0 26%; z-index:60;
    background:
      radial-gradient(circle at 15% 0%, rgba(62,211,47,.10), transparent 45%),
      linear-gradient(165deg, var(--blue) 0%, #060D82 60%, #050B70 100%);
    display:flex; flex-direction:column; align-items:stretch;
    transform:translateX(100%); transition:transform .3s cubic-bezier(.4,0,.2,1);
  }
  .mainnav.open{ transform:translateX(0); }

  .nav-scroll{
    flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch;
    display:flex; flex-direction:column; align-items:stretch; gap:.15rem;
    padding:6rem 1.6rem 1.5rem;
  }
  .nav-scroll > a, .nav-item > a{
    width:100%; padding:.85rem 1rem; border-radius:var(--radius-sm);
    background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
    transition:background .15s ease;
  }
  .nav-scroll > a:hover, .nav-item > a:hover{ background:rgba(255,255,255,.1); }
  .mainnav a{ color:#fff; font-size:1.02rem; }
  .mainnav a::after{ display:none; } /* the desktop underline effect doesn't apply to the drawer */
  .mainnav a.active{ color:#fff; background:rgba(62,211,47,.16); border-color:rgba(62,211,47,.4); font-weight:700; }
  .navicon{ display:block; width:19px; height:19px; flex-shrink:0; opacity:.85; }

  .nav-bottom{
    display:flex; flex-direction:column; gap:.7rem; flex-shrink:0;
    padding:1.2rem 1.6rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
    border-top:1px solid rgba(255,255,255,.14);
    background:rgba(0,0,0,.14);
  }

  .navtoggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:.5rem;
    position:relative; z-index:70;
  }
  .navtoggle span{
    width:24px; height:2px; background:var(--blue); display:block;
    transition:transform .25s ease, opacity .2s ease, background .2s ease;
    transform-origin:center;
  }
  .navtoggle.open span{ background:#fff; }
  .navtoggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .navtoggle.open span:nth-child(2){ opacity:0; }
  .navtoggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  body.nav-locked{ overflow:hidden; }
  .nav-item{ flex-direction:column; align-items:flex-start; width:100%; }
  .nav-item > a{ width:100%; justify-content:space-between; }
  .mega-panel{
    position:static; width:100%; max-width:none; opacity:1; visibility:visible; pointer-events:auto;
    padding-top:0; transform:none;
    display:none;
  }
  .nav-item.open .mega-panel{ display:block; }
  .mega-inner{
    grid-template-columns:1fr; gap:1.2rem;
    background:transparent; border:none; border-top:1px solid rgba(255,255,255,.2); border-radius:0;
    box-shadow:none; padding:1rem 0 .5rem 1rem; transform:none;
  }
  .mega-heading{ color:rgba(255,255,255,.65); border-color:rgba(255,255,255,.2); }
  .mega-link b{ color:#fff; }
  .mega-link small{ color:rgba(255,255,255,.65); }
  .mega-link:hover{ background:rgba(255,255,255,.08); }
  .mega-col-links a{ color:rgba(255,255,255,.85); }
  .mega-col-links a:hover{ background:rgba(255,255,255,.08); color:#fff; }
  .mega-cta{ border-color:rgba(255,255,255,.2); }
  .mega-cta h4{ color:#fff; }
  .mega-cta p{ color:rgba(255,255,255,.7); }
  .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; }
  .value-strip{ flex-wrap:wrap; }
  .value-strip div{ flex:1 1 50%; border-bottom:1px solid var(--line); }
  .footer-grid{ grid-template-columns:1fr; }
  .timeline{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:1fr 1fr; }
  .compare-row{ grid-template-columns:1fr; }
  .compare-head{ display:none; } /* labels move inline on mobile instead */
  .compare-label{ border-bottom:none; padding-bottom:.4rem; }
  .compare-col-them::before{ content:'\2715 Conventional: '; font-weight:700; }
  .compare-col-us::before{ content:'\2713 Milestone: '; font-weight:700; }
  .topbar-links{ display:none; }
  .topbar-tagline{ display:none; }
  .topbar-mobile{ display:flex; }
  .nav-cta{ display:none; }
}

/* ================================================================ FLOATING ACTIONS === */
.fab-stack{
  position:fixed; right:1.4rem; bottom:1.4rem; z-index:45;
  display:flex; flex-direction:column; align-items:center; gap:.8rem;
  padding-bottom:env(safe-area-inset-bottom, 0px);
}
.fab{
  width:54px; height:54px; border-radius:50%; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(7,16,159,.25);
  transition:transform .18s ease, box-shadow .18s ease, opacity .25s ease;
}
.fab:hover{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(7,16,159,.3); }
/* WhatsApp keeps its own brand green — a deliberate exception, since people
   recognise and trust the WhatsApp icon by its familiar colour. */
.fab-whatsapp{ background:#25D366; color:#fff; }
.fab-whatsapp svg{ width:28px; height:28px; }
.fab-top{
  background:var(--blue); color:#fff;
  opacity:0; transform:translateY(12px) scale(.92); pointer-events:none;
}
.fab-top svg{ width:24px; height:24px; }
.fab-top.visible{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.fab-top:hover{ background:var(--blue-2); }

@media (max-width:720px){
  .fab-stack{ right:1rem; bottom:1rem; gap:.6rem; }
  .fab{ width:48px; height:48px; }
  .fab-top svg{ width:20px; height:20px; }
  .fab-whatsapp svg{ width:24px; height:24px; }
}
