/* =====================================================
   NurtureArc — Resources Knowledge Hub
   Palette: matches industries.css and theme.css
   All WCAG 2.1 AA contrast. Mobile-first: 320px–1280px+.
   ===================================================== */

:root {
  --bg-deep:    #0c1f1f;
  --bg-section: #112929;
  --bg-card:    #183838;
  --bg-alt:     #0e2424;
  --bg-dark:    #080f0f;
  --fg:         #e8ede8;
  --fg-muted:   #9bb0a8;
  --fg-dim:     #6b8580;
  --accent:     #e8a44a;
  --accent-glow:#f0c370;
  --teal:       #3dd9c0;
  --teal-soft:  rgba(61,217,192,0.1);
  --teal-border:rgba(61,217,192,0.2);
  --law-bg:     #0f2a2a;
  --radius:     12px;
  --radius-lg:  20px;
}

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

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITIES ===== */
.res-section-label {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.res-accent { color: var(--accent); }
.res-arrow  { display: inline-block; transition: transform 0.2s; }

/* ===== NAV ===== */
.res-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 31, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.res-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.res-nav-brand {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.res-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.res-nav-link:hover,
.res-nav-link-active { color: var(--fg); background: rgba(255,255,255,0.06); }

.res-nav-cta {
  background: var(--accent);
  color: #0c1f1f !important;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.res-nav-cta:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.res-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 40px clamp(60px, 8vw, 100px);
}

.res-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.res-hero h1 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.res-hero-lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 660px;
}

.res-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 85% 40%, rgba(61,217,192,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(232,164,74,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Category nav pills */
.res-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.res-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--teal-border);
  border-radius: 100px;
  color: var(--fg-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.res-cat-pill:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--fg);
  transform: translateY(-1px);
}

.res-cat-icon { font-size: 1em; }

/* ===== SHARED SECTION STYLES ===== */
.res-section {
  padding: clamp(60px, 8vw, 100px) 40px;
}

.res-section-alt {
  background: var(--bg-section);
}

.res-section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.res-section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.res-section-header h2 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.2;
}

.res-section-subhead {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== STATS GRID ===== */
.res-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.res-stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.res-stat-card:hover {
  border-color: var(--teal-border);
  transform: translateY(-2px);
}

.res-stat-tag {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.res-stat-number {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.res-stat-headline {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
}

.res-stat-context {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}

.res-stat-source {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.res-source-icon { font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }

.res-source-link {
  font-size: 0.78rem;
  color: var(--fg-dim);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.res-source-link:hover { color: var(--teal); text-decoration: underline; }

/* ===== LEGISLATION LIST ===== */
.res-legal-disclaimer {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(232,164,74,0.08);
  border: 1px solid rgba(232,164,74,0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--accent-glow);
  line-height: 1.5;
}

.res-legislation-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.res-law-card {
  background: var(--law-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s;
}
.res-law-card:hover { border-color: var(--teal-border); }

.res-law-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.res-law-name {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
}

.res-law-year {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  background: var(--teal-soft);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.res-law-summary {
  font-size: 0.93rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.res-law-link {
  font-size: 0.83rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.res-law-link:hover { color: var(--accent); text-decoration: underline; }

.res-ext-icon { font-size: 0.9em; }

/* ===== GUIDES GRID ===== */
.res-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.res-guide-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.res-guide-card:hover {
  border-color: var(--teal-border);
  transform: translateY(-2px);
}

.res-guide-icon {
  font-size: 2rem;
  line-height: 1;
}

.res-guide-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  line-height: 1.3;
}

.res-guide-summary {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.res-guide-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.res-guide-points li {
  font-size: 0.86rem;
  color: var(--fg-muted);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.res-guide-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.8rem;
  top: 1px;
}

.res-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, gap 0.2s;
}
.res-guide-link:hover { color: var(--accent-glow); gap: 10px; }
.res-guide-link:hover .res-arrow { transform: translateX(4px); }

/* ===== SECTOR RESOURCES GRID ===== */
.res-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.res-sector-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.res-sector-card:hover {
  border-color: var(--teal-border);
  transform: translateY(-2px);
}

.res-sector-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.res-sector-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }

.res-sector-label {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.3;
}

.res-sector-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.res-sector-link-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.res-sector-link-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s;
}
.res-sector-link-name:hover { color: var(--accent-glow); text-decoration: underline; }

.res-sector-link-desc {
  font-size: 0.8rem;
  color: var(--fg-dim);
  line-height: 1.45;
}

.res-sector-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, gap 0.2s;
}
.res-sector-cta:hover { color: var(--accent-glow); gap: 10px; }
.res-sector-cta:hover .res-arrow { transform: translateX(4px); }

/* ===== CTA BAND ===== */
.res-cta-band {
  background: linear-gradient(135deg, #0e2424 0%, #122e2e 50%, #0a1e1e 100%);
  border-top: 1px solid var(--teal-border);
  padding: clamp(60px, 8vw, 100px) 40px;
  text-align: center;
}

.res-cta-band-inner {
  max-width: 680px;
  margin: 0 auto;
}

.res-cta-band h2 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--fg);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.25;
}

.res-cta-band p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.res-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.res-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0c1f1f;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  min-height: 44px;
}
.res-cta-primary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}
.res-cta-primary:hover .res-arrow { transform: translateX(4px); }

.res-cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  min-height: 44px;
}
.res-cta-ghost:hover { border-color: var(--teal); color: var(--fg); }

/* ===== FOOTER ===== */
.res-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px;
}

.res-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.res-footer-brand {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}

.res-footer-tagline {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

.res-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: flex-end;
}

.res-footer-nav-link {
  font-size: 0.83rem;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.res-footer-nav-link:hover { color: var(--fg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .res-nav-inner { padding: 0 20px; }
  .res-nav-links { gap: 4px; }
  .res-nav-link { padding: 8px 10px; font-size: 0.83rem; }
  .res-nav-cta { padding: 8px 14px; }

  .res-hero { padding: 60px 20px 50px; }
  .res-hero h1 { font-size: 2rem; }

  .res-section { padding: 50px 20px; }
  .res-section-header { margin-bottom: 32px; }

  .res-stats-grid  { grid-template-columns: 1fr; gap: 14px; }
  .res-guides-grid { grid-template-columns: 1fr; gap: 16px; }
  .res-sector-grid { grid-template-columns: 1fr; gap: 14px; }

  .res-law-card { padding: 20px; }
  .res-guide-card { padding: 24px; }

  .res-cta-band { padding: 50px 20px; }
  .res-cta-band h2 { font-size: 1.6rem; }
  .res-cta-row { flex-direction: column; align-items: stretch; }
  .res-cta-primary,
  .res-cta-ghost { justify-content: center; }

  .res-footer { padding: 32px 20px; }
  .res-footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .res-footer-nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .res-hero h1 { font-size: 1.8rem; }
  .res-category-nav { gap: 8px; }
  .res-cat-pill { padding: 8px 14px; font-size: 0.82rem; }
  .res-nav-link:not(.res-nav-cta):not(.res-nav-link-active) { display: none; }

  .res-stat-number { font-size: 2rem; }
  .res-law-header { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .res-stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .res-guides-grid { grid-template-columns: repeat(2, 1fr); }
  .res-sector-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .res-stats-grid  { grid-template-columns: repeat(3, 1fr); }
  .res-sector-grid { grid-template-columns: repeat(5, 1fr); }
}
