/* Rise Again Recovery Services — static site styles
   Cream theme with navy / gold / green accents drawn from the logo. */

@font-face { font-display: swap; }

:root {
  --cream: #f8f1e2;
  --cream-2: #f1e6d0;
  --cream-3: #fbf6ec;
  --navy: #012b4e;
  --navy-2: #0a3a63;
  --gold: #fac356;
  --gold-ink: #c79324;
  --green: #637d45;
  --muted: #4a5d6c;
  --muted-2: #51626f;
  --line: rgba(1, 43, 78, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(250, 195, 86, 0.4); color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 241, 226, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(1, 43, 78, 0.16);
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}
.brand-sub {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600 !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { background: var(--navy-2) !important; box-shadow: 0 8px 20px rgba(1, 43, 78, 0.2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons / shared ---------- */
.btn-primary {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream-3);
  background: var(--navy);
  border: none;
  border-radius: 14px;
  padding: 15px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { background: var(--navy-2); box-shadow: 0 10px 26px rgba(1, 43, 78, 0.22); }
.btn-primary:active { transform: translateY(1px); }

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 9vw, 88px) 24px clamp(64px, 10vw, 96px);
  overflow: hidden;
}
.hero--home { min-height: calc(100svh - 75px); }
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fbf6ec 0%, #f8f1e2 46%, #f4ead4 100%);
  z-index: 0;
}
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -8%;
  transform: translateX(-50%);
  width: 165%;
  height: 72%;
  background: radial-gradient(58% 100% at 50% 100%, rgba(250, 197, 90, 0.55) 0%, rgba(245, 180, 110, 0.30) 30%, rgba(99, 125, 69, 0.10) 52%, rgba(248, 241, 226, 0) 72%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  animation: dawnGlow 12s ease-in-out infinite alternate;
}
.hero-haze {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120%;
  height: 38%;
  background: radial-gradient(46% 100% at 50% 100%, rgba(252, 210, 128, 0.45) 0%, rgba(252, 210, 128, 0) 70%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
  animation: haze 9s ease-in-out infinite alternate;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emblem-lg {
  width: clamp(150px, 38vw, 208px);
  height: clamp(150px, 38vw, 208px);
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(1, 43, 78, 0.18), 0 0 0 1px rgba(1, 43, 78, 0.06);
  margin-bottom: 32px;
}
.emblem-lg img { width: 100%; height: 100%; object-fit: cover; }
.hero-title {
  margin: 0;
  font-size: clamp(40px, 9vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.hero-lead {
  margin: 26px 0 0;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 500px;
  text-wrap: pretty;
}

/* ---------- Notify form ---------- */
.notify { width: 100%; max-width: 460px; margin-top: 40px; }
.notify-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.notify-form label {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding-left: 4px;
}
.notify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify-row input {
  flex: 1 1 200px;
  min-width: 0;
  font-family: inherit;
  font-size: 18px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(1, 43, 78, 0.18);
  border-radius: 14px;
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.notify-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250, 195, 86, 0.34); }
.notify-row button {
  flex: 1 1 140px;
  min-width: 140px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream-3);
  background: var(--navy);
  border: none;
  border-radius: 14px;
  padding: 15px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.notify-row button:hover { background: var(--navy-2); box-shadow: 0 10px 26px rgba(1, 43, 78, 0.22); }
.notify-row button:active { transform: translateY(1px); }
.notify-row button:focus-visible { box-shadow: 0 0 0 3px rgba(250, 195, 86, 0.5); }
.notify-done {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: rgba(99, 125, 69, 0.12);
  border: 1px solid rgba(99, 125, 69, 0.4);
  border-radius: 16px;
  padding: 18px 20px;
}
.notify-done svg { flex: 0 0 auto; }
.notify-done p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--navy); }

/* ---------- Generic section ---------- */
.section { position: relative; z-index: 1; padding: clamp(64px, 11vw, 120px) 24px; }
.section--cream2 { background: var(--cream-2); border-top: 1px solid rgba(1, 43, 78, 0.07); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 7vw, 68px); text-align: center; }
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}
.section-head p {
  margin: 18px auto 0;
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 560px;
  text-wrap: pretty;
}
.wrap { max-width: 1000px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 14px 36px rgba(1, 43, 78, 0.07);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon--gold { background: rgba(250, 195, 86, 0.2); }
.card-icon--green { background: rgba(99, 125, 69, 0.18); }
.card-icon--navy { background: rgba(11, 58, 99, 0.12); }
.card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.card p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted-2); text-wrap: pretty; }

/* ---------- Prose ---------- */
.prose { font-size: clamp(18px, 2.2vw, 20px); line-height: 1.7; color: var(--muted-2); }
.prose h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; text-wrap: pretty; }
.prose strong { color: var(--navy); font-weight: 600; }

/* page hero (non-home) */
.page-hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 9vw, 96px) 24px clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.page-hero .hero-bg { background: linear-gradient(180deg, #fbf6ec 0%, #f8f1e2 100%); }
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6.5vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.page-hero p {
  margin: 22px auto 0;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}

/* contact block */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.contact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 12px 30px rgba(1, 43, 78, 0.06);
}
.contact-card .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.contact-card .value { font-size: 20px; font-weight: 600; color: var(--navy); word-break: break-word; }
.contact-card a.value { text-decoration: none; border-bottom: 1px solid rgba(1, 43, 78, 0.2); }
.contact-card a.value:hover { color: var(--gold-ink); }
.contact-card .sub { margin-top: 6px; font-size: 16px; color: var(--muted-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--navy); padding: clamp(52px, 8vw, 76px) 24px; }
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.footer-mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.footer-mark img { width: 100%; height: 100%; object-fit: cover; }
.footer-name { font-size: 20px; font-weight: 600; color: #ffffff; }
.footer-tag { font-size: 18px; font-weight: 600; color: var(--gold); letter-spacing: 0.01em; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 17px;
  color: #b9c7d4;
}
.footer-meta a {
  color: #b9c7d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 199, 212, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-meta a:hover { color: var(--gold); border-color: var(--gold); }
.footer-note { margin: 8px 0 0; font-size: 16px; color: #7e91a3; max-width: 420px; line-height: 1.55; }

/* ---------- Reveal animation ---------- */
.reveal { animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise { from { transform: translateY(22px); } to { transform: translateY(0); } }
@keyframes dawnGlow {
  from { opacity: 0.78; transform: translateX(-50%) translateY(14px) scaleX(1); }
  to   { opacity: 1;    transform: translateX(-50%) translateY(-6px) scaleX(1.06); }
}
@keyframes haze {
  from { opacity: 0.40; transform: translateX(-50%) scale(1); }
  to   { opacity: 0.66; transform: translateX(-50%) scale(1.05); }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(1, 43, 78, 0.1);
    padding: 6px 24px 18px;
    box-shadow: 0 18px 30px rgba(1, 43, 78, 0.1);
  }
  .site-header.nav-open .nav-menu { display: flex; }
  .nav-menu a { padding: 15px 2px; font-size: 17px; border-bottom: 1px solid rgba(1, 43, 78, 0.07); }
  .nav-cta { margin-top: 14px; text-align: center; border-bottom: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
