/* ================================
   RC-NEXTSHIFT — CLEAN GLOBAL CSS
   Matches your HTML class names:
   .top-nav, .menu-toggle, .menu-panel, .menu-backdrop
   .hero, .cta-btn
   .section, .section-intro
   .card-grid, .card
   .why-grid, .why-card
   .resource-grid, .resource-card, .resource-tag
   .contact-layout, .contact-copy, .contact-card
   .contact-actions, .contact-link, .contact-cta, .contact-note
   .home-logo-float
   .site-footer, .footer-small
   ================================ */

/* ===== THEME TOKENS ===== */
:root {
  --rc-bg: #050611;                 /* deep base */
  --rc-surface: rgba(12, 14, 25, 0.70);
  --rc-surface-strong: rgba(12, 14, 25, 0.88);
  --rc-border: rgba(255, 255, 255, 0.08);
  --rc-border-soft: rgba(255, 255, 255, 0.06);

  --rc-text: #f9fafb;
  --rc-muted: rgba(255, 255, 255, 0.72);

  --rc-accent: #facc15;             /* gold */
  --rc-accent-2: #22c55e;           /* subtle green accent (optional) */

  --rc-shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
  --rc-radius: 14px;

  --rc-max: 1040px;
}

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rc-text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 197, 94, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 90% 25%, rgba(250, 204, 21, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.65) 0%, transparent 65%),
    linear-gradient(180deg, #070816 0%, #04040c 55%, #000000 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.55) 0, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.55) 0, transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.95;
}

/* Make anchor jumps land below floating controls */
#home, #about, #services, #resources, #contact, #who, #why-rc {
  scroll-margin-top: 90px;
}

main {
  padding-bottom: 120px; /* space so floating logo doesn't overlap */
}

/* ===== LINKS / FOCUS ===== */
a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.85);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ===== TOP NAV (HAMBURGER ONLY) ===== */
.top-nav {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none; /* container ignores clicks */
  background: transparent;
}

/* ===== HAMBURGER BUTTON ===== */
.menu-toggle {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  pointer-events: auto; /* clickable */
  background: rgba(5, 8, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.menu-toggle .bar {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
}

/* subtle “gold sweep” */
.menu-toggle:hover .bar:nth-of-type(1) { animation: gold-pulse 2s linear infinite; }
.menu-toggle:hover .bar:nth-of-type(2) { animation: gold-pulse 2s linear infinite 0.35s; }
.menu-toggle:hover .bar:nth-of-type(3) { animation: gold-pulse 2s linear infinite 0.7s; }

@keyframes gold-pulse {
  0%, 25% { background: rgba(255, 255, 255, 0.90); }
  40%, 60% { background: #f7c948; }
  75%, 100% { background: rgba(255, 255, 255, 0.90); }
}

/* ===== SLIDE-OUT PANEL ===== */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 270px;
  height: 100vh;
  background: rgba(5, 8, 22, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.65);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 4.2rem 1.5rem 2rem;
  gap: 0.75rem;
  pointer-events: auto;
}

.menu-panel.open {
  transform: translateX(0);
}

.menu-panel a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-panel a:hover {
  color: var(--rc-accent);
}

.menu-panel a:last-child {
  border-bottom: none;
}

/* overlay */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 1150;
  transition: opacity 0.28s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== HERO ===== */
.hero {
  padding: 96px 40px 78px;
  max-width: var(--rc-max);
  margin: 0 auto;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 14px;
  color: var(--rc-text);
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  max-width: 560px;
  color: var(--rc-muted);
  margin: 0 0 26px;
  line-height: 1.65;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.60);
}

/* main CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  box-shadow: 0 14px 45px rgba(250, 204, 21, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 60px rgba(250, 204, 21, 0.32);
}

/* hero responsiveness */
@media (max-width: 720px) {
  .hero {
    padding: 72px 20px 58px;
  }
  .hero h1 {
    font-size: 34px;
  }
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--rc-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.section h2 {
  font-size: 1.9rem;
  margin: 0 0 0.8rem;
  color: var(--rc-accent);
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 680px;
  font-size: 0.98rem;
  color: var(--rc-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===== CARD GRID (used in Who / About / Services) ===== */
.card-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--rc-shadow);
  backdrop-filter: blur(7px);
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
  color: var(--rc-text);
}

.card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.8rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.74);
}

.card li + li { margin-top: 0.25rem; }

/* ===== WHY GRID ===== */
.why-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.why-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--rc-shadow);
  backdrop-filter: blur(7px);
}

.why-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
  color: var(--rc-text);
}

.why-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
}

/* ===== RESOURCES ===== */
.resource-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.resource-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--rc-shadow);
  backdrop-filter: blur(7px);
}

.resource-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: var(--rc-accent);
  margin-bottom: 0.55rem;
}

.resource-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--rc-text);
}

.resource-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.7rem;
}

.resource-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.74);
}

.resource-card li + li { margin-top: 0.25rem; }

/* ===== CONTACT ===== */
.contact-layout {
  margin-top: 2rem;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
}

.contact-copy h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--rc-text);
}

.contact-copy ul {
  margin: 0 0 0.95rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  background: var(--rc-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--rc-radius);
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
  color: var(--rc-text);
}

.contact-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.6rem;
}

.contact-card ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.76);
}

.contact-card li + li { margin-top: 0.25rem; }

.contact-actions { margin: 0.35rem 0; }

.contact-card a {
  font-weight: 700;
  text-decoration: none;
}

/* Email link */
.contact-link {
  color: var(--rc-accent);
  border-bottom: 1px solid rgba(250, 204, 21, 0.35);
  padding-bottom: 2px;
}

.contact-link:hover {
  color: #fde047;
  border-color: #fde047;
}

/* CTA link */
.contact-cta {
  color: #fde047;
  border-bottom: 2px solid rgba(250, 204, 21, 0.65);
  padding-bottom: 3px;
}

.contact-cta:hover {
  color: #fbbf24;
  border-color: #fbbf24;
}

.contact-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.9rem;
  line-height: 1.6;
}

/* responsive contact */
@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== FLOATING HOME LOGO (TOP-LEFT) ===== */
.home-logo-float {
  position: fixed;
  left: 1.5rem;
  top: 1rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  perspective: 800px;
}

.home-logo-float img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.home-logo-float:hover img {
  animation: spin-3d 4s linear infinite;
}

@keyframes spin-3d {
  0%   { transform: rotateY(0deg) rotateX(0deg); }
  25%  { transform: rotateY(90deg) rotateX(10deg); }
  50%  { transform: rotateY(180deg) rotateX(0deg); }
  75%  { transform: rotateY(270deg) rotateX(-10deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 3rem;
  padding: 1.8rem 0 2.6rem;
  border-top: 1px solid var(--rc-border-soft);
  text-align: center;
}

.site-footer p {
  margin: 0.2rem 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-small {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* ===== OPTIONAL ALIASES (SAFE) =====
   If you ever use these older names, they still render correctly.
*/
.service-grid { /* alias for .card-grid */ 
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service-card { /* alias for .card */
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--rc-shadow);
  backdrop-filter: blur(7px);
}

.trust-grid { /* alias for .why-grid */
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.trust-card { /* alias for .why-card */
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--rc-shadow);
  backdrop-filter: blur(7px);
}
