/* ============================================================
   SPARTAN TECHNOLOGIES — SHARED STYLESHEET
   Logo palette: Navy #1e1b72 · Purple #6b35c8 · Lavender #b8a8e0
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1e1b72;
  --navy-dk:     #14124f;
  --navy-mid:    #2a2590;
  --purple:      #6b35c8;
  --purple-dk:   #4a1fa8;
  --purple-lt:   #ede8ff;
  --lavender:    #b8a8e0;
  --lavender-lt: #f3f0ff;
  --accent:      #9b68e0;
  --white:       #ffffff;
  --off-white:   #f8f7ff;
  --border:      #ddd6f8;
  --text:        #2a2550;
  --text-light:  #7068a0;
  --shadow-sm:   0 2px 10px rgba(30,27,114,0.07);
  --shadow-md:   0 6px 28px rgba(30,27,114,0.13);
  --shadow-lg:   0 16px 52px rgba(30,27,114,0.2);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section   { padding: 88px 0; }
.alt-bg    { background: var(--off-white); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  background: var(--purple-lt);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(107,53,200,0.4); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,27,114,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--navy-dk);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(20,18,79,0.55);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: var(--white); padding: 3px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text .logo-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.nav-logo-text .logo-sub  { font-size: 10px; font-weight: 500; opacity: 0.65; letter-spacing: 2.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 50px;
  transition: var(--transition);
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-links a.active { background: var(--purple); color: var(--white); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 50%, var(--purple-dk) 100%);
  padding: 148px 28px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 15% 55%, rgba(107,53,200,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 65% at 85% 25%, rgba(107,53,200,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .section-tag { background: rgba(184,168,224,0.18); color: var(--lavender); }
.page-hero h1 { font-size: clamp(32px,5vw,52px); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.page-hero p  { font-size: 18px; color: rgba(255,255,255,0.62); max-width: 580px; margin: 0 auto; }

/* ============================================================
   ICON LIST
   ============================================================ */
.icon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.icon-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text);
  padding: 11px 16px; background: var(--white);
  border-radius: 8px; border: 1px solid var(--border);
}
.icon-list li i { color: var(--purple); font-size: 14px; margin-top: 4px; flex-shrink: 0; }

/* ============================================================
   TAGS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tags span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-lt); color: var(--purple);
  font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 50px;
  border: 1px solid rgba(107,53,200,0.2);
}

/* ============================================================
   INFO CARDS
   ============================================================ */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 8px; }
.info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; transition: var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-md); border-color: var(--purple); transform: translateY(-3px); }
.info-card > i    { font-size: 26px; color: var(--purple); margin-bottom: 14px; display: block; }
.info-card h4     { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.info-card p      { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.info-card.warning { border-left: 4px solid #e67e22; }
.info-card.warning > i { color: #e67e22; }

/* ============================================================
   DETAIL HEADER
   ============================================================ */
.detail-header { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.detail-icon {
  width: 68px; height: 68px; min-width: 68px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--white);
  box-shadow: 0 8px 24px rgba(107,53,200,0.35);
}
.detail-header .section-tag { display: block; margin-bottom: 4px; }
.detail-header h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--navy); }

.detail-text > p  { font-size: 16px; color: var(--text-light); margin-bottom: 28px; max-width: 800px; line-height: 1.8; }
.detail-text h4   { font-size: 12px; font-weight: 700; color: var(--navy); margin: 28px 0 14px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ============================================================
   TWO COL
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-dk); padding: 64px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: var(--white); padding: 3px; }
.footer-brand > span { font-size: 17px; font-weight: 800; color: var(--white); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.42); line-height: 1.7; max-width: 260px; }

.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--lavender); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.48); transition: color var(--transition); }
.footer-col a:hover { color: var(--lavender); }

.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.28); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-dk); padding: 16px 24px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: block; }
  .navbar         { background: var(--navy-dk); }
  .icon-list      { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; }
  .detail-header  { flex-direction: column; align-items: flex-start; }
  .page-hero      { padding: 120px 20px 64px; }
}
