/* ============================================================
   MASBETT TECHNOLOGIES — Redesign v2
   Clean, bright, image-forward. Montserrat throughout.
   ============================================================ */

:root {
  --ink:        #0B1E28;
  --teal:       #0F4C5C;
  --teal-2:     #146679;
  --mint:       #2FE28A;
  --mint-2:     #16B96C;
  --mint-soft:  #E7FBF1;
  --bg:         #FFFFFF;
  --bg-soft:    #F4F9F8;
  --bg-soft-2:  #EDF6F3;
  --line:       #E4EDEA;
  --muted:      #5E7278;
  --amber:      #F5A524;

  --font: 'Montserrat', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(11,30,40,.06);
  --shadow-md: 0 12px 32px rgba(11,30,40,.10);
  --shadow-lg: 0 28px 60px rgba(11,30,40,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { color: var(--muted); }
a { color: var(--teal-2); text-decoration: none; }
a:hover { color: var(--mint-2); }

.text-mint { color: var(--mint-2) !important; }
.text-teal { color: var(--teal) !important; }
.text-white-soft { color: rgba(255,255,255,.82) !important; }
.bg-teal { background: var(--teal) !important; }
.bg-ink { background: var(--ink) !important; }
.bg-mint-soft { background: var(--mint-soft) !important; }
.bg-soft { background: var(--bg-soft) !important; }
.bg-alt { background: var(--bg-soft) !important; }
.text-muted-c { color: var(--muted) !important; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--mint-2);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--font);
  font-weight: 700;
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  border: 1.5px solid transparent;
  font-size: .95rem;
}
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--mint-2); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-teal { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline-teal:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-outline-mint { border-color: var(--mint-2); color: var(--mint-2); background: transparent; }
.btn-outline-mint:hover { background: var(--mint-soft); color: var(--mint-2); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: .85rem; }
.btn-wa { background: #25D366; color: #06341c; }
.btn-wa:hover { background: #1EBE5A; color: #06341c; transform: translateY(-2px); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--mint-2); border-radius: 2px; }

/* ---------------- Navbar ---------------- */
.mbt-navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
  transition: box-shadow .2s ease, padding .2s ease;
}
.mbt-navbar.scrolled { box-shadow: var(--shadow-sm); }
.mbt-navbar .navbar-brand { padding: 0; }
.mbt-navbar .navbar-brand img { height: 76px; width: auto; }
@media (max-width: 991px) {
  .mbt-navbar .navbar-brand img { height: 58px; }
}
.mbt-navbar .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
  padding: 0.5rem 1rem !important;
}
.mbt-navbar .nav-link:hover, .mbt-navbar .nav-link.active { color: var(--mint-2); }

/* Mega dropdown for Services */
.mega-dropdown { position: static; }
.mega-menu {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  margin-top: 0.75rem !important;
  width: 100%;
  left: 0;
  right: 0;
}
@media (min-width: 992px) {
  .mega-menu { width: 780px; left: 50%; transform: translateX(-50%); }
}
.mega-menu .mega-col a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.88rem;
}
.mega-menu .mega-col a:hover { background: var(--mint-soft); color: var(--mint-2); }
.mega-menu .mega-col a i { color: var(--mint-2); font-size: 1rem; flex: none; }
.mega-menu .mega-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile services accordion inside collapsed navbar */
.mobile-services-list { display: none; }
@media (max-width: 991px) {
  .mega-menu { display: none !important; }
  .mobile-services-list.show { display: block; }
  .mobile-services-list a { display: block; padding: 0.5rem 0; color: var(--teal); font-weight: 600; font-size: 0.92rem; }
}

/* ---------------- Hero Slider ---------------- */
.hero-slider { position: relative; height: 640px; overflow: hidden; }
@media (max-width: 767px) { .hero-slider { height: 560px; } }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,30,40,.92) 0%, rgba(11,30,40,.72) 42%, rgba(11,30,40,.35) 75%, rgba(11,30,40,.15) 100%);
}
.hero-slide-content { position: relative; z-index: 2; color: #fff; }
.hero-slide h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.1; }
.hero-slide p.lead-text { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 540px; }

.hero-dots { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button {
  width: 34px; height: 4px; border-radius: 3px; border: none; background: rgba(255,255,255,.35); padding: 0; cursor: pointer;
  transition: background .2s ease;
}
.hero-dots button.active { background: var(--mint); }

.hero-stats-float {
  position: relative; z-index: 3;
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 2rem;
  margin-top: -70px;
}
.hero-stats-float .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.hero-stats-float .stat-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------------- Sections ---------------- */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.7rem; }
.section-sub { color: var(--muted); max-width: 620px; }

/* Banner (used on interior pages: shop, about, contact) */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: #fff;
}
.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,30,40,.85), rgba(11,30,40,.72));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; }
.page-banner p { color: rgba(255,255,255,.82); }

/* ---------------- Service cards (image-forward) ---------------- */
.service-card-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card-img:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card-img:hover img { transform: scale(1.07); }
.service-card-img .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,30,40,0) 30%, rgba(11,30,40,.92) 100%);
}
.service-card-img .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; color: #fff; }
.service-card-img .icon-chip {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--mint); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 0.7rem;
}
.service-card-img h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.3rem; }
.service-card-img .card-link { font-size: 0.82rem; font-weight: 700; color: var(--mint); display: inline-flex; align-items: center; gap: .3rem; }

.card-clean { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.icon-box {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--mint-soft); color: var(--mint-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}

/* ---------------- Steps ---------------- */
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--mint);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; flex: none;
}

/* ---------------- Product cards ---------------- */
.product-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 100%; transition: box-shadow .18s ease, transform .18s ease; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card .thumb { aspect-ratio: 4/3; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.product-card .cat-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--mint-2); letter-spacing: .06em; }
.product-card h3 { font-size: 1rem; margin: 0.3rem 0 0.5rem; font-weight: 700; }
.product-card .sku { color: var(--muted); font-size: 0.78rem; }
.price-hidden-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: 0.78rem; color: var(--teal-2); font-weight: 700; background: var(--bg-soft); border-radius: 20px; padding: 0.25rem 0.7rem; }

/* ---------------- Quote basket table ---------------- */
.basket-table th { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--line); }
.basket-table td { vertical-align: middle; border-bottom: 1px solid var(--line); }
.qty-input { width: 70px; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink), var(--teal-2));
  color: #fff; border-radius: var(--radius-lg); padding: 3.2rem; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }

/* ---------------- Footer ---------------- */
.mbt-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; }
.mbt-footer img.footer-logo { height: 70px; }
.mbt-footer h5 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1.1rem; font-weight: 700; }
.mbt-footer a { color: rgba(255,255,255,.68); }
.mbt-footer a:hover { color: var(--mint); }
.mbt-footer ul { list-style: none; padding: 0; }
.mbt-footer li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.mbt-footer .social-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; margin-right: 0.5rem; }
.mbt-footer .social-icon:hover { border-color: var(--mint); background: rgba(47,226,138,.1); }
.mbt-footer .bottom-bar { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.82rem; }

/* ---------------- WhatsApp floating button ---------------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 1040;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------------- Forms ---------------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: 0.7rem 0.95rem; font-family: var(--font); }
.form-control:focus, .form-select:focus { border-color: var(--mint-2); box-shadow: 0 0 0 3px rgba(47,226,138,.18); }
.form-label { font-weight: 700; font-size: 0.88rem; color: var(--teal); }

/* ---------------- Badges / status ---------------- */
.badge-status { font-size: 0.72rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.badge-new { background: #EAF1FE; color: #2456C7; }
.badge-reviewed { background: #FBF0DA; color: #A6720F; }
.badge-quoted { background: var(--mint-soft); color: var(--mint-2); }
.badge-payment_pending { background: #FCE9D9; color: #C1590C; }
.badge-paid { background: #DFFBEB; color: #0F9D58; }
.badge-completed { background: #E5E9F5; color: var(--ink); }
.badge-cancelled { background: #FAE1E1; color: #B02A2A; }

/* ---------------- Admin shell ---------------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-soft); }
.admin-sidebar { width: 250px; flex: none; background: var(--ink); color: #fff; min-height: 100vh; position: sticky; top: 0; align-self: flex-start; }
.admin-sidebar .brand { padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .brand img { height: 52px; }
.admin-sidebar nav { padding: 1rem 0.7rem; }
.admin-sidebar a.nav-link { color: rgba(255,255,255,.72); border-radius: 8px; padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.65rem; }
.admin-sidebar a.nav-link i { width: 18px; text-align: center; }
.admin-sidebar a.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar a.nav-link.active { background: var(--mint); color: var(--ink); font-weight: 700; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.9rem 1.6rem; display: flex; align-items: center; justify-content: space-between; }
.admin-content { padding: 1.8rem; }
.stat-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.stat-card .stat-num { font-size: 1.9rem; font-weight: 800; }
.stat-card .stat-lbl { color: var(--muted); font-size: 0.85rem; }
.table-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.table-card table { margin-bottom: 0; }
.table-card thead th { background: var(--bg-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 0; font-weight: 700; }
.table-card td, .table-card th { padding: 0.85rem 1.1rem; vertical-align: middle; }

@media (max-width: 991px) {
  .admin-sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .2s ease; height: 100%; }
  .admin-sidebar.open { left: 0; }
}

/* ---------------- Utility ---------------- */
.pill { border-radius: 20px; }
.divider-y { border-top: 1px solid var(--line); }
.rounded-img { border-radius: var(--radius-lg); overflow: hidden; }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
