/* ================================================================
   DR PROPERTY CHECK — DESIGN SYSTEM v3
   Institutional trust. Controlled tension. Evidence-grade clarity.
   ================================================================ */

:root {
  /* ── PALETTE ────────────────────────────────────────────────── */
  --navy:        #1B4F72;
  --navy-dark:   #153D59;
  --navy-deep:   #0E2F45;
  --navy-hover:  #164060;
  --steel:       #2E86C1;
  --steel-light: #EBF5FB;
  --steel-mid:   #D6EAF8;
  --white:       #F8F9FA;
  --pure-white:  #FFFFFF;
  --gold:        #B7950B;
  --gold-light:  #FEF9E7;
  --gold-mid:    #F9E79F;
  --slate:       #1C2833;
  --muted:       #4A5568;      /* bumped from #5D6D7E for contrast */
  --light:       #94A3B8;
  --surface:     #F1F3F5;
  --border:      #E2E5E9;
  --border-dark: #242830;
  --green:       #1E8449;
  --green-light: #EAF7F0;

  /* Dark-on-dark (used on navy backgrounds) */
  --on-dark:       rgba(255,255,255,0.88);
  --on-dark-muted: rgba(255,255,255,0.55);
  --on-dark-dim:   rgba(255,255,255,0.32);
  --dark-border:   rgba(255,255,255,0.08);

  /* ── SPACING ────────────────────────────────────────────────── */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* ── RADIUS ─────────────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* ── FONTS ──────────────────────────────────────────────────── */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-head:    'Plus Jakarta Sans', sans-serif;

  /* ── SHADOWS ────────────────────────────────────────────────── */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.10);
  --shadow-card-hover: 0 8px 30px rgba(27,79,114,0.10);

  /* Legacy compat */
  --graphite:  #5D6D7E;
  --signal:    #2E86C1;
  --signal-dk: #1A6FA8;
  --ash:       #F2F3F4;
  --border-dk: #D1D5DB;
  --ink-lo:    #8899A6;
  --red:       #C0392B;
  --amber:     #B8860B;
  --red-bg:    #FDEDEC;
  --amber-bg:  #FEF9E7;
  --green-bg:  #EAFAF1;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; } /* fullpage handles its own smooth scroll */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ── EYEBROW ──────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin-bottom: var(--space-sm);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--navy);
  color: white;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  transition: background 200ms ease-out,
              transform 150ms ease-out,
              box-shadow 200ms ease-out;
  cursor: pointer;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: white;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  transition: background 200ms ease-out, transform 150ms ease-out;
  cursor: pointer;
  line-height: 1.4;
}
.btn-white:hover { background: #EDF2F7; transform: translateY(-1px); }

.btn-lg { font-size: 15px; padding: 15px 32px; min-height: 50px; }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: none;
  transition: opacity 150ms ease-out;
  cursor: pointer;
  padding: 8px 0;
}
.cta-secondary:hover { opacity: 0.7; }

/* ── PILL ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.pill--steel { background: var(--steel-light); color: var(--steel); border: 1px solid var(--steel-mid); }
.pill--gold  { background: var(--gold-light); color: #7D6608; border: 1px solid var(--gold-mid); }
.pill--green { background: var(--green-light); color: var(--green); border: 1px solid #C8E6D8; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── CARD ─────────────────────────────────────────────────────── */
.card {
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease-out,
              box-shadow 250ms ease-out,
              transform 200ms ease-out;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(46,134,193,0.2);
}

/* ── NOTE BOX ─────────────────────────────────────────────────── */
.note-box {
  border-left: 3px solid var(--steel);
  background: var(--steel-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.note-box--gold { border-left-color: var(--gold); background: var(--gold-light); }
.note-box--muted { border-left-color: var(--light); background: var(--surface); }

/* ── CHECKLIST ────────────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.check-icon {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--steel-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ── SECTION DIVIDER ──────────────────────────────────────────── */
.section-rule {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ── SUBTLE GRAIN TEXTURE ─────────────────────────────────────── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── ANIMATIONS ───────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.52s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ── FOCUS STATES ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.mobile-overlay *:focus-visible,
.order-overlay *:focus-visible {
  outline-color: white;
}

/* ── REDUCED MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .reveal { opacity: 1; transform: none; }
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-navy { background: var(--navy); }
.section-dark { background: var(--slate); }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 12px;
  display: block;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.section-header p {
  font-size: 17px;
  color: var(--graphite);
  max-width: 560px;
  margin: 0 auto;
}
.section-header-left { text-align: left; }

/* ── BUTTON VARIANTS ───────────────────────────────────────────── */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--border-dk);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--ash); color: var(--navy); }

.btn-green {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: background 0.15s;
  text-decoration: none;
}
.btn-green:hover { background: #219a52; }

/* ── PRICING GRID ──────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  overflow: hidden;
  position: relative;
  padding: 28px;
}
.pricing-card.featured { border-color: var(--navy); }
.pricing-badge {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 6px;
  margin: -28px -28px 20px;
}

/* ── MOMENT TABS ───────────────────────────────────────────────── */
.moment-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.moment-tab {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  background: var(--white);
  color: var(--graphite);
  font-family: var(--font-body);
  transition: all 0.15s;
}
.moment-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.moment-panel { display: none; }
.moment-panel.active { display: block; }

/* ── ORDER WIDGET (PayPal/Stripe inline widgets) ───────────────── */
.dpc-order-widget { width: 100%; }
.dpc-addon-list { margin-bottom: 16px; }
.dpc-addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
}
.dpc-addon-label { flex: 1; color: var(--slate); }
.dpc-addon-price { font-family: var(--font-mono); font-size: 13px; color: var(--graphite); }
.dpc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 2px solid var(--border);
  margin-bottom: 12px;
}
.dpc-total-label { font-size: 13px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.dpc-total-amount { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); }
.dpc-quote-note { display: none; font-size: 13px; color: var(--graphite); background: var(--surface); border-radius: 4px; padding: 10px 14px; margin-bottom: 12px; line-height: 1.5; }
.dpc-paypal-wrap { min-height: 45px; }

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ── LEGACY COMPAT for existing pages ─────────────────────────── */
/* Existing pages use #mainNav + .nav-inner, .nav-link, .hero, etc.
   These are preserved. New pages use .site-nav and page-scoped classes. */
