/* CMMC L2 Implementation Guide — page-specific styles.
 * Used by views/resources/cmmc-l2-implementation-guide.ejs.
 * Does NOT own theme variables (those come from theme.css).
 */

:root {
  --bg: #060612;
  --bg-card: #0f0f22;
  --amber: #d4a017;
  --text: #e8e4d9;
  --text-muted: #8a8778;
  --text-dim: #5a5750;
  --border: rgba(212,160,23,0.15);
  --border-bright: rgba(212,160,23,0.35);
}

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

.cmmc-guide-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,18,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px; display: flex;
  align-items: center; justify-content: space-between;
}
.cmmc-guide-nav-brand {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  color: var(--amber); letter-spacing: 0.05em; text-decoration: none;
}
.cmmc-guide-nav-right {
  display: flex; align-items: center; gap: 16px;
}
.cmmc-guide-nav-back {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.cmmc-guide-nav-back:hover { color: var(--amber); }
.cmmc-guide-nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--amber); border: 1px solid rgba(212,160,23,0.4);
  padding: 7px 16px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s; cursor: pointer;
  background: transparent;
}
.cmmc-guide-nav-cta:hover { background: rgba(212,160,23,0.1); }

.cmmc-guide-hero {
  padding: 80px 48px 60px; max-width: 1200px; margin: 0 auto;
}
.cmmc-guide-hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 20px;
}
.cmmc-guide-hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 68px); line-height: 1.05;
  color: var(--text); margin-bottom: 20px;
}
.cmmc-guide-hero-sub {
  font-size: 17px; font-weight: 300; color: var(--text-muted);
  line-height: 1.7; max-width: 680px; margin-bottom: 0;
}
.cmmc-guide-hero-date {
  font-size: 13px; color: var(--text-dim); margin-top: 16px;
  letter-spacing: 0.04em;
}

.cmmc-guide-content {
  padding: 0 48px 80px; max-width: 1200px; margin: 0 auto;
}

.cmmc-guide-section { margin-bottom: 56px; }
.cmmc-guide-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px;
}
.cmmc-guide-section-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 44px); color: var(--text);
  margin-bottom: 24px;
}
.cmmc-guide-body {
  font-size: 15px; color: var(--text-muted); line-height: 1.8;
  max-width: 680px; margin-bottom: 20px;
}
.cmmc-guide-body a { color: var(--amber); text-decoration: none; }
.cmmc-guide-body a:hover { text-decoration: underline; }
.cmmc-guide-body strong { color: var(--text); font-weight: 600; }

/* Phase 2 timeline table */
.phase2-table {
  width: 100%; max-width: 800px; border-collapse: collapse;
  margin-bottom: 28px;
}
.phase2-table th {
  background: rgba(212,160,23,0.08); border: 1px solid var(--border);
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber);
}
.phase2-table td {
  border: 1px solid var(--border); padding: 12px 16px;
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.phase2-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Info callout boxes */
.callout-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px 28px; max-width: 760px;
  margin-bottom: 20px;
}
.callout-box-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  color: var(--amber); margin-bottom: 10px;
}
.callout-box p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.callout-box p + p { margin-top: 10px; }

/* Domain grid — 14 domains */
.domain-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.domain-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px; transition: border-color 0.2s;
}
.domain-card:hover { border-color: var(--border-bright); }
.domain-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.domain-card-num {
  font-size: 10px; font-weight: 700; color: var(--amber);
  letter-spacing: 0.1em;
}
.domain-card-controls {
  font-size: 10px; font-weight: 600; color: var(--text-dim);
  letter-spacing: 0.08em; background: rgba(255,255,255,0.04);
  padding: 2px 8px; border-radius: 2px;
}
.domain-card-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  color: var(--text); margin-bottom: 4px;
}
.domain-card-abbrev {
  font-size: 11px; color: var(--text-dim); margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.domain-card-gap-label {
  font-size: 10px; font-weight: 600; color: #f87171;
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 6px;
}
.domain-card-gap-text { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Roadmap cards */
.roadmap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.roadmap-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; padding: 28px 24px;
}
.roadmap-card-month {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.roadmap-card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  color: var(--text); margin-bottom: 18px;
}
.roadmap-task {
  display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start;
}
.roadmap-task-icon {
  width: 18px; height: 18px; background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.roadmap-task-icon svg { width: 10px; height: 10px; }
.roadmap-task-text { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.roadmap-divider {
  border: none; border-top: 1px solid var(--border); margin: 14px 0;
}
.roadmap-role-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}
.roadmap-role-label.core { color: var(--amber); }
.roadmap-role-label.client { color: #63b3ed; }
.roadmap-role-text { font-size: 11px; color: var(--text-muted); line-height: 1.6; }

/* SPRS score table */
.sprs-table {
  width: 100%; max-width: 700px; border-collapse: collapse;
  margin-bottom: 24px;
}
.sprs-table th {
  background: rgba(212,160,23,0.08); border: 1px solid var(--border);
  padding: 10px 16px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber);
}
.sprs-table td {
  border: 1px solid var(--border); padding: 10px 16px;
  font-size: 13px; color: var(--text-muted);
}
.sprs-score-high { color: #f87171; font-weight: 600; }
.sprs-score-mid { color: var(--amber); font-weight: 600; }
.sprs-score-low { color: #4ade80; font-weight: 600; }

/* Texas context grid */
.tx-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.tx-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; padding: 22px 20px;
}
.tx-card-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  color: var(--text); margin-bottom: 6px;
}
.tx-card-location { font-size: 11px; color: var(--amber); margin-bottom: 10px; }
.tx-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* SDVOSB callout */
.sdvosb-callout {
  background: rgba(212,160,23,0.05); border: 1px solid rgba(212,160,23,0.25);
  border-radius: 4px; padding: 24px 28px; max-width: 700px;
  display: flex; gap: 16px; align-items: flex-start;
}
.sdvosb-icon {
  width: 40px; height: 40px; background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.25); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sdvosb-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  color: var(--amber); margin-bottom: 6px;
}
.sdvosb-text { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* CTA section */
.cmmc-guide-cta {
  background: var(--bg-card); border: 1px solid rgba(212,160,23,0.3);
  border-radius: 4px; padding: 40px 48px; max-width: 700px;
  text-align: center;
}
.cmmc-guide-cta-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 12px;
}
.cmmc-guide-cta-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 40px); color: var(--text);
  margin-bottom: 16px;
}
.cmmc-guide-cta-sub {
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 32px;
}
.cmmc-guide-cta-btn {
  display: inline-block; background: var(--amber); color: var(--bg);
  font-family: 'Bebas Neue', sans-serif; font-size: 17px;
  letter-spacing: 0.1em; padding: 14px 40px; border-radius: 2px;
  text-decoration: none; transition: background 0.2s;
}
.cmmc-guide-cta-btn:hover { background: #e8b420; }
.cmmc-guide-cta-note { font-size: 12px; color: var(--text-dim); margin-top: 14px; }

/* Related resources */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; padding: 22px 24px; text-decoration: none;
  display: block; transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--border-bright); }
.related-card-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 8px;
}
.related-card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  color: var(--text); margin-bottom: 6px;
}
.related-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Email modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card); border: 1px solid rgba(212,160,23,0.35);
  border-radius: 4px; padding: 40px; max-width: 480px; width: 100%;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 20px; line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px;
  color: var(--text); margin-bottom: 8px;
}
.modal-sub {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 28px;
}
.modal-field {
  margin-bottom: 16px;
}
.modal-field label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 6px;
}
.modal-field input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 2px; padding: 10px 14px;
  font-size: 14px; color: var(--text); font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.modal-field input:focus {
  outline: none; border-color: var(--amber);
}
.modal-field input::placeholder { color: var(--text-dim); }
.modal-submit {
  width: 100%; background: var(--amber); color: var(--bg);
  font-family: 'Bebas Neue', sans-serif; font-size: 16px;
  letter-spacing: 0.1em; padding: 13px; border: none; border-radius: 2px;
  cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.modal-submit:hover { background: #e8b420; }
.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-error {
  font-size: 12px; color: #f87171; margin-top: 10px;
  display: none;
}
.modal-success {
  font-size: 13px; color: #4ade80; margin-top: 10px; display: none;
}
.modal-legal {
  font-size: 11px; color: var(--text-dim); margin-top: 14px;
  line-height: 1.5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px; margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left {}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  color: var(--amber); letter-spacing: 0.05em;
}
.footer-tagline { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.footer-right {}
.footer-contact { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-contact span, .footer-contact a {
  font-size: 12px; color: var(--text-muted); text-decoration: none;
}
.footer-contact a:hover { color: var(--amber); }

@media (max-width: 768px) {
  .cmmc-guide-nav { padding: 14px 24px; }
  .cmmc-guide-hero { padding: 60px 24px 40px; }
  .cmmc-guide-content { padding: 0 24px 60px; }
  .domain-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .tx-grid { grid-template-columns: 1fr 1fr; }
  .cmmc-guide-cta { padding: 28px 24px; }
  .modal-box { padding: 28px 24px; }
  .footer { padding: 24px; }
}
