/* =========================================================
   ShopJobs.lk  —  Design tokens
   Palette pulled from the brand logo:
     --navy   : #0b2c4d  (bag / text mark)
     --navy-d : #071c33  (deep navy, headers, footer)
     --orange : #f26501  (magnifier / tag accent, CTAs)
     --orange-l: #ff9142 (hover / gradients)
     --paper  : #f6f7f9  (page background)
   Type: "Poppins" for display/headings (bold geometric, matches the
   chunky logotype), "Inter" for body/UI text.
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0b2c4d;
  --navy-d: #071c33;
  --navy-soft: #13385f;
  --orange: #f26501;
  --orange-l: #ff9142;
  --paper: #f6f7f9;
  --white: #ffffff;
  --ink: #14212f;
  --muted: #6b7785;
  --border: #e4e8ee;
  --success: #1e9e63;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(11,44,77,0.08);
  --shadow-lg: 0 16px 40px rgba(11,44,77,0.14);
}

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for mobile tab bar */
}

h1, h2, h3, h4, .display {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy-d);
  margin: 0 0 8px;
}

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

.container {
  max-width: 1180px;
  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: 14.5px;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(242,101,1,0.28); }
.btn-primary:hover { background: var(--orange-l); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-call { background: var(--navy); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background:#e5484d; color:#fff; }
.btn-ghost { background: #eef1f5; color: var(--navy); }

/* ---------------- Top bar / header ---------------- */
.topbar {
  background: var(--navy-d);
  color: #cfe0f2;
  font-size: 12.5px;
  padding: 6px 0;
  display: none;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #cfe0f2; }

header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: none; }

nav.main-nav { display: none; gap: 26px; align-items: center; }
nav.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-d);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.hamburger {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--navy-d); position: relative; transition: .2s;
}
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy-d);
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  color: #fff;
  padding: 40px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(242,101,1,0.35) 0%, rgba(242,101,1,0) 70%);
}
.hero h1 {
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
  max-width: 560px;
}
.hero h1 span { color: var(--orange-l); }
.hero p.sub { color: #c8d6e5; font-size: 15px; max-width: 520px; margin-bottom: 22px; }

.hero-stats { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats div { }
.hero-stats b { font-family: 'Poppins'; font-size: 20px; display: block; color: #fff; }
.hero-stats span { font-size: 12.5px; color: #a9bdd2; }

/* ---------------- Search / Filter card ---------------- */
.search-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  margin-top: -46px;
  position: relative;
  z-index: 5;
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 6px;
}
.field select, .field input[type=text], .field input[type=search] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  background: #fbfcfd;
  color: var(--ink);
}
.field select:focus, .field input:focus { outline: 2px solid var(--orange); border-color: var(--orange); }

/* ---------------- Category chips ---------------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.chip.active, .chip:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------------- Section titles ---------------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; }
.section-head a { color: var(--orange); font-weight: 600; font-size: 13.5px; }

/* ---------------- Job cards ---------------- */
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.job-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.job-card .tag-notch {
  position: absolute; top: 14px; left: -2px;
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 12px 4px 16px;
  border-radius: 0 6px 6px 0;
  text-transform: uppercase;
}
.job-card .thumb {
  width: 100%; height: 150px; object-fit: cover; background: #eef1f5;
}
.job-card .thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#eef2f7,#e3e9f0);
  color: var(--navy-soft); font-family: 'Poppins'; font-weight: 700; font-size: 26px;
}
.job-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.job-card .cat { font-size: 11.5px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .03em; }
.job-card h3 { font-size: 16.5px; margin: 0; }
.job-card .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.job-card .positions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.pos-pill {
  font-size: 11.5px; background: #eef3f8; color: var(--navy);
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.pos-pill.female { background: #fde8ee; color: #c23367; }
.pos-pill.male { background: #e6f0fb; color: #1a5aa8; }
.job-card .footer-row { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.job-card .footer-row .btn { flex: 1; padding: 10px; font-size: 13px; }
.job-card .posted { font-size: 11.5px; color: var(--muted); margin-left: auto; }

/* ---------------- Category grid (home) ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-d);
}
.cat-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-l));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 20px; font-family: 'Poppins';
}

/* ---------------- Forms / cards (auth, dashboard) ---------------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr; }
label { font-size: 13px; font-weight: 600; color: var(--navy-d); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-size: 14.5px;
  font-family: inherit;
  background: #fbfcfd;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,101,1,0.12); }
.radio-row { display: flex; gap: 18px; align-items: center; padding-top: 6px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.radio-row input { width: auto; }
.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.auth-wrap { max-width: 460px; margin: 40px auto; padding: 0 16px; }
.auth-wrap .logo-top { text-align: center; margin-bottom: 20px; }
.auth-wrap .logo-top img { height: 54px; margin: 0 auto; }
.switch-link { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.switch-link a { color: var(--orange); font-weight: 700; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e7f8ef; color: #1a7a4c; border: 1px solid #b8e8ce; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f6c6c4; }
.alert-info { background: #eaf2fc; color: #17518f; border: 1px solid #c6dcf6; }

.position-block {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}

/* ---------------- Job detail ---------------- */
.job-detail-head {
  background: var(--navy-d);
  color: #fff;
  padding: 26px 0 60px;
}
.job-detail-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: -42px;
  padding: 22px;
}
.shop-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eef3f8; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
}
.contact-bar { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.contact-bar .btn { flex: 1; min-width: 140px; }
.detail-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.detail-list li { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.detail-list li b { color: var(--navy-d); }

/* ---------------- Dashboard table ---------------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data-table th, table.data-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table th { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.status-pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.status-pill.active { background: #e7f8ef; color: #1a7a4c; }
.status-pill.pending { background: #fff5e6; color: #b06a00; }
.status-pill.closed, .status-pill.blocked { background: #fdecec; color: #b3261e; }

.dash-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat-box b { font-family: 'Poppins'; font-size: 24px; color: var(--navy-d); display: block; }
.stat-box span { font-size: 12.5px; color: var(--muted); }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--navy-d);
  color: #b9c9d9;
  padding: 40px 0 24px;
  margin-top: 40px;
}
footer.site-footer h4 { color: #fff; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-grid a { display: block; color: #b9c9d9; font-size: 13.5px; padding: 5px 0; }
.footer-grid a:hover { color: var(--orange-l); }
.footer-bottom { text-align: center; font-size: 12.5px; color: #7d90a3; margin-top: 26px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; }

/* ---------------- Mobile bottom tab bar (app-like) ---------------- */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 60;
  box-shadow: 0 -6px 18px rgba(11,44,77,0.08);
}
.tab-bar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.tab-bar a.active { color: var(--orange); }
.tab-bar a svg { width: 22px; height: 22px; }
.tab-bar a.post-btn {
  color: #fff;
}
.tab-bar a.post-btn .fab {
  width: 46px; height: 46px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: -20px;
  box-shadow: 0 8px 16px rgba(242,101,1,0.4);
  border: 4px solid #fff;
}

/* ================= Responsive breakpoints ================= */
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .position-block { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 900px) {
  .topbar { display: block; }
  .brand-text { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 19px; color: var(--navy-d); }
  nav.main-nav { display: flex; }
  .hamburger { display: none; }
  .tab-bar { display: none; }
  body { padding-bottom: 0; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .job-grid { grid-template-columns: repeat(3, 1fr); }
  .search-grid { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 36px; }
}

@media (min-width: 1100px) {
  .job-grid { grid-template-columns: repeat(4, 1fr); }
}
