/* ============================================
   LUMTURI GLOBAL — Design System
   Premium Dark Steel Theme + Set C Accent
   ============================================ */

:root {
  /* ─── Background / Surface ─── */
  --bg-primary: #070A0F;
  --bg-secondary: #0F141C;
  --bg-surface: #141B24;
  --bg-elevated: #1A222D;
  
  /* ─── Steel Grey Palette ─── */
  --steel-100: #EAF0F6;
  --steel-200: #CBD3DB;
  --steel-300: #A9B3BE;
  --steel-400: #9AA6B2;
  --steel-500: #6B7A8A;
  --steel-600: #4A5668;
  --steel-700: #253041;
  
  /* ─── Accent Blue (Set C) ─── */
  --accent-primary: #0030B3;
  --accent-hover: #003AE0;
  --accent-pressed: #00248A;
  --accent-glow: #1F4DFF;
  --accent-glow-opacity: 0.12;
  
  /* ─── Text ─── */
  --text-primary: #EAF0F6;
  --text-secondary: #A9B3BE;
  --text-muted: #6B7A8A;
  --text-accent: var(--accent-primary);
  
  /* ─── Border ─── */
  --border-default: #253041;
  --border-subtle: rgba(37, 48, 65, 0.5);
  --border-accent: var(--accent-primary);
  
  /* ─── Typography ─── */
  --font-display: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --fs-display-xl: clamp(3rem, 6vw, 5.5rem);
  --fs-display-lg: clamp(2.25rem, 4vw, 3.5rem);
  --fs-display-md: clamp(1.75rem, 3vw, 2.5rem);
  --fs-heading: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  
  --lh-tight: 1.1;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* ─── Spacing ─── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 10vh, 8rem);
  
  /* ─── Border Radius ─── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* ─── Transitions ─── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* ─── Shadows ─── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(31, 77, 255, var(--accent-glow-opacity));
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─── Brushed Steel Grain Overlay ─── */
.has-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  z-index: 1;
}

.has-grain {
  position: relative;
}

.has-grain > * {
  position: relative;
  z-index: 2;
}

/* ─── Typography Classes ─── */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.heading {
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.body-lg {
  font-size: 1.125rem;
  line-height: var(--lh-relaxed);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent-primary);
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: 1440px;
}

.container-narrow {
  max-width: 800px;
}

/* ─── Section ─── */
.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-secondary);
}

/* ─── Grid ─── */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Button Styles ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-small);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  background-color: var(--accent-pressed);
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-hover);
  background-color: rgba(0, 48, 179, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  width: 100%;
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
}

/* ─── Link Styles ─── */
.link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: var(--fw-medium);
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--accent-hover);
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-accent {
  background-color: rgba(0, 48, 179, 0.15);
  color: var(--accent-hover);
  border-color: rgba(0, 48, 179, 0.3);
}

/* ─── Card Styles ─── */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

/* ─── Form Message ─── */
.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.form-message-success {
  background: rgba(0, 179, 89, 0.1);
  color: #00b359;
  border: 1px solid rgba(0, 179, 89, 0.3);
}

.form-message-error {
  background: rgba(179, 0, 0, 0.1);
  color: #ff4444;
  border: 1px solid rgba(179, 0, 0, 0.3);
}

/* ─── Skip Navigation ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-md) var(--space-xl);
  background: var(--accent-primary);
  color: white;
  font-weight: var(--fw-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ─── Accessibility: Focus ─── */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ─── Selection ─── */
::selection {
  background-color: var(--accent-primary);
  color: white;
}
