/* ==========================================================================
   TRUSTRUCT CONSULTANCY - ULTRA-CLEAN ARCHITECTURAL DESIGN SYSTEM
   Theme: High-End Light Architectural & Structural Engineering Excellence
   Inspired by Space Structures & Top Consultancy Aesthetics
   ========================================================================== */

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

:root {
  /* Color Palette - Ultra-Clean White, Slate, Steel & Engineering Amber */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-dark-accent: #0F172A;
  
  /* Accent Colors */
  --accent-cyan: #0284C7;        /* Deep Steel Cyan */
  --accent-cyan-light: #E0F2FE;  /* Light Cyan Tint */
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);
  --accent-amber: #D97706;       /* Engineering Gold / Amber */
  --accent-amber-light: #FEF3C7; /* Light Amber Tint */
  --accent-amber-glow: rgba(217, 119, 6, 0.15);
  --accent-steel: #64748B;
  
  /* Text Colors */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Borders & Grid */
  --border-subtle: #E2E8F0;
  --border-highlight: rgba(2, 132, 199, 0.4);
  --border-amber: rgba(217, 119, 6, 0.4);
  --blueprint-line: rgba(148, 163, 184, 0.08);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Container */
  --container-max: 1280px;
  --header-height: 84px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadow & Glow */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --glow-cyan: 0 0 25px rgba(2, 132, 199, 0.15);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
}

/* Blueprint Grid Canvas Overlay */
#blueprintCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.text-lead {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 750px;
}

.text-muted {
  color: var(--text-muted);
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-amber {
  color: var(--accent-amber);
}

.text-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* Badge & Tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.badge-cyan {
  color: var(--accent-cyan);
  border-color: rgba(2, 132, 199, 0.25);
  background: var(--accent-cyan-light);
}

.badge-amber {
  color: var(--accent-amber);
  border-color: rgba(217, 119, 6, 0.25);
  background: var(--accent-amber-light);
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
  position: relative;
}

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

.section-header.center .text-lead {
  margin: 0 auto;
}

.section-title {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* Section Padding */
.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-bg-dark {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-bg-white {
  background-color: #FFFFFF;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Helper Utilities */
.grid {
  display: grid;
  gap: 1.75rem;
}

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

.flex { display: flex; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }

@media (max-width: 1024px) {
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.5rem 0;
  }
}
