/* APB360 Flat HTML Site - Modern, Professional, SEO-friendly */
:root {
  --primary: #0a2540;
  --primary-dark: #061628;
  --accent: #1e6bb8;
  --accent-hover: #155a9c;
  --gold: #c9a227;
  --text: #1a1a1a;
  --text-light: #4a5568;
  --bg: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #276749;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}

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

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

a:hover {
  color: var(--accent-hover);
}

/* Inline links in prose need a non-color affordance for WCAG. */
p a,
.content-block li a,
.note-box a,
.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Header */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--gold);
}

.logo:hover .logo-text {
  color: var(--white);
}

/* Larger logo for hero / footer accents */
.logo-hero {
  height: 72px;
  width: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.logo-footer {
  height: 36px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.logo-contracts {
  height: 56px;
  width: auto;
  margin: 0 auto 1.25rem;
  display: block;
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.nav a.btn-gold,
.nav a.btn-gold:hover {
  color: var(--primary);
}

/* Dropdown menus (topical clustering under LE / Manufacturers) */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item > a::after {
  content: "\25BE"; /* ▾ */
  margin-left: 0.35rem;
  font-size: 0.75em;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  transform: translateY(1px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  padding: 0.4rem 0;
  margin-top: 0.35rem;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: normal;
  line-height: 1.35;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(30,107,184,0.08);
  color: var(--accent);
  outline: none;
}

.dropdown a:first-child {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  padding-bottom: 0.65rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--primary);
}

.btn-gold:hover {
  background: #b08c1c;
  color: var(--primary);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #0d3a66 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* Cards / Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(30,107,184,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Audience split */
.audience-card {
  text-align: left;
  padding: 2rem;
}

.audience-card h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.audience-card ul {
  margin: 1rem 0 1.25rem 1.2rem;
  color: var(--text-light);
}

.audience-card li {
  margin-bottom: 0.4rem;
}

/* Contracts */
.contracts-section {
  background: var(--primary);
  color: var(--white);
}

.contracts-section .section-title {
  color: var(--white);
}

.contracts-section .section-subtitle {
  color: rgba(255,255,255,0.85);
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.partner-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Features list */
.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.55rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-light);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(90deg, var(--accent), #0d4a8c);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

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

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

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Page specific */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.content-block {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.content-block h2 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.note-box {
  background: #edf2f7;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

/* FAQ (uses native <details><summary>) */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.faq-item summary {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  padding-right: 2rem;
  position: relative;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212"; /* − minus */
  transform: translateY(-50%);
}

.faq-item[open] summary {
  margin-bottom: 0.65rem;
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero {
    padding: 3rem 1.25rem 3.5rem;
  }
  .section {
    padding: 3rem 1.25rem;
  }
  /* Dropdowns collapse into the flat nav on mobile — parent link still
     navigates to the overview page, and users can reach sub-articles
     from there or via the footer / in-page links. */
  .nav-item > a::after { content: none; }
  .nav-item .dropdown { display: none; }
}

/* Print */
@media print {
  .site-header, .cta-banner, .site-footer { display: none; }
}
