/* ============================================
   IMS by LBS logics – Malta Website
   Design System & Global Styles
   Domain: lbs-logics.mt
   ============================================ */

/* --- CSS Variables (from 2026 Relaunch concept) --- */
:root {
  --blue: #2e4057;
  --blue-light: #3d5a80;
  --blue-pale: #e8eef4;
  --blue-ghost: #f4f7fa;
  --green: #80bb27;
  --green-dark: #6a9e1e;
  --green-muted: #a8d45a;
  --green-pale: #f0f7e4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --max-width: 1140px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  color: var(--blue);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.3px;
}
h1 { font-size: 2.75rem; letter-spacing: -0.5px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: var(--gray-600); line-height: 1.8; }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--gray-500); }

/* --- Header / Navigation --- */
.site-header {
  background: var(--blue);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}
.site-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.site-logo img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav li { position: relative; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.main-nav a:hover { color: white; background: rgba(255,255,255,0.1); }
.main-nav .has-dropdown > a::after { content: ' \25BE'; font-size: 10px; opacity: 0.6; }
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px;
  z-index: 200;
  border: 1px solid var(--gray-200);
}
.main-nav li:hover .dropdown { display: block; }
.main-nav .dropdown a {
  color: var(--gray-700);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.main-nav .dropdown a:hover { background: var(--blue-pale); color: var(--blue); }
.main-nav .dropdown .dd-icon { font-size: 18px; width: 26px; text-align: center; }

.nav-cta {
  background: var(--green) !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green-dark) !important; color: white !important; }

/* Mobile Nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--blue);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:hover { color: white; }
.mobile-nav .mobile-cta {
  display: inline-block;
  background: var(--green);
  color: var(--blue);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

/* --- Hero Sections --- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(128,187,39,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 { color: white; margin-bottom: 20px; max-width: 650px; }
.hero .lead { color: rgba(255,255,255,0.8); max-width: 560px; margin-bottom: 32px; }
.hero-content { position: relative; z-index: 1; }

.hero-sm {
  padding: 50px 0 55px;
}
.hero-sm h1 { font-size: 2.2rem; margin-bottom: 12px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--blue);
}
.btn-primary:hover { background: var(--green-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--blue); }
.btn-white {
  background: white;
  color: var(--blue);
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Sections --- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-blue {
  background: var(--blue);
  color: white;
}
.section-blue h2, .section-blue h3 { color: white; }
.section-blue p { color: rgba(255,255,255,0.8); }
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-500); font-size: 1.15rem; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 10px;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-600); font-size: 17px; }
.card-icon {
  width: 48px; height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--green-dark);
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- Feature List --- */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 17px;
  color: var(--gray-600);
}
.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

/* --- Industry Cards (Homepage) --- */
.industry-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.industry-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--green); }
.industry-card .icon { font-size: 48px; margin-bottom: 16px; }
.industry-card h3 { margin-bottom: 10px; }
.industry-card p { color: var(--gray-500); font-size: 16px; margin-bottom: 20px; }

/* --- USP Blocks --- */
.usp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.usp-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--green-dark);
}
.usp-text h4 { margin-bottom: 4px; font-size: 1rem; }
.usp-text p { font-size: 16px; color: var(--gray-500); margin-bottom: 0; }

/* --- Before/After --- */
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.before-box, .after-box {
  padding: 32px;
  border-radius: var(--radius-lg);
}
.before-box { background: #fef2f2; border: 1px solid #fecaca; }
.before-box h3 { color: #dc2626; }
.after-box { background: var(--green-pale); border: 1px solid #c6e48b; }
.after-box h3 { color: var(--green-dark); }
.arrow-divider { font-size: 32px; color: var(--gray-400); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* --- Footer --- */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--green); }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-about .app-badges { display: flex; gap: 10px; margin-top: 12px; }
.footer-about .app-badges img { height: 36px; }
.footer-bottom {
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--green); }

/* --- Contact Info Block --- */
.contact-block {
  background: var(--blue-ghost);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
}
.contact-block h4 { margin-bottom: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
}
.contact-item .icon { font-size: 16px; color: var(--green); width: 24px; text-align: center; }

/* --- Malta Badge --- */
.malta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(128,187,39,0.1);
  border: 1px solid rgba(128,187,39,0.2);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* --- Module Detail Page --- */
.module-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.module-feature {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.module-feature h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.module-feature p { font-size: 16px; color: var(--gray-500); margin-bottom: 0; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 6px; }

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 50px 0 60px; }
  .section { padding: 50px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .module-features { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .arrow-divider { transform: rotate(90deg); text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .cta-banner { padding: 32px 20px; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 44px; }
  .card { padding: 20px; }
  .industry-card { padding: 24px 20px; }
}
