/* ============================================================
   DESIGN SYSTEM — Security Agency Website
   Clean, light, corporate theme inspired by SDSPL / SIS India
   ============================================================ */

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

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* ---- Colors ---- */
  --color-primary:        #002B49;   /* Navy Blue — headings, nav, icons */
  --color-primary-light:  #003D6B;   /* Lighter navy for hover states */
  --color-primary-dark:   #001A2E;   /* Darker navy */

  --color-accent:         #E31837;   /* Red — CTA buttons, highlights */
  --color-accent-dark:    #C0001A;   /* Darker red for hover */
  --color-accent-light:   #FF2D4D;   /* Lighter red */

  --color-white:          #FFFFFF;
  --color-off-white:      #F4F6F8;   /* Alternating section bg */
  --color-light-gray:     #F8F9FA;   /* Card backgrounds, subtle bg */
  --color-border:         #E2E8F0;   /* Card borders, dividers */
  --color-border-light:   #EDF2F7;   /* Very subtle borders */

  --color-text-dark:      #1A1D20;   /* Headings, strong text */
  --color-text-body:      #4B5563;   /* Body paragraphs */
  --color-text-muted:     #6B7280;   /* Secondary text, captions */
  --color-text-light:     #9CA3AF;   /* Subtle text, footer links */

  --color-footer-bg:      #0B131F;   /* Footer background */
  --color-footer-text:    #A0AEC0;   /* Footer body text */

  --color-success:        #10B981;
  --color-warning:        #F59E0B;
  --color-error:          #EF4444;

  /* ---- Typography ---- */
  --font-family:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs:         0.75rem;   /* 12px */
  --font-size-sm:         0.875rem;  /* 14px */
  --font-size-base:       1rem;      /* 16px */
  --font-size-md:         1.125rem;  /* 18px */
  --font-size-lg:         1.25rem;   /* 20px */
  --font-size-xl:         1.5rem;    /* 24px */
  --font-size-2xl:        2rem;      /* 32px */
  --font-size-3xl:        2.25rem;   /* 36px */
  --font-size-4xl:        3rem;      /* 48px */
  --font-size-5xl:        3.5rem;    /* 56px */

  --font-weight-light:    300;
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold:800;

  --line-height-tight:    1.2;
  --line-height-normal:   1.5;
  --line-height-relaxed:  1.65;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide:  0.5px;
  --letter-spacing-wider: 1px;

  /* ---- Spacing ---- */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ---- Layout ---- */
  --container-max:    1200px;
  --container-wide:   1400px;
  --container-narrow: 900px;
  --container-padding: var(--space-6);

  /* ---- Borders ---- */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:    0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md:    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg:    0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl:    0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --shadow-nav:   0 2px 10px rgba(0, 0, 0, 0.06);

  /* ---- Transitions ---- */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* ---- Z-Index ---- */
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-fixed:      300;
  --z-modal:      400;
  --z-tooltip:    500;
}


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

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

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

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

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

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-semibold); }
h3 { font-size: var(--font-size-xl);  font-weight: var(--font-weight-semibold); }
h4 { font-size: var(--font-size-lg);  font-weight: var(--font-weight-semibold); }
h5 { font-size: var(--font-size-md);  font-weight: var(--font-weight-medium); }
h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-medium); }

p {
  margin-bottom: var(--space-4);
}

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


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

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

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

/* Sections */
.section {
  padding: var(--space-20) 0;
}

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

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

.section--gray {
  background-color: var(--color-off-white);
}

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

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--color-white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.85);
}

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

.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--5 { grid-template-columns: repeat(5, 1fr); }

.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--3-2 { grid-template-columns: 3fr 2fr; }
.grid--2-3 { grid-template-columns: 2fr 3fr; }

/* Flex */
.flex {
  display: flex;
}

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

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

.flex--column {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--gap-sm { gap: var(--space-3); }
.flex--gap    { gap: var(--space-4); }
.flex--gap-md { gap: var(--space-6); }
.flex--gap-lg { gap: var(--space-8); }


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

.text-capitalize {
  text-transform: capitalize;
}

.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: var(--color-white); }
.text-dark    { color: var(--color-text-dark); }

.text-sm { font-size: var(--font-size-sm); }
.text-md { font-size: var(--font-size-md); }
.text-lg { font-size: var(--font-size-lg); }

.fw-medium   { font-weight: var(--font-weight-medium); }
.fw-semibold { font-weight: var(--font-weight-semibold); }
.fw-bold     { font-weight: var(--font-weight-bold); }

/* Section heading with red underline accent */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-heading h2 {
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: var(--space-3) auto 0;
  border-radius: var(--radius-full);
}

.section-heading p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
}

/* Subtitle / Tagline */
.section-subtitle {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-2);
}


/* ============================================================
   SPACING UTILITIES
   ============================================================ */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pb-4 { padding-bottom: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
    --container-padding: var(--space-4);
  }

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

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

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    margin-bottom: var(--space-8);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
  }
}
