/* ========================================
   The New Start Project — Core Styles
   Adapted from Employment Law Simplified
   ======================================== */

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

:root {
  --navy: #1B2B4B;
  --navy-light: #2A3F6B;
  --teal: #2B7A78;
  --teal-light: #3AAFA9;
  --gold: #D4A853;
  --warm-bg: #FAFAF7;
  --warm-card: #F5F3EF;
  --text-primary: #1A1A1A;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --white: #FFFFFF;
  --border: #E2DFD8;
  --shadow: 0 2px 8px rgba(27,43,75,0.08);
  --shadow-lg: 0 8px 24px rgba(27,43,75,0.12);
  --radius: 8px;
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--warm-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Lora', Georgia, serif; line-height: 1.3; color: var(--navy); }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }
img { max-width: 100%; height: auto; }

/* ---- NAV ---- */

.site-nav {
  background: var(--navy);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: 'Lora', Georgia, serif;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-brand span { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; }

/* ---- HERO ---- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(212,168,83,0.3);
  padding: 0.35rem 1rem;
  border-radius: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.hero-cta:hover { background: var(--teal-light); color: var(--white); transform: translateY(-1px); }

.hero-cta-outline {
  display: inline-block;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, color 0.2s;
}

.hero-cta-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- SECTIONS ---- */

.section { padding: 4.5rem 2rem; }
.section-alt { background: var(--white); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
/* contact.html and referrals.html wrap their content in .container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.8rem; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 560px; margin: 0 auto; }

.section-label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ---- CARDS ---- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--warm-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--navy); }
.card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ---- STATS ---- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat { text-align: center; padding: 1.5rem; }
.stat-number { font-family: 'Lora', Georgia, serif; font-size: 2.5rem; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 0.25rem; }
.stat-label { color: var(--text-secondary); font-size: 0.85rem; }

/* ---- FEATURES ---- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature { display: flex; gap: 1rem; }
.feature-marker { flex-shrink: 0; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; margin-top: 0.55rem; }
.feature h4 { font-family: 'Lora', Georgia, serif; font-size: 1rem; margin-bottom: 0.25rem; color: var(--navy); }
.feature p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ---- PROCESS STEPS ---- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step { text-align: center; padding: 1.5rem; }
.step-number {
  width: 44px; height: 44px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}
.step h4 { font-family: 'Lora', Georgia, serif; margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---- CONTACT ---- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.contact-info-block { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--warm-card);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-info-block h4 { font-family: 'Lora', Georgia, serif; font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-info-block p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem;
  margin-bottom: 1rem; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--teal); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---- FOOTER ---- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.8rem;
}
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: 0.85rem; line-height: 1.6; }

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  font-size: 0.78rem;
}
.footer-bottom span { color: var(--gold); }

.cic-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(43,122,120,0.1);
  border: 1px solid rgba(43,122,120,0.25);
  color: var(--teal);
  padding: 0.3rem 0.8rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  html { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 2rem 1.5rem; gap: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ---- LEGACY NAV SUPPORT ---- */
header { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.logo-text { color: var(--white); font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 1.15rem; }
.logo-text span { color: var(--gold); }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav a { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 500; }
nav a:hover, nav a.active { color: var(--gold); }

/* ---- LEGACY LAYOUT SUPPORT ---- */
.hero-badge { display: inline-block; color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; border: 1px solid rgba(212,168,83,0.3); padding: 0.35rem 1rem; border-radius: 20px; }
.btn { display: inline-block; padding: 0.85rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* :not(.hero) is essential. Without it this rule outranks .hero
   (specificity 0,1,1 vs 0,1,0) and paints the navy hero white,
   making the white hero heading invisible on every page. */
section:nth-child(even):not(.hero) { background: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.6rem; }
footer li a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
footer li a:hover { color: var(--gold); }
footer h4 { color: var(--gold); font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.78rem; }
.footer-bottom span { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.6; }

/* ==========================================================
   Added: logo/brand mark, resident journey, callouts
   ========================================================== */

/* ---- Brand mark ---- */
.nav-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
/* The brand mark is wider than tall (168x126 viewBox), so it needs a
   landscape slot rather than the old square one. */
.brand-mark { width: 54px; height: 40px; display: block; flex-shrink: 0; object-fit: contain; }
/* .nav-brand span is already gold elsewhere, so these need equal-or-higher
   specificity to keep the first two words white. */
.nav-brand .brand-text { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: -0.01em; }
.nav-brand .brand-accent, .footer-brand .brand-accent { color: var(--gold); }
/* FOOTER BACKGROUND FIX
   contact.html and referrals.html use a plain <footer> element, but the navy
   background was only ever defined on .site-footer. That left white footer
   text sitting on the cream page background, effectively invisible.
   This styles the bare element so both conventions work. */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 2rem 2rem;
}
footer p { color: rgba(255,255,255,0.7); }
footer .container { padding: 0; }

/* Do NOT make .footer-brand a flex row: the older markup uses it as a
   stacked column holding a logo and a paragraph. Only the inline mark
   inside it is sized here. */
.footer-brand .brand-mark { width: 50px; height: 37px; }

/* The .footer-brand column is Lora 600 for the wordmark, but the description
   paragraph inside it must not inherit that bold serif. */
.footer-brand p {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* Footer logo badge: show the real logo instead of the "NS" text circle. */
.logo-icon {
  background: url("logo.svg") center / contain no-repeat;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  width: 54px;
  height: 40px;
  flex-shrink: 0;
}

/* ---- Callout ---- */
.callout {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  max-width: var(--content-width, 740px);
  margin: 0 auto;
}
.callout p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.75; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text-primary); }
.callout-link a { color: var(--teal); font-weight: 600; text-decoration: none; }
.callout-link a:hover { color: var(--teal-light); }

/* ---- Journey stages ---- */
.stage {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.stage-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.stage-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--navy); }
.stage-lead { color: var(--teal); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.85rem; }
.stage-body p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; }
.stage-list { list-style: none; padding: 0; margin: 0; }
.stage-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.stage-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.stage-list strong { color: var(--text-primary); }

/* ---- Support level hours ---- */
.level-hours {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

/* ---- Small print note ---- */
.note {
  max-width: var(--content-width, 740px);
  margin: 2rem auto 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}
.note a { color: var(--teal); font-weight: 600; text-decoration: none; }
.note a:hover { color: var(--teal-light); }

/* ---- Mini stage strip (homepage) ---- */
.mini-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.mini-stage {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.mini-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.35rem;
}
.mini-stage strong { color: var(--navy); font-size: 1rem; }
.mini-stage span:last-child { color: var(--text-light); font-size: 0.86rem; line-height: 1.5; }

/* ---- Hero closing bands use h2 ---- */
.hero h2 {
  color: var(--white);
  font-size: 1.9rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero h2 em { font-style: normal; color: var(--gold); }

/* ---- Narrow screens ---- */
@media (max-width: 640px) {
  .stage { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .callout { padding: 1.35rem 1.4rem; }
  .brand-text { font-size: 1rem; }
}

/* --- Photo band: full-bleed image strip sitting directly beneath the navy hero --- */
.photo-band {
  line-height: 0;
  background: var(--navy);
}
.photo-band img {
  display: block;
  width: 100%;
  height: auto;
  /* Matches the image's own 2000x640 shape, so nothing is ever cropped. */
  aspect-ratio: 25 / 8;
}

/* --- Splash landing page: fixed opening page, image + statement --- */
.splash {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem 5.5rem;
  background-image: url("images/splash-bg.jpg");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  background-color: var(--navy);
  box-sizing: border-box;
}
.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 43, 75, 0.90) 0%, rgba(27, 43, 75, 0.82) 45%, rgba(27, 43, 75, 0.92) 100%);
}
.splash-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  text-align: center;
}
.splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}
.splash-mark {
  width: 96px;
  height: 72px;
  object-fit: contain;
}
.splash-brandname {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}
.splash-statement {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #FFFFFF;
  margin: 0 auto 2.25rem;
  max-width: 700px;
}
.splash-services {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}
.splash-services li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
}
.splash-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.splash-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.splash-cta,
.splash-cta-outline {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.splash-cta {
  background: var(--teal-light);
  color: #10261F;
}
.splash-cta-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}
.splash-cta:hover,
.splash-cta-outline:hover { opacity: 0.85; }
.splash-foot {
  position: absolute;
  z-index: 1;
  bottom: 1.4rem;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: center;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
.splash-foot a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}
.splash-foot a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .splash { padding: 2.5rem 1.25rem 6.5rem; }
  .splash-statement { font-size: 1.2rem; }
  .splash-mark { width: 78px; height: 58px; }
  .splash-brandname { font-size: 1.4rem; }
  .splash-buttons { flex-direction: column; align-items: stretch; }
  .splash-cta, .splash-cta-outline { text-align: center; }
}

/* --- Referral form page (rf- prefix keeps it clear of site .card etc.) --- */
.rf-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 5rem;
}
.rf-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.6rem;
  margin-top: 1.6rem;
  box-shadow: 0 1px 2px rgba(20, 30, 55, 0.04);
}
.rf-card h2 {
  color: var(--navy);
  font-size: 1.16rem;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rf-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--teal);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.rf-lead {
  color: var(--text-secondary);
  margin: 0.15rem 0 1.1rem;
  font-size: 0.96rem;
}
.rf-card label,
.rf-wrap fieldset legend {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  padding: 0;
}
.rf-req { color: var(--teal); font-weight: 700; }
.rf-wrap input[type=text],
.rf-wrap input[type=email],
.rf-wrap input[type=tel],
.rf-wrap input[type=date],
.rf-wrap select,
.rf-wrap textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #CDD4DE;
  border-radius: 9px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  box-sizing: border-box;
}
.rf-wrap input:focus,
.rf-wrap select:focus,
.rf-wrap textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 122, 120, 0.18);
}
.rf-wrap textarea { min-height: 96px; resize: vertical; }
.rf-hint {
  color: var(--text-light);
  font-size: 0.86rem;
  margin: 0.3rem 0 0;
}
.rf-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
@media (max-width: 560px) {
  .rf-grid2 { grid-template-columns: 1fr; }
}
.rf-wrap fieldset { border: none; margin: 0; padding: 0; }
.rf-checks { margin-top: 0.5rem; display: grid; gap: 9px; }
.rf-checks label,
.rf-consent label {
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
}
.rf-checks input,
.rf-consent input {
  margin-top: 4px;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
}
.rf-consent {
  background: var(--warm-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 1.1rem 1.1rem 1.25rem;
  margin-top: 0.5rem;
}
.rf-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}
.rf-privacy {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}
.rf-req-note {
  color: var(--text-light);
  font-size: 0.86rem;
  margin-top: 1.25rem;
}
.rf-actions { margin-top: 1.6rem; text-align: center; }
.rf-submit {
  background: var(--teal);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 42px;
  border-radius: 10px;
  cursor: pointer;
}
.rf-submit:hover { background: var(--teal-light); }
.rf-submit:disabled { opacity: 0.6; cursor: default; }
.rf-err {
  color: #B3261E;
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: none;
}
.rf-field-error input,
.rf-field-error select,
.rf-field-error textarea { border-color: #B3261E; }
.rf-field-error .rf-err { display: block; }
#formStatus {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  display: none;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
#formStatus a { color: inherit; }
.rf-success { display: none; text-align: center; padding: 1.5rem 0.75rem; }
.rf-tick {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.9rem;
}
.rf-success h2 { color: var(--navy); margin: 0 0 0.5rem; justify-content: center; }
.rf-success p { color: var(--text-secondary); max-width: 520px; margin: 0 auto; }


/* ---- Referral form embed ---- */
.rf-embed {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--warm-card);
  margin: 0 0 18px;
}
.rf-embed iframe {
  display: block;
  width: 100%;
  height: 1500px;
  border: 0;
}
.rf-fallback {
  font-size: 0.95rem;
  color: #5A6473;
  margin: 0 0 24px;
}
@media (max-width: 700px) {
  .rf-embed iframe { height: 1800px; }
}

.rf-start { display: inline-block; margin: 6px 0 4px; }
.rf-card ul { margin: 0 0 14px 20px; }
.rf-card li { margin-bottom: 6px; }


/* ==========================================================================
   FORM STATUS, LABELS & NOTES
   Added for the live Web3Forms contact form and referral form.
   ========================================================================== */

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  margin-bottom: 1rem;
}

.req { color: var(--teal); font-weight: 700; }

.honeypot { display: none; }

.form-status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--warm-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.form-status.is-working,
.form-status.is-error {
  display: block;
}

.form-status.is-working {
  background: #F0F6F6;
  border-color: var(--teal-light);
  color: var(--teal);
}

.form-status.is-error {
  background: #FDF3F2;
  border-color: #E5B4B0;
  color: #A32B20;
}

.contact-form .note,
.note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
}

.callout-link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.callout-link:hover { text-decoration: underline; }

/* Intro card above the multi-step referral form */
.rf-intro { margin-bottom: 1.25rem; }
