/* ==========================================================
   MoreTech BMP360 – GLOBAL CORE STYLESHEET
   Role: Foundation ONLY (No Modules)
   Status: FINAL / PRODUCTION LOCK
========================================================== */

/* ==========================================================
   1) DESIGN TOKENS + BRIDGES
========================================================== */
:root {

  /* Brand */
  --mt-brand-primary: #1e6be3;
  --mt-brand-primary-hover: #1559c9;
  --mt-brand-primary-soft: #eef4ff;

  /* Bridge for modules */
  --primary: var(--mt-brand-primary);
  --primary-rgb: 30,107,227;

  /* Text */
  --mt-text-dark: #0a2540;
  --mt-text-muted: #6b7280;
  --mt-text-light: #ffffff;

  /* Surfaces */
  --mt-surface-light: #ffffff;
  --mt-surface-soft: #f8fafc;
  --mt-surface-dark: #020617;

  /* Borders & Shadows */
  --mt-border-color: #e5e7eb;
  --mt-shadow-soft: 0 4px 14px rgba(0,0,0,0.08);
  --mt-shadow-strong: 0 12px 30px rgba(0,0,0,0.12);

  /* Radius */
  --mt-radius-sm: 6px;
  --mt-radius-md: 10px;
  --mt-radius-lg: 16px;
}

/* ==========================================================
   2) RESET
========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mt-text-dark);
  background: var(--mt-surface-light);
}

/* ==========================================================
   3) TYPOGRAPHY (FOUNDATION ONLY)
========================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mt-text-dark);
}

p {
  margin: 0 0 1em;
  color: var(--mt-text-muted);
}

/* ==========================================================
   GLOBAL LINKS (CONTENT ONLY – HEADER SAFE)
========================================================== */
main a,
.section a,
.section-sm a {
  color: var(--mt-brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

main a:hover,
.section a:hover,
.section-sm a:hover {
  color: var(--mt-brand-primary-hover);
}

/* Header safety lock (do NOT style header here) */
.site-header a {
  color: inherit;
}

/* ==========================================================
   RESPONSIVE TYPOGRAPHY (REAL SCREENS)
========================================================== */
@media (max-width: 1440px), (max-height: 900px) {
  body {
    font-size: 15.5px;
  }
}

@media (max-width: 1366px), (max-height: 800px) {
  body {
    font-size: 15px;
  }
}

@media (max-width: 1280px), (max-height: 768px) {
  body {
    font-size: 14.5px;
  }
}

/* ==========================================================
   4) GLOBAL SECTIONS & SPACING (RESPONSIVE)
========================================================== */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* Medium laptops */
@media (max-height: 900px) {
  .section {
    padding: 64px 0;
  }

  .section-sm {
    padding: 40px 0;
  }
}

/* Small laptops */
@media (max-height: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-sm {
    padding: 32px 0;
  }
}

/* ==========================================================
   5) BUTTON BASE (NEUTRAL)
========================================================== */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 26px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--mt-brand-primary);
  border-color: var(--mt-brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--mt-brand-primary-hover);
  border-color: var(--mt-brand-primary-hover);
}

/* ==========================================================
   6) GENERIC UTILITIES
========================================================== */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-muted {
  color: var(--mt-text-muted) !important;
}

.text-center {
  text-align: center;
}

/* ==========================================================
   7) GENERIC CARD BASE (OPTIONAL)
========================================================== */
.card-base {
  background: var(--mt-surface-light);
  border: 1px solid var(--mt-border-color);
  border-radius: var(--mt-radius-lg);
  box-shadow: var(--mt-shadow-soft);
}

/* ==========================================================
   FOOTER – ENTERPRISE PLATFORM EDITION
   Scope:
   - BMP 360
   - MoreTech AI
   - SaaS / Platform Identity
========================================================== */

.site-footer {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--mt-surface-dark),
    #020617
  );
  color: #cbd5f5;
  padding: 72px 0 36px;
  overflow: hidden;
}

/* subtle top divider glow */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 140px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--mt-brand-primary),
    transparent
  );
  transform: translateX(-50%);
  opacity: 0.6;
}

/* ==========================================================
   HEADINGS
========================================================== */

.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================
   BODY TEXT
========================================================== */

.site-footer p,
.site-footer span,
.site-footer li {
  color: #cbd5f5;
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-muted {
  color: #94a3b8;
}

/* ==========================================================
   LINKS
========================================================== */

.footer-links {
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a,
.site-footer a {
  color: #cbd5f5;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--mt-brand-primary);
  transform: translateX(2px);
}

/* ==========================================================
   PLATFORM LINKS (BMP / AI)
========================================================== */

.footer-links a[href*="bmp"],
.footer-links a[href*="ai"] {
  font-weight: 600;
}

/* ==========================================================
   MAP CONTAINER
========================================================== */

.footer-map {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================
   WHATSAPP BUTTON
========================================================== */

.site-footer .btn-success {
  background: linear-gradient(
    135deg,
    #22c55e,
    #16a34a
  );
  border: none;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.site-footer .btn-success:hover {
  opacity: 0.9;
}

/* ==========================================================
   FOOTER DIVIDER
========================================================== */

.footer-line {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
}

/* ==========================================================
   FOOTER BOTTOM
========================================================== */

.site-footer .footer-bottom {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .site-footer {
    padding: 56px 0 28px;
  }

  .footer-links a {
    font-size: 0.88rem;
  }
}
/* ==========================================================
   GLOBAL PAGE LOADER (ENTERPRISE)
========================================================== */

#page-loader {
  position: fixed;
  inset: 0;
  background: #020617; /* mt-surface-dark */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin-bottom: 18px;
}

.loader-line {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #2563eb,
    transparent
  );
  animation: loaderMove 1.2s infinite;
}

@keyframes loaderMove {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
