/* Daim Fund — colours come straight from the logo. */
:root {
  --navy: #2f2e7f;
  --navy-deep: #1d1c55;
  --yellow: #fada19;
  --red: #ef483e;
  --ink: #2b2b33;
  --muted: #5d5d6b;
  --paper: #ffffff;
  --cream: #f8f5ee;
  --line: #e4e0d6;
  --serif: "Old Standard TT", Georgia, "Times New Roman", serif;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.7 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 22px; margin-top: 1.4em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); text-align: center; margin-bottom: 36px; }
.lede { font-size: 19px; color: var(--muted); max-width: 720px; }
.note { font-size: 15px; color: var(--muted); font-style: italic; }

/* Buttons */
.btn { display: inline-block; font: 500 16px/1 var(--sans); padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .2s; box-shadow: 0 3px 11px rgba(0,0,0,.25); }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: var(--yellow); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(29,28,85,.96); box-shadow: 0 2px 14px rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 96px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.nav a:hover { color: var(--yellow); }
.nav-fb { display: inline-flex; }

/* Hero */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,50,.55), rgba(20,18,50,.45) 60%, rgba(20,18,50,.7)); }
.hero-inner { position: relative; z-index: 1; padding-top: 60px; }
.hero h1 { color: #fff; font-size: clamp(40px, 7vw, 76px); margin-bottom: .25em; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 34px; }

/* About */
.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { border-radius: 6px; box-shadow: 0 18px 40px rgba(29,28,85,.18); }
.covers { margin-top: 64px; background: var(--cream); border-left: 5px solid var(--yellow); padding: 34px 38px; border-radius: 4px; }
.covers h3 { margin-top: 0; }
.cover-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 32px; }
.cover-list li { position: relative; padding-left: 26px; }
.cover-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); }
.gallery { margin-top: 56px; display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 16px; }
.gallery img { width: 100%; height: 320px; object-fit: cover; border-radius: 4px; }

/* Give */
.section-give { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.give-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.section-give .wrap { position: relative; }
.section-give h2 { color: #fff; }
.section-give .lede { color: rgba(255,255,255,.88); }
.tiers { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; color: #fff; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.tier:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.tier .amt { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.1; }
.tier .lbl { font-size: 16px; letter-spacing: .02em; }

/* Qualify */
.checks { padding: 0; list-style: none; margin: 0 0 1.2em; }
.checks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--navy); font-weight: 700; }

/* Quote */
.quote-band { background: var(--yellow); padding: clamp(56px, 8vw, 90px) 0; text-align: center; }
.quote-band blockquote { margin: 0; }
.quote-band p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; color: var(--navy); }
.quote-band cite { font-style: normal; font-weight: 500; color: var(--navy); letter-spacing: .03em; }

/* Partners */
.partners { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partners li > * { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 110px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--navy); text-decoration: none; background: #fff; }
.partners a:hover { border-color: var(--navy); background: var(--cream); }

/* Contact */
.section-contact { background: var(--cream); }
.contact-form { margin-top: 28px; display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea { font: 400 17px/1.5 var(--sans); color: var(--ink); padding: 13px 14px; border: 1px solid #cfcabe; border-radius: 4px; background: #fff; width: 100%; text-transform: none; letter-spacing: 0; }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #1b6b3a; }
.form-status.err { color: #b0261d; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); text-align: center; padding: 56px 0 44px; font-size: 15px; }
.footer-inner { display: grid; justify-items: center; gap: 4px; }
.footer-inner img { width: 140px; margin-bottom: 18px; }
.site-footer a { color: #fff; }
.site-footer .small { font-size: 13px; opacity: .75; margin-top: 10px; }

/* Phones and tablets */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 460px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand img { width: 76px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-fb) { font-size: 13px; }
  .nav a[href="#qualify"] { display: none; }
  .covers { padding: 26px 20px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
  .gallery img:last-child { display: none; }
  .tiers { gap: 12px; }
  .tier { padding: 20px 16px; }
  .tier .amt { font-size: 30px; }
  .partners { grid-template-columns: 1fr; }
  .partners li > * { min-height: 72px; }
  .contact-form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tier { transition: none; }
}
