/* ============================================================
   CAPA Resolve — Global Stylesheet
   caparesolve.com
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1f2937;
  background: #ffffff;
}

a {
  color: #2563eb;
  text-decoration: underline;
}

a:hover {
  color: #1d4ed8;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Layout ----------------------------------------------- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Pre-launch Banner ------------------------------------ */
.site-banner {
  background: #0f2342;
  color: #a8c4e0;
  text-align: center;
  padding: 9px 24px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #1a3a6a;
}

.site-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

.site-banner a:hover {
  color: #bfdbfe;
}

/* --- Site Header ------------------------------------------ */
.site-header {
  background: #0f2342;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1a3a6a;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: #e0eaf7;
}

.logo-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  line-height: 28px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.12s, color 0.12s;
}

.site-nav a:hover {
  background: #1a3a6a;
  color: #ffffff;
}

/* --- Main ------------------------------------------------- */
.main-content {
  min-height: 60vh;
}

/* --- Hero (Homepage) -------------------------------------- */
.hero {
  background: linear-gradient(145deg, #0b1e36 0%, #0f2342 60%, #132d52 100%);
  color: #ffffff;
  padding: 84px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero h1 span {
  color: #60a5fa;
}

.hero-lead {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 7px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: 1.5px solid #2563eb;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #c8d8ef;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.55);
  color: #ffffff;
}

/* --- Page Header (inner pages) ---------------------------- */
.page-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 44px 0 36px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f2342;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-header .page-lead {
  font-size: 1.0625rem;
  color: #4b5563;
  margin-top: 10px;
  max-width: 600px;
}

.page-header .last-updated {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-top: 10px;
}

/* --- Prose Content ---------------------------------------- */
.content {
  padding: 52px 0 72px;
}

.content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f2342;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  letter-spacing: -0.01em;
}

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

.content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1f2937;
  margin: 26px 0 8px;
}

.content p {
  margin-bottom: 16px;
  color: #374151;
}

.content ul,
.content ol {
  margin: 4px 0 18px 22px;
}

.content li {
  margin-bottom: 6px;
  color: #374151;
}

.content a {
  color: #2563eb;
}

.content strong {
  color: #0f2342;
  font-weight: 600;
}

/* --- Notice Box ------------------------------------------- */
.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 0 7px 7px 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
  color: #1e40af;
  line-height: 1.6;
}

.notice-caution {
  background: #fffbeb;
  border-color: #fcd34d;
  border-left-color: #f59e0b;
  color: #92400e;
}

/* --- Section Layout --------------------------------------- */
.section {
  padding: 72px 0;
}

.section--alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f2342;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.0625rem;
  color: #4b5563;
  max-width: 600px;
  line-height: 1.7;
}

/* --- Trust Links Grid ------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.trust-card {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 20px;
  background: #ffffff;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.trust-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.trust-card a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0f2342;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.trust-card a:hover {
  color: #2563eb;
}

.trust-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

/* --- Feature / Principles List ---------------------------- */
.principles {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid #e2e8f0;
}

.principles li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-start;
}

.principle-label {
  font-weight: 700;
  color: #0f2342;
  font-size: 0.9375rem;
  min-width: 210px;
  flex-shrink: 0;
}

.principle-desc {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Contact Grid ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 24px 22px;
  background: #ffffff;
}

.contact-card .cc-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.contact-card a {
  font-size: 0.9375rem;
  color: #2563eb;
  font-weight: 500;
  word-break: break-all;
}

.contact-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Data Table ------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.data-table td {
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  color: #374151;
}

.data-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* --- Status Indicator ------------------------------------- */
.status-box {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 32px 28px;
  background: #f8fafc;
  margin-bottom: 36px;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
  margin-bottom: 14px;
}

.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

/* --- FAQ -------------------------------------------------- */
.faq-list {
  margin-top: 8px;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 28px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f2342;
  margin-bottom: 12px;
  line-height: 1.4;
}

.faq-a {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-a a {
  color: #2563eb;
}

/* --- CTA Block -------------------------------------------- */
.cta-block {
  background: #0f2342;
  color: white;
  border-radius: 12px;
  padding: 40px 36px;
  text-align: center;
  margin-top: 48px;
}

.cta-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  border: none;
  padding-top: 0;
  letter-spacing: -0.01em;
}

.cta-block p {
  color: #94a3b8;
  margin-bottom: 24px;
}

/* --- Site Footer ------------------------------------------ */
.site-footer {
  background: #080e1a;
  color: #64748b;
  padding: 60px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  max-width: 200px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.12s;
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  border-top: 1px solid #0f1f38;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #334155;
}

.footer-bottom a {
  color: #475569;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #94a3b8;
}

/* --- Utility ---------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: #6b7280; }
.text-small { font-size: 0.875rem; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px;
  }

  .site-nav {
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .principle-label {
    min-width: 140px;
  }

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

@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.8125rem;
  }

  .principles li {
    flex-direction: column;
    gap: 6px;
  }
}
