/* =====================================================================
   VLE SMART THEME — shared design system
   Used by: index.php (landing page), login page, and future dashboard.
   Matches the reference design colors/fonts exactly.
   ===================================================================== */

:root {
  --blue: #063b9c;
  --blue2: #075fe8;
  --orange: #f26b21;
  --ink: #10213f;
  --muted: #64748b;
  --bg: #f6f9ff;
  --line: #e5eaf4;
  --green: #1b9e5a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 59, 156, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  min-height: 44px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(7, 95, 232, .25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(7, 95, 232, .32); }
.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: #eef4ff; }
.btn-orange {
  background: var(--orange);
  color: var(--white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-text b { display: block; font-size: 18px; color: var(--blue); }
.brand-text span { display: block; font-size: 11px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.nav-item { font-weight: 500; color: var(--ink); font-size: 15px; }
.nav-links a.nav-item:hover { color: var(--blue2); }
.nav-actions { display: flex; gap: 10px; }

.menu-toggle {
  display: none;
  background: none; border: none; font-size: 26px; color: var(--blue);
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
  font-weight: 600;
  font-size: 14px;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- Hero ---------- */
.hero { padding: 60px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-block;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 { font-size: 42px; line-height: 1.2; margin: 0 0 16px; color: var(--ink); font-weight: 800; }
.hero h1 span { color: var(--orange); }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.portal-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--line);
}
.portal-card .mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mini-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--line);
}
.mini-card .ico { font-size: 26px; margin-bottom: 6px; }
.mini-card b { font-size: 13px; display: block; }

/* ---------- Services Grid ---------- */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: 30px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.section-title p { color: var(--muted); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 12px;
}
.service-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.service-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Stats / Why Us ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border-radius: 20px;
  color: #fff;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 14px;
}
.stats-bar b { font-size: 30px; display: block; }
.stats-bar span { font-size: 13px; opacity: .9; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.testi-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.testi-name { font-weight: 700; font-size: 14px; }
.testi-role { font-size: 12px; color: var(--muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--orange);
  border-radius: 20px;
  color: #fff;
  padding: 40px;
  text-align: center;
}
.cta-banner h2 { margin: 0 0 10px; font-size: 26px; }
.cta-banner .btn-outline { background: #fff; border-color: #fff; color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 50px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #cbd5e1; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 36px; }
.footer-desc { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.social-row a:hover { background: var(--orange); }

.footer-gallery { display: flex; gap: 16px; overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-gallery-track { display: flex; gap: 30px; animation: gallery-scroll 20s linear infinite; }
.footer-gallery-track img { height: 34px; opacity: .8; filter: grayscale(1) brightness(2); }
@keyframes gallery-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #94a3b8;
}
.footer-bottom a { color: #cbd5e1; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Mobile-first responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px 20px; gap: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 34px 0; }
}
