/* ========================================
   NEHEMIAH SOLUTIONS - Main Stylesheet
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --navy-primary: #0C1528;
  --charcoal: #282627;
  --accent-steel: #36434D;
  --dark-tone: #181818;
  --neutral-light: #E9E8E6;
  --neutral-offwhite: #F7F7F7;
  --white: #FFFFFF;

  /* Gradients */
  --gradient-navy: linear-gradient(135deg, #0C1528 0%, #1a2a45 50%, #0C1528 100%);
  --gradient-accent: linear-gradient(135deg, #36434D 0%, #0C1528 100%);

  /* Typography */
  --font-heading: 'Exo 2', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Spacing */
  --section-padding: 100px;
  --section-padding-mobile: 60px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(12, 21, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 21, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 21, 40, 0.12);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ===== CSS RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-primary);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-gradient {
  background: linear-gradient(90deg, var(--neutral-light), #8a9bae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
}

/* ===== SECTION LABELS & TITLES ===== */
.section-label {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-steel);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--navy-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--accent-steel);
  max-width: 640px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Light text variants (for dark backgrounds) */
.section-label--light {
  color: rgba(255, 255, 255, 0.4);
}

.section-title--light {
  color: var(--white);
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-steel);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--navy-primary);
  border-color: var(--navy-primary);
}

.btn-secondary:hover {
  background: var(--navy-primary);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy-primary);
}

.btn-light:hover {
  background: var(--neutral-light);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== GRID UTILITIES ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== FLEX UTILITIES ===== */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== TEXT UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ===== VISIBILITY UTILITIES ===== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ===== BACKGROUND PATTERNS ===== */
.bg-grid {
  position: relative;
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.bg-gradient-navy {
  background: var(--gradient-navy);
}

.bg-navy {
  background: var(--navy-primary);
}

.bg-light {
  background: var(--neutral-light);
}

.bg-offwhite {
  background: var(--neutral-offwhite);
}

.bg-white {
  background: var(--white);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-steel);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-primary);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--navy-primary);
  color: var(--white);
}
