/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
  /* Colors */
  --c-primary: #0A2540;     /* Deep technical blue */
  --c-secondary: #0052CC;   /* Active blue */
  --c-accent: #E11D48;      /* Urgent/Action red */
  --c-accent-hover: #BE123C;
  --c-background: #F8FAFC;  /* Very light blue-grey */
  --c-surface: #FFFFFF;
  --c-text-main: #334155;
  --c-text-heading: #0F172A;
  --c-text-light: #64748B;
  --c-border: #E2E8F0;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--c-background);
  color: var(--c-text-main);
  line-height: 1.6;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--c-secondary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-primary);
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--c-text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1.25rem;
}

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

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--c-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.site-nav a {
  color: var(--c-text-heading);
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--c-secondary);
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-height);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  min-width: 260px;
  padding: 0.5rem 0;
  z-index: 10;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 400;
}

.dropdown-menu a:hover {
  background: var(--c-background);
}

.nav-cta a {
  background: var(--c-accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.nav-cta a:hover {
  background: var(--c-accent-hover);
  color: #fff;
}

/* Mobile Sticky Call Bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-accent);
  text-align: center;
  z-index: 99;
}

.mobile-call-bar a {
  display: block;
  color: #fff;
  font-weight: 700;
  padding: 1rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  background-color: var(--c-primary);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(0,82,204,0.2) 0%, rgba(10,37,64,0.9) 100%);
  pointer-events: none;
}

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

.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p.lead {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn-primary {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 4px;
  text-align: center;
}

.btn-primary:hover {
  background: var(--c-accent-hover);
  color: #fff;
}

/* Sections & Content Pages */
.section {
  padding: 4rem 0;
}

.section-bg {
  background: var(--c-surface);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.main-content {
  background: var(--c-surface);
  padding: 2rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--c-primary);
  color: #fff;
  padding: 2rem;
  border-radius: 4px;
  text-align: center;
}

.sidebar-widget h3 {
  color: #fff;
  margin-top: 0;
}

.sidebar-widget .btn-primary {
  width: 100%;
  margin-top: 1rem;
}

.sidebar-nav {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 1.5rem;
  border-radius: 4px;
}

.sidebar-nav h3 {
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-border);
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.75rem;
}

.sidebar-nav a {
  color: var(--c-text-main);
  display: block;
}

.sidebar-nav a:hover {
  color: var(--c-secondary);
  padding-left: 0.25rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--c-text-light);
}

.breadcrumbs span {
  color: var(--c-text-main);
  margin: 0 0.5rem;
}

.breadcrumbs .current {
  color: var(--c-primary);
  font-weight: 500;
}

/* Images */
.content-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
  border: 1px solid var(--c-border);
}

/* Lists in content */
.main-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.main-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--c-primary);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.125rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--c-border);
  }

  .dropdown {
    height: auto;
    display: block;
  }

  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: var(--c-background);
    padding: 0;
  }
  
  .dropdown-menu a {
    padding-left: 2rem;
  }

  .nav-cta {
    margin-top: 1rem;
  }

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

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

  .hero {
    padding: 3rem 0;
  }

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

  .mobile-call-bar {
    display: block;
  }

  body {
    padding-bottom: 60px; /* Space for mobile bar */
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
