/* ==========================================================================
   Malizia Sign — 2026 Design System
   Fixed and optimized layout (Modern, Glassmorphism, Premium Aesthetics)
   ========================================================================== */

:root {
  --ms-primary: #0a4d9c; /* deep professional blue */
  --ms-accent: #00d2ff;  /* vibrant cyan accent */
  --ms-bg: #f8fbff;
  --ms-paper: #ffffff;
  --ms-text: #1a202c;
  --ms-text-muted: #4a5568;
  --ms-border: rgba(0, 0, 0, 0.05);
  --ms-radius: 12px;
  --ms-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --ms-shadow-hover: 0 20px 40px rgba(0, 100, 255, 0.1);
  --ms-glass-bg: rgba(255, 255, 255, 0.85);
  --ms-glass-border: rgba(255, 255, 255, 0.3);
}

[data-ms-theme="dark"] {
  --ms-bg: #0b0f19;
  --ms-paper: #111827;
  --ms-text: #f3f4f6;
  --ms-text-muted: #9ca3af;
  --ms-border: rgba(255, 255, 255, 0.05);
  --ms-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --ms-shadow-hover: 0 20px 40px rgba(0, 210, 255, 0.15);
  --ms-glass-bg: rgba(17, 24, 39, 0.85);
  --ms-glass-border: rgba(255, 255, 255, 0.08);
}

body {
  background-color: var(--ms-bg);
  color: var(--ms-text);
  font-family: 'Inter', 'Outfit', sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Base structural elements */
.ms-wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.ms-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ms-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.ms-section-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

/* Grids and Layouts */
.ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
}

.ms-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

/* Component: Cards (Glassmorphism & Premium UI) */
.ms-card {
  background: var(--ms-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ms-glass-border);
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow);
  padding: 30px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ms-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ms-shadow-hover);
}

.ms-card img {
  max-width: 100%;
  border-radius: calc(var(--ms-radius) - 4px);
  object-fit: contain;
}

/* Typography */
.ms-section-head {
  text-align: center;
  margin-bottom: 50px;
}

.ms-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ms-accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.ms-stat {
  text-align: center;
  padding: 30px;
  background: var(--ms-paper);
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow);
  border-bottom: 4px solid var(--ms-primary);
}

.ms-stat-num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ms-primary), var(--ms-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 10px;
}

.ms-stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ms-text-muted);
}

/* Buttons */
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 10px;
}

.ms-btn-primary {
  background: linear-gradient(135deg, var(--ms-primary), var(--ms-accent));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

.ms-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 210, 255, 0.4);
}

/* Page Hero */
.ms-page-hero {
  padding: 120px 0 80px;
  background: linear-gradient(to bottom, rgba(10, 77, 156, 0.05), transparent);
  text-align: center;
}

/* Utility / Misc */
.ms-legal-bar {
  background: var(--ms-paper);
  border-top: 1px solid var(--ms-border);
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--ms-text-muted);
  text-align: center;
}

.ms-legal-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.ms-whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ms-whatsapp-fab:hover {
  transform: scale(1.1) rotate(-10deg);
}

/* Theme Toggle */
.ms-theme-toggle {
  background: none;
  border: none;
  color: var(--ms-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.ms-theme-toggle:hover {
  transform: rotate(15deg) scale(1.1);
}

.ms-theme-toggle-fixed {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--ms-paper);
  border: 1px solid var(--ms-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: var(--ms-shadow);
  z-index: 999;
}

.ms-icon-moon, .ms-icon-sun {
  display: block;
}

[data-ms-theme="dark"] .ms-icon-moon { display: none; }
[data-ms-theme="light"] .ms-icon-sun { display: none; }

/* Animations */
@keyframes msFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.ms-reveal {
  animation: msFadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ms-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  }
  .ms-stat-num {
    font-size: 2.2rem;
  }
  .ms-section {
    padding: 50px 0;
  }
  .ms-legal-bar-inner {
    justify-content: center;
    text-align: center;
  }
}
