/**
 * Color Variables
 * ===============
 * CSS custom properties for consistent color usage
 * Based on actual production colors identified through testing
 */

:root {
  /* Base Colors */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Gray Scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #718096;  /* Main body text color */
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #2d3748;
  --color-gray-900: #1f2937;
  --color-gray-950: #1a1a1a;

  /* Brand Colors */
  --color-primary: #002855;        /* Dark blue - h1 headings */
  --color-primary-light: #818cf8;
  --color-primary-dark: #5b21b6;

  /* Link Colors - Actual from production */
  --color-link: #667eea;           /* Mild purple/bluish - default */
  --color-link-hover: #1e3a8a;     /* Navy blue - hover state */

  /* Deep Violet Theme (FAQ pages) */
  --color-deep-violet: #8b66ea;    /* Used for h2/h3 in FAQ */
  --color-deep-violet-light: #7209b7;
  --color-deep-violet-dark: #240046;

  /* Semantic Text Colors */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #718096;  /* Body text (paragraphs, lists) */
  --color-text-muted: #9ca3af;
  --color-text-light: #718096;      /* Same as secondary */

  /* Background Colors */
  --color-bg-white: #ffffff;
  --color-bg-gray: #f9fafb;
  --color-bg-primary: rgba(102, 126, 234, 0.05);

  /* Border Colors */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-border-dark: #d1d5db;
}/**
 * Minimal CSS Reset
 * ==================
 * A gentle reset that preserves useful browser defaults
 * while ensuring cross-browser consistency
 */

/* ============================================
   Box Model - This is good to keep
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================================
   Document Setup
   ============================================ */

html {
  /* Prevent font size adjustments after orientation changes */
  -webkit-text-size-adjust: 100%;

  /* Smooth scrolling for anchor links */
  scroll-behavior: smooth;

  /* Account for fixed header when jumping to anchors */
  scroll-padding-top: 110px;
}

/* Focus outline for accessibility */
html:focus-within {
  scroll-behavior: smooth;
}

/* ============================================
   Body Defaults - Minimal changes
   ============================================ */

body {
  margin: 0;  /* Remove default body margin */
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography - Keep browser defaults!
   ============================================ */

/* We're NOT resetting heading sizes or weights - let them cascade naturally */
/* We're NOT removing list styles - keep bullets/numbers */
/* We're NOT resetting margins on p, h1-h6, ul, ol - keep browser spacing */

/* ============================================
   Link Defaults - Minimal
   ============================================ */

/* Links will get their styles from typography.css */
a:not([class]) {
  /* Style links without classes */
  text-decoration-skip-ink: auto;
}

/* ============================================
   Media Elements - Good to normalize
   ============================================ */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove italic from address */
address {
  font-style: normal;
}

/* ============================================
   Form Elements - Inherit fonts
   ============================================ */

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Remove spinner from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* ============================================
   Table Resets
   ============================================ */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================
   Accessibility
   ============================================ */

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Text Selection
   ============================================ */

::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}/**
 * Base Typography System
 * ======================
 * Matches production typography exactly
 * Based on actual colors and fonts discovered through testing
 *
 * PRODUCTION REQUIREMENTS:
 * - Body/Paragraphs: #718096 gray, system fonts, 16px, 1.6 line-height
 * - List items: #718096 gray, Inter font specifically, 16px, 1.6 line-height
 * - H1: #002855 dark blue, Montserrat, 42px
 * - H2/H3: #8b66ea Deep Violet (FAQ pages), Montserrat, 30px/24px
 * - Links: #667eea mild purple, NO underline, #1e3a8a navy on hover
 */

/* ============================================
   BASE BODY STYLES
   ============================================ */

body {
  /* System fonts for body - NOT Inter */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary, #718096);  /* Gray with fallback */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg-gray, #f9fafb);  /* Light gray background */
}

/* ============================================
   PARAGRAPHS - Match production exactly
   ============================================ */

p {
  /* Inherits system fonts from body */
  line-height: 1.6;
  color: var(--color-text-secondary, #718096);  /* Gray with fallback */
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
}

/* Article/content area paragraphs */
.article-content p,
.content-wrapper p {
  line-height: 1.6;
  color: var(--color-text-secondary, #718096);
  margin-bottom: 16px;
  font-size: 16px;
}

/* ============================================
   LIST ITEMS - Match production exactly
   ============================================ */

li {
  /* Production uses Inter for list items specifically */
  color: var(--color-text-secondary, #718096);  /* Gray with fallback */
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

/* List item spacing */
.article-content li,
.content-wrapper li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ============================================
   HEADINGS - Match production exactly
   ============================================ */

h1 {
  color: var(--color-primary, #002855);  /* Dark blue with fallback */
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  font-size: 40px;  /* Updated to 40px per user request */
  margin-top: 0;
  margin-bottom: 24px;
}

h2, h3 {
  color: var(--color-deep-violet, #8b66ea);  /* Deep Violet with fallback */
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: 30px;
  margin-top: 35px;  /* Increased from 25px for more section spacing */
  margin-bottom: 15px;
}

h3 {
  font-size: 24px;
  margin-top: 30px;  /* Reduced from 45px for tighter spacing */
  margin-bottom: 15px;
}

h4, h5, h6 {
  color: var(--color-primary, #002855);  /* Dark blue with fallback */
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

h4 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 12px;
}

h5 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 10px;
}

h6 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Deep Violet theme for consultancy headers (if needed) */
.consultancy-content h2,
.consultancy-content h3 {
  color: var(--color-deep-violet, #8b66ea);
}

/* ============================================
   LINKS - Match production exactly
   ============================================ */

a {
  color: var(--color-link, #667eea);  /* Mild purple/bluish with fallback */
  text-decoration: none;  /* NO underline by default */
  position: relative;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover, #1e3a8a);  /* Navy blue on hover with fallback */
}

a:active {
  transform: scale(0.98);
}

a:focus {
  outline: 2px solid var(--color-link, #667eea);
  outline-offset: 2px;
}

/* Links in content areas */
.content-wrapper a:not(.btn):not(.nav-link),
.article-content a:not(.btn):not(.nav-link) {
  color: var(--color-link, #667eea);  /* Mild purple with fallback */
  text-decoration: none;
}

.content-wrapper a:not(.btn):not(.nav-link):hover,
.article-content a:not(.btn):not(.nav-link):hover {
  color: var(--color-link-hover, #1e3a8a);  /* Navy blue on hover with fallback */
}

/* ============================================
   EMPHASIS & STRONG
   ============================================ */

strong,
b {
  font-weight: 600;
  color: inherit;  /* Maintain parent color */
}

em,
i {
  font-style: italic;
  color: inherit;
}

/* ============================================
   OTHER TEXT ELEMENTS
   ============================================ */

small {
  font-size: 14px;
  color: var(--color-text-muted, #9ca3af);  /* Muted gray */
}

/* Blockquotes */
blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--color-link, #667eea);
  background: var(--color-bg-gray, #f9fafb);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-muted, #9ca3af);
  font-style: normal;
}

/* Code */
code {
  padding: 2px 4px;
  background: var(--color-gray-100, #f3f4f6);
  border-radius: 3px;
  color: var(--color-deep-violet, #8b66ea);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
}

pre {
  margin: 16px 0;
  padding: 16px;
  background: var(--color-gray-900, #1f2937);
  color: var(--color-gray-100, #f3f4f6);
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: none;
  color: inherit;
}

/* Horizontal rules */
hr {
  border: 0;
  height: 1px;
  background: var(--color-border, #e5e7eb);
  margin: 32px 0;
}

/* Definition lists */
dt {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text-primary, #1a1a1a);  /* Dark for emphasis */
}

dd {
  margin-left: 24px;
  margin-bottom: 12px;
  color: var(--color-text-secondary, #718096);  /* Gray like body text */
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 768px) {
  /* Keep font sizes consistent on mobile for production parity */
  body {
    font-size: 16px;  /* Don't reduce on mobile */
  }

  h1 {
    font-size: 36px;  /* Slightly smaller on mobile */
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .article-content li,
  .content-wrapper li {
    margin-bottom: 8px;  /* Keep consistent spacing */
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    color: black;
    font-size: 12pt;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
}/**
 * List Styles
 * ===========
 * Match production list styling exactly
 *
 * PRODUCTION REQUIREMENTS:
 * - Lists have bullets/numbers by default (disc for ul, decimal for ol)
 * - 20px top/bottom margin, 30px left padding
 * - List items: 8px bottom margin
 * - Colors and fonts handled by _typography.css
 */

/* ============================================
   BASE LIST STYLES - Match production
   ============================================ */

ul {
  /* Production defaults */
  list-style-type: disc;
  margin: 20px 0;
  padding-left: 30px;
}

ol {
  /* Production defaults */
  list-style-type: decimal;
  margin: 20px 0;
  padding-left: 30px;
}

/* Content area lists */
.article-content ul,
.article-content ol,
.content-wrapper ul,
.content-wrapper ol {
  margin: 20px 0;
  padding-left: 30px;
}

/* Ensure bullets show */
.article-content ul,
.content-wrapper ul {
  list-style-type: disc;
}

.article-content ol,
.content-wrapper ol {
  list-style-type: decimal;
}

/* ============================================
   LIST ITEMS - Production spacing
   ============================================ */

li {
  /* Typography handled by _typography.css */
  /* Reduced spacing between items for tighter lists */
  margin-bottom: 4px;
}

/* Remove margin from last item */
li:last-child {
  margin-bottom: 0;
}

/* Content area list items */
.article-content li,
.content-wrapper li {
  margin-bottom: 4px;
}

/* ============================================
   NESTED LISTS
   ============================================ */

/* Nested lists - slightly less spacing */
li > ul,
li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Different markers for nested lists */
ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}

ol ol {
  list-style-type: lower-alpha;
}

ol ol ol {
  list-style-type: lower-roman;
}

/* ============================================
   LIST MARKERS
   ============================================ */

/* Marker color - slightly muted */
ul > li::marker,
ol > li::marker {
  color: var(--color-text-muted);  /* Slightly muted markers */
}

/* ============================================
   DEFINITION LISTS
   ============================================ */

dl {
  margin: 20px 0;
}

dt {
  font-weight: 600;
  margin-bottom: 4px;
  /* Color handled by _typography.css */
}

dd {
  margin-left: 30px;
  margin-bottom: 12px;
  /* Color handled by _typography.css */
}

/* ============================================
   SPECIAL LIST CLASSES
   ============================================ */

/* Unstyled list (no bullets, no padding) */
.list-unstyled {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list-unstyled li {
  margin-bottom: 0;
}

/* Inline list */
.list-inline {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.list-inline li {
  margin-bottom: 0;
}

/* Divided list (with separators) */
.list-divided li {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.list-divided li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Tight spacing variant */
.list-tight li {
  margin-bottom: 4px;
}

/* Loose spacing variant */
.list-loose li {
  margin-bottom: 16px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  /* Slightly reduce padding on mobile */
  ul,
  ol,
  .article-content ul,
  .article-content ol,
  .content-wrapper ul,
  .content-wrapper ol {
    padding-left: 25px;
  }

  /* Keep same item spacing */
  li,
  .article-content li,
  .content-wrapper li {
    margin-bottom: 8px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  ul,
  ol {
    page-break-inside: avoid;
  }

  li {
    page-break-inside: avoid;
  }
}