/* =====================================================================
   MeraBazaarHe - Premium Light Theme
   Layered on top of Bootstrap 5. Brand: warm market emerald.
   ===================================================================== */

:root {
  --brand:        #0e7c66;   /* deep market emerald */
  --brand-dark:   #0a5e4d;
  --brand-light:  #e6f4f0;
  --accent:       #f4a623;   /* warm marigold accent */
  --accent-dark:  #d98a0a;
  --ink:          #1a2421;   /* near-black green-grey text */
  --ink-soft:     #5b6b66;
  --line:         #e7ece9;
  --bg:           #f7f9f8;
  --card:         #ffffff;
  --danger:       #d64545;
  --success:      #2e9e6b;
  --radius:       14px;
  --radius-sm:    10px;
  --shadow-sm:    0 1px 2px rgba(16,40,34,.05), 0 1px 3px rgba(16,40,34,.06);
  --shadow-md:    0 4px 14px rgba(16,40,34,.08);
  --shadow-lg:    0 12px 32px rgba(16,40,34,.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-dark);
  color: #cfeae2;
  font-size: 13px;
  padding: 7px 0;
}
.topbar a { color: #eafaf4; }

/* ---------- Navbar ---------- */
.navbar.mbh-nav {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
}
.mbh-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--brand) !important;
  letter-spacing: -0.02em;
}
.mbh-brand span { color: var(--accent); }

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.search-wrap input {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px 11px 44px;
  width: 100%;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light);
}
.search-wrap .ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--brand);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 600;
  transition: background .15s, transform .1s;
}
.btn-brand:hover { background: var(--brand-dark); color:#fff; transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  border: none; color: var(--ink);
  border-radius: 999px; padding: 11px 24px; font-weight: 700;
}
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); }

.btn-ghost {
  background: transparent; border: 1.5px solid var(--line);
  color: var(--ink); border-radius: 999px; padding: 10px 22px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(244,166,35,.10) 0%, transparent 45%),
    radial-gradient(100% 120% at 0% 100%, rgba(14,124,102,.10) 0%, transparent 50%),
    var(--card);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; margin-bottom: 18px; }
.hero .lead { color: var(--ink-soft); font-size: 18px; max-width: 540px; }
.hero .eyebrow {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}

/* ---------- Module grid ---------- */
.section-title { font-size: 28px; margin-bottom: 4px; }
.section-sub { color: var(--ink-soft); margin-bottom: 28px; }

.module-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.module-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--brand-light); color: var(--brand);
  font-size: 26px;
}
.module-card:nth-child(3n+2) .module-icon { background: #fdf1dc; color: var(--accent-dark); }
.module-card .m-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.module-card .m-kind { font-size: 12px; color: var(--ink-soft); margin-top: 2px; text-transform: capitalize; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: grid; place-items: center;
  padding: 40px 16px;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(14,124,102,.08), transparent 55%),
    var(--bg);
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px;
  padding: 38px 34px;
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.auth-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  color: var(--brand); text-align: center; display:block; margin-bottom: 22px;
}
.auth-logo span { color: var(--accent); }

.form-label { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light);
}
.auth-card .btn-brand { width: 100%; padding: 13px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 20px; }

/* OTP inputs */
.otp-grid { display: flex; gap: 10px; justify-content: center; margin: 8px 0 6px; }
.otp-grid input {
  width: 52px; height: 60px; text-align: center;
  font-size: 24px; font-weight: 700; font-family: var(--font-display);
  border: 1.5px solid var(--line); border-radius: 12px;
}
.otp-grid input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }

/* ---------- Alerts ---------- */
.mbh-alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 14px; margin-bottom: 18px;
  border: 1px solid transparent;
}
.mbh-alert.err { background: #fdeaea; color: #9b2c2c; border-color: #f5c6c6; }
.mbh-alert.ok  { background: #e8f6ef; color: #1b6e49; border-color: #bfe6d2; }

/* ---------- Footer ---------- */
.mbh-footer {
  background: var(--ink);
  color: #b9c7c2;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.mbh-footer h5 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.mbh-footer a { color: #b9c7c2; font-size: 14px; display: block; margin-bottom: 9px; }
.mbh-footer a:hover { color: #fff; }
.mbh-footer .brand { font-family: var(--font-display); font-size: 24px; color: #fff; font-weight: 700; }
.mbh-footer .brand span { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #8a9893; }

/* ---------- Reveal animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px);} to {opacity:1; transform:none;} }
.reveal { animation: rise .5s ease both; }
.reveal:nth-child(2){animation-delay:.05s}
.reveal:nth-child(3){animation-delay:.1s}
.reveal:nth-child(4){animation-delay:.15s}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { padding: 40px 0 36px; }
  .search-wrap { max-width: 100%; }
}
