/**
 * ETCS (Excess Technologies & Consultant Services)
 * Corporate Design System & Base Stylesheet
 * Palette: Warm Cream & Sea-Green Industrial B2B Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Warm Cream / Ivory Backgrounds */
  --color-bg: #FAF7F2;
  --color-bg-alt: #F4EFE8;
  --color-bg-subtle: #EDE6DC;
  --color-surface: #FAF7F2;
  --color-surface-card: #FFFFFF;
  --color-surface-elevated: #FFFFFF;
  --color-surface-hover: #F8F5EE;
  
  --color-border: #E5DDD0;
  --color-border-subtle: #EFE8DC;
  --color-border-active: #1A5341;
  
  /* Sea-Green & Deep Forest Green Accents - PRESERVED */
  --color-primary-green: #1A5341;
  --color-primary-hover: #123C2F;
  --color-primary-light: #236B54;
  --color-sea-accent: #2C8568;
  --color-sea-tint: rgba(26, 83, 65, 0.08);
  --color-sea-tint-strong: rgba(26, 83, 65, 0.16);

  /* Charcoal / Deep Green Text Typography - PRESERVED */
  --color-text-main: #142019;
  --color-text-body: #35473E;
  --color-text-muted: #62746B;
  --color-white: #FFFFFF;
  --color-cream: #FAF7F2;
  
  /* Status Colors */
  --color-danger: #B91C1C;
  --color-warning: #B45309;
  --color-success: #15803D;

  /* Typography System - PRESERVED */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  /* Layout Spacing */
  --container-max: 1320px;
  --header-height: 84px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(20, 32, 25, 0.06), 0 1px 2px rgba(20, 32, 25, 0.04);
  --shadow-md: 0 4px 14px rgba(20, 32, 25, 0.07), 0 2px 4px rgba(20, 32, 25, 0.04);
  --shadow-lg: 0 12px 30px rgba(20, 32, 25, 0.09), 0 4px 8px rgba(20, 32, 25, 0.04);
  --shadow-xl: 0 20px 48px rgba(20, 32, 25, 0.12), 0 8px 16px rgba(20, 32, 25, 0.06);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.68;
  background-color: var(--color-bg);
  color: var(--color-text-body);
  overflow-x: hidden;
  position: relative;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

/* Accessible focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary-green);
  outline-offset: 3px;
}

/* Typography Hierarchy - PRESERVED */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

.section-spacing {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

.section-spacing-sm {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

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

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

.border-top-subtle {
  border-top: 1px solid var(--color-border);
}

.border-bottom-subtle {
  border-bottom: 1px solid var(--color-border);
}

/* Section Headers */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 820px;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-green);
  background-color: var(--color-sea-tint);
  border: 1px solid var(--color-sea-tint-strong);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
}

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

.section-subtitle {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--color-text-body);
  line-height: 1.68;
}

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