/* ============================================
   SHILOHI SAFETY NETS — Base Styles
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--royal), var(--gold));
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--electric);
}

/* ── Selection ── */
::selection {
  background: rgba(7, 87, 201, 0.4);
  color: var(--white);
}

/* ── Links ── */
a {
  color: var(--electric);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}
a:hover {
  color: var(--soft-gold);
}

/* ── Images ── */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* ── Paragraphs ── */
p {
  line-height: var(--line-relaxed);
  color: var(--gray-200);
}

/* ── Buttons ── */
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
}

/* ── Inputs ── */
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  border: none;
  background: transparent;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--lg {
  max-width: var(--container-2xl);
}

.container--sm {
  max-width: var(--container-lg);
}

/* ── Section ── */
.section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.section--dark {
  background: var(--grad-dark-section);
}

.section--navy {
  background: var(--grad-navy);
}

.section--midnight {
  background: var(--midnight);
}

/* ── Section Label (e.g., "01", "02") ── */
.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ── Section Title ── */
.section__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-lg);
  max-width: 800px;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-200);
  max-width: 600px;
  line-height: var(--line-relaxed);
}

/* ── Gold Text ── */
.text-gold {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-metallic {
  background: var(--grad-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
}

/* ── Net Pattern Background ── */
.net-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--net-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--net-color) 1px, transparent 1px);
  background-size: var(--net-size) var(--net-size);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.net-pattern--diagonal {
  transform: rotate(45deg) scale(1.5);
  transform-origin: center;
}

/* ── Glow Orbs (decorative) ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb--blue {
  background: rgba(22, 136, 255, 0.12);
}

.glow-orb--gold {
  background: rgba(201, 163, 74, 0.08);
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--grad-gold);
  margin: var(--space-lg) 0;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-300);
  padding: var(--space-lg) 0;
}

.breadcrumbs a {
  color: var(--gray-300);
  transition: color var(--duration-normal);
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs__sep {
  color: var(--gray-400);
  font-size: 0.6rem;
}

.breadcrumbs__current {
  color: var(--gold);
}

/* ── Visually Hidden (accessibility) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
