:root {
  --top: #0e2744;
  --navy: #14375c;
  --blue: #1b6ca8;
  --blue-dark: #124f7c;
  --gold: #c6922a;
  --text: #1b2c3d;
  --muted: #5d6d7e;
  --line: #dbe3ec;
  --bg: #f5f7fa;
  --white: #ffffff;
  --footer: #eef2f6;
  --shadow: 0 14px 40px rgba(14, 39, 68, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Source Sans 3", Arial, sans-serif;
  background: var(--white);
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.topbar {
  background: var(--top);
  color: #d7e4f2;
  font-size: 13px;
}
.topbar-inner, .header-inner, .wrap, .footer-inner, .disclaimer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  min-height: 40px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.topbar a { color: #e8f1fa; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .phone { font-weight: 700; letter-spacing: 0.02em; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: auto; height: 58px; max-width: 250px; object-fit: contain; }

.nav { margin-left: auto; }
.nav-list, .submenu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: 6px; }
.nav-item { position: relative; }
.nav-title, .nav-list > li > a.top-link {
  display: block;
  padding: 28px 14px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 16px;
}
.nav-item:hover > .nav-title, .nav-item:focus-within > .nav-title { color: var(--blue); }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 40;
}
.nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: block; }
.submenu a {
  display: block;
  padding: 9px 16px;
  color: var(--text);
  font-size: 15px;
}
.submenu a:hover { background: #f3f8fc; text-decoration: none; color: var(--blue); }

.menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 640px;
  background: #0c314f;
  color: #fff;
}
.slider { position: relative; min-height: 640px; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.slide.active { opacity: 1; z-index: 1; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 24, 44, 0.2) 0%, rgba(6, 24, 44, 0.55) 55%, rgba(6, 24, 44, 0.62) 100%);
}
.slide-copy { position: relative; z-index: 1; width: min(520px, 48%); margin-right: 7%; }
.slide h2 { margin: 0 0 10px; font-size: 40px; line-height: 1.1; }
.slide p { margin: 0 0 16px; font-size: 18px; color: #f3f7fb; }
.slide .btn { background: #e2b434; color: #1b1b1b; text-transform: uppercase; }
.slide .btn:hover { background: #c99618; color: #1b1b1b; }
.dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.dots button.active { background: #fff; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn.light { background: #fff; color: var(--navy); }
.btn.slim { padding: 8px 12px; font-size: 14px; }

.login-card {
  position: absolute;
  z-index: 6;
  left: 28px;
  top: 28px;
  width: 280px;
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}
.login-card h2 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.login-body label { display: block; font-size: 13px; font-weight: 700; margin: 8px 0 4px; }
.login-body input {
  width: 100%;
  border: 1px solid #c9d4e0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
}
.login-body .signin, .login-body .pay { width: 100%; border-radius: 24px; margin-top: 12px; text-align: center; }
.login-body .signin { background: #1d4f86; }
.login-body .pay { background: #1f8a4a; display: block; }
.login-body .pay:hover { background: #176b38; }
.login-links { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.login-links a { color: #1d4f86; font-size: 14px; }
.note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.promos { background: var(--bg); padding: 28px 0 10px; }
.promo-grid, .icon-row, .rate-grid, .split, .office-grid, .card-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.promo-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.promo {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 36, 62, 0.08);
  display: flex;
  flex-direction: column;
}
.promo img { height: 160px; width: 100%; object-fit: cover; background: #d7e4ef; }
.promo .pad, .panel { padding: 16px 18px 20px; }
.promo h2, .section h2 { margin: 0 0 8px; color: var(--navy); }
.promo p { margin: 0 0 14px; color: #3d4e60; }

.icon-row {
  width: min(920px, calc(100% - 24px));
  margin: 18px auto 10px;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.icon-link {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #8ed56a 0%, #2f9a4c 55%, #1b7a3d 100%);
  color: #fff;
  border: 7px solid #fff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px;
}
.icon-link:hover { text-decoration: none; color: #fff; filter: brightness(1.05); }
.icon-link svg { width: 48px; height: 48px; margin-bottom: 6px; }

.section { padding: 28px 0 36px; }
.section h2 { font-size: 32px; }
.fine { color: var(--muted); font-size: 14px; max-width: 860px; }
.rates-band { background: #f6f3ee; }
.rates-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  min-height: 390px;
}
.rates-copy {
  padding: 46px 40px 46px 6px;
  border-right: 1px solid #c5ced6;
}
.rates-copy h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 600;
  color: #0e4f86;
}
.rates-copy p { margin: 0 0 22px; color: #243240; font-size: 15.5px; line-height: 1.5; max-width: 460px; }
.rates-copy a { color: #007A58; }
.btn.gold {
  background: #e2b434;
  color: #1b1b1b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  border-radius: 3px;
  padding: 12px 18px;
}
.btn.gold:hover { background: #c99618; color: #1b1b1b; }
.rates-board {
  background: #f3efe8 url("../images/mountain.jfif") center/cover no-repeat;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  align-content: center;
  padding: 28px 22px 28px 28px;
}
.rate-tile { text-align: center; border-radius: 6px; padding: 18px 10px 16px; }
.rate-tile h3 { margin: 0; font-size: 22px; font-weight: 700; }
.rate-tile .as { font-size: 14px; margin-top: 2px; }
.rate-tile .num { font-size: 40px; font-weight: 700; line-height: 1.05; }
.rate-tile .apr { font-size: 15px; }
.rate-tile.navy { background: #0d4d7c; color: #fff; }
.rate-tile.green { background: #1c7a46; color: #fff; }
.rate-tile.plain { color: #0e4f86; background: transparent; padding-top: 28px; }
.rate-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(90deg, #3eaf58 0%, #2b9450 28%, #1f7a43 62%, #176838 100%);
}
.rate-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 18px 8px 16px;
}
.rate-links a:hover { background: rgba(0, 0, 0, 0.08); text-decoration: none; }
.rate-links svg { width: 46px; height: 46px; }
.rate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.rate {
  background: #fff;
  border-top: 4px solid var(--gold);
  box-shadow: 0 8px 20px rgba(16, 36, 62, 0.06);
  padding: 18px;
  text-align: center;
}
.rate h3 { margin: 0; color: var(--navy); }
.rate .as { color: var(--muted); font-size: 13px; margin-top: 10px; }
.rate .num { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1; margin: 4px 0; }
.rate .apr { letter-spacing: 0.08em; font-weight: 700; color: var(--blue); }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.visa { line-height: 0; }
.visa img { width: 100%; height: auto; display: block; }

.page-hero {
  background: #0e2744 url("../images/hero.svg") center/cover no-repeat;
  color: #fff;
  position: relative;
}
.page-hero.bg-1 { background-image: url("../images/1.jpg"); }
.page-hero.bg-2 { background-image: url("../images/2.jpg"); }
.page-hero.bg-1::after,
.page-hero.bg-2::after { background: rgba(10, 30, 52, 0.45); }
.page-hero .wrap { position: relative; z-index: 1; padding: 54px 0; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 52, 0.72);
}
.page-hero h1 { margin: 0 0 8px; font-size: 42px; }
.page-hero p { margin: 0; max-width: 680px; color: #e6eef6; }
.page-body { padding: 34px 0 50px; background: var(--bg); }
.panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 36, 62, 0.06);
}
.panel + .panel { margin-top: 16px; }
.panel h2 { margin-top: 0; color: var(--navy); }
.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin: 6px 0; }
.form-grid { display: grid; gap: 10px; max-width: 520px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  border: 1px solid #c9d4e0;
  border-radius: 4px;
  padding: 10px 12px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.site-footer { background: #fff; padding-top: 28px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px 40px; align-items: start; }
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; width: auto; }
.office strong { display: block; color: #1a1a1a; margin-bottom: 4px; font-size: 15px; }
.office p { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: #222; }
.office a { color: #007A58; text-decoration: underline; }
.app-box { text-align: center; }
.app-box h3 { margin: 0 0 12px; color: #007A58; font-size: 26px; font-weight: 600; }
.app-buttons { display: flex; gap: 8px; justify-content: center; align-items: center; }
.app-buttons a { line-height: 0; }
.app-buttons img { height: 40px; width: auto; display: block; }
.app-box p { margin: 14px 0 10px; color: #333; font-size: 15px; }
.socials { display: flex; justify-content: center; }
.socials img { height: 34px; width: auto; display: block; }
.disclaimer {
  margin-top: 22px;
  background: #004C80;
  padding: 18px 0 22px;
  font-size: 13px;
  color: #fff;
}
.disclaimer a { color: #fff; }
.disclaimer p { margin: 0; text-align: left; }
.disclaimer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.seals { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.seals img {
  height: 68px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.toast {
  display: none;
  margin-top: 10px;
  background: #e8f6ee;
  color: #135c34;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
}

body.is-bank .hero,
body.is-bank .icon-row,
body.is-bank .rates-band,
body.is-bank .visa { display: none; }
.site-page { display: none; }
body.show-page .site-page.active { display: block; }
body.show-page .hero,
body.show-page .icon-row,
body.show-page .rates-band,
body.show-page .visa,
body.show-page .offers,
body.show-page .news-band,
body.show-page #bank { display: none; }
.bank { display: none; background: #f4f7fb; }
body.is-bank .bank { display: block; }
.welcome-bar {
  background: #004C80;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
}
.welcome-bar p { margin: 0; font-size: 20px; }
.welcome-bar .btn.light { color: #004C80; }
.ticker { background: #0e2744; color: #f2c14e; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ticker-track { display: flex; width: max-content; animation: ticker-move 32s linear infinite; }
.ticker-track span { padding: 8px 0; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bank-nav {
  background: #004C80;
  display: flex;
  gap: 4px;
  padding: 0 18px;
  flex-wrap: wrap;
}
.bank-item { position: relative; }
.bank-nav > .bank-item > .bank-tab {
  background: transparent;
  color: #fff;
  border: 0;
  padding: 14px 12px;
  font-weight: 700;
  cursor: pointer;
}
.bank-nav > .bank-item > .bank-tab.active,
.bank-nav > .bank-item:hover > .bank-tab { background: #0e2744; }
.bank-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
  z-index: 8;
  padding: 8px 0;
}
.bank-item:hover > .bank-drop { display: block; }
.bank-drop .bank-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  color: #14375c;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.bank-drop .bank-tab:hover { background: #e7f2ea; color: #007A58; }
.bank-sub {
  background: #fff;
  border-bottom: 1px solid #dbe3ec;
  display: flex;
  gap: 6px;
  padding: 0 18px;
  flex-wrap: wrap;
}
.bank-sub .bank-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #14375c;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
}
.bank-sub .bank-tab.active { border-bottom-color: #007A58; color: #007A58; }
.bank-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 28px;
}
.bill-card {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 16px;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 16px;
  margin: 8px 0 18px;
}
.bill-title { margin: 0; color: #14375c; font-weight: 700; }
.bill-bal { margin: 6px 0; font-size: 32px; font-weight: 800; color: #0e2744; }
.bill-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bill-meta p { margin: 0; }
.bill-meta span { display: block; color: #5d6d7e; font-size: 13px; }
.wealth-grid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: center; }
.wealth-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; }
.bank-main { background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 8px 20px rgba(16, 36, 62, 0.06); }
.bank-main h2 { margin: 0 0 14px; color: #0e4f86; }
.bank-panel { display: none; }
.bank-panel.active { display: block; }
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.acct-card { background: #0d4d7c; color: #fff; border-radius: 8px; padding: 16px; }
.acct-card.green { background: #007A58; }
.acct-card.gold { background: #8d6a16; }
.acct-card h3, .acct-card p { margin: 0; }
.acct-num { letter-spacing: 0.08em; font-size: 14px; margin-top: 10px; }
.acct-holder { margin-top: 8px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.plastic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plastic {
  min-height: 170px;
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0d4d7c, #1b6ca8);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plastic.credit { background: linear-gradient(135deg, #8d6a16, #c6922a); }
.plastic-type { margin: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.plastic-num { margin: 18px 0; font-size: 22px; letter-spacing: 0.12em; }
.plastic-name { margin: 0; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.acct-bal { font-size: 28px; font-weight: 800; margin: 8px 0; }
.activity { width: 100%; border-collapse: collapse; }
.activity th, .activity td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e3e8ee; }
.activity .plus { color: #007A58; font-weight: 700; }
.card-row { display: flex; gap: 16px; align-items: center; }
.card-row img { width: 180px; }
.profile-photo { width: 160px; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

.offers { background: #f6f3ee; padding: 28px 0 8px; }
.offer-grid {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.offer {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 36, 62, 0.06);
}
.offer img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.offer div { padding: 16px 18px 18px; }
.offer-tag {
  margin: 0 0 6px;
  color: #007A58;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.offer h2 { margin: 0 0 8px; color: #0e4f86; font-size: 24px; }
.offer p { margin: 0 0 12px; color: #314556; }
.news-band { background: #fff; padding: 28px 0 40px; }
.news-band h2 { margin: 0 0 16px; color: #0e4f86; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.news-card { background: #f7fafc; border-radius: 8px; overflow: hidden; border: 1px solid #e3e8ee; }
.news-card img { width: 100%; height: 140px; object-fit: cover; object-position: center top; }
.news-card div { padding: 12px; }
.news-date { margin: 0 0 6px; color: #007A58; font-size: 12px; font-weight: 700; }
.news-card h3 { margin: 0 0 8px; color: #14375c; font-size: 16px; line-height: 1.3; }
.news-card p { margin: 0 0 10px; color: #314556; font-size: 13px; }
.news-card a { font-weight: 700; }

@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 70vh;
    overflow: auto;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-title, .nav-list > li > a.top-link { width: 100%; text-align: left; padding: 14px 18px; }
  .submenu { position: static; display: none; box-shadow: none; border: 0; background: #f7fafc; min-width: 0; }
  .nav-item.open > .submenu { display: block; }
  .hero-inner, .promo-grid, .rate-grid, .icon-row, .visa .split, .footer-inner, .two, .disclaimer-inner, .rates-layout {
    grid-template-columns: 1fr;
  }
  .rates-copy { border-right: 0; padding: 28px 8px; }
  .rate-links { grid-template-columns: 1fr 1fr; }
  .bank-wrap, .acct-grid, .offer-grid, .news-grid, .plastic-row, .bill-card, .wealth-grid, .bill-meta { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .login-card { position: relative; left: auto; top: auto; width: auto; margin: 12px; }
  .slider, .hero { min-height: 420px; }
  .slide-copy { width: auto; margin: 24px 16px 90px 16px; }
  .icon-row { margin-top: 16px; flex-wrap: wrap; justify-content: center; }
  .icon-link { width: 132px; height: 132px; }
  .hero h1 { font-size: 36px; }
  .office-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 72px; }
}
