/* ==========================================================================
   MDC RideManager — one stylesheet for the whole site.
   Palette and type match MDC Office Manager / the public website (ink, paper, gold; Cormorant Garamond + Inter).
   Bootstrap 5 provides the grid, navbar collapse and dropdowns; everything visual is here.
   ========================================================================== */
:root {
  --ink: #0c1017;
  --ink-2: #1b2230;
  --paper: #faf7f1;
  --line: #e7dfd0;
  --gold: #c39a4a;
  --gold-2: #e9cf92;
  --gold-ink: #7a5a1c;
  --text: #1a1f29;
  --muted: #667085;
  --danger: #b3261e;
  --ok: #14573a;
  --shadow: 0 18px 40px -18px rgba(12, 16, 23, .28);
  --radius: 18px;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid rgba(195, 154, 74, .55); outline-offset: 2px; }

/* ---------- top bar ---------- */
.rm-nav { background: var(--ink); padding: .65rem 0; position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 0 rgba(233, 207, 146, .12); }
.rm-brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.rm-brand:hover { color: #fff; }
.rm-brand img { width: 38px; height: 38px; }
.rm-brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .28em; color: var(--gold-2); text-transform: uppercase; line-height: 1; }
.rm-nav .nav-link { color: rgba(255, 255, 255, .78); font-weight: 500; padding: .5rem .85rem !important; border-radius: 10px; transition: color .2s, background .2s; }
.rm-nav .nav-link:hover, .rm-nav .nav-link:focus, .rm-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .07); }
.rm-nav .navbar-toggler { border-color: rgba(255, 255, 255, .25); }
.rm-nav .navbar-toggler-icon { filter: invert(1); }
.rm-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; min-width: 260px; }
.rm-nav .dropdown-item { border-radius: 9px; padding: .5rem .8rem; font-size: .93rem; }
.rm-nav .dropdown-item:hover { background: rgba(195, 154, 74, .12); }
.rm-nav .dropdown-header { text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 700; color: var(--gold-ink); }
.rm-nav .dropdown-item .tag { font-size: .7rem; color: var(--muted); margin-left: .35rem; }
.rm-pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(233, 207, 146, .5); color: var(--gold-2) !important; border-radius: 999px; padding: .45rem 1.1rem !important; }
.rm-pill:hover { background: var(--gold) !important; color: var(--ink) !important; }
.rm-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; }

/* ---------- footer ---------- */
.rm-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 3.2rem 0 1.6rem; margin-top: 4rem; font-size: .92rem; }
.rm-footer h4 { font-family: var(--font); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; margin-bottom: 1rem; }
.rm-footer a { color: rgba(255, 255, 255, .78); }
.rm-footer a:hover { color: #fff; }
.rm-footer ul { list-style: none; padding: 0; margin: 0; }
.rm-footer li { margin-bottom: .45rem; }
.rm-footer .rm-copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.4rem; padding-top: 1.3rem; font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* ---------- shared building blocks ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; color: var(--gold-ink); display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }
.page-head { padding: 3.2rem 0 1.6rem; }
.page-head h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin: .4rem 0 .5rem; }
.page-head p { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 10px 30px -22px rgba(12, 16, 23, .3); height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.card-soft { display: block; color: inherit; }
a.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card-soft h3 { font-size: 1.45rem; margin: .7rem 0 .4rem; }
.card-soft p { color: var(--muted); margin: 0; }
.icon-tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: var(--gold-2); }
.icon-tile svg { width: 22px; height: 22px; }
.btn-rm { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.9rem; border-radius: 999px;
  border: 1px solid var(--bg); background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--font); letter-spacing: .02em; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; }
.btn-rm:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -10px rgba(12, 16, 23, .35); color: var(--fg); }
.btn-gold { --bg: var(--gold); --fg: #1b1405; }
.btn-gold:hover { --bg: var(--gold-2); }
.btn-ghost { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .08); }
.btn-light-rm { --bg: #fff; --fg: var(--ink); border-color: var(--line); }
.badge-role { display: inline-block; padding: .22rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(195, 154, 74, .14); color: var(--gold-ink); margin: 0 .25rem .25rem 0; }
.badge-draft { background: #fdecea; color: var(--danger); }
.alert-rm { padding: .9rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .94rem; background: #e7f5ee; color: var(--ok); border: 1px solid #b6e0c9; }
.alert-rm.warn { background: #fff6e5; color: #7a4b00; border-color: #f0d9a8; }

/* ---------- start page ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 9vw, 7rem); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40%; z-index: -2;
  background: radial-gradient(40% 35% at 20% 30%, rgba(195, 154, 74, .28), transparent 70%),
              radial-gradient(35% 30% at 85% 20%, rgba(233, 207, 146, .16), transparent 70%),
              radial-gradient(45% 40% at 70% 90%, rgba(76, 102, 160, .22), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate; }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: linear-gradient(rgba(233, 207, 146, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 207, 146, .35) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: 1.02; margin: 1.1rem 0 1.2rem; }
.hero h1 .gold { background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 40%, var(--gold) 80%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; }
.hero .eyebrow { color: var(--gold-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.rotator { display: inline-block; min-height: 1.6em; color: var(--gold-2); font-weight: 600; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.rotator.out { opacity: 0; transform: translateY(8px); }
.hero-art { position: relative; width: 100%; max-width: 520px; margin-left: auto; aspect-ratio: 1 / 1; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.route-base { fill: none; stroke: rgba(233, 207, 146, .18); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.route-live { fill: none; stroke: url(#routeGold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 6s var(--ease) infinite; }
.ping { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.ping.d2 { animation-delay: .9s; } .ping.d3 { animation-delay: 1.8s; }
.node { fill: var(--ink); stroke: var(--gold-2); stroke-width: 3; }
.float-card { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 207, 146, .25); backdrop-filter: blur(10px); border-radius: 14px;
  padding: .7rem 1rem; color: #fff; font-size: .85rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); animation: bob 5s ease-in-out infinite; }
.float-card b { color: var(--gold-2); display: block; font-size: 1rem; }
.float-card.c1 { left: 0; top: 14%; } .float-card.c2 { right: 2%; bottom: 10%; animation-delay: 1.4s; }
.quote-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3.4rem 0; text-align: center; }
.quote-band blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink); max-width: 860px; margin: 0 auto; font-style: italic; }
.quote-band cite { display: block; margin-top: .8rem; font-style: normal; color: var(--muted); font-size: .9rem; }
.values { padding: 4.2rem 0 1rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cta-band { background: linear-gradient(120deg, var(--ink), var(--ink-2)); color: #fff; border-radius: 26px; padding: clamp(2rem, 5vw, 3.4rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, .75); }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(195, 154, 74, .35), transparent 65%); }

@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(8deg); } }
@keyframes shine { to { background-position: -200% center; } }
@keyframes draw { 0% { stroke-dashoffset: 1400; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- legal documents ---------- */
.legal-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 3rem); box-shadow: 0 10px 30px -22px rgba(12, 16, 23, .3); }
.legal-doc h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.legal-doc h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .7rem; color: var(--ink); }
.legal-doc .meta { color: var(--muted); font-size: .9rem; }
.legal-doc li { margin-bottom: .45rem; }
.legal-doc .fill { background: #fff3c4; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
.legal-side { position: sticky; top: 90px; }
.legal-side a { display: block; padding: .5rem .8rem; border-radius: 9px; color: var(--text); font-size: .92rem; }
.legal-side a:hover, .legal-side a.active { background: rgba(195, 154, 74, .12); color: var(--gold-ink); }

/* ---------- forms + tables inside pages ---------- */
.form-rm label { font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: var(--ink); }
.form-rm .form-control, .form-rm .form-select { border-radius: 12px; border-color: #d9d0bd; padding: .7rem .9rem; }
.form-rm .form-control:focus, .form-rm .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195, 154, 74, .2); }
.table-rm { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table-rm table { margin: 0; }
.table-rm th { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: #fbf8f2; font-weight: 700; }
.table-rm td, .table-rm th { padding: .85rem 1rem; vertical-align: middle; }
.matrix td.yes { color: var(--ok); font-weight: 700; text-align: center; }
.matrix td.no { color: #c9c2b4; text-align: center; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route-live { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 991px) { .hero-art { max-width: 380px; margin: 3rem auto 0; } .rm-nav .dropdown-menu { box-shadow: none; } }
