/* ==========================================================================
   SS ENGINEERS - Precision Machined Components
   Core Design System & Global Styles
   Strict Solid Color Palette: White (#ffffff), Gray (#d6d8d9), Black Text (#000)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Strict User-Requested Solid Colors */
  --bg-white: #ffffff;
  --bg-gray: #d6d8d9;
  --bg-gray-light: #e8eaeb;
  --bg-gray-dark: #c2c5c7;
  
  /* Text & Typography: Pure Black & Crisp Darks */
  --text-black: #000000;
  --text-primary: #111111;
  --text-secondary: #222222;
  --text-muted: #3a3f44;
  
  /* Brand Accent: SS Precision Blue (derived from logo.webp) */
  --brand-blue: #148cd8;
  --brand-blue-hover: #0b6fae;
  --brand-blue-dark: #074770;
  --brand-blue-light: #e6f4fc;
  
  /* Borders & Dividers */
  --border-color: #b5b9bc;
  --border-light: #d6d8d9;
  --border-dark: #495057;
  
  /* Shadows: Modern, Minimal & Standard */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
  
  /* Radii & Transitions */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --transition: all 0.25s ease-in-out;
  
  /* Layout Dimensions */
  --max-width: 1240px;
  --header-height: 96px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-black);
  background-color: var(--bg-white);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-black);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

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

ul, ol {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Clean White Sections */
.section-white {
  background-color: var(--bg-white);
  padding: 5rem 0;
  position: relative;
}

.section-gray {
  background-color: var(--bg-white);
  padding: 5rem 0;
  position: relative;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue-dark);
  background-color: var(--brand-blue-light);
  border: 1px solid rgba(20, 140, 216, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.section-header h2 {
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-black);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.section-divider {
  width: 70px;
  height: 4px;
  background-color: var(--brand-blue);
  margin: 1.25rem auto 0 auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(20, 140, 216, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(20, 140, 216, 0.35);
}

.btn-solid-dark {
  background-color: var(--text-black);
  color: var(--bg-white);
  border-color: var(--text-black);
}

.btn-solid-dark:hover {
  background-color: #2b2b2b;
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-black);
  border-color: var(--text-black);
}

.btn-outline:hover {
  background-color: var(--text-black);
  color: var(--bg-white);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--text-black);
  border-color: var(--border-color);
}

.btn-white:hover {
  background-color: var(--bg-gray-light);
  border-color: var(--text-black);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-iso {
  background-color: var(--brand-blue);
  color: var(--bg-white);
}

.badge-gray {
  background-color: var(--bg-gray-light);
  color: var(--text-black);
  border: 1px solid var(--border-color);
}

/* Utility Helpers */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-brand { color: var(--brand-blue); }
.text-bold { font-weight: 700; }
.w-100 { width: 100%; }
