/* ==========================================================================
   Liberty National Bank — Design Tokens
   Concept: the engraved ledger. Banknote-engraving serif display type,
   guilloché (engine-turning) linework as the one signature motif, and
   tabular-figure "ledger rows" used consistently for every stat, rate,
   and balance on the site — because a bank's real material is the ledger,
   not a dashboard widget.
   ========================================================================== */

:root {
  /* Color */
  --ink-900: #0b1420;      /* primary text / near-black navy */
  --navy-800: #12233d;     /* brand primary */
  --navy-700: #1a3157;
  --paper-100: #eef1ec;    /* cool paper background (not cream) */
  --paper-50: #f7f8f5;
  --brass-500: #b08d57;    /* signature engraving accent */
  --brass-400: #c7a878;
  --teal-600: #1f5c4f;     /* growth / positive accent */
  --teal-100: #e2ece9;
  --line-300: #d8ddd4;     /* hairline dividers */
  --line-600: #9aa39a;
  --red-600: #8c3b32;      /* restricted / alert, muted brick not alarm-red */
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.1rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.5vw, 4.6rem);

  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-card: 0 1px 2px rgba(11, 20, 32, 0.06), 0 8px 24px rgba(11, 20, 32, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink-900);
  background: var(--paper-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

:focus-visible {
  outline: 2px solid var(--brass-500);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brass-500); color: var(--ink-900); }
.btn-primary:hover { background: var(--brass-400); }
.btn-outline-light { background: transparent; color: var(--paper-50); border-color: rgba(247,248,245,0.4); }
.btn-outline-light:hover { border-color: var(--paper-50); background: rgba(247,248,245,0.08); }
.btn-outline-dark { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--paper-50); }
.btn-block { width: 100%; }

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--ink-900);
  color: var(--line-300);
  font-size: 0.8125rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.utility-bar__left { display: flex; gap: 20px; }
.utility-bar a:hover { color: var(--brass-400); }
#google_translate_element { line-height: 1; }

/* ---------- Nav ---------- */
.navbar {
  background: var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-50);
}
.brand__mark { flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(247,248,245,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--brass-400); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none; border: 1px solid rgba(255,255,255,0.3);
    color: var(--paper-50); padding: 8px 12px; border-radius: var(--radius-sm);
  }
  .nav-cta .btn-outline-light { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: var(--paper-50);
  overflow: hidden;
  padding-top: 88px;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--brass-400);
}
.hero h1 {
  font-size: var(--step-4);
  color: var(--paper-50);
  max-width: 14ch;
}
.hero__lede {
  font-size: 1.125rem;
  color: rgba(247,248,245,0.78);
  max-width: 46ch;
  margin: 20px 0 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__panel {
  background: rgba(247,248,245,0.04);
  border: 1px solid rgba(247,248,245,0.14);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(2px);
}
.hero__panel-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 18px;
}
.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(247,248,245,0.12);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row__label { color: rgba(247,248,245,0.7); font-size: 0.875rem; }
.ledger-row__value { font-size: 1.0625rem; font-weight: 500; }
.ledger-row__value.positive { color: #7fb8a4; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--ink-900);
  color: var(--paper-50);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 22px 24px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stat-cell:first-child { border-left: none; }
.stat-cell__value {
  font-size: 1.5rem;
  font-weight: 600;
}
.stat-cell__label {
  font-size: 0.75rem;
  color: rgba(247,248,245,0.55);
  margin-top: 4px;
}
@media (max-width: 800px) {
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--paper { background: var(--paper-100); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-size: var(--step-3); max-width: 16ch; color: var(--navy-800); }
.section-head p { max-width: 44ch; color: #445; margin-top: 8px; }

/* ---------- Account cards ---------- */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-300);
  border: 1px solid var(--line-300);
}
.account-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.account-card__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brass-500);
  margin-bottom: 16px;
}
.account-card h3 { font-size: 1.5rem; color: var(--navy-800); }
.account-card__rate {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--teal-600);
  margin: 12px 0 4px;
}
.account-card__rate-label { font-size: 0.8125rem; color: var(--line-600); margin-bottom: 20px; }
.account-card__features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}
.account-card__features li {
  padding: 10px 0;
  border-top: 1px solid var(--line-300);
  font-size: 0.9375rem;
  color: #33404d;
  display: flex;
  gap: 10px;
}
.account-card__features li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass-500);
  margin-top: 8px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .accounts-grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  padding: 28px;
  border: 1px solid var(--line-300);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--brass-500); transform: translateY(-2px); }
.service-card__icon {
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--teal-600);
}
.service-card h3 { font-size: 1.125rem; color: var(--navy-800); margin-bottom: 8px; }
.service-card p { font-size: 0.9375rem; color: #4a5561; margin: 0; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Security ---------- */
.security {
  background: var(--navy-800);
  color: var(--paper-50);
  position: relative;
  overflow: hidden;
}
.security .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.security h2 { color: var(--paper-50); font-size: var(--step-3); max-width: 14ch; }
.security p.lede { color: rgba(247,248,245,0.75); max-width: 48ch; margin: 16px 0 32px; }
.security-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.security-list li { display: flex; gap: 16px; }
.security-list__num {
  font-family: var(--font-mono);
  color: var(--brass-400);
  font-size: 0.8125rem;
  padding-top: 3px;
}
.security-list h4 { color: var(--paper-50); font-size: 1rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.security-list p { color: rgba(247,248,245,0.65); font-size: 0.875rem; margin: 0; }
@media (max-width: 900px) {
  .security .container { grid-template-columns: 1fr; }
}

/* ---------- Rates table ---------- */
.rates-table { width: 100%; border-collapse: collapse; }
.rates-table th, .rates-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-300);
}
.rates-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line-600);
  font-weight: 500;
}
.rates-table td.rate { font-family: var(--font-mono); color: var(--teal-600); font-weight: 600; }
.rates-table tr:last-child td { border-bottom: none; }
.rates-table__wrap {
  background: var(--white);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---------- Testimonial / trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-card {
  padding: 32px;
  background: var(--paper-100);
  border-radius: var(--radius-md);
}
.trust-card p.quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy-800);
  margin-bottom: 20px;
}
.trust-card .attribution { font-size: 0.8125rem; color: var(--line-600); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--brass-500);
  padding: 64px 0;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--ink-900); font-size: var(--step-2); margin: 0; max-width: 20ch; }
.cta-banner .btn-primary { background: var(--ink-900); color: var(--paper-50); }
.cta-banner .btn-primary:hover { background: var(--navy-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(247,248,245,0.6); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h5 {
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--brass-400); }
.footer-brand p { font-size: 0.875rem; max-width: 32ch; margin: 16px 0; }
.footer-legal {
  padding-top: 28px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(247,248,245,0.4);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal .disclosures { max-width: 68ch; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass-500);
  color: var(--ink-900);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
