/* ============================================================
   WestRiver Community Bank — design tokens
   ============================================================ */
:root{
  --ink:#142B3C; --ink-dark:#0E2233; --paper:#EEF0EA; --paper-2:#E4E7DD;
  --river:#2C6E8E; --river-dark:#1F5266; --moss:#4E7355; --clay:#9C4A3C;
  --gold:#B8935A; --slate:#2B3238; --line: rgba(20,43,60,0.14);
  --shadow: 0 20px 50px rgba(14,34,51,0.16);
  --radius: 10px;
}
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--paper); color:var(--slate);
  font-family:'IBM Plex Sans', sans-serif; line-height:1.5;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img,svg{max-width:100%; display:block;}
a{color:inherit;}
.wrap{width:100%; max-width:1180px; margin:0 auto; padding:0 32px;}
h1,h2,h3{font-family:'Fraunces', serif; color:var(--ink); font-weight:600; margin:0;}
.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:.74rem; letter-spacing:.13em;
  text-transform:uppercase; color:var(--river-dark); margin:0 0 10px;
}

/* ============================================================
   Topographic contour background — the valley, rendered as
   a literal map: layered elevation lines that drift almost
   imperceptibly, giving the whole page quiet depth.
   ============================================================ */
.contour-bg{
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background-color:var(--paper);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(44,110,142,0.10), transparent 40%),
    radial-gradient(circle at 95% 30%, rgba(184,147,90,0.10), transparent 38%),
    repeating-radial-gradient(circle at 20% 115%, transparent 0 34px, rgba(44,110,142,0.07) 35px, transparent 36px),
    repeating-radial-gradient(circle at 20% 115%, transparent 0 70px, rgba(78,115,85,0.06) 71px, transparent 72px);
  background-size: auto, auto, 100% 100%, 100% 100%;
  animation: driftContours 60s linear infinite;
}
@keyframes driftContours{
  0%{ background-position: 0 0, 0 0, 0 0, 0 0; }
  100%{ background-position: 0 0, 0 0, 40px -20px, -30px 25px; }
}
@media (prefers-reduced-motion: reduce){ .contour-bg{ animation:none; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:12px 20px; border-radius:4px; font-weight:600; font-size:.9rem;
  text-decoration:none; border:1.5px solid transparent; transition:all .15s ease;
  cursor:pointer; white-space:nowrap;
}
.btn-primary{ background:var(--river-dark); color:#fff; }
.btn-primary:hover{ background:var(--ink); }
.btn-ghost{ background:transparent; border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--river-dark); color:var(--river-dark); }
.btn-sm{ padding:9px 16px; font-size:.84rem; }
.btn-block{ width:100%; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:50; background:rgba(238,240,234,0.86);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
}
.site-header nav{
  max-width:1180px; margin:0 auto; padding:16px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{
  display:flex; align-items:center; gap:9px; font-family:'Fraunces',serif;
  font-weight:600; font-size:1.15rem; color:var(--ink); text-decoration:none; flex-shrink:0;
}
.nav-links{ display:flex; gap:28px; }
.nav-links a{
  text-decoration:none; color:var(--slate); font-size:.9rem; font-weight:500;
  position:relative; padding:4px 0;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1.5px;
  background:var(--gold); transition:width .18s ease;
}
.nav-links a:hover::after{ width:100%; }
.nav-actions{ display:flex; align-items:center; gap:10px; }

.menu-toggle{
  display:none; width:34px; height:34px; border:none; background:none; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:0;
}
.menu-toggle span{
  width:22px; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-panel{
  display:none; flex-direction:column; gap:2px; padding:8px 20px 20px;
  border-top:1px solid var(--line);
}
.mobile-panel a{
  padding:12px 4px; text-decoration:none; color:var(--ink); font-size:.95rem;
  border-bottom:1px solid var(--line);
}
.mobile-panel .btn{ margin-top:12px; }

/* ============================================================
   Hero
   ============================================================ */
.hero{ padding:64px 0 40px; position:relative; }
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
}
.hero h1{ font-size:2.7rem; line-height:1.14; margin-bottom:16px; letter-spacing:-.01em; }
.hero .lede{ font-size:1.05rem; color:#495650; max-width:480px; margin:0 0 26px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:26px; }
.hero-trust{ display:flex; gap:20px; flex-wrap:wrap; }
.hero-trust span{ font-size:.82rem; color:#5a625f; }

/* --- hero visual: town illustration + 3D floating vault scene --- */
.hero-photo{
  position:relative; border-radius:14px; overflow:visible;
  box-shadow:var(--shadow); perspective:1200px;
}
.hero-photo svg{ border-radius:14px; display:block; }
.badge{
  position:absolute; left:18px; bottom:18px; background:rgba(14,34,51,0.72);
  color:#EDEFE5; font-family:'IBM Plex Mono',monospace; font-size:.72rem;
  letter-spacing:.05em; padding:7px 12px; border-radius:3px; backdrop-filter:blur(4px);
}

.float-scene{
  position:absolute; right:-34px; top:-34px; width:190px; height:190px;
  transform-style:preserve-3d; z-index:3; pointer-events:none;
}
.float-scene-inner{
  width:100%; height:100%; position:relative; transform-style:preserve-3d;
  animation: floatScene 6.5s ease-in-out infinite;
}
@keyframes floatScene{
  0%,100%{ transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50%{ transform: translateY(-12px) rotateX(4deg) rotateY(7deg); }
}
@media (prefers-reduced-motion: reduce){ .float-scene-inner{ animation:none; } }

.f-card{
  position:absolute; width:132px; height:84px; left:30px; top:52px;
  border-radius:9px; transform: rotateX(16deg) rotateY(-22deg) translateZ(30px);
  background: linear-gradient(135deg, #2C6E8E 0%, #1F5266 60%, #16303F 100%);
  box-shadow:0 20px 34px rgba(14,34,51,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  padding:10px 12px; color:#fff;
}
.f-card .chip{ width:20px; height:15px; border-radius:3px; background:linear-gradient(135deg,#DDCB9E,#B8935A); margin-bottom:12px; }
.f-card .num{ font-family:'IBM Plex Mono',monospace; font-size:.56rem; letter-spacing:.08em; opacity:.9; }

.f-coin{
  position:absolute; width:42px; height:42px; border-radius:50%; left:6px; top:126px;
  background: radial-gradient(circle at 35% 30%, #E4CD9B, #B8935A 65%, #8A6A3E 100%);
  transform: rotateX(18deg) rotateY(32deg) translateZ(58px);
  box-shadow:0 14px 22px rgba(14,34,51,0.4);
  display:flex; align-items:center; justify-content:center;
}
.f-coin svg{ width:17px; height:17px; }

.f-ring{
  position:absolute; width:150px; height:150px; border-radius:50%; left:20px; top:14px;
  transform: rotateX(62deg) translateZ(-20px);
  border:1.5px solid rgba(184,147,90,0.5);
}

/* ============================================================
   Ledger strip (stat bar)
   ============================================================ */
.ledger{
  background:var(--ink); color:#EDEFE5; padding:26px 0; margin-top:8px;
}
.ledger .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.stat{ display:flex; flex-direction:column; align-items:flex-start; }
.stat b{ font-family:'Fraunces',serif; font-size:1.6rem; color:var(--gold); }
.stat span{ font-size:.78rem; color:#B9CAC3; margin-top:2px; }

/* ============================================================
   Generic sections
   ============================================================ */
section{ padding:76px 0; }
.section-head{ max-width:600px; margin:0 0 42px; }
.section-head h2{ font-size:2rem; margin-bottom:12px; line-height:1.2; }
.section-head p{ color:#5a625f; font-size:.98rem; margin:0; }

.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px; transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.card .num{
  font-family:'IBM Plex Mono',monospace; font-size:.74rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--gold);
}
.card h3{ font-size:1.2rem; margin:10px 0 10px; }
.card p{ font-size:.9rem; color:#5a625f; margin:0 0 16px; }
.card-link{
  font-size:.86rem; font-weight:600; color:var(--river-dark); text-decoration:none;
}
.card-link:hover{ color:var(--ink); }

/* ============================================================
   Rates table
   ============================================================ */
.rates-scroll{ width:100%; overflow-x:auto; }
table.rates{ width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); min-width:520px; }
table.rates th, table.rates td{ padding:16px 20px; text-align:left; font-size:.9rem; }
table.rates thead th{
  background:var(--ink); color:#EDEFE5; font-weight:600; font-size:.76rem;
  text-transform:uppercase; letter-spacing:.06em; font-family:'IBM Plex Mono',monospace;
}
table.rates tbody tr:not(:last-child){ border-bottom:1px solid var(--line); }
table.rates .rate{ font-family:'IBM Plex Mono',monospace; font-weight:600; color:var(--moss); }

/* ============================================================
   Community / split
   ============================================================ */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.quote-block{
  background:var(--ink); color:#EDEFE5; padding:38px 32px; border-radius:var(--radius);
  position:relative;
}
.quote-block p{ font-family:'Fraunces',serif; font-size:1.25rem; line-height:1.45; font-weight:500; margin:0 0 16px; }
.quote-block footer{ font-size:.82rem; color:#B9CAC3; }
.list-check{ list-style:none; margin:20px 0 0; padding:0; display:flex; flex-direction:column; gap:16px; }
.list-check li{ display:flex; align-items:flex-start; gap:12px; font-size:.94rem; color:#3c4640; }
.list-check svg{ flex-shrink:0; margin-top:1px; }

/* ============================================================
   Trust / security section
   ============================================================ */
#trust{ background:var(--paper-2); }

/* ============================================================
   CTA band
   ============================================================ */
.cta{
  background:linear-gradient(135deg, var(--river-dark), var(--ink));
  color:#EDEFE5; text-align:center; padding:70px 32px;
}
.cta h2{ color:#fff; font-size:1.9rem; max-width:640px; margin:0 auto 14px; }
.cta p{ color:#C7D6D0; max-width:520px; margin:0 auto 28px; }

/* ============================================================
   Footer
   ============================================================ */
footer.site{ background:var(--ink-dark); color:#B9CAC3; padding:32px 0; }
footer.site .wrap{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap; }
footer.site a{ text-decoration:none; color:#EDEFE5; font-size:.88rem; }
footer.site span{ font-size:.86rem; }
.fdic{ font-size:.74rem; color:#7C8B85; margin-top:8px; max-width:520px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero h1{ font-size:2.25rem; }
  .hero-grid{ gap:40px; }
  .cards{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 880px){
  .wrap{ padding:0 22px; }
  .nav-links{ display:none; }
  .nav-actions .btn:not(.menu-toggle){ display:none; }
  .menu-toggle{ display:flex; }
  .mobile-panel.open{ display:flex; }
  .site-header nav{ padding:14px 22px; }

  .hero{ padding:40px 0 32px; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero h1{ font-size:1.9rem; }
  .hero .lede{ max-width:100%; }
  .hero-photo{ order:-1; margin-bottom:8px; }
  .float-scene{ width:150px; height:150px; right:-16px; top:-24px; }
  .f-card{ width:104px; height:66px; left:22px; top:40px; }
  .f-coin{ width:34px; height:34px; top:100px; }
  .f-ring{ width:120px; height:120px; }

  .ledger .wrap{ justify-content:flex-start; gap:32px 40px; }

  section{ padding:56px 0; }
  .section-head h2{ font-size:1.6rem; }
  .cards{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; gap:32px; }
  .quote-block{ order:2; }

  .cta{ padding:52px 24px; }
  .cta h2{ font-size:1.5rem; }

  footer.site .wrap{ flex-direction:column; }
}

@media (max-width: 480px){
  .hero h1{ font-size:1.6rem; }
  .hero-trust{ flex-direction:column; gap:8px; }
  .stat b{ font-size:1.3rem; }
  .ledger .wrap{ gap:24px 28px; }
  .float-scene{ width:118px; height:118px; right:-10px; top:-18px; }
  .f-card{ width:84px; height:54px; left:18px; top:32px; padding:8px 9px; }
  .f-card .chip{ width:16px; height:12px; margin-bottom:8px; }
  .f-coin{ width:28px; height:28px; top:80px; }
  .f-ring{ width:96px; height:96px; }
  .btn{ padding:11px 16px; font-size:.86rem; }
}
