/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a4d7a;
  --secondary-color: #2c5f8d;
  --accent-color: #c41e3a;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
  --max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --border-radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-size: 16px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: var(--spacing-md) var(--spacing-sm);
  box-shadow: var(--shadow);
}

header div {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Main Container */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-sm);
}

/* Section Styling */
section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

section:last-child {
  margin-bottom: 0;
}

/* Typography */
h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--primary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--spacing-xs);
}

h2:first-of-type {
  margin-top: 0;
}

/* Identity Section */
.section-identity {
  background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-color) 100%);
}

.section-identity > div {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--bg-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-identity > div:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.section-identity p {
  margin-bottom: var(--spacing-xs);
  line-height: 1.8;
}

.section-identity p:first-child {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.section-identity p:last-child {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Process Number */
.section-identity .process-number {
  color: var(--accent-color) !important;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  text-align: center;
  padding: var(--spacing-md);
  background-color: rgba(196, 30, 58, 0.1);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
  border: 2px solid var(--accent-color);
}

/* Documents Section */
.section-docs {
  background-color: var(--bg-light);
}

.section-docs h2 {
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  margin-bottom: var(--spacing-lg);
}

.section-docs ol {
  list-style: none;
  counter-reset: doc-counter;
}

.section-docs li {
  counter-increment: doc-counter;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.section-docs li::before {
  content: counter(doc-counter);
  position: absolute;
  left: var(--spacing-md);
  top: var(--spacing-md);
  background-color: var(--primary-color);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.section-docs li:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.section-docs a {
  display: block;
  padding-left: 3rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.section-docs a:hover {
  color: var(--primary-color);
}

.section-docs a::after {
  content: " 📄";
  margin-left: var(--spacing-xs);
  opacity: 0.6;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  section {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  #identity > div {
    padding: var(--spacing-sm);
  }

  #docs li {
    padding: var(--spacing-sm);
    padding-left: 2.5rem;
  }

  #docs li::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
    left: var(--spacing-sm);
    top: var(--spacing-sm);
  }

  #docs a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
  }

  #identity > a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  header {
    padding: var(--spacing-sm);
  }

  section {
    padding: var(--spacing-sm);
  }

  #identity p:first-child {
    font-size: 1rem;
  }

  #identity p:last-child {
    font-size: 0.875rem;
  }

  #docs a {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Print Styles */
@media print {
  header,
  footer {
    display: none;
  }

  section {
    box-shadow: none;
    page-break-inside: avoid;
  }

  #docs a::after {
    content: "";
  }
}

/* Accessibility */
a:focus,
button:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
