/* =============================================================
   CND CONTRACT CONSULTANTS — Shared Stylesheet
   Used by: pages/*.html
   index.html uses inline styles (do not consolidate yet)
   ============================================================= */

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

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1B33;
  --navy-mid: #2A3F6B;
  --silver: #E8EBF0;
  --silver-light: #F4F5F8;
  --silver-pale: #FAFBFC;
  --gold: #C4A35A;
  --gold-light: #D4BA7A;
  --gold-dim: rgba(196,163,90,0.12);
  --white: #FFFFFF;
  --text-body: #3A4255;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --red-soft: #DC2626;
  --amber-soft: #D97706;
  --green-soft: #059669;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Libre Franklin', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,42,74,0.06);
  padding: 0 clamp(24px, 4vw, 64px);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(27,42,74,0.06); }

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--navy); letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-brand span { color: var(--gold); }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.nav-links a.active { color: var(--gold); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s;
}
.nav-links a.active::after,
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 2px;
  font-size: 0.76rem !important;
  letter-spacing: 0.1em !important;
  transition: all 0.3s !important;
}
.nav-cta:hover { background: var(--navy-mid) !important; }
.nav-cta::after { display: none !important; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block; background: var(--navy);
  color: var(--white); padding: 16px 40px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: all 0.35s; font-family: var(--font-body);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,42,74,0.15);
}
.btn-secondary {
  display: inline-block; color: var(--navy);
  padding: 16px 40px; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(27,42,74,0.18); border-radius: 2px;
  transition: all 0.35s;
}
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ---- SHARED SECTION PATTERNS ---- */
.section-container { max-width: 1080px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-header { max-width: 580px; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500; color: var(--navy);
  line-height: 1.18; margin-bottom: 14px;
}
.section-header p {
  font-size: 0.95rem; color: var(--text-muted);
  font-weight: 300; line-height: 1.7;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 160px clamp(24px, 4vw, 64px) 80px;
  background: linear-gradient(168deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,163,90,0.4) 30%, rgba(196,163,90,0.4) 70%, transparent);
}
.page-hero-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(196,163,90,0.06);
}
.page-hero-ring-1 { width: 600px; height: 600px; top: -300px; right: -150px; }
.page-hero-ring-2 { width: 350px; height: 350px; bottom: -150px; right: 10%; border-color: rgba(255,255,255,0.03); }

.page-hero-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 2; }

.page-breadcrumb {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.page-breadcrumb::before {
  content: ''; width: 32px; height: 1px; background: var(--gold); flex-shrink: 0;
}
.page-breadcrumb span { color: rgba(255,255,255,0.35); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.01em; max-width: 720px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }

.page-hero-sub {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.58);
  max-width: 580px; font-weight: 300;
}

/* ---- DELIVERABLES SECTION ---- */
.deliverables-section {
  padding: 96px clamp(24px, 4vw, 64px);
  background: var(--white);
}
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.deliverable-card {
  padding: 32px; border: 1px solid var(--silver); border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.deliverable-card:hover {
  border-color: rgba(196,163,90,0.35);
  box-shadow: 0 4px 24px rgba(27,42,74,0.06);
}
.deliverable-icon {
  width: 44px; height: 44px; border: 1px solid var(--silver); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.1rem; color: var(--gold);
  font-family: var(--font-display); font-weight: 500;
}
.deliverable-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--navy); margin-bottom: 10px;
}
.deliverable-card p {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.7; font-weight: 300;
}

/* ---- PROCESS STEPS SECTION ---- */
.process-section {
  padding: 96px clamp(24px, 4vw, 64px);
  background: var(--silver-pale);
}
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 44px; left: 15%; right: 15%;
  height: 1px; background: var(--silver);
}
.process-step { text-align: center; padding: 0 24px; }
.step-number {
  width: 88px; height: 88px; border: 1px solid var(--silver); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; background: var(--white);
  position: relative; z-index: 2;
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 300; color: var(--gold); transition: all 0.4s;
}
.process-step:hover .step-number { border-color: var(--gold); background: var(--gold-dim); }
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--navy); margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.7; font-weight: 300;
}

/* ---- RISK CALLOUT SECTION ---- */
.risk-callout {
  padding: 96px clamp(24px, 4vw, 64px);
  background: var(--navy);
}
.risk-callout-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.risk-callout h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.risk-callout h2 em { color: var(--gold-light); font-style: italic; }
.risk-callout .risk-copy {
  font-size: 0.92rem; color: rgba(255,255,255,0.55);
  line-height: 1.75; font-weight: 300;
}
.risk-tags { display: flex; flex-direction: column; gap: 16px; }
.risk-tag {
  padding: 20px 24px; border-radius: 2px; border-left: 3px solid;
}
.risk-tag.critical { background: rgba(220,38,38,0.08); border-color: var(--red-soft); }
.risk-tag.medium   { background: rgba(217,119,6,0.08);  border-color: var(--amber-soft); }
.risk-tag.low      { background: rgba(5,150,105,0.08);  border-color: var(--green-soft); }
.risk-tag-label {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px;
}
.risk-tag.critical .risk-tag-label { color: var(--red-soft); }
.risk-tag.medium   .risk-tag-label { color: var(--amber-soft); }
.risk-tag.low      .risk-tag-label { color: var(--green-soft); }
.risk-tag p {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  line-height: 1.6; font-weight: 300; margin: 0;
}

/* ---- CTA STRIP ---- */
.cta-strip {
  padding: 96px clamp(24px, 4vw, 64px);
  background: var(--silver-pale); text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500; color: var(--navy); margin-bottom: 12px;
}
.cta-strip p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 36px; font-weight: 300; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.pricing-note {
  margin-top: 24px; font-size: 0.82rem;
  color: var(--text-muted); font-weight: 300;
}

/* ---- ABOUT PAGE ---- */
.about-bio {
  padding: 96px clamp(24px, 4vw, 64px);
  background: var(--white);
}
.about-bio-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start;
}
.about-photo {
  width: 100%; aspect-ratio: 3/4; max-width: 360px;
  background: var(--silver-light);
  border: 1px solid var(--silver);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500; color: var(--navy);
  line-height: 1.2; margin-bottom: 24px;
}
.about-text p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.8; font-weight: 300; margin-bottom: 20px;
}
.about-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cred-badge {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); padding: 6px 14px;
  border: 1px solid var(--silver); border-radius: 2px;
}

.credentials-strip {
  padding: 52px clamp(24px, 4vw, 64px);
  background: var(--navy-deep);
  display: flex; justify-content: center;
  gap: clamp(32px, 5vw, 72px); flex-wrap: wrap;
}
.credential-stat { text-align: center; }
.credential-stat strong {
  display: block; color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  margin-bottom: 4px;
}
.credential-stat span {
  color: rgba(255,255,255,0.4); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500;
}

.philosophy-section {
  padding: 96px clamp(24px, 4vw, 64px);
  background: var(--silver-pale);
}
.philosophy-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.pillar {
  padding: 40px 32px;
  border-top: 2px solid var(--gold);
  background: var(--white);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--navy); margin-bottom: 14px;
}
.pillar p {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.75; font-weight: 300;
}

/* ---- CONTACT PAGE ---- */
.contact-page {
  padding: 96px clamp(24px, 4vw, 64px);
  background: var(--white);
}
.contact-layout {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: start;
}
.confidentiality-notice {
  padding: 16px 20px; margin-bottom: 32px;
  background: var(--silver-pale);
  border-left: 3px solid var(--gold);
  font-size: 0.82rem; color: var(--text-muted);
  font-weight: 300; line-height: 1.6;
}
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500; color: var(--navy); margin-bottom: 8px;
}
.contact-form-wrap .form-intro {
  font-size: 0.92rem; color: var(--text-muted);
  font-weight: 300; margin-bottom: 32px; line-height: 1.7;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--silver); border-radius: 2px;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-body); background: var(--white);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.doc-type-checkboxes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--silver); border-radius: 2px;
  background: var(--white);
}
.doc-type-checkboxes.error { border-color: #DC2626; }
.checkbox-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--text-body); cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; min-width: 16px;
  border: 1px solid var(--silver); border-radius: 2px;
  background: var(--white); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.checkbox-item input[type="checkbox"]:checked {
  background: var(--navy); border-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.checkbox-item input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.doc-type-error {
  font-size: 0.78rem; color: #DC2626; margin-top: 4px; display: none;
}
.form-submit { margin-top: 8px; }
.form-submit button {
  width: 100%; padding: 18px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 2px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.3s;
}
.form-submit button:hover { background: var(--navy-mid); }
.form-note {
  margin-top: 16px; font-size: 0.78rem;
  color: var(--text-faint); line-height: 1.6;
}
.form-note a { color: var(--navy); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }

.whats-next h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  color: var(--navy); margin-bottom: 32px;
}
.next-steps { display: flex; flex-direction: column; gap: 28px; margin-bottom: 40px; }
.next-step { display: flex; gap: 20px; align-items: flex-start; }
.next-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--silver); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 500; color: var(--gold);
}
.next-step-content h4 {
  font-size: 0.88rem; font-weight: 600;
  color: var(--navy); margin-bottom: 4px;
}
.next-step-content p {
  font-size: 0.82rem; color: var(--text-muted);
  line-height: 1.6; font-weight: 300;
}
.contact-direct {
  padding-top: 32px; border-top: 1px solid var(--silver);
}
.contact-direct p {
  font-size: 0.8rem; color: var(--text-muted);
  font-weight: 300; margin-bottom: 12px;
}
.contact-direct a {
  display: block; font-size: 0.88rem;
  color: var(--navy); text-decoration: none;
  font-weight: 500; margin-bottom: 6px;
}
.contact-direct a:hover { color: var(--gold); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy-deep);
  padding: 56px clamp(24px, 4vw, 64px) 40px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 32px; margin-bottom: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600;
  color: var(--white); margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
  font-weight: 300; letter-spacing: 0.04em;
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  text-decoration: none; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-contact a {
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.3s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 20px;
}
.footer-bottom > span { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-disclaimer {
  font-size: 0.72rem; color: rgba(255,255,255,0.2);
  max-width: 640px; line-height: 1.6; font-weight: 300;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .risk-callout-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-bio-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 100%; aspect-ratio: 16/9; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .philosophy-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 24px clamp(24px, 4vw, 64px) 32px; gap: 20px; border-bottom: 1px solid var(--silver); z-index: 99; }
  .nav-links.open a { font-size: 0.9rem; }
  .mobile-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: none; border: none; cursor: pointer; padding: 0; }
  .mobile-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 1px; transition: all 0.3s; }
  .mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .process-steps { grid-template-columns: 1fr; gap: 48px; }
  .process-steps::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
