/* ============================================================
   LINK-ISS JV LLC — Site Stylesheet
   Colors derived from brand logo:
     Primary (LINK):  #8B1A2B (dark red/maroon)
     Secondary (ISS): #1B2A4A (navy blue)
     Accent:          #6B7280 (gray)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #1B2A4A;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.center {
  text-align: center;
}

.section {
  padding: 4rem 0;
}

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo img {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1B2A4A;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: #8B1A2B;
  text-decoration: none;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #1B2A4A;
  transition: transform 0.3s;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1B2A4A 0%, #2d4470 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

.page-hero {
  background: linear-gradient(135deg, #1B2A4A 0%, #2d4470 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #8B1A2B;
  color: #fff;
  border-color: #8B1A2B;
}

.btn-primary:hover {
  background: #6e1522;
  border-color: #6e1522;
  text-decoration: none;
}

.btn-secondary {
  background: #1B2A4A;
  color: #fff;
  border-color: #1B2A4A;
}

.btn-secondary:hover {
  background: #142038;
  border-color: #142038;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  text-decoration: none;
}

.hero .btn {
  margin: 0 0.5rem;
}

/* --- Overview --- */
.overview {
  background: #f9fafb;
}

.overview h2 {
  font-size: 1.75rem;
  color: #1B2A4A;
  margin-bottom: 1rem;
}

.overview p {
  font-size: 1.05rem;
  max-width: 800px;
  color: #374151;
}

/* --- Capabilities Grid (Home) --- */
.capabilities-preview h2 {
  font-size: 1.75rem;
  color: #1B2A4A;
  margin-bottom: 2rem;
  text-align: center;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cap-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #8B1A2B;
  border-radius: 4px;
  padding: 1.5rem;
}

.cap-card h3 {
  font-size: 1.1rem;
  color: #1B2A4A;
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

/* --- Capabilities Detail (Capabilities Page) --- */
.capability-detail {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.capability-detail:last-child {
  border-bottom: none;
}

.capability-detail h2 {
  font-size: 1.4rem;
  color: #1B2A4A;
  margin-bottom: 0.75rem;
}

.capability-detail p {
  font-size: 1rem;
  color: #374151;
  max-width: 800px;
}

/* --- Certifications Banner (Home) --- */
.certs-banner {
  background: #1B2A4A;
  color: #fff;
  text-align: center;
}

.certs-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.cert-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Certifications Grid (Certifications Page) --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #1B2A4A;
  border-radius: 4px;
  padding: 2rem;
}

.cert-card h3 {
  font-size: 1.2rem;
  color: #1B2A4A;
  margin-bottom: 0.25rem;
}

.cert-label {
  font-size: 0.85rem;
  color: #8B1A2B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.cert-card p:last-child {
  font-size: 0.95rem;
  color: #4b5563;
}

/* --- Partners (About Page) --- */
.partners-section {
  background: #f9fafb;
}

.partners-section h2 {
  font-size: 1.75rem;
  color: #1B2A4A;
  margin-bottom: 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.partner-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2rem;
}

.partner-card h3 {
  font-size: 1.25rem;
  color: #1B2A4A;
  margin-bottom: 0.25rem;
}

.partner-logo {
  display: block;
  max-height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.partner-location {
  font-size: 0.9rem;
  color: #6B7280;
  margin-bottom: 1rem;
}

.partner-card ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.partner-card li {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 1.5rem;
  color: #1B2A4A;
  margin-bottom: 1.5rem;
}

.contact-block {
  margin-bottom: 1.5rem;
}

.contact-block h3 {
  font-size: 1rem;
  color: #1B2A4A;
  margin-bottom: 0.25rem;
}

.contact-block p,
.contact-block address {
  font-size: 0.95rem;
  color: #374151;
  font-style: normal;
}

/* --- Contact Form --- */
.contact-form {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B2A4A;
  margin-bottom: 0.35rem;
}

.required {
  color: #8B1A2B;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1B2A4A;
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.15);
}

/* --- CTA Section --- */
.cta-section {
  background: #f9fafb;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.75rem;
  color: #1B2A4A;
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

/* --- Footer --- */
.site-footer {
  background: #1B2A4A;
  color: #d1d5db;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #9ca3af;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: #d1d5db;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social-icon {
  height: 24px;
  width: auto;
  vertical-align: middle;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-social-icon:hover {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem 1.5rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid #f3f4f6;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: none;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .btn {
    display: block;
    margin: 0.5rem auto;
    max-width: 220px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
