/* ═══════════════════════════════════════════════════════
   DARS — Digital Assurance & Resilience Services
   Brand Design System v5.0
   
   Colors: Navy #0D1B2A, Gold #C9A84C, White, Warm Gray
   Gold Rule: Only for assurance, standards, commitments, value
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* Primary Brand */
  --navy: #0D1B2A;
  --navy-dark: #091525;
  --navy-light: #162840;
  --gold: #C9A84C;
  --gold-soft: #E8D5A0;
  --gold-bg: #FAF6EB;
  --white: #FFFFFF;
  --warm-gray: #F5F3EF;
  --warm-gray-dark: #E8E6E1;
  
  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-light: #AAAAAA;
  
  /* Functional */
  --border: #E8E6E1;
  --shadow-sm: 0 2px 8px rgba(33, 63, 97, 0.06);
  --shadow-md: 0 4px 16px rgba(33, 63, 97, 0.08);
  --shadow-lg: 0 8px 32px rgba(33, 63, 97, 0.12);
  
  /* Typography */
  --font-display: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.3; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin-bottom: 1rem; }


/* ── NOT SECTION — V5.7 3 pillars ── */
.not-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.not-pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 0 0 10px 10px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.not-pillar-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.not-pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.not-pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.not-closing {
  background: var(--navy);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.not-closing p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.not-closing p em {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}
@media (max-width: 900px) {
  .not-pillar-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .not-closing { flex-direction: column; text-align: center; }
}

.section-label {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 0.4rem;
}

.gold-text { color: var(--gold); }

/* ── Navigation ── */
.nav {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
}

.nav-brand-text { line-height: 1.2; }

.nav-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  line-height: 1;
}

.nav-brand-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
  padding: 0.75rem 0.25rem;
  display: inline-block;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--gold); font-weight: 600; }

.nav-toggle { display: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero Section ── */
.hero {
  background: var(--navy);
  padding: 4.5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.hero h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.8rem;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  letter-spacing: 0.3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: #D4B55E;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline-navy:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; }

/* ── DARS Promise Strip ── */
.promise-strip {
  background: var(--gold-bg);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gold-soft);
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--navy);
  font-weight: 600;
}

.promise-check {
  color: var(--navy); /* was gold — ratio 2.12 on gold-bg, fails AA. Navy gives 7.5:1 */
  font-size: 1rem;
  line-height: 1;
}

/* ── DARS Promise Full (Direction B) ── */
.promise-full {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

.promise-full-inner {
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 2rem 2.5rem;
}

.promise-full blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.promise-commitments {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.promise-commitment {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

/* ── Section Layouts ── */
.section {
  padding: 4rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-centered { text-align: center; }

.section-navy {
  background: var(--navy);
  padding: 4rem 3rem;
}

.section-navy .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-warm {
  background: var(--warm-gray);
  padding: 4rem 3rem;
}

.section-warm .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-gold-bg {
  background: var(--gold-bg);
  padding: 4rem 3rem;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; width: 100%; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; width: 100%; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── Service Cards ── */
.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.service-price {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.service-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

/* ── Pricing Tiers ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing-card {
  padding: 1.5rem;
  border-radius: 10px;
  text-align: left;
  position: relative;
}

.pricing-card-default {
  background: var(--navy-dark);
  border: 1px solid var(--navy-light);
}

.pricing-card-featured {
  background: var(--navy-light);
  border: 2px solid var(--gold);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.pricing-type {
  font-size: 0.7rem;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.pricing-name {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
}

.pricing-range {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.pricing-desc {
  font-size: 0.78rem;
  color: #B0BEC5;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.pricing-cta-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
}

.pricing-cta-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* ── Founder Section ── */
.founder-section {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-avatar span {
  color: var(--gold);
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.founder-info h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.founder-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cert-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.cert-badge {
  font-size: 0.7rem;
  font-weight: 700; /* increased from 600 to improve legibility at small size */
  color: var(--navy); /* navy on gold-soft = 7.5:1 contrast, passes AA */
  background: var(--gold-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.cert-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ── Tool Cards ── */

.tool-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.tool-card {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.tool-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.tool-card h4 {
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.tool-card .tool-type {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-bg);
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Blog Cards ── */
.blog-card {
  padding: 1.25rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.blog-card:hover { border-color: var(--gold); }

.blog-card .blog-date {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.blog-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card .read-more {
  font-size: 0.8rem;
  color: var(--navy-light);
  font-weight: 500;
}

/* ── CTA Section ── */
.cta-section {
  background: var(--navy);
  padding: 4rem 3rem;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.cta-section p {
  color: #B0BEC5;
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: #172D47;
  padding: 2.5rem 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand img { width: 28px; height: 28px; border-radius: 4px; }
.footer-brand-info { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }

.footer-brand-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.footer-brand-tagline {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.footer-brand p {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}

/* V5.6: footer column headings demoted from H4 to p.footer-col-heading
   to fix WCAG heading hierarchy — visually identical */
.footer-col-heading {
  font-size: 0.7rem !important;
  color: var(--gold) !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin-bottom: 0.6rem !important;
  font-family: var(--font-body) !important;
  display: block !important;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--gold); }

.footer-promise-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.footer-promise-item span {
  font-size: 0.7rem;
  color: #888;
}

.footer-promise-check {
  color: var(--gold);
  font-size: 0.8rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  border-top: 1px solid #1E3A55;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── Legal Disclaimer (Tools) ── */
.legal-disclaimer {
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.legal-disclaimer p {
  font-size: 0.78rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* ── Nonprofit Message ── */
.nonprofit-message {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1.5rem;
}

.nonprofit-message a {
  color: var(--gold);
  font-weight: 600;
  font-style: normal;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { min-height: 100px; resize: vertical; }

/* Service pills for contact form */
.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.pill {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  color: var(--text-secondary);
}

.pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.pill:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Page Header (for subpages) ── */
.page-header {
  background: var(--navy);
  padding: 4rem 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #B0BEC5;
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Timeline (Founder Page) ── */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold-soft);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  transform: translateX(-4px);
}

.timeline-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.timeline-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.timeline-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Three Pillars (Founder Page) ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.pillar-number {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Industries ── */
.industry-card {
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
}

.industry-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.industry-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.industry-frameworks {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Tool Page Specific ── */
.tool-page-header {
  background: var(--navy);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.tool-page-header h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.tool-page-header p {
  color: #B0BEC5;
  font-size: 0.88rem;
}

.tool-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* ── Blog Page ── */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-post h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.blog-post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.blog-post h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
}

.blog-post p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── Privacy/Security Policy ── */
.policy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.policy-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.policy-page p, .policy-page li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Success/Error Messages ── */
.msg-success {
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  color: var(--navy);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.msg-error {
  background: #FFF5F5;
  border: 1px solid #FFCDD2;
  color: #C62828;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; margin-left: auto; }
  
  .hero h1 { font-size: 1.5rem; }
  .hero h2 { font-size: 1.3rem; }
  
  .card-grid-2, .card-grid-3, .card-grid-4, .pricing-grid, .pillar-grid {
    grid-template-columns: 1fr;
  }
  
  .founder-section { flex-direction: column; }
  
  .footer-inner { flex-direction: column; }
  
  .promise-strip { flex-direction: column; gap: 0.5rem; }
  
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .section { padding: 2.5rem 1.5rem; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════
   v5.2 GAP MITIGATIONS
   Added: Founder Anchor, What DARS Is Not,
   Discovery Widget, Tool Interpretation Layers,
   MODPA tool card, portrait styles
   ═══════════════════════════════════════════════ */

/* ── Portrait in founder teaser ── */
.founder-portrait {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.founder-avatar-placeholder {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.founder-avatar-placeholder span {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--gold); font-weight: 700;
}

/* ── Founder POV quote block ── */
.founder-pov {
  background: var(--navy);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
.founder-pov p {
  font-family: var(--font-display);
  font-size: 1rem; color: rgba(255,255,255,.9);
  font-style: italic; line-height: 1.7; margin: 0;
}

/* ── What DARS Is Not ── */
.not-section {
  padding: 4rem 3rem;
  background: #faf9f7;
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
}
.not-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}
.not-list { display: flex; flex-direction: column; gap: .6rem; }
.not-item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .9rem 1.1rem;
  background: #fff;
  border-radius: 6px;
  border-left: 3px solid #c0392b;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.not-item-x {
  color: #c0392b; font-size: 1.1rem;
  font-weight: 700; flex-shrink: 0; line-height: 1.4;
}
.not-item p { font-size: .88rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }
.not-item strong { color: var(--text-primary); }
.not-bottom {
  margin-top: 2rem; text-align: center;
  background: var(--navy); border-radius: 8px;
  padding: 1.5rem 2rem; color: rgba(255,255,255,.85);
}
.not-bottom p { font-size: .95rem; margin-bottom: 1rem; color: rgba(255,255,255,.82); }
.not-bottom em { color: var(--gold); font-style: italic; }
@media(max-width:768px) { .not-section-inner { grid-template-columns: 1fr; } }

/* ── Discovery Widget ── */
.discovery-section {
  padding: 4rem 3rem;
  background: #f5f3ef;
}
.discovery-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}
.discovery-section-left h2 { margin-bottom: .75rem; }
.discovery-section-left p { font-size: .92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.discovery-steps { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.discovery-step-item { display: flex; gap: .75rem; align-items: flex-start; }
.discovery-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.discovery-step-item p { font-size: .85rem; color: var(--text-secondary); margin: 0; }
.discovery-widget {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
}
.discovery-widget-header {
  background: var(--navy); padding: 1.25rem 1.5rem;
}
.discovery-widget-header h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.05rem; }
.discovery-widget-header p { color: rgba(255,255,255,.65); font-size: .8rem; margin: 0; }
.discovery-widget-body { padding: 1.5rem; }
.discovery-progress-bar {
  height: 4px; background: #e8e6e1; border-radius: 2px; margin-bottom: 1.25rem;
}
.discovery-progress-fill {
  height: 100%; background: var(--gold); border-radius: 2px;
  transition: width .3s ease; width: 0%;
}
.discovery-q { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin-bottom: 1rem; line-height: 1.4; }
.discovery-options { display: flex; flex-direction: column; gap: .4rem; }
.discovery-opt {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .9rem;
  border: 1.5px solid #ddd; border-radius: 6px;
  cursor: pointer; font-size: .88rem;
  color: var(--text-primary); background: #fff;
  transition: all .15s;
}
.discovery-opt:hover { border-color: var(--navy); background: #f5f3ef; }
.discovery-opt.selected { border-color: var(--gold); background: #faf6eb; font-weight: 500; }
.discovery-opt-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #ccc; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: .15s;
}
.discovery-opt.selected .discovery-opt-dot { border-color: var(--gold); background: var(--gold); }
.discovery-opt.selected .discovery-opt-dot::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff;
}
.discovery-nav-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #eee;
}
.discovery-step-label { font-size: .75rem; color: #aaa; }
.discovery-result-view { display: none; }
.discovery-result-view.active { display: block; }
.discovery-result-header { background: #f5f3ef; padding: 1rem 1.5rem; border-bottom: 1px solid #e8e6e1; }
.discovery-result-header h4 { color: var(--navy); margin: 0 0 .2rem; font-size: .95rem; }
.discovery-result-header p { color: var(--text-secondary); font-size: .8rem; margin: 0; }
.discovery-result-body { padding: 1.25rem 1.5rem; }
.discovery-rec {
  background: #faf9f7; border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: .85rem 1rem;
  margin-bottom: .6rem;
}
.discovery-rec strong { display: block; font-size: .88rem; color: var(--navy); margin-bottom: .2rem; }
.discovery-rec p { font-size: .82rem; color: var(--text-secondary); margin: 0; }
.discovery-actions { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.discovery-action {
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem .9rem; border-radius: 6px;
  font-size: .86rem; text-decoration: none; transition: .15s;
}
.discovery-action-tool { background: #faf6eb; color: #8B6914; border: 1px solid #e8d5a0; }
.discovery-action-tool:hover { background: #f5eed9; color: #8B6914; }
.discovery-action-call { background: var(--navy); color: #fff; }
.discovery-action-call:hover { background: var(--navy-dark); color: #fff; }
.discovery-action span strong { display: block; font-size: .85rem; }
.discovery-action span em { font-style: normal; font-size: .78rem; opacity: .75; }
@media(max-width:768px) {
  .discovery-section-inner { grid-template-columns: 1fr; }
}

/* ── Tool result interpretation layer ── */
.result-interpretation-box {
  background: #faf6eb;
  border: 1px solid #e8d5a0;
  border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.result-interpretation-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .4rem;
}
.result-interpretation-box h4 { font-size: .95rem; color: var(--navy); margin-bottom: .4rem; }
.result-interpretation-box p { font-size: .88rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ── Tool next steps ── */
.result-next-steps {
  border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin: 1.5rem 0;
}
.result-next-steps-header { background: var(--navy); padding: .85rem 1.25rem; }
.result-next-steps-header h4 { color: #fff; font-size: .92rem; margin: 0; }
.result-next-steps-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.result-next-step-option {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .75rem .9rem; border-radius: 6px;
  font-size: .86rem; text-decoration: none;
  color: var(--text-primary); border: 1px solid #e8e6e1;
  background: #fff; transition: .15s;
}
.result-next-step-option:hover { border-color: var(--navy); }
.result-next-step-option strong { display: block; color: var(--navy); font-size: .84rem; margin-bottom: .15rem; }
.result-next-step-option span { line-height: 1.4; }

/* ── MODPA tool card badge ── */
.tool-badge-modpa {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 4px;
  background: #e8f4f0; color: #1a6b5a;
  margin-bottom: .6rem;
}

/* Nav brand — badge + text */
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand img { width: 52px; height: 52px; display: block; border-radius: 8px; flex-shrink: 0; }
.nav-brand img ~ .nav-brand-text { display: flex; flex-direction: column; justify-content: center; }
.nav-brand-tagline { font-size: 0.65rem; color: var(--text-secondary); letter-spacing: 0.04em; line-height: 1.3; margin-top: 0.15rem; }
.nav-brand-tagline .gold-text { color: var(--gold); font-weight: 600; }

/* ═══════════════════════════════════════════════
   V5.4 ACCESSIBILITY & COMPLIANCE
   ═══════════════════════════════════════════════ */

/* Skip to main content — visually hidden until focused */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 0 0 6px 6px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Cookie notice bar */
.cookie-notice {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-notice a { color: var(--gold); text-decoration: underline; }
.cookie-notice-close {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .5rem 1rem; border-radius: 4px; /* increased from .25rem .75rem for 44px touch target */
  font-size: .75rem; cursor: pointer; white-space: nowrap;
  flex-shrink: 0; min-height: 44px; min-width: 44px; /* explicit touch target */
}
.cookie-notice-close:hover { background: rgba(255,255,255,.1); }

/* Persistent nav CTA */
.nav-cta-persistent {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.1rem;
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: 5px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
  margin-left: .5rem;
}
.nav-cta-persistent:hover { opacity: .88; color: var(--navy) !important; }

/* Blog tags */
.blog-tag-chip {
  display: inline-block;
  padding: .2rem .65rem;
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .15s;
}
.blog-tag-chip:hover { background: var(--gold-soft); color: var(--navy); }
.blog-tag-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.blog-tag-filter .blog-tag-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* JSON-LD is invisible — no CSS needed */


/* ── Keyboard focus visibility (WCAG 2.1 AA) ── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
/* Remove outline for mouse users but keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Policy pages two-column layout ── */
.policy-layout { display:grid; grid-template-columns:220px 1fr; gap:3rem; max-width:var(--max-width); margin:0 auto; padding:3rem 2.5rem; align-items:start; }
.policy-sidebar { position:sticky; top:calc(var(--nav-height) + 1.5rem); background:#faf9f7; border:1px solid var(--border); border-radius:8px; padding:1.25rem; }
.policy-sidebar-title { font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:.75rem; }
.policy-toc { list-style:none; padding:0; margin:0; }
.policy-toc li { margin-bottom:.1rem; }
.policy-toc-link { display:block; font-size:.8rem; color:var(--text-secondary); padding:.3rem .5rem; border-radius:4px; text-decoration:none; transition:all .15s; border-left:2px solid transparent; }
.policy-toc-link:hover { color:var(--navy); background:var(--gold-bg); border-left-color:var(--gold); }
.policy-content h2 { font-size:1.1rem; margin-top:2rem; margin-bottom:.65rem; padding-top:1rem; border-top:1px solid var(--border); scroll-margin-top:80px; }
.policy-content h2:first-child { margin-top:0; border-top:none; padding-top:0; }
.policy-content p { margin-bottom:1rem; line-height:1.75; }
.policy-content ul, .policy-content ol { margin:.75rem 0 1rem 1.5rem; line-height:1.8; }
.policy-content li { margin-bottom:.25rem; }
@media(max-width:768px) { .policy-layout { grid-template-columns:1fr; } .policy-sidebar { position:static; } }

/* ═══════════════════════════════════════════════
   DESKTOP SCALING — 1024px and above
   The site was mobile-first. These rules ensure
   desktop viewport gets proper authority and scale.
   ═══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Base typography — larger on desktop */
  body { font-size: 1.0625rem; } /* 17px */

  /* Hero — commanding on large screens */
  .hero { padding: 6rem 3rem 5.5rem; }
  .hero h1 { font-size: 3.2rem; line-height: 1.15; max-width: 820px; }
  .hero .hero-sub { font-size: 1.15rem; max-width: 620px; }

  /* Page headers — more impact */
  .page-header { padding: 5rem 3rem; }
  .page-header h1 { font-size: 2.8rem; }

  /* Section headings */
  .section h2 { font-size: 2rem; }
  .section-navy h2 { font-size: 2rem; }
  .section-warm h2 { font-size: 2rem; }

  /* Section spacing — more generous */
  .section { padding: 6rem 3rem; }
  .section-navy .section-inner { padding: 6rem 3rem; }
  .section-warm .section-inner { padding: 6rem 3rem; }
  .not-section { padding: 4rem 3rem; }
  .discovery-section { padding: 5rem 3rem; }
  .cta-section { padding: 5rem 3rem; }

  /* Cards — more breathing room */
  .card { padding: 2rem; }
  .card-grid-2 { gap: 2rem; }
  .card-grid-3 { gap: 1.75rem; }

  /* Nav — slightly larger brand name */
  .nav-brand-name { font-size: 1.6rem; }
  .nav-brand-tagline { font-size: 0.72rem; }

  /* Founder anchor — more prominent */
  .founder-pov { padding: 3.5rem; gap: 3rem; }

  /* Testimonials — wider cards */
  .card-grid-2 .card { padding: 2.25rem; }

  /* Tool pages */
  .tool-container { max-width: 1060px; }

  /* Policy pages */
  .policy-layout { padding: 4rem 3rem; gap: 4rem; }
}

@media (min-width: 1280px) {
  /* Extra large — full 1280px max-width sites need more punch */
  .hero h1 { font-size: 3.6rem; }
  .page-header h1 { font-size: 3rem; }
  .section h2 { font-size: 2.2rem; }
  body { font-size: 1.125rem; } /* 18px — reads well on large screens */
}
