/* PackCheck SEO Pages — Shared Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0A0F1E;
  --bg-mid: #111827;
  --bg-surface: #1C2333;
  --accent: #4F7FFF;
  --accent-hover: #3D6EEE;
  --accent-subtle: rgba(79,127,255,0.12);
  --text-light: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border: #2A3347;
  --border-subtle: rgba(255,255,255,0.06);

  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-width: 860px;
  --content-padding: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  background: var(--bg-dark);
}

/* ─── Typography ─── */

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-light);
}
h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--text-dim);
}

p { margin-bottom: 1rem; }
strong { font-weight: 600; color: var(--text-light); }
em { font-style: italic; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
li { margin-bottom: 0.35rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ─── Navigation ─── */

.site-nav {
  background: rgba(10,15,30,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-padding);
  height: 64px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; color: var(--text-light); opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-light); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(79,127,255,0.35);
}

/* ─── Hero / Page Header ─── */

.page-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 64px var(--content-padding) 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-hero h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}
.page-hero .hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 0;
  line-height: 1.65;
}
.page-hero .hero-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 1rem;
}

/* ─── Main Content Area ─── */

.page-content {
  background: var(--bg-mid);
  padding: 48px var(--content-padding);
}
.page-content .content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─── CTA Button ─── */

.cta-button {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(79,127,255,0.35);
  text-decoration: none;
  color: #fff;
}
.cta-button.large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.cta-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-block p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.cta-block h3 {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* ─── Tables ─── */

.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead tr {
  background: var(--bg-dark);
  color: var(--text-light);
}
thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
tbody tr { border-bottom: 1px solid var(--border); }
tbody td {
  padding: 11px 16px;
  vertical-align: top;
}

/* PackCheck row highlight */
tbody tr.packcheck-row {
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
}
tbody tr.packcheck-row td:first-child { font-weight: 600; color: var(--accent); }

/* ─── Red Flag Cards ─── */

.red-flags-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.red-flag-card {
  display: flex;
  gap: 24px;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.red-flag-card:first-child { padding-top: 0; }
.red-flag-card:last-child { border-bottom: none; }

.flag-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  padding-top: 4px;
  font-weight: 700;
}

.flag-content { flex: 1; min-width: 0; }
.flag-content h2 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
.flag-location {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* ─── Checklist ─── */

.checklist-section {
  margin: 1.5rem 0;
}
.checklist-group {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 1rem;
}
.checklist-group h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}
.checklist-items { list-style: none; margin: 0; padding: 0; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.checklist-item label {
  font-size: 0.95rem;
  line-height: 1.6;
  cursor: pointer;
  flex: 1;
  color: var(--text-muted);
}
.checklist-item.checked label {
  text-decoration: line-through;
  color: var(--text-dim);
}

.checklist-stage {
  margin-bottom: 2rem;
}
.checklist-stage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.stage-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.checklist-stage h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* Red flags callout in checklist */
.red-flags-callout {
  background: rgba(79,127,255,0.06);
  border: 1px solid rgba(79,127,255,0.2);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 1.5rem 0;
}
.red-flags-callout h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1rem;
}
.red-flags-callout ul {
  margin-bottom: 0;
}

/* ─── FAQ Sections ─── */

.faq-section { margin: 2rem 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Inline callout box ─── */

.callout {
  background: rgba(79,127,255,0.06);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout.warning {
  background: rgba(245,158,11,0.08);
  border-left-color: #F59E0B;
}

/* ─── Page Note ─── */

.page-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-style: italic;
  line-height: 1.65;
}
.page-note a { color: var(--text-dim); }

/* ─── Related Guides ─── */

.related-guides {
  background: var(--bg-dark);
  padding: 48px var(--content-padding);
  border-top: 1px solid var(--border);
}
.related-guides .related-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.related-guides h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  margin-top: 0;
  color: var(--text-light);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(79,127,255,0.15);
  transform: translateY(-2px);
  text-decoration: none;
}
.related-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.related-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 8px;
  line-height: 1.4;
}
.related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ─── Footer ─── */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-dim);
  padding: 48px var(--content-padding) 32px;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-light); }
.footer-col h4 { color: var(--text-dim); margin-bottom: 12px; }

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 0 auto 12px;
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.7;
}
.footer-copy {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ─── Checklist progress bar ─── */

.progress-bar-wrapper {
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  height: 6px;
  margin-bottom: 6px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 20px;
  transition: width 0.3s ease;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* ─── Responsive ─── */

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta { font-size: 0.8rem; padding: 7px 12px; }

  .page-hero { padding: 40px 16px 36px; }
  .page-content { padding: 32px 16px; }
  .related-guides { padding: 36px 16px; }
  .site-footer { padding: 36px 16px 24px; }

  .red-flag-card { flex-direction: column; gap: 8px; }
  .flag-number { font-size: 1.5rem; width: auto; }

  .related-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }

  .cta-block { padding: 24px 16px; }

  .site-nav { padding: 0 16px; }
}

@media (max-width: 400px) {
  .footer-links { grid-template-columns: 1fr; }
}
