/* ==========================================================================
   GLOBAL BASE STYLES & TYPOGRAPHY
   Pompano Leak Detection Pros
   ========================================================================== */

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: var(--line-height-normal);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-accent);
}

/* Universal Focus States for Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Text Selection */
::selection {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.15;
}

h2 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs & Text Elements */
p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

p.lead {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-main);
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

strong,
b {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
}

/* Links */
a {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Lists */
ul.bulleted-list,
ol.numbered-list {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

ul.bulleted-list {
  list-style-type: disc;
}

ol.numbered-list {
  list-style-type: decimal;
}

ul.bulleted-list li,
ol.numbered-list li {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

/* Horizontal Divider */
hr {
  border: 0;
  height: 1px;
  background-color: var(--color-border-subtle);
  margin: var(--space-8) 0;
}

/* Core Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-text-inverse); }

.bg-subtle { background-color: var(--color-bg-subtle); }
.bg-body { background-color: var(--color-bg-body); }
.bg-primary { background-color: var(--color-primary); color: var(--color-text-inverse); }

.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;
}
