/* ============================================================
   MAIN.CSS — Global tokens, nav, footer
   Ricardo León blog.ricardoleon.net
   ============================================================ */

:root {
  --rl-bg:          #020617;
  --rl-bg-mid:      #0a0e27;
  --rl-bg-footer:   #0f1f33;
  --rl-bg-light:    #f5f5f0;
  --rl-bg-card:     #ffffff;
  --rl-accent:      #60a5fa;
  --rl-blue:        #2563eb;
  --rl-blue-dark:   #1d4ed8;
  --rl-white:       #ffffff;
  --rl-gray-900:    #111827;
  --rl-gray-700:    #374151;
  --rl-gray-600:    #4b5563;
  --rl-gray-400:    #9ca3af;
  --rl-gray-500:    #6b7280;
  --rl-font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --rl-radius:      1rem;
  --rl-max:         48rem;
  --rl-max-wide:    72rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--rl-font) !important;
  background: var(--rl-bg) !important;
  color: var(--rl-white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding-top: 0 !important;
}

/* Kill GeneratePress default bg */
#page { position: relative !important; }

.site-content,
.inside-page-hero,
.generate-page-header {
  background: var(--rl-bg) !important;
}

/* ── Hide GP's native header entirely ── */
#site-header,
.site-header,
body #site-header,
body .site-header,
body #masthead {
  display: none !important;
}

/* ── Custom nav inside hero ── */
.rl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--rl-max-wide);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.rl-nav-title,
.rl-nav-title:visited,
.rl-nav-title:link {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  line-height: 1;
  opacity: 1 !important;
}
.rl-nav-title:hover { opacity: 0.8 !important; }

/* Back to Home link */
.rl-back-home,
.rl-back-home:visited {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rl-gray-400) !important;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.rl-back-home:hover { color: #ffffff !important; }

/* ── FOOTER ── */
.site-footer,
#colophon {
  background: var(--rl-bg-footer) !important;
  padding: 4rem 2rem !important;
  text-align: center !important;
  border-top: none !important;
}
.site-footer .footer-name {
  color: var(--rl-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.site-footer .footer-tagline {
  color: var(--rl-gray-400);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}
.site-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer .footer-social a {
  color: var(--rl-gray-400) !important;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}
.site-footer .footer-social a:hover { color: var(--rl-white) !important; }
.site-footer .footer-social svg { width: 1.25rem; height: 1.25rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 0;
}
.site-footer .footer-bottom p {
  color: var(--rl-gray-500) !important;
  font-size: 0.875rem;
  margin: 0;
}
.site-footer .footer-bottom a {
  color: var(--rl-gray-500) !important;
  text-decoration: underline;
}
.site-footer .footer-bottom a:hover { color: var(--rl-gray-400) !important; }

/* Kill GP default footer content */
.site-footer .inside-footer-widgets,
.footer-widgets-container,
.copyright-bar { display: none !important; }
/* ── Work With Me ── */
.rl-work-section {
  background: #f5f5f0 !important;
  padding: 5rem 1.5rem 6rem;
  border-top: 1px solid #e5e7eb;
}
.rl-work-inner { max-width: 72rem; margin: 0 auto; }
.rl-work-header { text-align: center; margin-bottom: 3rem; }
.rl-work-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #111827 !important;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.rl-work-sub { font-size: 1.0625rem; color: #6b7280 !important; margin: 0; }
.rl-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 640px) { .rl-work-grid { grid-template-columns: 1fr; } }
.rl-work-card,
.rl-work-card:visited {
  background: #ffffff !important;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid #f3f4f6 !important;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rl-work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: #1e3a5f !important;
}
.rl-work-icon {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.rl-icon-blue   { background: #eff6ff !important; color: #2563eb !important; }
.rl-icon-red    { background: #fef2f2 !important; color: #dc2626 !important; }
.rl-icon-amber  { background: #fffbeb !important; color: #d97706 !important; }
.rl-icon-purple { background: #faf5ff !important; color: #9333ea !important; }
.rl-work-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827 !important;
  margin: 0 0 0.5rem;
}
.rl-work-card-desc {
  font-size: 0.9375rem;
  color: #4b5563 !important;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.rl-work-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #1e3a5f !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
}