/* ══════════════════════════════════════════════════════════════
   MINTBRIDGE BANK · base.css
   Evergreen Mint theme · Swiss private banking
   Palette : emerald / teal / mint / gold on a soft mint-white page
   Type    : Fraunces (display) · Instrument Sans (body/ui)
   Signature: suspension-bridge "cable" hairline dividers
══════════════════════════════════════════════════════════════ */

/* ── RESET & BOX MODEL ───────────────────────────────────── */
*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
img,video,canvas,svg,iframe { max-width: 100%; height: auto; }
section,header,footer,div.section-wrap { max-width: 100%; }

/* ── CSS CUSTOM PROPERTIES ───────────────────────────────── */
:root {
  /* Evergreen Mint core */
  --emerald:      #0B5C4A;   /* primary */
  --emerald-2:    #0F6E56;   /* deep teal */
  --emerald-deep: #073B30;   /* dark surfaces */
  --forest:       #052A22;   /* deepest — footer / preloader */
  --forest-2:     #041F1A;

  --mint:         #6EE7B7;   /* bright accent */
  --mint-2:       #34D399;   /* signal mint */
  --mint-light:   #A7F3D0;
  --mint-pale:    #E1F5EE;

  --gold:         #F0B429;   /* CTA / heritage */
  --gold-light:   #F7CC5F;
  --gold-deep:    #B9860B;

  --cloud:        #F6FBF9;   /* page bg */
  --mist:         #E8F2ED;
  --white:        #ffffff;

  --ink:          #0B2E26;   /* headings on light */
  --text:         #33564C;   /* body copy */
  --muted:        #6D8A80;   /* captions */

  --serif:        'Fraunces', Georgia, serif;
  --sans:         'Instrument Sans', system-ui, sans-serif;
  --max:          1280px;
  --gutter:       clamp(20px, 5vw, 80px);
}

/* ── HTML / BODY ─────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--sans);
  background: var(--cloud);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ── CUSTOM CURSOR (mint) ────────────────────────────────── */
#cur,#cur-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  top: 0; left: 0;
}
#cur      { width: 8px;  height: 8px;  background: var(--emerald); transition: width .3s,height .3s,opacity .3s; mix-blend-mode: multiply; }
#cur-ring { width: 34px; height: 34px; border: 1.5px solid rgba(15,110,86,.4); z-index: 9998; transition: width .2s,height .2s,border-color .2s; }
@media (hover: none) { #cur,#cur-ring { display: none; } body { cursor: auto; } }
.hov #cur      { width: 18px; height: 18px; background: var(--mint-2); }
.hov #cur-ring { width: 52px; height: 52px; border-color: var(--mint-2); }

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%; max-width: 100vw;
  z-index: 500;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  box-sizing: border-box;
}
.nav.scrolled {
  background: rgba(5,42,34,.94);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(110,231,183,.14);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; min-width: 0; }
.nav-logo-text {
  font-family: var(--serif);
  font-size: clamp(15px, 2.2vw, 21px);
  font-weight: 500;
  color: #fff;
  letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: clamp(150px, 40vw, 300px);
}
.nav-logo-text span { color: var(--mint); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: clamp(16px,2.4vw,32px); list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s; position: relative; padding-bottom: 4px; white-space: nowrap;
}
.nav-links a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:1px; background: var(--mint); transition: width .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--mint-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── SHARED BUTTONS ─────────────────────────────────────── */
.btn-ghost {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.85); background: transparent;
  border: 1px solid rgba(255,255,255,.24);
  padding: 8px 18px; border-radius: 2px; cursor: none;
  letter-spacing: .06em; text-transform: uppercase;
  transition: all .25s; text-decoration: none; white-space: nowrap; display: inline-block;
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-light); }
.btn-gold {
  font-size: 12px; font-weight: 500;
  color: var(--forest); background: var(--gold);
  border: none; padding: 9px 20px; border-radius: 2px; cursor: none;
  letter-spacing: .06em; text-transform: uppercase;
  transition: all .25s; text-decoration: none; display: inline-block; white-space: nowrap;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--forest); background: var(--gold);
  border: none; padding: 14px 34px; border-radius: 2px; cursor: none;
  letter-spacing: .07em; text-transform: uppercase;
  transition: all .3s; text-decoration: none; display: inline-block;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary::before { content:''; position:absolute; inset:0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent); transform: translateX(-100%); transition: transform .6s; }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(240,180,41,.34); }

/* Mint / emerald secondary button */
.btn-mint {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: #fff; background: var(--emerald);
  border: none; padding: 14px 34px; border-radius: 2px; cursor: none;
  letter-spacing: .07em; text-transform: uppercase;
  transition: all .3s; text-decoration: none; display: inline-block; white-space: nowrap;
}
.btn-mint:hover { background: var(--emerald-2); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11,92,74,.28); }

/* ── HAMBURGER / MOBILE NAV ─────────────────────────────── */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; flex-shrink: 0; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.nav-mobile {
  display: none; position: fixed;
  top: 74px; left: 0; right: 0; width: 100%; max-width: 100vw;
  background: rgba(5,42,34,.98); backdrop-filter: blur(22px);
  padding: 24px var(--gutter) 32px;
  border-bottom: 1px solid rgba(110,231,183,.14);
  z-index: 499; transform: translateY(-115%);
  transition: transform .4s cubic-bezier(.23,1,.32,1); box-sizing: border-box;
}
.nav-mobile.open { transform: none; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-mobile ul li a {
  display: block; padding: 14px 0; font-size: 14px;
  color: rgba(255,255,255,.72); text-decoration: none;
  letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s;
}
.nav-mobile ul li a:hover { color: var(--mint); }
.nav-mobile .mob-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.nav-mobile .mob-btns a { text-align: center; padding: 13px; display: block; }

/* ── TRUST STRIP ─────────────────────────────────────────── */
.trust-strip {
  background: var(--mint-pale);
  border-top: 1px solid rgba(15,110,86,.16);
  border-bottom: 1px solid rgba(15,110,86,.16);
  padding: 14px 0; overflow: hidden;
}
.mqt { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; width: max-content; }
.ti {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; color: var(--emerald-2);
  letter-spacing: .07em; text-transform: uppercase; padding: 0 42px; flex-shrink: 0;
}
.tdot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ── SECTION HELPERS ─────────────────────────────────────── */
.section-wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box;
}
.sl {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; color: var(--emerald-2);
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px;
}
.sl::before { content:''; width: 24px; height: 1px; background: var(--gold); }
.st {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 400; color: var(--ink);
  line-height: 1.1; letter-spacing: -.01em; margin-bottom: 16px;
}
.st em { font-style: italic; color: var(--emerald-2); }
.sb {
  font-size: clamp(14px, 1.4vw, 15.5px);
  color: var(--text); line-height: 1.75; font-weight: 400;
  margin-bottom: 48px; max-width: 520px;
}

/* ── CABLE DIVIDER (signature) ───────────────────────────── */
.cable-divide { width: 100%; overflow: hidden; line-height: 0; }
.cable-divide svg { width: 100%; height: 42px; display: block; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.rv  { opacity: 0; transform: translateY(38px);  transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1); }
.rvl { opacity: 0; transform: translateX(-38px); transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1); }
.rvr { opacity: 0; transform: translateX(38px);  transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1); }
.rv.on,.rvl.on,.rvr.on { opacity: 1; transform: none; }
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}
.d4{transition-delay:.32s}.d5{transition-delay:.40s}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--forest-2); padding: 0; font-family: var(--sans); }
.footer-accent { height: 3px; background: linear-gradient(90deg,transparent,var(--emerald-2),var(--mint),var(--gold),transparent); }

.footer-newsletter { background: var(--forest); border-bottom: 1px solid rgba(255,255,255,.05); }
.footer-newsletter .section-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px,4vw,48px);
  padding-top: clamp(24px,3vw,36px); padding-bottom: clamp(24px,3vw,36px); flex-wrap: wrap;
}
.fn-title { font-size: clamp(17px,2vw,22px); font-family: var(--serif); font-weight: 400; color: #fff; margin-bottom: 4px; }
.fn-sub { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 400; }
.fn-form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; max-width: 420px; min-width: min(280px,100%); }
.fn-input {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px; padding: 11px 16px; font-size: 13px; color: #fff; font-family: var(--sans);
  outline: none; min-width: 160px; transition: border-color .2s;
}
.fn-input::placeholder { color: rgba(255,255,255,.32); }
.fn-input:focus { border-color: rgba(110,231,183,.55); }
.fn-btn {
  background: var(--gold); color: var(--forest); border: none; padding: 11px 24px;
  border-radius: 3px; font-size: 12px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; cursor: none; transition: background .25s; white-space: nowrap;
}
.fn-btn:hover { background: var(--gold-light); }

.footer-body { padding: clamp(48px,6vw,80px) 0 0; }
.footer-body .section-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: clamp(24px,4vw,56px); }
.ft-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 18px; }
.ft-logo-text { font-family: var(--serif); font-size: clamp(18px,2vw,22px); font-weight: 500; color: #fff; letter-spacing: .02em; }
.ft-logo-text span { color: var(--mint); font-style: italic; }
.ft-tagline { font-size: clamp(12px,1.1vw,13px); color: rgba(255,255,255,.4); line-height: 1.8; font-weight: 400; max-width: 260px; margin-bottom: 24px; }
.ft-badges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.ft-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.34); border: 1px solid rgba(255,255,255,.08);
  padding: 5px 12px; border-radius: 2px; width: fit-content;
}
.ft-badge-icon { font-size: 12px; color: var(--mint); }
.ft-soc { display: flex; gap: 8px; }
.fsoc {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: none;
  transition: all .25s; color: rgba(255,255,255,.5); text-decoration: none;
}
.fsoc:hover { border-color: var(--mint); background: rgba(110,231,183,.1); color: var(--mint); }
.ft-col-title { font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.58); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; display: block; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul li a { font-size: clamp(12px,1.1vw,13px); color: rgba(255,255,255,.3); text-decoration: none; font-weight: 400; transition: color .2s; }
.ft-col ul li a:hover { color: var(--mint-light); }

.footer-reg { border-top: 1px solid rgba(255,255,255,.05); margin-top: clamp(40px,5vw,64px); }
.footer-reg .section-wrap { display: flex; align-items: flex-start; gap: clamp(20px,4vw,40px); padding-top: clamp(28px,3vw,40px); padding-bottom: clamp(28px,3vw,40px); flex-wrap: wrap; }
.reg-fdic { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.reg-fdic-box { background: rgba(110,231,183,.1); border: 1px solid rgba(110,231,183,.28); border-radius: 4px; padding: 6px 12px; font-size: 10px; font-weight: 500; color: var(--mint); letter-spacing: .1em; text-transform: uppercase; }
.reg-text { font-size: 10.5px; color: rgba(255,255,255,.24); line-height: 1.7; font-weight: 400; max-width: 660px; }

.footer-bottom { background: #030f0c; border-top: 1px solid rgba(255,255,255,.04); }
.footer-bottom .section-wrap { display: flex; align-items: center; justify-content: space-between; padding-top: clamp(16px,2vw,22px); padding-bottom: clamp(16px,2vw,22px); gap: 16px; flex-wrap: wrap; }
.ft-copy { font-size: 11.5px; color: rgba(255,255,255,.24); }
.ft-legal { display: flex; gap: clamp(12px,2vw,24px); flex-wrap: wrap; }
.ft-legal a { font-size: 11.5px; color: rgba(255,255,255,.24); text-decoration: none; transition: color .2s; white-space: nowrap; }
.ft-legal a:hover { color: var(--mint); }
.ft-cert { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-cert-badge { font-size: 10px; color: rgba(255,255,255,.24); border: 1px solid rgba(255,255,255,.06); padding: 3px 8px; border-radius: 2px; white-space: nowrap; }

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes floatY  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes tdB     { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px);background:var(--gold)} }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-body .section-wrap { grid-template-columns: 1fr 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-tagline { max-width: 100%; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: block; }
  .footer-body .section-wrap { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .footer-reg .section-wrap { flex-direction: column; }
  .footer-bottom .section-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fn-form { flex-direction: column; }
  .fn-btn { width: 100%; }
  .nav-cta .btn-ghost { display: none; }
  .btn-gold { padding: 8px 12px; font-size: 11px; }
  .nav-logo-text { font-size: 15px; }
  .ti { font-size: 10px; padding: 0 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mqt { animation: none; }
}