/* ============================================
   NSR Solutions - Government Contractor Website
   Sidebar Layout + Slider
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #f4f4f4;
}

a {
  color: #800020;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #c5a44e;
}

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

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #1a2744;
  line-height: 1.3;
}

/* --- Overall Layout --- */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: 260px;
  background: #1a2744;
  color: #ccc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.3s;
  border-right: 3px solid #1a2744;
}

.sidebar-logo {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  background: #fff;
}

.sidebar-logo a {
  display: block;
}

.sidebar-logo .logo-img-wrap {
  background: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo .logo-img-wrap img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.sidebar nav {
  flex: 1;
  padding: 16px 0;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  color: #b0b8c8;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sidebar nav a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-left-color: #c5a44e;
}

.sidebar nav a.active {
  background: rgba(128,0,32,0.3);
  color: #c5a44e;
  border-left-color: #c5a44e;
  font-weight: 600;
}

.sidebar nav a .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-bottom {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: #667;
  text-align: center;
  line-height: 1.6;
}

.sidebar-bottom .cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.sidebar-bottom .cert-tag {
  background: rgba(197,164,78,0.15);
  color: #c5a44e;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Main Content Area --- */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Top Header Bar --- */
.top-header {
  background: #800020;
  color: #fff;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.top-header a {
  color: #c5a44e;
}

.top-header a:hover {
  color: #fff;
}

/* --- Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #1a2744;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 750px;
  padding: 0 30px;
}

.slide-content h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-content .slide-subtitle {
  color: #c5a44e;
  font-size: 1.1rem;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', Times, serif;
  margin-bottom: 16px;
}

.slide-content p {
  color: #d0d5dd;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.slide-content .btn {
  margin: 0 6px;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: #c5a44e;
  border-color: #c5a44e;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.slider-arrow:hover {
  background: rgba(128,0,32,0.7);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

/* --- Page Content --- */
.page-content {
  flex: 1;
  background: #fff;
}

/* --- Utility --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  padding: 50px 0;
}

.section-alt {
  background: #f7f5f2;
}

.section-dark {
  background: #1a2744;
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.text-center {
  text-align: center;
}

.text-gold {
  color: #c5a44e;
}

.text-maroon {
  color: #800020;
}

/* --- Page Banner (inner pages) --- */
.page-banner {
  background: linear-gradient(135deg, #1a2744 0%, #2d3e5e 100%);
  color: #fff;
  padding: 44px 30px;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(90deg, transparent, rgba(128,0,32,0.2));
  pointer-events: none;
}

.page-banner h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 6px;
}

.page-banner p {
  color: #c5a44e;
  font-size: 1rem;
  font-style: italic;
}

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

/* --- Decorative Line --- */
.govt-line {
  height: 4px;
  background: linear-gradient(90deg, #800020 0%, #800020 40%, #c5a44e 40%, #c5a44e 60%, #1a2744 60%, #1a2744 100%);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #800020;
  color: #fff;
}

.btn-primary:hover {
  background: #600018;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #c5a44e;
}

.btn-outline:hover {
  background: #c5a44e;
  color: #1a2744;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid #800020;
  padding: 28px 24px;
  text-align: left;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: #1a2744;
}

.card p {
  font-size: 0.92rem;
  color: #555;
}

.card-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: #800020;
  stroke: #800020;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon.filled svg {
  fill: #800020;
  stroke: none;
}

.section-dark .card-icon svg {
  color: #c5a44e;
  stroke: #c5a44e;
}

.section-dark .card-icon.filled svg {
  fill: #c5a44e;
  stroke: none;
}

.cert-check svg {
  width: 18px;
  height: 18px;
  color: #800020;
  stroke: #800020;
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: #800020;
  stroke: #800020;
  fill: none;
  stroke-width: 2;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #800020;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  margin-bottom: 14px;
}

/* --- Info Boxes / Stats --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.info-box {
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.info-box .number {
  font-size: 2.2rem;
  font-weight: bold;
  color: #c5a44e;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.info-box .label {
  font-size: 0.82rem;
  color: #aab;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- Cert List --- */
.cert-list {
  list-style: none;
  margin-top: 16px;
}

.cert-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e1db;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.cert-list li:last-child {
  border-bottom: none;
}

.cert-check {
  color: #800020;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Logo Grid (Partners) --- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
  align-items: center;
}

.logo-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: border-color 0.2s;
}

.logo-item:hover {
  border-color: #800020;
}

.logo-item img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
}

.logo-item span {
  font-weight: 600;
  color: #1a2744;
  font-size: 1rem;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.two-col-content h2 {
  margin-bottom: 12px;
}

.two-col-content p {
  margin-bottom: 14px;
  color: #555;
  font-size: 0.95rem;
}

/* --- Section Divider --- */
.section-divider {
  width: 50px;
  height: 3px;
  background: #c5a44e;
  margin: 12px auto 24px;
}

.section-divider-left {
  margin-left: 0;
  margin-right: auto;
}

/* Section headings centered, card content left-aligned */
.section-heading {
  text-align: center;
}

/* CTA sections stay centered */
.section-cta {
  text-align: center;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a2744;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #800020;
  box-shadow: 0 0 0 2px rgba(128,0,32,0.1);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

/* --- Contact Info --- */
.contact-info-list {
  list-style: none;
}

.contact-info-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e5e1db;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-icon {
  color: #800020;
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* --- Job Listings --- */
.job-listing {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #800020;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.job-listing:hover {
  border-left-color: #c5a44e;
}

.job-listing h3 {
  color: #1a2744;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.job-listing .job-meta {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-listing p {
  color: #555;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

/* --- Footer --- */
.footer {
  background: #13203a;
  color: #889;
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer h4 {
  color: #c5a44e;
  font-size: 0.85rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  color: #889;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #c5a44e;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 30px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: #c5a44e;
}

/* --- Mobile Sidebar Toggle --- */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  background: #1a2744;
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .hero-slider {
    height: 340px;
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }

  .hero-slider {
    height: 300px;
  }

  .slide-content h1 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .top-header {
    padding-left: 64px;
  }

  .page-banner {
    padding: 30px 30px 30px 64px;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }
}
