/* ============================================================
   ARM OF GOD MINISTRIES — GLOBAL STYLESHEET
   Design System: Variables, Reset, Typography, Utilities
   ============================================================ */

/* ─── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Brand Colors */
  --sky-blue:        #1A6FBF;
  --sky-blue-light:  #2E8EE8;
  --sky-blue-dark:   #0F4C8A;
  --sky-blue-soft:   #E8F3FC;
  --sky-gradient:    linear-gradient(135deg, #1A6FBF 0%, #2E8EE8 100%);

  --fire-red:        #E8342A;
  --fire-red-light:  #FF4D42;
  --fire-red-dark:   #C4261D;

  --white:           #FFFFFF;
  --off-white:       #F8FAFD;
  --light-grey:      #F0F4F8;
  --mid-grey:        #CBD5E1;
  --charcoal:        #1E2A3A;
  --charcoal-soft:   #2D3F55;
  --text-primary:    #1E2A3A;
  --text-secondary:  #4A6080;
  --text-muted:      #7A92AB;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  5rem;
  --space-4xl:  7rem;
  --space-5xl:  10rem;

  /* Typography */
  --font-primary:    'Plus Jakarta Sans', sans-serif;
  --font-secondary:  'Manrope', sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.25rem;
  --text-xl:    1.5rem;
  --text-2xl:   2rem;
  --text-3xl:   2.5rem;
  --text-4xl:   3.5rem;
  --text-5xl:   5rem;
  --text-6xl:   7rem;

  /* Border Radius */
  --radius-sm:   0.5rem;
  --radius-md:   1rem;
  --radius-lg:   1.5rem;
  --radius-xl:   2rem;
  --radius-2xl:  3rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(26, 111, 191, 0.08);
  --shadow-md:   0 8px 32px rgba(26, 111, 191, 0.12);
  --shadow-lg:   0 16px 64px rgba(26, 111, 191, 0.16);
  --shadow-xl:   0 32px 96px rgba(26, 111, 191, 0.20);
  --shadow-card: 0 4px 24px rgba(30, 42, 58, 0.08);
  --shadow-hover:0 12px 48px rgba(26, 111, 191, 0.22);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.6s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-nav:      500;
  --z-toast:    600;

  /* Container */
  --container-max:    1280px;
  --container-wide:   1440px;
  --container-narrow: 900px;
  --container-pad:    clamp(1.5rem, 5vw, 4rem);

  /* Nav height */
  --nav-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

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

svg {
  display: block;
}

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.8rem, 6vw, var(--text-5xl)); }
h2 { font-size: clamp(2rem, 4vw, var(--text-4xl)); }
h3 { font-size: clamp(1.4rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: var(--text-md);
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

.text-xs     { font-size: var(--text-xs); }
.text-sm     { font-size: var(--text-sm); }
.text-base   { font-size: var(--text-base); }
.text-md     { font-size: var(--text-md); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.text-2xl    { font-size: var(--text-2xl); }
.text-3xl    { font-size: var(--text-3xl); }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.text-white    { color: var(--white) !important; }
.text-blue     { color: var(--sky-blue) !important; }
.text-red      { color: var(--fire-red) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-charcoal { color: var(--charcoal) !important; }

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

/* ─── Layout Utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

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

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--sm {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--lg {
  padding-block: clamp(6rem, 12vw, 10rem);
}

/* ─── Grid System ─────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.grid-auto-fit-sm  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-fit-md  { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-auto-fit-lg  { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

/* ─── Flex Utilities ──────────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* ─── Spacing Utilities ───────────────────────────────────── */
.mt-auto { margin-top: auto; }
.mb-sm   { margin-bottom: var(--space-sm); }
.mb-md   { margin-bottom: var(--space-md); }
.mb-lg   { margin-bottom: var(--space-lg); }
.mb-xl   { margin-bottom: var(--space-xl); }
.mb-2xl  { margin-bottom: var(--space-2xl); }
.mt-md   { margin-top: var(--space-md); }
.mt-lg   { margin-top: var(--space-lg); }
.mt-xl   { margin-top: var(--space-xl); }
.mt-2xl  { margin-top: var(--space-2xl); }

/* ─── Display ─────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Section Labels ──────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--sky-blue);
  border-radius: 2px;
}

.section-label--white {
  color: rgba(255,255,255,0.75);
}

.section-label--white::before {
  background: rgba(255,255,255,0.6);
}

.section-label--red {
  color: var(--fire-red);
}

.section-label--red::before {
  background: var(--fire-red);
}

/* ─── Section Headings ────────────────────────────────────── */
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
}

.section-heading span {
  background: var(--sky-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-heading--white span {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subheading {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-subheading--white {
  color: rgba(255, 255, 255, 0.75);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subheading {
  margin-inline: auto;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

/* Primary Button */
.btn-primary {
  background: var(--sky-gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(26, 111, 191, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 111, 191, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Red Button */
.btn-red {
  background: var(--fire-red);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(232, 52, 42, 0.35);
}

.btn-red:hover {
  background: var(--fire-red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 52, 42, 0.45);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--sky-blue);
  border-color: var(--sky-blue);
}

.btn-outline:hover {
  background: var(--sky-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--mid-grey);
}

.btn-ghost:hover {
  background: var(--light-grey);
  border-color: var(--sky-blue);
  color: var(--sky-blue);
}

/* Button Sizes */
.btn-sm {
  font-size: var(--text-xs);
  padding: 0.625rem 1.25rem;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 1.1rem 2.25rem;
}

.btn-xl {
  font-size: var(--text-md);
  padding: 1.25rem 2.75rem;
}

/* Button Icon */
.btn i, .btn svg {
  font-size: 1em;
  transition: transform var(--transition-base);
}

.btn:hover i.btn-arrow,
.btn:hover svg.btn-arrow {
  transform: translateX(4px);
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(203, 213, 225, 0.5);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-body {
  padding: var(--space-xl);
}

.card-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
}

.card-blue {
  background: var(--sky-gradient);
  border: none;
  color: var(--white);
}

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.badge-blue {
  background: var(--sky-blue-soft);
  color: var(--sky-blue);
}

.badge-red {
  background: rgba(232, 52, 42, 0.1);
  color: var(--fire-red);
}

.badge-white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ─── Dividers ────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--sky-gradient);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.divider--center {
  margin-inline: auto;
}

.divider--red {
  background: var(--fire-red);
}

/* ─── Backgrounds ─────────────────────────────────────────── */
.bg-white      { background-color: var(--white); }
.bg-off-white  { background-color: var(--off-white); }
.bg-light      { background-color: var(--light-grey); }
.bg-charcoal   { background-color: var(--charcoal); }
.bg-blue       { background: var(--sky-gradient); }
.bg-blue-soft  { background-color: var(--sky-blue-soft); }

/* ─── Background Patterns ─────────────────────────────────── */
.bg-dots {
  background-image: radial-gradient(var(--mid-grey) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(26,111,191,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,191,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Overlay ─────────────────────────────────────────────── */
.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.overlay-dark {
  background: linear-gradient(
    180deg,
    rgba(15, 25, 40, 0.4) 0%,
    rgba(15, 25, 40, 0.6) 50%,
    rgba(15, 25, 40, 0.75) 100%
  );
}

.overlay-blue {
  background: linear-gradient(
    135deg,
    rgba(26, 111, 191, 0.85) 0%,
    rgba(10, 40, 80, 0.92) 100%
  );
}

.overlay-gradient-b {
  background: linear-gradient(0deg, rgba(15,25,40,0.9) 0%, transparent 60%);
}

/* ─── Position Utilities ──────────────────────────────────── */
.relative  { position: relative; }
.absolute  { position: absolute; }
.sticky    { position: sticky; }
.fixed     { position: fixed; }
.inset-0   { inset: 0; }
.w-full    { width: 100%; }
.h-full    { height: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }

/* ─── Image Cover ─────────────────────────────────────────── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ─── Gradient Text ───────────────────────────────────────── */
.gradient-text {
  background: var(--sky-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-red {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Icon Box ────────────────────────────────────────────── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all var(--transition-spring);
}

.icon-box--blue {
  background: var(--sky-blue-soft);
  color: var(--sky-blue);
}

.icon-box--blue-solid {
  background: var(--sky-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,111,191,0.3);
}

.icon-box--red {
  background: rgba(232, 52, 42, 0.1);
  color: var(--fire-red);
}

.icon-box--white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.icon-box--lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  font-size: 1.75rem;
}

.icon-box--xl {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-xl);
  font-size: 2rem;
}

.card:hover .icon-box--blue {
  background: var(--sky-gradient);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(26,111,191,0.35);
  transform: scale(1.08) rotate(-5deg);
}

/* ─── Tags / Pills ────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--sky-blue-soft);
  color: var(--sky-blue);
  letter-spacing: 0.04em;
}

/* ─── Horizontal Rule ─────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--light-grey);
  margin-block: var(--space-xl);
}

/* ─── Scroll Bar Styling ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--sky-blue);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sky-blue-dark);
}

/* ─── Selection ───────────────────────────────────────────── */
::selection {
  background: rgba(26, 111, 191, 0.2);
  color: var(--sky-blue-dark);
}

/* ─── Focus ───────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--sky-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── AOS Overrides ───────────────────────────────────────── */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ─── Page Transition ─────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--sky-blue-dark);
  z-index: 9999;
  transform: translateY(100%);
  pointer-events: none;
}

/* ─── Smooth Scroll Offset ────────────────────────────────── */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* ─── Responsive Breakpoints ──────────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

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

@media (max-width: 640px) {
  .grid-4   { grid-template-columns: 1fr; }
  .btn-xl   { font-size: var(--text-base); padding: 1rem 2rem; }
  .btn-lg   { font-size: var(--text-sm); padding: 0.875rem 1.75rem; }
}
