/* ==========================================================================
   PANGLOBE PHARMA BASE STYLES & RESET
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-900);
  background-color: var(--mist-50);
  background-image: 
    radial-gradient(at 100% 0%, rgba(79, 179, 242, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(30, 158, 63, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-600), var(--sky-400), var(--green-600));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-small);
  z-index: 10001;
  text-decoration: none;
  transition: top var(--duration-hover) var(--ease-spring);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--sky-400);
  outline-offset: 2px;
}

/* Global Focus Styles */
:focus-visible {
  outline: 3px solid var(--sky-400);
  outline-offset: 2px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  font-weight: 800;
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-snug);
  font-weight: 800;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

h4 {
  font-size: var(--text-h4);
  font-weight: 700;
}

p {
  margin-bottom: var(--space-4);
  color: var(--slate-600);
  max-width: 68ch;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--duration-hover) var(--ease-smooth);
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}

.section-soft {
  background-color: var(--sky-100);
  position: relative;
}

.section-navy {
  background: var(--grad-navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-navy h2, 
.section-navy h3, 
.section-navy p {
  color: var(--white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.85);
}

.section-green {
  background: var(--grad-green);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-green h2, 
.section-green h3, 
.section-green p {
  color: var(--white);
}

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

/* Section Header Typography */
.section-header {
  margin-bottom: clamp(36px, 5vw, 60px);
}

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

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--mint-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
  box-shadow: 0 1px 2px rgba(15, 107, 46, 0.1);
  border: 1px solid rgba(30, 158, 63, 0.15);
}

.eyebrow-blue {
  color: var(--blue-600);
  background: var(--sky-100);
  border-color: rgba(28, 79, 196, 0.15);
}

.eyebrow-dark {
  color: var(--sky-400);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
