/* Richton Bank & Trust Co. — site styles
   Tokens first, then base type, then components, then page layouts. */

:root {
  --green-900: #132A1B;
  --green-800: #1C3D28;
  --green-700: #28523A;
  --green-600: #336646;
  --green-500: #3E7A50;
  --green-100: #DCE8DF;
  --green-50: #EEF4EF;
  --gold: #D4B059;

  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #182119;
  --ink-2: #4B5750;
  --ink-3: #66726B;
  --line: #D7DFD8;
  --line-strong: #BFCBC2;
  --link: #245A36;
  --focus: #1B62D6;

  --hero-bg: #1C3D28;
  --hero-ink: #F3F7F3;
  --hero-ink-2: #C6D8CA;
  --footer-bg: #132A1B;
  --footer-ink: #DCE8DF;
  --footer-ink-2: #9FB8A6;

  --btn-bg: #28523A;
  --btn-ink: #FFFFFF;
  --btn-bg-hover: #1C3D28;
  --status-open: #2E7D47;
  --status-closed: #9A4B2E;

  --shadow: 0 1px 2px rgba(24, 33, 25, 0.06), 0 10px 30px rgba(24, 33, 25, 0.08);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;

  --btn-light-bg: #FFFFFF; --btn-light-ink: #1C3D28; --btn-light-hover: #EEF4EF;
  --pill-bg: #28523A; --pill-ink: #FFFFFF;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Light only: the site keeps a white content area in every theme. */


html { scroll-padding-top: env(safe-area-inset-top, 0px); font-size: 112.5%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.1rem; line-height: 1.35; font-family: inherit; font-weight: 700; }

p, ul, ol, dl, table { margin: 0 0 1.1em; }
p:last-child, ul:last-child, dl:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.measure { max-width: 70ch; }

.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--r-s); box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; border-radius: var(--r-s); border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn-secondary { background: var(--paper); color: var(--link); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--link); }
.btn-light { background: var(--btn-light-bg); color: var(--btn-light-ink); border-color: var(--btn-light-bg); }
.btn-light:hover { background: var(--btn-light-hover); border-color: var(--btn-light-hover); }
.btn-ghost { background: transparent; color: var(--hero-ink); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn svg { width: 18px; height: 18px; flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FDIC digital sign */
.fdic-bar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--ink); }
.fdic-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-block: 6px; }
.fdic-mark { font-weight: 800; letter-spacing: 0.02em; font-size: 0.95rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; display: inline-flex; flex-direction: column;
}
.brand small { display: block; font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-weight: 400; font-size: 0.78rem; color: var(--ink-2); letter-spacing: 0.01em; margin-top: 3px; }
.brand img { height: 52px; width: auto; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.header-tools .tel { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-tools .tel:hover { text-decoration: underline; }
.menu-toggle {
  display: none; font: inherit; font-weight: 700; min-height: 44px; padding: 8px 14px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--line-strong); border-radius: var(--r-s); cursor: pointer;
}

/* Navigation */
.site-nav { border-top: 1px solid var(--line); background: var(--paper); }
.site-nav > ul { list-style: none; margin: 0 auto; display: flex; gap: 4px; }
.site-nav > ul > li:first-child > a, .site-nav > ul > li:first-child > button { padding-left: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a,
.site-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 700; color: var(--ink); text-decoration: none;
  padding: 14px 14px; min-height: 52px; background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.site-nav > ul > li > a[aria-current="page"],
.site-nav > ul > li.is-section > a,
.site-nav > ul > li.is-section > button { border-bottom-color: var(--green-700); }
.site-nav > ul > li > a:hover, .site-nav > ul > li > button:hover { color: var(--link); }
.site-nav button svg { width: 14px; height: 14px; }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; left: 0; top: 100%; min-width: 260px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
  display: none; z-index: 30;
}
.has-menu.open > .submenu, .has-menu:focus-within > .submenu { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-menu:hover > .submenu { display: block; } }
.submenu a {
  display: block; padding: 10px 12px; border-radius: var(--r-s);
  color: var(--ink); text-decoration: none; font-weight: 400;
}
.submenu a:hover { background: var(--green-50); color: var(--link); }
.submenu a[aria-current="page"] { font-weight: 700; color: var(--link); background: var(--green-50); }
.submenu .submenu-head { font-weight: 700; color: var(--ink-2); }
.submenu .submenu-head a { font-weight: 700; }
.submenu li + li.submenu-divider { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

@media (max-width: 960px) {
  .header-tools .tel { display: none; }
  .header-tools { gap: 10px; }
  .header-row { min-height: 72px; }
  .brand { font-size: 1.2rem; }
  .fdic-bar { font-size: 0.8rem; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; padding-block: 8px 16px; }
  .site-nav > ul > li > a, .site-nav > ul > li > button { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 0; font-size: 1.05rem; }
  .site-nav > ul > li > button svg { display: none; }
  .site-nav > ul > li:first-child > a, .site-nav > ul > li:first-child > button { padding-left: 4px; }
  .site-nav > ul > li > button { cursor: default; }
  .submenu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .submenu a { padding: 10px 8px; }
}

/* Hero */
.hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 7vw, 88px); }
.hero h1 { color: var(--green-800); margin-bottom: 0.45em; }
.hero .lead { color: var(--ink-2); max-width: 34em; }
.hero .actions { margin-top: 28px; }
.hero-note { margin-top: 28px; color: var(--ink-2); font-size: 0.9rem; }
.hero-note span { color: var(--gold); font-weight: 700; }
.hero-side { display: grid; gap: 18px; }
.hero-photo { margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--green-900); aspect-ratio: 677 / 238; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hours-card { background: var(--green-50); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 22px; }
.hours-card h2 { font-size: 1.2rem; margin-bottom: 2px; }
.hours-card p { margin: 0; }
.hours-card .addr { color: var(--ink-2); }
.hours-card .hours { margin-top: 10px; }
.hours-card .status { margin-top: 10px; font-weight: 700; }
.hours-card a { display: inline-block; margin-top: 10px; }
.status::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); margin-right: 8px; vertical-align: 0; }
.status.is-open::before { background: var(--status-open); }
.status.is-closed::before { background: var(--status-closed); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-tint { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

/* Quick actions */
.quick { background: var(--paper); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.quick-item {
  display: flex; flex-direction: column; gap: 3px; padding: 22px 20px;
  text-decoration: none; color: var(--ink); border-left: 1px solid var(--line);
}
.quick-item:first-child { border-left: 0; padding-left: 0; }
.quick-item strong { color: var(--link); font-size: 1.05rem; }
.quick-item span { color: var(--ink-2); font-size: 0.95rem; }
.quick-item:hover strong { text-decoration: underline; }
@media (max-width: 860px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-item { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .quick-item:nth-child(-n + 2) { border-top: 0; }
  .quick-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .quick-item:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Product columns (home) */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.col h3 { font-size: 1.25rem; padding-bottom: 10px; border-bottom: 2px solid var(--green-700); }
.col h3 a { color: var(--ink); text-decoration: none; }
.col h3 a:hover { color: var(--link); text-decoration: underline; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.linklist a:hover { color: var(--link); text-decoration: underline; }
.linklist small { display: block; color: var(--ink-3); font-size: 0.9rem; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } .brand small { display: none; } .btn-primary.compact { padding-inline: 16px; } }

/* Two-up split */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr;
}
.split-even { grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 24px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-2); }

/* Location cards */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.loc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.loc-photo { aspect-ratio: 677 / 238; background: var(--green-100); margin: 0; min-height: 0; flex: none; overflow: hidden; }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; }
.loc-photo.no-photo { display: flex; align-items: center; justify-content: center; color: var(--green-700); gap: 10px; font-weight: 700; }
.loc-photo.no-photo svg { width: 28px; height: 28px; }
.loc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.loc-body h3 { font-size: 1.2rem; margin: 0; }
.loc-body .addr { color: var(--ink-2); margin: 0; }
.loc-body .hrs { margin: 6px 0 0; }
.loc-body .hrs strong { display: block; }
.loc-body a.more { margin-top: auto; padding-top: 8px; }
@media (max-width: 960px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .loc-grid { grid-template-columns: 1fr; } }

/* Helpful links */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.help-grid a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.help-grid a strong { color: var(--link); display: block; }
.help-grid a span { color: var(--ink-2); font-size: 0.95rem; }
.help-grid a:hover strong { text-decoration: underline; }
@media (max-width: 700px) { .help-grid { grid-template-columns: 1fr; } }

/* Inner pages */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 4vw, 48px); }
.page-head h1 { margin-bottom: 0.3em; }
.page-head .lead { max-width: 60ch; }
.crumbs { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }

.page-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(32px, 5vw, 56px); align-items: start; }
.page-body.no-aside { grid-template-columns: minmax(0, 1fr); }
.subnav { position: sticky; top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px; }
.subnav h2 { font-size: 0.95rem; font-family: inherit; font-weight: 700; color: var(--ink-2); padding: 8px 12px 4px; margin: 0; }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav a { display: block; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); }
.subnav a:hover { background: var(--green-50); color: var(--link); }
.subnav a[aria-current="page"] { background: var(--pill-bg); color: var(--pill-ink); font-weight: 700; }
.content { max-width: 74ch; }
.content > h2 { margin-top: 1.6em; }
.content > h2:first-child { margin-top: 0; }
.content .intro { font-size: 1.1rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .page-body { grid-template-columns: 1fr; }
  .subnav { position: static; }
  .subnav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .subnav a { padding: 8px 12px; }
}

/* Product blocks */
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 26px; margin-bottom: 22px; }
.product h2 { margin-top: 0 !important; margin-bottom: 0.2em; }
.product .tag { color: var(--ink-2); margin-bottom: 12px; }
.glance { display: flex; flex-wrap: wrap; gap: 8px 36px; padding: 14px 0; margin: 6px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance div { display: flex; flex-direction: column; }
.glance .k { font-size: 0.9rem; color: var(--ink-2); }
.glance .v { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.features { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%; background: var(--green-100); }
.features li::after { content: ""; position: absolute; left: 5px; top: 0.42em; width: 6px; height: 9px; border: solid var(--green-700); border-width: 0 2px 2px 0; transform: translate(0, 1px) rotate(45deg); }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.product h3 { font-family: inherit; font-size: 1.05rem; font-weight: 700; margin: 18px 0 8px; }
.details { margin: 0; }
.details dt { font-weight: 700; margin-top: 12px; }
.details dd { margin: 2px 0 0; color: var(--ink-2); }
.details dd + dt { margin-top: 14px; }
.note { font-size: 0.95rem; color: var(--ink-2); background: var(--green-50); border-left: 4px solid var(--green-700); padding: 12px 16px; border-radius: 0 var(--r-s) var(--r-s) 0; margin: 18px 0; }
.callout { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 24px; margin: 24px 0; }
.callout h2 { margin-top: 0 !important; font-size: 1.3rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--green-50); color: var(--ink); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; background: var(--green-50); width: 28%; }
td strong { display: block; }
.table-facts th { width: 18%; }

/* Officers */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.people li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.people strong { display: block; font-size: 1.1rem; }
.people span { display: block; color: var(--ink-2); }
.people a { display: inline-block; margin-top: 6px; }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }

/* Contact */
.contact-list { list-style: none; margin: 0 0 1.5em; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li strong { font-size: 1.05rem; }
.contact-list li a { font-weight: 700; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 48px 28px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.footer-brand { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.35rem; color: #fff; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-brand small { display: block; font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-weight: 400; font-size: 0.8rem; color: var(--footer-ink-2); }
.footer-grid h3 { font-family: inherit; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--footer-ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; color: #fff; }
.footer-grid p { color: var(--footer-ink-2); font-size: 0.95rem; }
.footer-grid p a { color: var(--footer-ink); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 0.9rem; color: var(--footer-ink-2); }
.footer-legal .ehl { display: inline-flex; align-items: center; gap: 8px; }
.footer-legal .ehl svg { width: 26px; height: 26px; }
.footer-legal a { color: var(--footer-ink); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Leaving-site dialog */
dialog.leave { border: 0; border-radius: var(--r-l); padding: 0; max-width: min(92vw, 520px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
dialog.leave::backdrop { background: rgba(10, 20, 13, 0.55); }
dialog.leave .inner { padding: 28px 28px 24px; }
dialog.leave h2 { font-size: 1.4rem; margin-bottom: 0.4em; }
dialog.leave p { color: var(--ink-2); }
dialog.leave .host { font-weight: 700; color: var(--ink); word-break: break-all; }
dialog.leave .actions { margin-top: 20px; }

/* 404 */
.notfound { text-align: left; padding-block: clamp(48px, 8vw, 96px); max-width: 60ch; }

@media print {
  .site-nav, .menu-toggle, .skip, .hero .actions, dialog { display: none !important; }
  .hero { background: #fff; color: #000; }
  a { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
