/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== TOKENS ===== */
:root {
  --navy:       #1a2744;
  --navy-dark:  #111b33;
  --red:        #c0392b;
  --red-dark:   #a93226;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --gray-light: #e8ecf2;
  --gray-mid:   #6b7a96;
  --gray-text:  #3d4a63;
  --font-main:  'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== BASE ===== */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}
.site-logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.logo-tagline { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-dark);
  border-radius: 4px;
  min-width: 200px;
  padding: 0.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  list-style: none;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 0;
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* ===== MAIN ===== */
main { min-height: 60vh; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section--dark { background: var(--navy); color: var(--white); }
.section--light { background: var(--off-white); }
.section--white { background: var(--white); }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}
.badge--red { background: var(--red); border-color: var(--red); }
.badge--outline { background: transparent; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-logo-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-logo-block img { width: 160px; height: 160px; object-fit: contain; border-radius: 8px; }
.hero-logo-tagline { font-size: 0.85rem; font-style: italic; opacity: 0.8; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  border: 2px solid transparent;
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

/* ===== CREDENTIAL BAR ===== */
.cred-bar {
  background: var(--navy-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 0.78rem;
}
.cred-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.cred-item { display: flex; gap: 0.4rem; }
.cred-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.cred-value { opacity: 0.9; }

/* ===== GRID CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 1.75rem;
}
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--gray-text); line-height: 1.6; }
.card ul { margin-top: 0.75rem; padding-left: 1.25rem; font-size: 0.875rem; color: var(--gray-text); }
.card ul li { margin-bottom: 0.25rem; }
.card .nigp { font-size: 0.75rem; color: var(--gray-mid); margin-top: 0.75rem; font-style: italic; }

/* ===== SECTION DIVIDER ===== */
.section-divider { border: none; border-top: 1px solid var(--gray-light); margin: 0; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 640px; }

/* ===== TABLES ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 1rem; }
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
}
.data-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--gray-light); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--off-white); }

/* Key-value tables (no thead) */
.kv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.75rem; }
.kv-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--gray-light); vertical-align: top; }
.kv-table td:first-child { font-weight: 600; color: var(--gray-mid); width: 40%; }
.kv-table tr:last-child td { border-bottom: none; }

/* ===== PROCESS STEPS ===== */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.step { background: var(--off-white); border-radius: 6px; padding: 1.5rem; position: relative; }
.step-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--navy); }
.step p { font-size: 0.875rem; color: var(--gray-text); }

/* ===== CTA BLOCK ===== */
.cta-block {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.cta-block h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.cta-block p { font-size: 1rem; opacity: 0.85; max-width: 560px; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== CERT CARDS ===== */
.cert-card {
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.cert-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.cert-status--active { background: #d4edda; color: #155724; }
.cert-status--pending { background: #fff3cd; color: #856404; }

/* ===== FORM ===== */
.rfq-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.form-section { margin-bottom: 2rem; }
.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cdd5e0;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--gray-mid); margin-top: 1rem; line-height: 1.5; }
.honeypot { display: none !important; }
.form-disclaimer { font-size: 0.78rem; color: var(--gray-mid); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--gray-light); line-height: 1.6; }
.form-submit { margin-top: 1.5rem; }
.sidebar-box { background: var(--off-white); border-radius: 6px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--navy); }
.sidebar-box p { font-size: 0.875rem; color: var(--gray-text); margin-bottom: 0.5rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: #c8d0de; /* FIX: was too light — bumped to pass contrast */
  padding: 3rem 1.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 4px; margin-bottom: 0.75rem; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.footer-tagline {
  font-size: 0.85rem;
  color: #c8d0de; /* FIX: accessibility — was rgba(white,0.5) which fails contrast */
  margin-bottom: 0.75rem;
  font-style: italic;
}
.footer-desc { font-size: 0.8rem; color: #a8b4c8; line-height: 1.6; } /* FIX: was too low contrast */
.footer-col h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: #c8d0de; text-decoration: none; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 0.85rem; color: #c8d0de; line-height: 1.7; }
.footer-col address a { color: #c8d0de; text-decoration: none; }
.footer-col address a:hover { color: var(--white); }
.footer-reg-list { list-style: none; }
.footer-reg-list li { font-size: 0.8rem; color: #c8d0de; margin-bottom: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #a8b4c8;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #a8b4c8; text-decoration: none; }
.footer-bottom-links a:hover { color: var(--white); }

/* ===== EXTERNAL LINKS ===== */
.external-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.external-link-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.external-link-card:hover { border-color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.external-link-card .el-icon { font-size: 1.5rem; }
.external-link-card .el-name { font-weight: 700; font-size: 0.9rem; }
.external-link-card .el-desc { font-size: 0.8rem; color: var(--gray-text); margin-top: 0.2rem; }

/* ===== AGENCY CARDS ===== */
.agency-section { border-bottom: 1px solid var(--gray-light); padding: 2rem 0; }
.agency-section:last-child { border-bottom: none; }
.agency-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.agency-section h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.agency-section p { font-size: 0.9rem; color: var(--gray-text); line-height: 1.7; max-width: 720px; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border: 1px solid var(--gray-light); border-radius: 6px; }
.contact-icon { font-size: 1.75rem; }
.contact-method h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-method p, .contact-method a { font-size: 0.9rem; color: var(--gray-text); text-decoration: none; display: block; }
.contact-method a:hover { color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo-block { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .rfq-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .cred-bar-inner { gap: 0.75rem; }
}

/* ===== FOCUS ===== */
:focus-visible { outline: 3px solid #4a90d9; outline-offset: 2px; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
