/* Base Styles for Probud */
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  font-size: 1.125rem; /* 18px body font for premium look */
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* Elegant gold line under h2 headers in silos */
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section-bg-alt {
  background-color: var(--bg-alt);
}

.section-bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: center;
}

.section-bg-dark h2 {
  color: var(--text-light);
}

/* Text Formatting Helpers */
.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

.section-bg-dark .lead {
  color: var(--text-light-muted);
}

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

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

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

strong {
  font-weight: 600;
}

/* Responsive Headings */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

/* Keyboard accessibility outline */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Accessibility - Screen Reader Only / Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility - prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accessibility - Skip to Content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-lg);
  background-color: var(--accent);
  color: #fff;
  padding: 10px 20px;
  z-index: 10000;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-headings);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--primary);
}

