/* ============================================
   MB Solutions — main stylesheet
   ============================================ */

:root {
  --navy: #0b1530;
  --navy-2: #101d42;
  --indigo: #4f46e5;
  --indigo-dark: #3b34c4;
  --violet: #7c6cff;
  --ink: #1c2438;
  --muted: #5b6478;
  --line: #e5e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 29, 66, 0.08);
  --shadow-lg: 0 18px 45px rgba(16, 29, 66, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline-dark {
  border-color: var(--indigo);
  color: var(--indigo);
}
.btn-outline-dark:hover { background: var(--indigo); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
}
.brand .brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.brand span em {
  font-style: normal;
  color: var(--indigo);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--indigo);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--indigo); }
.main-nav .btn { margin-left: 8px; }
.main-nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(124, 108, 255, 0.35), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(79, 70, 229, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 96px 0 104px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.18);
  border: 1px solid rgba(124, 108, 255, 0.45);
  color: #cdc6ff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #a5b4fc, #7c6cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: #b9c1d9;
  font-size: 17.5px;
}
.hero .hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(124, 108, 255, 0.3), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.page-hero p { color: #b9c1d9; margin-top: 10px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-head .eyebrow {
  color: var(--indigo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 108, 255, 0.18));
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--indigo); }
.card h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- Steps ---------- */
.step {
  text-align: center;
  padding: 10px 14px;
}
.step .step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.step h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Feature list (why us) ---------- */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature .tick {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.feature .tick svg { width: 16px; height: 16px; stroke: var(--indigo); }
.feature h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split .section-head { text-align: left; margin: 0 0 26px; }
.feature-stack { display: grid; gap: 26px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(124, 108, 255, 0.35), transparent 60%),
    linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  border-radius: 20px;
  color: var(--white);
  text-align: center;
  padding: 58px 34px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.cta-band p { color: #dcd8ff; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-white {
  background: var(--white);
  color: var(--indigo);
}
.cta-band .btn-white:hover { transform: translateY(-2px); }

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row .icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 108, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row .icon svg { width: 34px; height: 34px; stroke: var(--indigo); }
.service-row h3 { color: var(--navy); font-size: 21px; margin-bottom: 8px; }
.service-row p { color: var(--muted); }
.service-row ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}
.service-row ul li { margin-bottom: 5px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.contact-card {
  text-align: center;
  padding: 38px 26px;
}
.contact-card .icon { margin: 0 auto 18px; }
.contact-card a { font-weight: 600; }
.contact-card .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 520px;
  margin: 0 auto;
}
.hours-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.hours-table td:last-child { text-align: right; color: var(--ink); font-weight: 500; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 {
  color: var(--navy);
  font-size: 22px;
  margin: 38px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; color: var(--muted); margin-bottom: 14px; }
.legal-content ul li { margin-bottom: 7px; }
.legal-content .updated {
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--indigo);
  padding-left: 14px;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #aab3cd;
  padding: 64px 0 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer .brand { color: var(--white); margin-bottom: 16px; font-size: 19px; }
.site-footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #aab3cd; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact svg {
  width: 18px;
  height: 18px;
  stroke: var(--violet);
  flex: 0 0 auto;
  margin-top: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 22px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; }
  .main-nav .btn { margin: 12px 0 0; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 64px 0; }
  .service-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
