/* ═══════════════════════════════════════════════════════════════
   Rise528 Sales Group — site stylesheet
   Shared by index.html, apply.html, partners.html, privacy.html,
   terms.html. Single source of truth for the brand system.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --navy:       #0D2240;
  --navy-deep:  #081729;
  --navy-soft:  #14304F;
  --orange:     #F7941D;
  --orange-dk:  #DD7C06;

  /* Surfaces & text */
  --white:      #FFFFFF;
  --gray:       #F5F6F8;
  --gray-line:  #E3E7EC;
  --ink:        #1F2933;
  --ink-dim:    #5A6672;
  --on-navy:    #FFFFFF;
  --on-navy-dim:#B7C3D4;

  /* Type */
  --font-disp: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Metrics */
  --nav-h: 72px;
  --maxw: 1180px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Layout primitives ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.sec-navy  { background: var(--navy); color: var(--on-navy); }
.sec-gray  { background: var(--gray); }
.sec-tight { padding: 3.5rem 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #fff; padding: 0.7rem 1.2rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--font-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--navy);
}
/* Dark surfaces: hero, navy sections, and the CTA band all flip text to light. */
.sec-navy h1, .sec-navy h2, .sec-navy h3,
.hero h1, .hero h2, .hero h3,
.cta-band h1, .cta-band h2, .cta-band h3 { color: var(--on-navy); }

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); letter-spacing: 0.02em; }
p  { margin: 0 0 1rem; }
.lead { font-size: 1.06rem; color: var(--ink-dim); max-width: 62ch; }
.sec-navy .lead, .hero .lead, .cta-band .lead { color: var(--on-navy-dim); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.85rem;
}
.accent { color: var(--orange); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.rule { width: 56px; height: 3px; background: var(--orange); border: 0; margin: 0 0 1.5rem; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.9rem 1.6rem; border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dk); border-color: var(--orange-dk); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ── Logo lockup (HTML/CSS so it always matches the page font) ─ */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-word {
  font-family: var(--font-disp); font-weight: 700; font-size: 1.55rem;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--on-navy);
}
.logo-word .num { color: var(--orange); }
.logo-sub {
  font-family: var(--font-body); font-size: 0.53rem; font-weight: 600;
  letter-spacing: 0.36em; text-transform: uppercase; color: var(--on-navy);
  margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.35);
}
.logo-lg .logo-word { font-size: 2rem; }
.logo-lg .logo-sub  { font-size: 0.6rem; }

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--on-navy); text-decoration: none; transition: color 0.2s;
}
/* :not(.btn) — the CTA keeps white-on-orange even when it is the current page. */
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] { color: var(--orange); }
.nav-links .btn { padding: 0.65rem 1.15rem; font-size: 0.76rem; }
.nav-links .btn, .nav-links .btn:hover { color: #fff; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: var(--navy); flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-disp); font-size: 1.4rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff; text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--orange); }
.mobile-menu .btn { font-family: var(--font-body); font-size: 0.85rem; }
.mobile-menu-close {
  position: absolute; top: 1.1rem; right: 1.3rem;
  width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: 5.5rem 0 6rem;
}
/* Swap in photography later by overriding --hero-image on the element. */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(247,148,29,0.20) 0%, rgba(247,148,29,0) 55%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 48%, var(--navy-soft) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: url("skyline.svg") repeat-x bottom center / auto 100%;
  opacity: 0.5; pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { color: var(--on-navy-dim); max-width: 46ch; }
.hero-sub {
  font-family: var(--font-disp); font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 500; color: var(--orange); text-transform: none; margin: -0.4rem 0 1.1rem;
}
.hero-sm { padding: 4rem 0 4.25rem; }

/* ── Grids & feature items ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 2.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature p { font-size: 0.9rem; color: var(--ink-dim); margin: 0; }
.sec-navy .feature p { color: var(--on-navy-dim); }
.feature h3 { margin-bottom: 0.35rem; }

.icon-circle {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 22px; height: 22px; }

.stack { text-align: center; }
.stack .icon-circle { margin: 0 auto 1rem; }
.stack h3 { margin-bottom: 0.4rem; }
.stack p { font-size: 0.9rem; color: var(--ink-dim); margin: 0; }
.sec-navy .stack p { color: var(--on-navy-dim); }

/* Numbered steps */
.step .icon-circle { position: relative; }
.step-num {
  font-family: var(--font-disp); font-size: 1.05rem; font-weight: 600; color: var(--orange);
}

/* Checkmark list */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding-left: 2rem; margin-bottom: 0.85rem;
  font-size: 0.94rem; color: var(--ink-dim);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.22rem;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23F7941D'/%3E%3Cpath d='M5.6 10.3l2.9 2.9 5.9-6.3' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Card */
.card {
  background: var(--white); border: 1px solid var(--gray-line); border-radius: 6px;
  padding: 1.75rem; box-shadow: 0 2px 14px rgba(13,34,64,0.06);
}
.card h3 { margin-bottom: 1.1rem; }
.card-list { list-style: none; margin: 0; padding: 0; }
.card-list li {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.92rem; font-weight: 500; padding: 0.5rem 0;
}
.card-list svg { width: 20px; height: 20px; color: var(--navy); flex: 0 0 auto; }
.card-note { font-size: 0.78rem; color: var(--ink-dim); margin: 0.9rem 0 0; }

/* ── CTA band ──────────────────────────────────────────────── */
.cta-band { background: var(--navy); color: var(--on-navy); padding: 3rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 0.35rem; }
.cta-inner p { margin: 0; color: var(--on-navy-dim); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; }
.footer-blurb { font-size: 0.86rem; color: var(--on-navy-dim); margin: 1.25rem 0 0; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.88rem; color: var(--on-navy-dim); text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.footer-contact { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; font-size: 0.88rem; color: var(--on-navy-dim); }
.footer-contact svg { width: 17px; height: 17px; color: var(--orange); flex: 0 0 auto; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem; color: var(--on-navy-dim);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.footer-legal { display: flex; gap: 0.75rem; align-items: center; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-wrap { max-width: 820px; margin: 0 auto; }

fieldset {
  border: 0; border-top: 2px solid var(--gray-line);
  margin: 0 0 2.5rem; padding: 1.75rem 0 0;
}
legend {
  font-family: var(--font-disp); font-size: 1.15rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--navy);
  padding: 0 0.9rem 0 0;
}
legend .legend-num { color: var(--orange); margin-right: 0.5rem; }
.fs-note { font-size: 0.84rem; color: var(--ink-dim); margin: -0.4rem 0 1.25rem; }

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
label, .group-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
label .req, .group-label .req { color: var(--orange); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="url"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  padding: 0.7rem 0.85rem; background: var(--white);
  border: 1px solid var(--gray-line); border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(247,148,29,0.18);
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #C0392B; }
::placeholder { color: #9AA5B1; }

/* Checkbox & radio groups */
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.25rem; }
.opt {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.9rem; font-weight: 400; color: var(--ink); line-height: 1.5;
  margin-bottom: 0.15rem; cursor: pointer;
}
.opt input[type="checkbox"], .opt input[type="radio"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin: 0.16rem 0 0;
  accent-color: var(--orange); cursor: pointer;
}
.ack { margin-bottom: 0.85rem; }
.ack .opt { align-items: flex-start; }
.radio-inline { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.radio-inline .opt { margin: 0; }

/* Legal text blocks inside the form */
.legal-block {
  background: var(--gray); border-left: 3px solid var(--orange);
  padding: 1.1rem 1.25rem; margin: 0 0 1.25rem;
  font-size: 0.86rem; line-height: 1.6; color: var(--ink-dim);
}
.legal-block p:last-child { margin-bottom: 0; }

/* Repeated experience entries */
.entry {
  border: 1px solid var(--gray-line); border-radius: 6px;
  padding: 1.25rem; margin-bottom: 1.1rem; background: var(--white);
}
.entry-label {
  font-family: var(--font-disp); font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); margin: 0 0 1rem;
}

.form-result {
  display: none; padding: 0.9rem 1.1rem; border: 1px solid; border-radius: 4px;
  font-size: 0.9rem; line-height: 1.55; margin-bottom: 1rem;
}
.form-result.ok  { display: block; color: #1E6B3A; border-color: #A8D5B9; background: #EDF7F0; }
.form-result.err { display: block; color: #A32E20; border-color: #E7B4AD; background: #FDF0EE; }
.form-note { font-size: 0.8rem; color: var(--ink-dim); margin: 0.9rem 0 0; }
.form-actions { margin-top: 1.5rem; }
.form-actions .btn { width: 100%; padding: 1rem; }
.hp { display: none !important; }

/* Post-submit confirmation panel */
.form-success {
  display: none; text-align: center; padding: 3rem 1.5rem;
  border: 1px solid var(--gray-line); border-radius: 6px; background: var(--gray);
}
.form-success .icon-circle { margin: 0 auto 1.25rem; width: 60px; height: 60px; }
.form-success .icon-circle svg { width: 30px; height: 30px; }

/* ── Legal / prose pages ───────────────────────────────────── */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1rem; margin-top: 1.75rem; }
.prose p, .prose li { font-size: 0.95rem; color: var(--ink-dim); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--navy); font-weight: 500; }
.doc-meta { font-size: 0.85rem; color: var(--ink-dim); border-bottom: 1px solid var(--gray-line); padding-bottom: 1.25rem; }

/* ── Focus visibility ──────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .split  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 680px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; gap: 1.75rem; }
  .field-row, .field-row-3, .opt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn-row .btn { width: 100%; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner .btn { width: 100%; }
}
