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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2744;
  line-height: 1.6;
  background: #ffffff;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

ul, ol { padding-left: 1.5rem; }

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.img-left .col-img { order: -1; }
.two-col.img-right .col-img { order: 1; }

/* ===== Section Backgrounds ===== */
.section-white  { background: #ffffff; }
.section-light  { background: #f8faff; }
.section-bright { background: #eef2ff; }
.section-tan      { background: #fdfaf7; }
.section-charcoal { background: #3c3c3c; }
.section-charcoal h1, .section-charcoal h2,
.section-charcoal h3, .section-charcoal h4 { color: #ffffff; }
.section-charcoal p { color: rgba(255,255,255,0.85); }
.section-charcoal a { color: rgba(255,255,255,0.9); }
.section-charcoal .btn-outline { border-color: rgba(255,255,255,0.7); color: rgba(255,255,255,0.9); }
.section-charcoal .btn-outline:hover { background: rgba(255,255,255,0.15); color: white; border-color: white; }
.section-dark   { background: #1a2744; }
.section-dark h1, .section-dark h2,
.section-dark h3, .section-dark h4 { color: #ffffff; }
.section-dark p { color: rgba(255,255,255,0.82); }

/* Full-bleed image column — image spans full section height and hits the page right edge */
.section-fill-image { padding: 0; overflow: hidden; }
.section-fill-image > .container {
  max-width: none;
  padding-left: 2rem;
  padding-right: 0;
}
.section-fill-image .two-col { gap: 0; }
.section-fill-image .col-text { padding: 2rem 3rem 2rem 0; }
.section-fill-image .col-img  { align-self: stretch; }
.section-fill-image .col-img img { border-radius: 0; height: 100%; object-fit: cover; }

/* GitHub icon alignment in nav/footer */
.nav-links a svg, .footer-links a svg {
  vertical-align: middle;
  margin-right: 5px;
  position: relative;
  top: -1px;
}

section { padding: 5rem 0; }

/* ===== Header / Nav ===== */
header {
  background: #1a2744;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo a { color: white; }
.logo a:hover { text-decoration: none; opacity: 0.9; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: white;
  text-decoration: none;
}

.nav-links .nav-cta a {
  background: #2563eb;
  color: white;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  font-weight: 600;
}
.nav-links .nav-cta a:hover {
  background: #1d4ed8;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: white;
  font-size: 1.5rem;
}

/* ===== Typography ===== */
h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 2rem;   font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.35; }
h4 { font-size: 1.15rem;font-weight: 600; line-height: 1.4; }
h5 { font-size: 1rem;   font-weight: 600; }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1rem;
}
p:last-child { margin-bottom: 0; }

p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #374151;
}

/* ===== Feature List ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(37,99,235,0.1);
}
.feature-list li:last-child { border-bottom: none; }

.feature-list strong {
  display: block;
  font-size: 0.95rem;
  color: #1a2744;
  margin-bottom: 0.2rem;
}
.feature-list .feat-desc {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary {
  background: #2563eb;
  color: white;
  border: 2px solid #2563eb;
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: white; }

.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
  background: transparent;
}
.btn-outline:hover { background: #2563eb; color: white; }

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ===== Section Headings ===== */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

/* ===== Step Numbers (Methodology) ===== */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ===== FAQ ===== */
.faq-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 0.75rem;
}

.faq-a { color: #374151; }
.faq-a ul { margin: 0.75rem 0 0.75rem 1.5rem; }
.faq-a li { margin-bottom: 0.4rem; line-height: 1.6; }

/* ===== Contact Form ===== */
.contact-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #374151;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #f9fafb;
  color: #1a1a1a;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  width: 100%;
  background: #2563eb;
  color: white;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-submit:hover { background: #1d4ed8; }

/* ===== Prose (Legal Pages) ===== */
.prose-page { padding: 5rem 0; }

.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.prose h2 {
  margin-bottom: 0.5rem;
}
.prose .effective-date {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.prose h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.3rem;
  color: #1a2744;
}
.prose h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: #1a2744;
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.prose li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  color: #374151;
}
.prose hr {
  border: none;
  border-top: 1.5px solid #e5e7eb;
  margin: 2rem 0;
}
.prose blockquote {
  border-left: 4px solid #2563eb;
  padding: 1rem 1.5rem;
  background: #f0f4ff;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.prose blockquote p {
  margin: 0;
  color: #1a2744;
}
.prose strong { color: #1a2744; }
.prose a { color: #2563eb; font-weight: 500; }

/* ===== Footer ===== */
footer {
  background: #1a2744;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.footer-links a:hover { color: white; text-decoration: none; }

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .two-col.img-left .col-img { order: 0; }
  .two-col.img-right .col-img { order: 0; }

  .section-fill-image > .container { max-width: 1200px; padding-left: 2rem; padding-right: 2rem; }
  .section-fill-image .two-col { gap: 2.5rem; }
  .section-fill-image .col-text { padding: 0; }
  .section-fill-image .col-img  { align-self: auto; }
  .section-fill-image .col-img img { height: auto; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.3rem; }
  section { padding: 3.5rem 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a2744;
    padding: 1rem 2rem 1.5rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem 0; display: block; }
  .nav-toggle { display: block; }

  nav { position: relative; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .contact-card { padding: 1.75rem; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
