/* ==========================================================================
   LAXMI PHARMA DISTRIBUTION - BASE STYLES, RESET & UTILITIES
   ========================================================================== */

/* Modern CSS 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;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-main);
  background-color: var(--bg-canvas);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* Accessibility: Focus Visible */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background-color: var(--color-accent-500);
  color: #ffffff;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
}

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

p {
  color: var(--text-secondary);
  line-height: var(--lh-loose);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

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

ul, ol {
  list-style: none;
}

/* Table styling baseline */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Code & Monospace */
code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-surface);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-600);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITY CLASSES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section-padding {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent-50);
  color: var(--color-accent-600);
  border: 1px solid var(--color-accent-100);
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .section-tag {
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-accent-300);
  border-color: rgba(6, 182, 212, 0.25);
}

.section-title {
  margin-bottom: var(--space-4);
  color: var(--text-main);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.text-left .section-subtitle {
  margin-left: 0;
}

/* Screen Reader Only (Accessibility) */
.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;
}

/* Flex & Grid Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Gradient Text Highlight */
.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
