/* ==========================================================================
   Elite IT Systems — shared site stylesheet
   Extracted from per-page embedded CSS (Aug 2026). Include on every page:
   <link rel="stylesheet" href="/assets/site.css">
   Keep only page-specific rules (e.g. a one-off section) in a page's own
   <style> block — nav, footer, buttons, and blog/article components live
   here so a brand or layout change only has to happen once.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0B1F4B; --navy-dark: #071533; --navy-mid: #122660; --navy-light: #1A3A7A;
  --accent: #2563EB; --accent-bright: #3B82F6; --white: #FFFFFF;
  --gray-50: #F8FAFC; --gray-100: #F1F5F9; --gray-200: #E2E8F0;
  --gray-400: #94A3B8; --gray-600: #475569; --gray-700: #374151; --gray-800: #1E293B;
  --gold: #F59E0B;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav { background: var(--navy-dark); position: sticky; top: 0; z-index: 1000; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 72px; box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-wrap img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links li { position: relative; }
.nav-links > li > a, .nav-links > li > span { color: #CBD5E1; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; letter-spacing: 0.02em; padding: 8px 16px; display: block; cursor: pointer; white-space: nowrap; }
.nav-links > li > a:hover, .nav-links > li > span:hover { color: white; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; min-width: 220px; padding: 8px 0; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.dropdown a { display: block; padding: 10px 20px; color: #CBD5E1; text-decoration: none; font-size: 13px; transition: background .15s, color .15s; }
.dropdown a:hover { background: rgba(37,99,235,.15); color: white; }
.nav-cta { background: var(--accent) !important; color: white !important; padding: 10px 20px !important; border-radius: 6px; font-weight: 600 !important; margin-left: 16px; transition: background .2s !important; }
.nav-cta:hover { background: var(--accent-bright) !important; }

/* MOBILE NAV */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 72px 0 0 0; background: var(--navy-dark); z-index: 999; padding: 24px 24px 40px; overflow-y: auto; flex-direction: column; gap: 0; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 16px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); display: block; }
.mobile-nav a:hover { color: white; }
.mobile-nav .mobile-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.35); padding: 20px 0 8px; }
.mobile-nav .mobile-cta { margin-top: 24px; background: var(--accent); color: white !important; padding: 14px 20px; border-radius: 8px; text-align: center; font-weight: 600; border-bottom: none !important; }
.mobile-nav .mobile-cta:hover { background: var(--accent-bright); }
@media (max-width: 768px) { .nav-hamburger { display: flex; } .nav-links { display: none !important; } }

/* FOOTER */
footer { background: var(--navy-dark); color: white; padding: 60px 40px 32px; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
footer a:hover { color: #ffffff; }
footer .footer-contact a[href^="/risk-assessment.html"] { color: #ffffff !important; }
footer .footer-contact p { color: rgba(255,255,255,.6); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 10px; line-height: 1.6; }
.footer-contact a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-contact a:hover { color: white; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }

/* GENERIC SECTION */
.section { padding: 80px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: var(--navy-dark); line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.01em; }

/* BLOG INDEX HERO */
.blog-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%); padding: 90px 40px 70px; }
.blog-hero-inner { max-width: 780px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #93C5FD; margin-bottom: 20px; }
.breadcrumb a { color: #93C5FD; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.blog-hero-inner h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; color: white; line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.01em; }
.blog-hero-inner p { color: #94A3B8; font-size: 17px; line-height: 1.75; max-width: 620px; }

/* BLOG ARTICLE GRID (index page) */
.blog-grid-section { padding: 72px 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.article-card { background: white; border: 1px solid var(--gray-200); border-radius: 16px; padding: 32px; transition: box-shadow .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; text-decoration: none; }
.article-card:hover { box-shadow: 0 12px 40px rgba(37,99,235,.1); transform: translateY(-4px); border-color: rgba(37,99,235,.3); }
.article-card-tag { display: inline-flex; align-self: flex-start; background: rgba(37,99,235,.1); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 100px; margin-bottom: 16px; }
.article-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; line-height: 1.35; }
.article-card p { font-size: 14px; color: var(--gray-600); line-height: 1.65; flex: 1; }
.article-card-meta { font-size: 12px; color: var(--gray-400); margin-top: 18px; }
.article-card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 12px; transition: gap .2s; }
.article-card:hover .article-card-link { gap: 10px; }
.article-card.placeholder { background: var(--gray-50); border-style: dashed; align-items: center; justify-content: center; text-align: center; color: var(--gray-400); cursor: default; }
.article-card.placeholder:hover { transform: none; box-shadow: none; border-color: var(--gray-200); }
.article-card.placeholder h3 { color: var(--gray-400); font-size: 15px; }

/* INDIVIDUAL ARTICLE PAGE HERO */
.article-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%); padding: 80px 40px 64px; }
.article-hero-inner { max-width: 740px; margin: 0 auto; }
.article-tag { display: inline-flex; background: rgba(37,99,235,.18); color: #93C5FD; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 100px; margin-bottom: 18px; }
.article-hero-inner h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: white; line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.01em; }
.article-hero-inner .article-dek { color: #94A3B8; font-size: 17px; line-height: 1.75; }
.article-meta-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 13px; color: #94A3B8; }
.article-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: #94A3B8; }

/* INDIVIDUAL ARTICLE BODY */
.article-body-section { padding: 64px 40px 24px; }
.article-body { max-width: 740px; margin: 0 auto; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--navy-dark); line-height: 1.3; margin: 44px 0 16px; letter-spacing: -0.01em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy-dark); margin: 28px 0 10px; }
.article-body p { font-size: 16px; color: var(--gray-700); line-height: 1.8; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { font-size: 16px; color: var(--gray-700); line-height: 1.75; margin-bottom: 10px; }
.article-body strong { color: var(--navy-dark); font-weight: 600; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 28px 0; font-size: 18px; color: var(--navy-dark); font-family: var(--font-display); font-weight: 500; line-height: 1.5; }
.article-body .stat-callout { font-size: 14px; color: var(--gray-400); margin-top: -8px; }
.checklist { list-style: none; margin: 0 0 20px 0; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; font-size: 15px; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); margin-bottom: 0; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "→"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.article-cta-inline { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 14px; padding: 28px 32px; margin: 36px 0; }
.article-cta-inline p { margin-bottom: 14px; color: var(--gray-700); }
.article-cta-inline p:last-of-type { margin-bottom: 0; }
.article-cta-inline .btn-secondary { display: inline-block; background: var(--accent); color: white; padding: 11px 22px; border-radius: 6px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s; }
.article-cta-inline .btn-secondary:hover { background: var(--accent-bright); }
.article-back { max-width: 740px; margin: 8px auto 0; }
.article-back a { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; }
.article-back a:hover { text-decoration: underline; }

/* CTA STRIP */
.cta-strip { background: var(--navy-dark); padding: 64px 40px; text-align: center; margin-top: 40px; }
.cta-strip-inner { max-width: 640px; margin: 0 auto; }
.cta-strip h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: white; margin-bottom: 14px; }
.cta-strip p { color: #94A3B8; font-size: 16px; margin-bottom: 28px; }
.btn-primary { display: inline-block; background: var(--accent); color: white; padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s; }
.btn-primary:hover { background: var(--accent-bright); }

/* RESPONSIVE */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { nav { padding: 0 20px; } .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .blog-hero { padding: 60px 24px 44px; }
  .blog-grid-section { padding: 48px 24px; }
  .article-hero { padding: 56px 24px 44px; }
  .article-body-section { padding: 44px 24px 12px; }
  .cta-strip { padding: 44px 24px; }
  .article-cta-inline { padding: 22px 20px; }
}
