/* ==========================================================================
   NDTPrep Shared Stylesheet — Website Pages (brand foundation)
   Derived from ndtprep-31u-theory/shared/style.css (April 2026)
   Theory/quiz/AI/interactive blocks omitted — pages keep those inline.
   ========================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand colours — master values from HTML ground truth */
  --navy: #1d3557;
  --navy-deep: #112236;
  --navy-mid: #264a6e;
  --orange: #f47c20;
  --orange-light: #f9a05c;
  --orange-pale: #fef3e8;
  --cream: #f0f4f8;
  --mid-gray: #b0aea5;
  --text: #2d3748;
  --text-mid: #4a5568;
  --text-light: #6b7c93;
  --rule: #dde3ea;
  --white: #ffffff;
  --success: #2d7d5a;
  --success-bg: #eaf5f0;
  --warn: #c0520f;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  font-family: 'Barlow', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TYPOGRAPHY HELPERS ===== */
/* Opt out of text-transform: uppercase for cert-level tokens (3.1u, 3.2u, 3.4u). */
.lvl { text-transform: none; }

/* ==========================================================================
   SHARED COMPONENTS
   ========================================================================== */

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy-deep);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--orange);
}
.topbar-badge {
  background: var(--orange);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}
.topbar-path {
  font-family: 'Barlow Condensed', sans-serif;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
}
.topbar-path span { color: rgba(255, 255, 255, 0.85); }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px);
  padding: 44px 32px 38px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(244, 124, 32, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  animation: fadeUp 0.5s ease both;
}
.hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
}

/* ===== CONTENT WRAPPER ===== */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--rule);
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(29, 53, 87, 0.05);
  margin-bottom: 20px;
}
.card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--orange);
}
.card p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}
.card p:last-child { margin-bottom: 0; }
.card p strong { color: var(--navy); }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: rgba(244, 124, 32, 0.05);
  border: 1px solid rgba(244, 124, 32, 0.2);
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.highlight-box p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.65;
}
.highlight-box p strong { color: var(--navy); }

/* ===== GREEN BOX ===== */
.green-box {
  background: rgba(26, 158, 146, 0.05);
  border: 1px solid rgba(26, 158, 146, 0.2);
  border-left: 4px solid var(--success);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.green-box p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.65;
}
.green-box p strong { color: var(--navy); }

/* ===== EXAM TIP ===== */
.exam-tip {
  background: var(--orange-pale);
  border: 1px solid rgba(244, 124, 32, 0.3);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.exam-tip-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  padding-top: 2px;
}
.exam-tip p {
  font-size: 17px;
  color: var(--warn);
  line-height: 1.6;
}
.exam-tip p strong { color: var(--text); }

/* ===== EXAM TIP BAND ===== */
.exam-tip-band { background: var(--orange); padding: 14px 32px; }
.exam-tip-band-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.exam-tip-band p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.2px;
  line-height: 1.5;
}
.exam-tip-band strong { font-weight: 800; color: var(--navy-deep); }

/* ===== BULLET LIST ===== */
.bullet-list { list-style: none; padding: 0; }
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.6;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  flex-shrink: 0;
}
.bullet-list li strong { color: var(--text); }

/* ===== ARROW LIST ===== */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.tips-list li {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.tips-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 600;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 17px;
}
.comparison-table th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 11px 16px;
  text-align: left;
}
.comparison-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--text-mid);
  line-height: 1.6;
}
.comparison-table td strong { color: var(--navy); }
.comparison-table tr:hover td { background: rgba(29, 53, 87, 0.02); }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.site-footer a { color: var(--orange); text-decoration: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero { padding: 32px 16px 28px; }
  .content { padding: 24px 16px 48px; }
  .topbar { padding: 8px 16px; }
  .exam-tip-band { padding: 12px 16px; }
  .card { padding: 18px 16px; }
  .comparison-table { font-size: 15px; }
  .comparison-table th,
  .comparison-table td { padding: 9px 10px; }
}
