/* Matches the original Wix design of unrestrictedfunds.com */
:root {
  --cream: #f3f2dc;
  --cream-dark: #f0e7cb;
  --ink: #31302c;
  --nav-active: #5c739d;
  --link: #7e60df;
  --th: #929184;
  --orange: #f59a28;
  --sand: #e0d19c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Overpass", Arial, Helvetica, sans-serif;
  font-weight: 400;
  padding-top: 107px;
}

a { color: var(--link); }

/* ---------- Header (fixed, translucent, three evenly spaced items) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: 107px;
  background: rgba(243, 242, 220, 0.71);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.site-header nav {
  max-width: 980px; height: 100%; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
}
.site-header a {
  text-align: center; text-decoration: none; color: var(--ink);
  font-size: 16px; line-height: 50px; padding: 0 10px;
}
.site-header a:hover, .site-header a[aria-current="page"] { color: var(--nav-active); }

/* ---------- Bordered boxes (hero / page titles / footer) ---------- */
.frame {
  margin: 10px 15px 0;
  border: 3px solid var(--ink);
  background: var(--cream-dark);
  text-align: center;
}
.hero { padding: 20px 20px 46px; }
.hero img.logo { width: 150px; height: 150px; display: block; margin: 0 auto 34px; object-fit: contain; }
.hero .tagline { font-weight: 600; font-size: 20px; line-height: 32px; letter-spacing: 1px; margin: 0; }

.title-box { padding: 26px 20px; }
.title-box h1 { margin: 0; font-weight: 700; font-size: 40px; line-height: 56px; }

/* ---------- Home intro ---------- */
.intro { max-width: 980px; margin: 0 auto; padding: 34px 20px 30px; text-align: center; }
.intro h2 { margin: 0 0 14px; font-weight: 700; font-size: 40px; line-height: 1.2; }
.intro p { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.35; }

/* ---------- Submit strip (gradient) ---------- */
.submit {
  min-height: 299px; padding: 34px 20px 28px; text-align: center;
  background:
    radial-gradient(circle at 94.35% 89.62%, rgba(224, 209, 156, 0.98) 0%, 20%, rgba(224, 209, 156, 0) 40%),
    radial-gradient(circle at 5.86% 87.84%, rgba(0, 0, 0, 0.11) 0%, 25%, rgba(0, 0, 0, 0) 50%),
    radial-gradient(circle at 8.2% 14.69%, rgb(243, 242, 220) 0%, 42%, rgba(243, 242, 220, 0) 70%),
    radial-gradient(circle at 93.69% 11.43%, rgb(245, 154, 40) 0%, 42%, rgba(245, 154, 40, 0) 70%),
    radial-gradient(circle at 48.9% 49.52%, rgb(243, 242, 220) 0%, 100%, rgba(243, 242, 220, 0) 100%);
}
.submit h2 { margin: 0 0 22px; font-weight: 400; font-size: 56px; line-height: 78.4px; }
.submit p { max-width: 600px; margin: 0 auto 22px; font-size: 14px; line-height: 19.6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 142px; height: 42px; padding: 0 16px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-family: "Libre Baskerville", Georgia, serif; font-size: 14px; letter-spacing: 1.4px;
}
.btn:hover { opacity: 0.85; }

/* ---------- Grant table ---------- */
.table-wrap { margin: 0 15px; border: 2px solid var(--ink); background: #fff; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; }
thead { background: var(--th); }
th {
  height: 45px; padding: 0 8px; text-align: left; color: #fff;
  font-weight: 700; font-size: 14px; line-height: 19.6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
td {
  height: 54px; padding: 6px 8px; font-size: 12px; line-height: 16.8px; color: #000;
  border-right: 2px solid var(--ink); vertical-align: middle; word-break: break-word;
}
th:last-child, td:last-child { border-right: 0; }
tbody tr:nth-child(odd) { background: rgba(243, 242, 220, 0.97); }
tbody tr:nth-child(even) { background: #fff; }
td a { color: var(--link); text-decoration: none; word-break: break-all; }
td a:hover { text-decoration: underline; }

/* ---------- Services ---------- */
.content { max-width: 980px; margin: 0 auto; padding: 30px 37px 40px; }
.service { margin-bottom: 44px; }
.service h2 { margin: 0 0 22px; font-weight: 800; font-size: 24px; line-height: 1.3; }
.service ul { margin: 0; padding-left: 26px; }
.service li { font-size: 14px; line-height: 1.6; }

/* ---------- About ---------- */
.about-intro h2 { margin: 18px 0 14px; font-weight: 700; font-size: 40px; line-height: 1.2; }
.about-intro p { margin: 0; font-size: 18px; line-height: 1.45; }
.person {
  display: grid; grid-template-columns: 1fr 310px; gap: 48px; align-items: start;
  margin-top: 60px;
}
.person.flip { grid-template-columns: 310px 1fr; }
.person.flip .photo { order: -1; }
.person h3 { margin: 0 0 22px; font-weight: 800; font-size: 24px; line-height: 1.35; }
.person p { margin: 0 0 18px; font-size: 18px; line-height: 1.5; }
.person p a { color: var(--ink); }
.photo {
  width: 310px; height: 381px; object-fit: cover; display: block;
  border-radius: 155px 155px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin: 40px 15px 15px; border: 2px solid var(--ink);
  padding: 12px 20px 8px; text-align: center;
}
.hands { display: flex; justify-content: center; gap: 30px; }
.hands img { width: 49px; height: 103px; }
.hands img:first-child { transform: scaleX(-1); }
.site-footer a { font-size: 13px; line-height: 28.6px; text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { padding-top: 60px; }
  .site-header { height: 60px; }
  .site-header a { font-size: 14px; }
  .hero img.logo { width: 120px; height: 120px; margin-bottom: 20px; }
  .intro h2, .title-box h1, .about-intro h2 { font-size: 30px; line-height: 1.25; }
  .intro p, .hero .tagline { font-size: 17px; }
  .submit h2 { font-size: 38px; line-height: 1.2; }
  .content { padding: 24px 20px 30px; }
  .person, .person.flip { grid-template-columns: 1fr; gap: 20px; }
  .person.flip .photo { order: 0; }
  .photo { margin: 0 auto; width: 260px; height: 320px; border-radius: 130px 130px 0 0; }
  .person p { font-size: 16px; }
}
