/* =========================================
   PREVALU — Global Styles
   ========================================= */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
  --navy: #1a2332;
  --amber: #d4922a;
  --amber-hover: #c0841f;
  --cream: #f8f6f3;
  --white: #ffffff;
  --charcoal: #2d2d2d;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --green: #3d8b6e;
  --nav-height: 72px;
  --section-padding: 96px;
  --container-max: 1140px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.narrow { max-width: 680px; margin: 0 auto; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
h1 { font-size: 48px; letter-spacing: -0.5px; line-height: 1.12; }
h2 { font-size: 36px; margin-bottom: 20px; }
h3 { font-size: 22px; margin-bottom: 12px; }
h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.text-emphasis { font-weight: 600; color: var(--navy); }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,146,42,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Sections */
.section { padding: var(--section-padding) 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.nav-hero {
  background: transparent;
}
.nav.nav-scrolled {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}
.nav-mark { color: var(--amber); }
.nav-wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  transition: color 0.3s ease;
}
.nav-scrolled .nav-wordmark { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--white); }
.nav-scrolled .nav-link { color: var(--gray); }
.nav-scrolled .nav-link:hover { color: var(--navy); }

.nav-cta { padding: 10px 20px; font-size: 14px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.nav-scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
}
.hero-bg-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-content { text-align: center; max-width: 720px; margin: 0 auto; }
.hero-h1 { color: var(--white); margin-bottom: 24px; }
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   TWO-COL / THREE-COL LAYOUTS
   ========================================= */
.two-col {
  display: grid;
  gap: 64px;
  align-items: center;
}
.two-col-60-40 { grid-template-columns: 1.4fr 1fr; }
.two-col-50-50 { grid-template-columns: 1fr 1fr; }
.two-col-55-45 { grid-template-columns: 1.2fr 1fr; }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =========================================
   VALUE GAP VISUAL
   ========================================= */
.value-gap-visual { padding: 20px 0; }
.value-bar-group { margin-bottom: 20px; }
.value-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.value-bar {
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 700;
  font-size: 18px;
}
.value-bar-full {
  background: var(--navy);
  color: var(--white);
  width: 100%;
}
.value-bar-reduced {
  background: var(--navy);
  color: var(--white);
  width: 75%;
  opacity: 0.6;
}
.value-gap-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-left: 4px;
}
.gap-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--amber);
}
.gap-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-icon { margin-bottom: 20px; }
.card p { color: var(--gray); font-size: 15px; line-height: 1.7; }
.card-accent {
  border-left: 3px solid var(--amber);
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--light-gray);
}
.trust-icon { display: flex; align-items: center; }

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  background: var(--navy);
  padding: 96px 0;
}
.cta-h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 16px;
}
.cta-sub {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-wordmark {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 300px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
}

/* =========================================
   HOW IT WORKS PAGE
   ========================================= */
.page-hero {
  background: var(--cream);
  padding: calc(var(--nav-height) + 64px) 0 64px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--gray); max-width: 580px; margin: 0 auto; font-size: 17px; }

.step-section { padding: 80px 0; }
.step-number {
  font-size: 80px;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}
.step-content h2 { font-size: 30px; margin-bottom: 16px; }
.step-content p { color: var(--charcoal); }
.step-detail-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber);
  margin-top: 24px;
  margin-bottom: 8px;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* =========================================
   FAQ PAGE
   ========================================= */
.faq-group { margin-bottom: 48px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin-bottom: 20px;
}
.faq-item {
  border-bottom: 1px solid var(--light-gray);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--amber); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: 16px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--amber);
  border-radius: 1px;
  transition: transform 0.3s ease;
}
.faq-icon::before {
  width: 14px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s ease;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--amber);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-info { padding-top: 8px; }
.contact-info-item {
  margin-bottom: 20px;
}
.contact-info-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
  :root { --section-padding: 72px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .three-col { grid-template-columns: 1fr; gap: 20px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-60-40, .two-col-50-50, .two-col-55-45 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .principles-grid { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; gap: 16px; }
  .trust-divider { width: 40px; height: 1px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 56px; --nav-height: 64px; }
  .container { padding: 0 24px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { min-height: auto; padding: calc(var(--nav-height) + 48px) 0 64px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; text-align: center; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.active { opacity: 1; pointer-events: all; }
  .nav-links .nav-link {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
  }
  .nav-links .nav-link:hover { color: var(--white); }
  .nav-links .nav-cta { margin-top: 16px; }
  .nav-scrolled .nav-links .nav-link { color: rgba(255,255,255,0.8); }
  .nav-toggle.active span { background: var(--white); }

  .step-number { font-size: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { max-width: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .container { padding: 0 20px; }
}
