/* ===========================
   Signum Defense and Intelligence
   Custom Site Styles
   =========================== */

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

:root {
  --color-primary: #1a1f2e;
  --color-secondary: #2a3142;
  --color-accent: #c5a572;
  --color-accent-hover: #d4b88a;
  --color-text: #e8e8e8;
  --color-text-muted: #a0a8b8;
  --color-text-dark: #2a2a2a;
  --color-bg-light: #f5f2ed;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-border: rgba(197, 165, 114, 0.2);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 31, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-contact-btn {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-contact-btn::after {
  display: none !important;
}

.nav-contact-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-primary) !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d1117 50%, #1a1f2e 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(197, 165, 114, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(42, 49, 66, 0.4) 0%, transparent 50%);
}

/* Subtle grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 165, 114, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 165, 114, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(197, 165, 114, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* --- Section Styles --- */
.section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-light .section-label {
  color: #8a7350;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-light h2 {
  color: var(--color-text-dark);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-light .section-header p {
  color: #666;
}

/* --- About / Value Prop Section --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  background: rgba(197, 165, 114, 0.04);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(197, 165, 114, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 36px 32px;
  border-left: 4px solid var(--color-accent);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-content p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(197, 165, 114, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 36px;
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: rgba(197, 165, 114, 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.contact-email svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-accent);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(26, 31, 46, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-expertise h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(197, 165, 114, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --- Capabilities Grid (Home) --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-card {
  background: white;
  border-radius: 8px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-top: 3px solid transparent;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-top-color: var(--color-accent);
}

.capability-icon {
  width: 52px;
  height: 52px;
  background: rgba(197, 165, 114, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #8a7350;
}

.capability-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.capability-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8a7350;
}

.card-link:hover {
  color: var(--color-accent);
}

/* --- Commitment Block --- */
.commitment-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.commitment-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.commitment-block p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Contact Emails --- */
.contact-emails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* --- Page Hero (Services/Research) --- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--color-secondary);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(197, 165, 114, 0.06) 0%, transparent 60%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Service Sections (Services page) --- */
.service-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.service-section.section-bg > .container {
  position: relative;
  z-index: 1;
}

.service-section.alt {
  background: var(--color-secondary);
}

.service-section-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.service-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(197, 165, 114, 0.2);
  line-height: 1;
  font-family: var(--font-heading);
  flex-shrink: 0;
  min-width: 80px;
}

.service-section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.service-subtitle {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
}

.service-body p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}

.service-list li {
  padding: 10px 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* --- Misinfo Grid --- */
.misinfo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.misinfo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px 24px;
}

.misinfo-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.misinfo-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.misinfo-process {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 180px;
  background: rgba(197, 165, 114, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px 20px;
}

.process-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.process-arrow {
  display: flex;
  align-items: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 300;
}

/* --- Intel Pillars --- */
.intel-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.intel-pillar {
  background: rgba(197, 165, 114, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 24px;
}

.intel-pillar h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.intel-pillar p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Research Grid (Research page) --- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.research-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.research-item:hover {
  border-color: var(--color-accent);
  background: rgba(197, 165, 114, 0.04);
}

.research-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.research-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.compliance-note {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(197, 165, 114, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 24px;
}

/* --- Section Background Images --- */
.section-bg {
  position: relative;
  overflow: hidden;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.section-bg > .container {
  position: relative;
  z-index: 1;
}

/* Network graph backgrounds */
.bg-network::before {
  background-image: url('../img/network-graph.svg');
  opacity: 0.7;
}

.bg-network-2::before {
  background-image: url('../img/network-graph-2.svg');
  opacity: 0.7;
}

/* World map background */
.bg-map::before {
  background-image: url('../img/world-map.svg');
  opacity: 0.8;
}

/* Flags pattern background */
.bg-flags::before {
  background-image: url('../img/flags-pattern.svg');
  opacity: 0.9;
}

/* Combined: network + overlay glow */
.bg-network::after,
.bg-network-2::after,
.bg-map::after,
.bg-flags::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-network::after {
  background: radial-gradient(ellipse at 30% 50%, rgba(197, 165, 114, 0.03) 0%, transparent 70%);
}

.bg-network-2::after {
  background: radial-gradient(ellipse at 70% 50%, rgba(197, 165, 114, 0.03) 0%, transparent 70%);
}

.bg-map::after {
  background: radial-gradient(ellipse at 50% 50%, rgba(197, 165, 114, 0.02) 0%, transparent 60%);
}

/* Light section background adjustments */
.section-light.section-bg::before {
  filter: brightness(0.3) sepia(1) hue-rotate(10deg);
  opacity: 0.06;
}

/* Page hero with background */
.page-hero.section-bg::before {
  opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .value-grid,
  .capabilities-grid,
  .intel-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-grid,
  .misinfo-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .service-list {
    grid-template-columns: 1fr;
  }

  .process-arrow {
    display: none;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 31, 46, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .hero-cta a {
    text-align: center;
  }

  .service-section-header {
    flex-direction: column;
    gap: 12px;
  }

  .service-number {
    font-size: 2.5rem;
  }

  .service-section {
    padding: 48px 0;
  }

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

  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}
