/* ============================================================
   Northviax LLC — Main CSS
   Animations, hero pattern, accordion, misc overrides
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:        #0A1628;
  --cobalt:      #2563EB;
  --cobalt-dark: #1D4ED8;
  --cobalt-light:#EFF6FF;
  --off-white:   #F8FAFC;
  --border:      #E2E8F0;
  --text:        #0F172A;
  --muted:       #475569;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Keyframe Animations ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero entrance animations */
.anim-1 { animation: fadeInUp 0.7s ease both; }
.anim-2 { animation: fadeInUp 0.7s 0.15s ease both; }
.anim-3 { animation: fadeInUp 0.7s 0.30s ease both; }
.anim-4 { animation: fadeInUp 0.7s 0.45s ease both; }
.anim-5 { animation: fadeInUp 0.7s 0.60s ease both; }

/* Fade in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Background Pattern ────────────────────────────────── */
.hero-pattern {
  background-color: #fff;
  background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Navigation ─────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1f5f9;
  transition: box-shadow 0.3s ease;
}

#main-nav.scrolled {
  box-shadow: 0 1px 20px rgba(10,22,40,0.08);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover { color: var(--navy); }

.nav-link.active {
  color: var(--cobalt);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cobalt);
  border-radius: 1px;
}

/* Mobile nav overlay */
#mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  animation: slideDown 0.25s ease;
}

#mobile-menu.open { display: block; }

.mobile-nav-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--cobalt); }
.mobile-nav-link.active { color: var(--cobalt); font-weight: 600; }

/* Hamburger icon */
.hamburger { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cobalt);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--cobalt-dark);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cobalt);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 11px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid var(--cobalt);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: var(--cobalt-light);
  border-color: var(--cobalt-dark);
  color: var(--cobalt-dark);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 11px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
}

/* ── Cards ───────────────────────────────────────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 10px 40px rgba(37,99,235,0.08);
  transform: translateY(-4px);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--cobalt-light);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease;
}
.feature-card:hover .icon-wrap { background: var(--cobalt); }
.feature-card:hover .icon-wrap svg { color: #fff; }
.icon-wrap svg { color: var(--cobalt); transition: color 0.3s ease; }

/* ── Section Titles ──────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-light);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* ── Stats Section ───────────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ── Trust Items ─────────────────────────────────────────────── */
.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #94a3b8; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error {
  display: none;
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.375rem;
  font-family: 'Inter', sans-serif;
}

.form-error.visible { display: block; }

.form-textarea { resize: none; height: 130px; }

.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #94a3b8;
  pointer-events: none;
}

/* ── FAQ Accordion ───────────────────────────────────────────── */
details.faq-item {
  border-bottom: 1px solid var(--border);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: color 0.2s;
}

details.faq-item summary:hover { color: var(--cobalt); }
details.faq-item[open] summary { color: var(--cobalt); }

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

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.2s;
}

details.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--cobalt);
}

.faq-answer {
  padding: 0 0 1.25rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  animation: fadeIn 0.2s ease;
}

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #152B55 100%);
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Prose (policy pages) ─────────────────────────────────────── */
.prose-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
}

.prose-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.875rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.prose-content h2:first-child { border-top: none; margin-top: 0; }

.prose-content p { margin-bottom: 1rem; }
.prose-content ul { margin: 0 0 1rem 1.5rem; }
.prose-content li { margin-bottom: 0.4rem; }
.prose-content a { color: var(--cobalt); text-decoration: underline; }
.prose-content strong { color: var(--text); font-weight: 600; }

.last-updated {
  display: inline-block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
#main-footer {
  background: var(--navy);
  padding: 4rem 1.5rem 2rem;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-link:hover { color: #fff; }

/* ── Success State ───────────────────────────────────────────── */
.success-message {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #166534;
  margin-top: 1rem;
}
.success-message.visible { display: flex; align-items: center; gap: 0.75rem; }

/* ── Step Timeline ───────────────────────────────────────────── */
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--cobalt);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ── Responsive Utilities ────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
}
@media (max-width: 768px) {
  .stat-number { font-size: 2.25rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { text-align: center; justify-content: center; }
  .hidden-mobile { display: none !important; }
  .show-mobile { display: flex !important; }
}
@media (max-width: 640px) {
  .page-hero { padding: 6rem 1.25rem 3rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}

.hidden-mobile { display: flex; }
.show-mobile   { display: none; }

/* ── Misc ─────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2rem 0;
}

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #059669;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 99px;
}

/* Checkbox custom style */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cobalt);
  cursor: pointer;
  flex-shrink: 0;
}
.form-checkbox span {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-checkbox span a { color: var(--cobalt); }

/* ── WP Block Editor compatibility ───────────────────────────── */
.wp-block-image img { max-width: 100%; height: auto; border-radius: 12px; }
.wp-block-embed { margin: 2rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
