/* =========================
   RESTORING HOPE — REFINED CSS (v2: more contrast)
========================= */

:root {
  --rh-teal: #2A5754;          /* slightly softened from the deep version */
  --rh-teal-deep: #1A3A38;
  --rh-teal-muted: #4F807B;
  --rh-gold: #B89456;
  --rh-gold-soft: #E0CD9A;
  --rh-cream: #F6ECD6;
  --rh-paper: #FBF7EE;
  --rh-paper-2: #F1E8D2;
  --rh-sage: #93BCAD;
  --rh-ink: #25302E;           /* warmer than near-black */
  --rh-ink-soft: #586866;
  --rh-rule: rgba(37, 48, 46, 0.1);
  --rh-rule-strong: rgba(37, 48, 46, 0.22);

  /* Layered, soft shadows — diffused and warm-tinted */
  --rh-shadow-sm: 0 1px 2px rgba(37, 48, 46, 0.04), 0 4px 12px -4px rgba(37, 48, 46, 0.06);
  --rh-shadow-md: 0 2px 4px rgba(37, 48, 46, 0.05), 0 12px 28px -8px rgba(37, 48, 46, 0.10);
  --rh-shadow-lg: 0 6px 14px rgba(37, 48, 46, 0.06), 0 30px 60px -20px rgba(37, 48, 46, 0.18);
  --rh-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(37, 48, 46, 0.04);

  /* Soft radius scale — generous and pillowy */
  --rh-r-sm: 12px;
  --rh-r-md: 20px;
  --rh-r-lg: 28px;
  --rh-r-xl: 40px;
  --rh-r-pill: 999px;

  --font-display: "Cormorant Garamond", "Source Serif Pro", Georgia, serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

.rh {
  font-family: var(--font-body);
  color: var(--rh-ink);
  background: var(--rh-paper);
  /* Subtle paper grain — warms the whole canvas */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(184, 148, 86, 0.05), transparent 45%),
    radial-gradient(circle at 82% 88%, rgba(147, 188, 173, 0.06), transparent 50%);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
.rh * { box-sizing: border-box; }

.rh h1, .rh h2, .rh h3, .rh h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--rh-teal);
  margin: 0;
  text-wrap: balance;
}

.rh p { margin: 0 0 1em; text-wrap: pretty; }
.rh a { color: var(--rh-teal); text-decoration: none; border-bottom: 1px solid var(--rh-gold); }
.rh a:hover { color: var(--rh-gold); }

.rh .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}
.rh .container--narrow { max-width: 880px; }

.rh .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rh-teal-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rh .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rh-gold);
}

/* Buttons — unified pill system
   All variants: pill-shaped, same padding, lift + arrow-shift on hover,
   gold accent on hover for solid variants, teal fill on hover for ghosts. */
.rh .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: var(--rh-r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  will-change: transform;
}
.rh .btn:hover { transform: translateY(-2px); }
.rh .btn:active { transform: translateY(0); }
.rh .btn:focus-visible {
  outline: 2px solid var(--rh-gold);
  outline-offset: 3px;
}

/* Primary — teal pill, gold on hover. Layered shadow for depth. */
.rh .btn--primary {
  background: linear-gradient(180deg, var(--rh-teal-muted) 0%, var(--rh-teal) 100%);
  color: var(--rh-paper);
  border-color: var(--rh-teal);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 1px 2px rgba(20, 32, 31, 0.10),
    0 8px 20px -6px rgba(31, 71, 68, 0.32);
}
.rh .btn--primary:hover {
  background: linear-gradient(180deg, var(--rh-gold-soft) 0%, var(--rh-gold) 100%);
  color: var(--rh-teal-deep);
  border-color: var(--rh-gold);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 8px rgba(184, 148, 86, 0.18),
    0 14px 28px -8px rgba(184, 148, 86, 0.42);
}

/* Gold — same hover destination, just inverted starting state */
.rh .btn--gold {
  background: linear-gradient(180deg, var(--rh-gold-soft) 0%, var(--rh-gold) 100%);
  color: var(--rh-teal-deep);
  border-color: var(--rh-gold);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 1px 2px rgba(20, 32, 31, 0.08),
    0 10px 24px -8px rgba(184, 148, 86, 0.42);
}
.rh .btn--gold:hover {
  background: linear-gradient(180deg, var(--rh-teal-muted) 0%, var(--rh-teal) 100%);
  color: var(--rh-paper);
  border-color: var(--rh-teal);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 8px rgba(31, 71, 68, 0.18),
    0 14px 28px -8px rgba(31, 71, 68, 0.38);
}

/* Ghost — soft cream pill on light bg; fills teal on hover */
.rh .btn--ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--rh-teal);
  border-color: var(--rh-rule-strong);
  box-shadow: 0 1px 2px rgba(37, 48, 46, 0.04), 0 4px 10px -4px rgba(37, 48, 46, 0.08);
}
.rh .btn--ghost:hover {
  background: var(--rh-teal);
  color: var(--rh-paper);
  border-color: var(--rh-teal);
  box-shadow: 0 8px 20px -6px rgba(31, 71, 68, 0.28);
}

/* Ghost on dark bg — outline cream; fills gold on hover */
.rh .btn--ghost-light {
  background: rgba(246, 236, 214, 0.06);
  color: var(--rh-cream);
  border-color: rgba(244, 234, 211, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.rh .btn--ghost-light:hover {
  background: linear-gradient(180deg, var(--rh-gold-soft) 0%, var(--rh-gold) 100%);
  color: var(--rh-teal-deep);
  border-color: var(--rh-gold);
  box-shadow: 0 10px 24px -8px rgba(184, 148, 86, 0.42);
}

.rh .btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
  font-family: var(--font-body);
}
.rh .btn:hover .arrow { transform: translateX(4px); }

/* Nav */
.rh-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(250, 246, 237, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, padding .3s ease;
}
.rh-nav.scrolled {
  background: rgba(250, 246, 237, 0.95);
  border-bottom-color: var(--rh-rule);
  padding: 12px 0;
}
.rh-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.rh-nav__brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--rh-teal);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-bottom: none;
}
.rh-nav__mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rh-teal-deep);
  color: var(--rh-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rh-nav__mark svg { width: 22px; height: 22px; }
.rh-nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.rh-nav__brand-text > span {
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.rh-nav__brand-text em {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rh-gold);
  margin-top: 4px;
}
.rh-nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
}
.rh-nav__links a {
  color: var(--rh-ink);
  border-bottom: none;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.rh-nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--rh-gold);
  transition: width .25s ease;
}
.rh-nav__links a:hover { color: var(--rh-teal); }
.rh-nav__links a:hover::after { width: 100%; }
.rh-nav__cta {
  font-size: 13px;
  padding: 11px 22px;
}
.rh-nav__hamburger {
  display: none;
  background: none;
  border: 1px solid var(--rh-rule-strong);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rh-teal);
}

/* Section base */
.rh-section { padding: 140px 0; position: relative; }
.rh-section--paper { background: var(--rh-paper); }
.rh-section--cream {
  background: var(--rh-cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(184, 148, 86, 0.10), transparent 50%),
    radial-gradient(circle at 88% 92%, rgba(147, 188, 173, 0.10), transparent 55%);
}
.rh-section--teal {
  background: var(--rh-teal);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(184, 148, 86, 0.14), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(26, 58, 56, 0.55), transparent 60%);
  color: var(--rh-cream);
}
.rh-section--teal h1, .rh-section--teal h2, .rh-section--teal h3 { color: var(--rh-cream); }
.rh-section--teal .eyebrow { color: var(--rh-gold); }
.rh-section--teal .eyebrow::before { background: var(--rh-gold); }

.rh-sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.rh-sec-head__title {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.02;
  font-weight: 300;
}
.rh-sec-head__lede {
  font-size: 17px;
  color: var(--rh-ink-soft);
  max-width: 480px;
  margin: 0;
}

/* Footer */
.rh-footer {
  background: var(--rh-teal-deep);
  color: rgba(244, 234, 211, 0.7);
  padding: 100px 0 40px;
  font-size: 13px;
}
.rh-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244, 234, 211, 0.12);
  margin-bottom: 32px;
}
.rh-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rh-gold);
  margin: 0 0 22px;
}
.rh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rh-footer a { color: rgba(244, 234, 211, 0.85); border-bottom: none; transition: color .2s; }
.rh-footer a:hover { color: var(--rh-gold); }
.rh-footer__brand {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--rh-cream);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.rh-footer__bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 234, 211, 0.5);
}

/* Image placeholder */
.rh-placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 14px,
      rgba(37, 48, 46, 0.05) 14px,
      rgba(37, 48, 46, 0.05) 15px
    ),
    var(--rh-paper-2);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rh-ink-soft);
  border-radius: var(--rh-r-md);
  padding: 20px;
  text-align: center;
}

@media (max-width: 900px) {
  .rh .container { padding: 0 24px; }
  .rh-nav__links, .rh-nav__cta { display: none; }
  .rh-nav__hamburger { display: inline-flex; }
  .rh-sec-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .rh-section { padding: 80px 0; }
  .rh-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
