/* ============================================= */
/* Smaling Service Monteur — Main Stylesheet    */
/* Modern Dark Theme | 2024                     */
/* ============================================= */

/* ========== CSS VARIABLES ========== */
:root {
  /* Background Colors */
  --bg: #0a0d12;
  --bg-elevated: #0f1318;
  --bg-gradient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent);

  /* Surface Colors */
  --card: #13171e;
  --card-hover: #181d26;
  --surface: #1a1f28;

  /* Border Colors */
  --border: #1e2632;
  --border-light: #2a3444;
  --border-focus: #3b82f6;

  /* Text Colors */
  --text: #f0f4f8;
  --text-secondary: #c4cdd9;
  --text-muted: #8b9cb3;
  --text-subtle: #5a6b82;

  /* Brand Colors */
  --brand: #3b82f6;
  --brand-light: #60a5fa;
  --brand-dark: #2563eb;
  --brand-glow: rgba(59, 130, 246, 0.4);

  /* Accent Colors */
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.4);

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --glow-brand: 0 0 30px var(--brand-glow);
  --glow-accent: 0 0 30px var(--accent-glow);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-4);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong, b { font-weight: 600; }

small { font-size: 0.875rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

.section {
  padding: var(--space-12) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-16) 0; }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

/* Main + Sidebar Layout */
.layout-sidebar {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

/* Legacy grid+side layout (compat with older pages) */
.grid.section {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 1024px) {
  .grid.section {
    grid-template-columns: 1fr 320px;
  }
}
.content {
  display: grid;
  gap: var(--space-6);
}
.side {
  display: grid;
  gap: var(--space-6);
  align-content: start;
}
.side .links {
  display: grid;
  gap: 8px;
}
.side .links a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--bg-elevated);
  transition: all var(--transition-fast);
}
.side .links a:hover {
  background: #111825;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--text); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link[aria-current="page"] {
  color: var(--brand-light);
  background: rgba(59, 130, 246, 0.1);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  list-style: none;
}

.dropdown-toggle::-webkit-details-marker {
  display: none;
}

.dropdown-toggle::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-left: var(--space-2);
  display: inline-block;
  transform: translateY(2px);
  transition: transform var(--transition-fast);
}

details[open] .dropdown-toggle::after {
  transform: translateY(-2px) rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
}

.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  color: var(--text);
  background: var(--surface);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-badge {
  display: none;
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
  white-space: nowrap;
}

.header-badge svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 1024px) {
  .header-badge { display: inline-flex; }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: var(--space-16) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(ellipse at center top, var(--brand-glow), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-light);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.hero-certs {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero-certs-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-certs-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.hero-cert-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(1) brightness(1.1);
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.hero-cert-link:hover .hero-cert-logo {
  opacity: 1;
  filter: none;
}

/* ========== PROJECTS GRID ========== */
.project-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-height: 240px;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(10,13,18,0.05) 0%, rgba(10,13,18,0.85) 70%);
}

.project-overlay h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.project-overlay p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: var(--space-3);
}

.project-card:hover img {
  transform: scale(1.04);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.875rem;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  box-shadow: 0 4px 14px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-brand);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--brand);
  color: var(--text);
}

/* Accent Button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #0a0d12;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
  color: #0a0d12;
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

/* Button with Icon */
.btn svg {
  width: 18px;
  height: 18px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card-hover:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--brand);
  box-shadow: var(--glow-brand);
}

/* Service Card */
.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card:hover .service-icon {
  background: var(--brand);
  transform: scale(1.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-light);
}

.service-card:hover .service-icon svg {
  color: white;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== BADGES & PILLS ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-brand {
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand-light);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-accent {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-muted {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-light);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
}

/* ========== FORMS ========== */
.form {
  display: grid;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label-required::after {
  content: ' *';
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b9cb3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* Form Validation States */
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--error);
}

.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
}

.form-success {
  font-size: 0.8125rem;
  color: var(--success);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-check-input:checked {
  background: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
  background-image: none;
  box-shadow: inset 0 0 0 4px var(--bg);
}

.form-check-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* File Upload */
.form-upload {
  position: relative;
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.form-upload:hover,
.form-upload.is-dragover {
  border-color: var(--brand);
  background: rgba(59, 130, 246, 0.05);
}

.form-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--text-muted);
}

.form-upload-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-upload-hint {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* File List */
.file-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.file-item-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-size {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.file-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.file-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ========== ALERTS ========== */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-light);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--brand-light);
}

.alert-title {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* ========== USP SECTION ========== */
.usp-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .usp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.usp-item {
  text-align: center;
  padding: var(--space-4);
}

.usp-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
}

.usp-icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-light);
}

.usp-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.usp-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== REVIEWS / TESTIMONIALS ========== */
.reviews-slider {
  position: relative;
  overflow: hidden;
}

.review-card {
  padding: var(--space-6);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.review-stars svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.review-text {
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-author-avatar {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--brand-light);
}

.review-author-name {
  font-weight: 600;
  color: var(--text);
}

.review-author-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== FAQ / ACCORDION ========== */
.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: var(--surface);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

details[open] .faq-question {
  background: var(--brand);
  color: white;
}

details[open] .faq-question::after {
  color: white;
}

.faq-answer {
  padding: var(--space-5) var(--space-6);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-4);
}

.cta-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.cta-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
}

.cta-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--brand-light);
}

.cta-contact-item a {
  color: var(--text);
  font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  margin-bottom: var(--space-4);
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-light);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-certifications {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-cert-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-cert-text svg {
  width: 14px;
  height: 14px;
}

.footer-cert-logos {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-cert-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(1) brightness(1.1);
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.footer-cert-link:hover .footer-cert-logo {
  opacity: 1;
  filter: none;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: sticky;
  top: calc(72px + var(--space-6));
  height: fit-content;
  display: grid;
  gap: var(--space-4);
}

.sidebar-card {
  padding: var(--space-5);
}

.sidebar-title {
  font-size: 1rem;
  margin-bottom: var(--space-4);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-link {
  display: block;
  padding: var(--space-3);
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--text);
  background: var(--card-hover);
}

.sidebar-link[aria-current="page"] {
  color: var(--brand-light);
  background: rgba(59, 130, 246, 0.1);
}

/* ========== MOBILE STICKY CTA ========== */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  .sticky-cta .btn {
    flex: 1;
  }

  body {
    padding-bottom: 72px;
  }
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-4);
  background: var(--brand);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-brand { color: var(--brand-light); }
.text-accent { color: var(--accent-light); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.hidden { display: none !important; }

.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;
}

/* Honeypot (for forms) */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ========== CERTIFICATIONS STRIP ========== */
.cert-strip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  padding: var(--space-3) 0;
}

.cert-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cert-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-light);
}

.cert-chip svg {
  width: 16px;
  height: 16px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.4s ease forwards;
}

/* ========== COOKIE BANNER ========== */
.cb-wrap {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: none;
}
.cb {
  margin: 12px auto;
  max-width: 1200px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #2a3347;
  background: #0f141f;
  color: #e8ecf3;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.cb h4 { margin: 0 0 8px; font-size: 1.1rem; }
.cb p { margin: 0 0 12px; color: #c7cfdd; line-height: 1.4; }
.cb .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cb .btn { padding: 10px 16px; font-size: 0.95rem; }

.cp-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  z-index: 10000;
}
.cp {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(700px,95%);
  max-height: 90vh;
  overflow-y: auto;
  background: #0f141f;
  border: 1px solid #2a3347;
  border-radius: 12px;
  padding: 20px;
  display: none;
  z-index: 10001;
}
.cp h3 { margin: 4px 0 12px; font-size: 1.3rem; }
.cp .row { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 640px) { .cp .row { grid-template-columns: 1fr 1fr; } }
.cp .opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid #2a3347;
  border-radius: 10px;
  background: #101726;
  cursor: pointer;
}
.cp .opt input { margin-top: 3px; cursor: pointer; }
.cp .opt div { flex: 1; }
.cp .footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a3347;
}

/* ========== CALLBACK WIDGET ========== */
.callback-widget {
  position: fixed;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 90px);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.callback-fab {
  border: 1px solid #2a3347;
  background: #0f141f;
  color: #e8ecf3;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.callback-fab:hover { background: #121a28; }
.callback-dismiss {
  border: none;
  background: #1b2232;
  color: #c7cfdd;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.callback-panel {
  width: min(360px, 92vw);
  background: #0f141f;
  border: 1px solid #2a3347;
  border-radius: 12px;
  padding: 14px;
  display: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.callback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.callback-close {
  border: none;
  background: transparent;
  color: #c7cfdd;
  font-size: 22px;
  cursor: pointer;
}
.callback-panel .field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.callback-panel input,
.callback-panel textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a3347;
  background: #0b111d;
  color: #e8ecf3;
}
.callback-panel textarea { resize: vertical; }
.callback-panel .consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 6px 0 12px;
}
.callback-actions { display: flex; justify-content: flex-end; }
.callback-status { margin-top: 8px; font-size: 0.9rem; }
.callback-status.ok { color: #93c5fd; }
.callback-status.error { color: #fca5a5; }
.hp-field { position: absolute; left: -9999px; }

@media (max-width: 640px) {
  .callback-widget { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 110px); }
  .callback-fab { padding: 10px 14px; font-size: 0.95rem; }
}

@media print {
  .cb-wrap,
  .cp-mask,
  .cp,
  .callback-widget {
    display: none !important;
  }
}
