/* =============================================================
   referrals.css — Referrals page
   Lives in assets/css/. Requires base.css + nav-footer.css.
   ============================================================= */

/* ── Hero ─────────────────────────────────────────────────────── */
.rf-hero {
  padding-top: calc(var(--topbar-h) + var(--nav-h) + 5rem);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
  background: var(--slate);
}
.rf-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rf-blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}
.rf-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,143,113,0.18) 0%, transparent 65%);
  top: -150px; right: -100px;
  animation: morphBlob 14s ease-in-out infinite alternate;
}
.rf-blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(74,144,196,0.12) 0%, transparent 65%);
  bottom: -80px; left: -80px;
  animation: morphBlob 10s 2s ease-in-out infinite alternate-reverse;
}

.rf-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: center;
}

/* Left copy */
.rf-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.rf-h1 em { font-style: italic; color: var(--warm); }

.rf-sub {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.rf-steps-mini {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.rf-step-mini {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}
.rf-step-mini a {
  color: var(--warm-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.rf-step-mini a:hover { color: var(--white); }
.rf-step-n {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

/* Right envelope card */
.rf-envelope-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.rf-envelope-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.25rem;
}
.rf-envelope-icon svg { width: 28px; height: 28px; }
.rf-envelope-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}
.rf-envelope-email {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--warm-light);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}
.rf-envelope-email:hover { color: var(--white); }
.rf-envelope-dots {
  display: flex;
  gap: 6px;
  margin-top: 0.5rem;
}
.rf-envelope-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0.5;
  display: block;
}

/* ── NDIS Note ────────────────────────────────────────────────── */
.rf-ndis-note {
  background: rgba(74,144,196,0.07);
  border-bottom: 1px solid rgba(74,144,196,0.15);
}
.rf-ndis-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--slate-mid);
}
.rf-ndis-note-inner strong { font-weight: 600; color: var(--slate); }

/* ── Cards Grid ───────────────────────────────────────────────── */
.rf-section {
  padding: 5rem 0 6rem;
  background: var(--white);
}
.rf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* ── Referral Card ────────────────────────────────────────────── */
.rf-card {
  border-radius: var(--r-md);
  border: 1px solid rgba(107,143,113,0.1);
  overflow: hidden;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.rf-card:hover {
  box-shadow: 0 14px 48px rgba(44,62,53,0.1);
  transform: translateY(-4px);
}

/* Featured (NDIS) — slightly elevated */
.rf-card--featured {
  background: var(--white);
  box-shadow: 0 4px 24px rgba(44,62,53,0.07);
}

/* Card top area */
.rf-card-top {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.rf-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rf-card-icon svg { width: 24px; height: 24px; }
.rf-card-tag {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  width: fit-content;
}
.rf-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--slate);
  line-height: 1.15;
  margin-top: 0.15rem;
}
.rf-card-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0.5;
}

/* Card body */
.rf-card-body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}
.rf-card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-muted);
}

/* Download options */
.rf-form-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.rf-download {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--dbg, rgba(107,143,113,0.08));
  border: 1px solid rgba(107,143,113,0.12);
  border-radius: var(--r-sm);
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.rf-download:hover {
  box-shadow: 0 4px 16px rgba(44,62,53,0.1);
  transform: translateY(-1px);
  filter: brightness(0.96);
}
.rf-dl-icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.7);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--dc, var(--sage));
}
.rf-dl-icon svg { width: 17px; height: 17px; }
.rf-dl-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.rf-dl-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dc, var(--sage-dark));
}
.rf-dl-type {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── CTA (shared) ─────────────────────────────────────────────── */
.cta-sec {
  padding: 7rem 0;
  background: linear-gradient(135deg, var(--warm) 0%, #a85e30 100%);
  position: relative; overflow: hidden;
}
.cta-sec::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cta-inner .sec-h    { color: var(--white); }
.cta-inner .sec-h em { color: rgba(255,255,255,0.75); }
.cta-inner > p { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.8); max-width: 46ch; line-height: 1.7; }
.cta-dots { display: flex; align-items: center; gap: 8px; }
.cta-dot  { width: 10px; height: 10px; border-radius: 50%; opacity: 0.75; }
.cta-acts { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-cw {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--warm); background: var(--white); border: none; cursor: pointer;
  padding: 0.9rem 2.2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.btn-cw:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.btn-co {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--white); background: transparent;
  border: 2px solid rgba(255,255,255,0.45); cursor: pointer;
  padding: 0.88rem 2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-co:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .rf-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .rf-envelope-card { max-width: 420px; }
}
@media (max-width: 760px) {
  .rf-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .cta-acts { flex-direction: column; }
  .rf-card-body { padding: 1.25rem 1.5rem 1.5rem; }
  .rf-card-top  { padding: 1.5rem 1.5rem 1.25rem; }
}