/* ReSolutLy — Resilient Solutions Laboratory
   Bold, mission-driven site styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --indigo: #1B1464;
  --indigo-dark: #100B42;
  --indigo-tint: #EDECF8;
  --coral: #F2542D;
  --coral-dark: #D6431F;
  --gold: #F4B93E;
  --bg: #FAF7F2;
  --paper: #FFFFFF;
  --text: #1E1B33;
  --text-soft: #55506E;
  --border: #E4DFD3;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--indigo);
  line-height: 1.15;
  margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { color: var(--text-soft); }

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--coral); text-decoration: none; }

.nav-links a.active { color: var(--indigo); font-weight: 700; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-coral:hover { background: var(--coral-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: var(--indigo);
  color: var(--indigo);
}
.btn-outline:hover { background: var(--indigo); color: #fff; text-decoration: none; }

.btn-outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--indigo); text-decoration: none; }

/* Hero */
.hero {
  background: var(--indigo);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,84,45,0.35), transparent 70%);
}

.hero .container { position: relative; z-index: 2; }

.hero h1 { color: #fff; max-width: 760px; }

.hero p.lead {
  color: #D9D6EF;
  font-size: 1.2rem;
  max-width: 620px;
  margin: 22px 0 34px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 14px;
  display: inline-block;
}

/* Sections */
section { padding: 70px 0; }
section.tight { padding: 50px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.card .num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.pill {
  display: inline-block;
  background: var(--indigo-tint);
  color: var(--indigo);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.pill.coral { background: #FCE4DC; color: var(--coral-dark); }
.pill.gold { background: #FBEFD3; color: #8A6512; }
.pill.green { background: #DCEFE5; color: #1F6F54; }

/* Callout / CTA band */
.cta-band {
  background: var(--coral);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFE3D9; max-width: 560px; margin: 12px auto 28px; }

/* Blog */
.post-list { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.post-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.post-item:first-child { padding-top: 0; }
.post-item .date { color: var(--text-soft); font-size: 0.85rem; font-weight: 600; }
.post-item h3 { margin: 8px 0 8px; }
.post-item h3 a { color: var(--indigo); }
.post-item h3 a:hover { color: var(--coral); text-decoration: none; }

.post-body { max-width: 720px; }
.post-body p { color: var(--text); }
.post-body h2 { margin-top: 36px; }

/* Forms */
form { max-width: 560px; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }

/* Donate embed placeholder */
.donate-embed {
  border: 2px dashed var(--coral);
  background: #FFF7F4;
  border-radius: 14px;
  padding: 40px;
  text-align: center;
}
.donate-embed .tag {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.amounts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 22px 0; }
.amount-btn {
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid var(--indigo);
  color: var(--indigo);
  font-weight: 700;
  background: #fff;
}

/* Footer */
.site-footer {
  background: var(--indigo-dark);
  color: #C9C6E4;
  padding: 54px 0 30px;
  margin-top: 60px;
}
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #C9C6E4; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.timeline-item .marker {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
  flex-shrink: 0;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
  align-items: start;
}
@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-5 { grid-template-columns: 1fr; }
}

.logic-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  border-top: 4px solid var(--indigo);
}
.logic-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.logic-card ul {
  margin: 0;
  padding-left: 18px;
}
.logic-card li {
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.5;
  margin-bottom: 9px;
}

.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.working-card {
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
}
.photo-band {
  position: relative;
  overflow: hidden;
  background: var(--indigo-dark);
}
.photo-band img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  opacity: 0.96;
}
.photo-band .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 24px 30px;
  background: linear-gradient(to top, rgba(16,11,66,0.88) 10%, rgba(16,11,66,0.15) 75%, transparent);
  text-align: center;
}
.photo-band .caption p {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.35;
}

.working-card .status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status.active { color: #1F6F54; }
.status.upcoming { color: #8A6512; }
.status.complete { color: var(--text-soft); }
