/* ===== DWW — Daily Wage Workers CSS — Mobile First ===== */
:root {
  --blue: #1B3C8C;
  --blue-dark: #122970;
  --blue-mid: #2550B8;
  --blue-light: #EBF0FB;
  --yellow: #F5A623;
  --yellow-dark: #D4880A;
  --yellow-light: #FFF8EC;
  --dark: #0F1F4A;
  --gray-900: #2D2D2D;
  --gray-700: #555;
  --gray-400: #999;
  --gray-100: #F4F6FA;
  --white: #FFFFFF;
  --green: #1E7D34;
  --red: #C62828;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(27,60,140,0.10);
  --shadow-md: 0 4px 28px rgba(27,60,140,0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: 'Sora', sans-serif; line-height: 1.25; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); }
img { max-width: 100%; border-radius: var(--radius); }

/* ===== LOGO BAR (top centered brand strip) ===== */
.logo-bar {
  background: #0a1a4a;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 3px solid var(--yellow);
}
.logo-bar-inner {
  display: inline-block;
  text-decoration: none;
}
.logo-bar img {
  height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  display: block;
  margin: 0 auto;
  filter: none;
  transition: opacity 0.2s;
}
.logo-bar img:hover { opacity: 0.85; }

/* ===== NAVBAR (links bar below logo) ===== */
.navbar {
  background: var(--blue);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(27,60,140,0.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center;
  justify-content: center;
  height: 52px;
  gap: 4px;
}
.nav-toggle {
  background: none; border: 2px solid rgba(255,255,255,0.3);
  font-size: 0.9rem; cursor: pointer;
  display: block; color: var(--white);
  padding: 6px 14px; border-radius: 8px;
  font-weight: 600; letter-spacing: 0.5px;
}
.nav-links {
  display: none;
  position: absolute; top: 52px; left: 0; right: 0;
  background: var(--blue-dark);
  padding: 12px 16px;
  flex-direction: column; gap: 4px;
  z-index: 99;
}
.nav-links.open { display: flex; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
  display: block; text-decoration: none;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--yellow);
  background: rgba(255,255,255,0.08);
}
.btn-nav {
  display: inline-block; padding: 8px 18px;
  border-radius: 8px; font-weight: 700;
  text-align: center; cursor: pointer;
  background: var(--yellow); color: var(--dark) !important;
  transition: all 0.2s;
}
.btn-nav:hover { background: var(--yellow-dark); }
.btn-nav-outline {
  display: inline-block; padding: 8px 18px;
  border-radius: 8px; font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white) !important;
  transition: all 0.2s;
}
.btn-nav-outline:hover { border-color: var(--yellow); color: var(--yellow) !important; }

/* ===== FLASH ===== */
.flash {
  padding: 14px 20px; margin: 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500;
}
.flash button { background: none; border: none; cursor: pointer; font-size: 1rem; }
.flash-success { background: #E8F5E9; color: var(--green); border-left: 4px solid var(--green); }
.flash-error { background: #FFEBEE; color: var(--red); border-left: 4px solid var(--red); }
.flash-info { background: var(--yellow-light); color: var(--yellow-dark); border-left: 4px solid var(--yellow); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 12px 24px;
  border-radius: var(--radius); font-weight: 700;
  font-size: 0.95rem; cursor: pointer;
  border: none; transition: all 0.2s; text-align: center;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0.2px;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-mid); color: var(--white); box-shadow: 0 4px 16px rgba(27,60,140,0.3); }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--dark); }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--gray-900); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-block { display: block; width: 100%; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #155724; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-weight: 600;
  margin-bottom: 6px; font-size: 0.9rem; color: var(--dark);
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 2px solid #D8E0F0; border-radius: var(--radius);
  font-size: 1rem; font-family: 'DM Sans', sans-serif;
  transition: border 0.2s; background: var(--white); color: var(--dark);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,60,140,0.1); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 0.82rem; color: var(--gray-400); margin-top: 4px; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section-sm { padding: 24px 0; }

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(10,26,74,0.82) 0%, rgba(27,60,140,0.75) 60%, rgba(37,80,184,0.70) 100%),
    url('/assets/dww-banner-v1.png') center center / cover no-repeat;
  color: var(--white); padding: 60px 16px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 2rem; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 1.05rem; opacity: 0.88; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 44px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
}
.stat { text-align: center; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--yellow); }
.stat-label { font-size: 0.85rem; opacity: 0.7; }

/* ===== CITY BADGE ===== */
.city-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.85rem; color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid rgba(27,60,140,0.06);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; background: var(--gray-100); border-top: 1px solid #EBF0FB; }

/* ===== WORKER CARD ===== */
.workers-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.worker-card { display: flex; gap: 16px; align-items: flex-start; }
.worker-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--yellow);
}
.worker-avatar-placeholder {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
  border: 3px solid var(--yellow);
}
.worker-info h3 { font-size: 1rem; margin-bottom: 2px; color: var(--dark); }
.worker-info .expertise { color: var(--blue); font-size: 0.85rem; font-weight: 700; }
.worker-info .location { color: var(--gray-400); font-size: 0.82rem; margin-top: 4px; }
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.78rem; font-weight: 700;
}
.badge-green { background: #E8F5E9; color: var(--green); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow-dark); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-orange { background: var(--yellow-light); color: var(--yellow-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.badge-red { background: #FFEBEE; color: var(--red); }

/* ===== JOB CARD ===== */
.jobs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.job-card .card-body { display: flex; flex-direction: column; gap: 8px; }
.job-category {
  font-size: 0.78rem; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.8px;
}
.job-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--gray-700); }
.job-budget { font-weight: 700; color: var(--green); }

/* ===== SEARCH / FILTER BAR ===== */
.filter-bar {
  background: var(--gray-100);
  border: 1px solid #D8E0F0;
  padding: 16px; border-radius: var(--radius); margin-bottom: 24px;
}
.filter-bar form { display: flex; flex-direction: column; gap: 10px; }
.filter-bar input, .filter-bar select {
  flex: 1; padding: 10px 14px;
  border: 2px solid #D8E0F0; border-radius: 8px;
  font-size: 0.9rem; background: var(--white);
}
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--blue); }
.filter-bar button { padding: 10px 20px; }

/* ===== PLANS ===== */
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.plan-card {
  border-radius: var(--radius); border: 2px solid #D8E0F0;
  padding: 28px; text-align: center; transition: all 0.2s;
  background: var(--white);
}
.plan-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.plan-card.featured {
  border-color: var(--yellow);
  background: var(--yellow-light);
  box-shadow: 0 8px 32px rgba(245,166,35,0.2);
}
.plan-name { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.plan-price { font-size: 2.2rem; font-weight: 700; color: var(--blue); margin: 10px 0; font-family: 'Sora', sans-serif; }
.plan-price span { font-size: 1rem; color: var(--gray-700); font-weight: 400; }
.plan-features { list-style: none; margin: 16px 0; text-align: left; }
.plan-features li { padding: 7px 0; border-bottom: 1px solid rgba(27,60,140,0.08); font-size: 0.9rem; }
.plan-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ===== DASHBOARD ===== */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.dash-stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  border: 1px solid rgba(27,60,140,0.08);
  border-left: 4px solid var(--blue);
}
.dash-stat-num { font-size: 2rem; font-weight: 700; font-family: 'Sora', sans-serif; color: var(--blue); }
.dash-stat-label { color: var(--gray-700); font-size: 0.9rem; margin-top: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 8px; }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: var(--gray-100); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card-body { padding: 36px; }
.auth-logo {
  text-align: center;
  padding: 20px 20px 16px;
  background: #0a1a4a;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -36px -36px 24px -36px;
  border-bottom: 3px solid var(--yellow);
}
.auth-logo img {
  height: 56px; width: auto; border-radius: 0;
  filter: none;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 4px; color: var(--dark); }
.auth-card .subtitle { color: var(--gray-700); margin-bottom: 24px; font-size: 0.95rem; }
.role-toggle { display: flex; gap: 0; margin-bottom: 24px; border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden; }
.role-toggle label {
  flex: 1; text-align: center; padding: 10px;
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; color: var(--blue);
}
.role-toggle input[type=radio] { display: none; }
.role-toggle input[type=radio]:checked + label { background: var(--blue); color: var(--white); }

/* ===== PROFILE PAGE ===== */
.profile-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white); padding: 30px 16px;
}
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--yellow);
  margin-bottom: 12px;
}
.profile-name { font-size: 1.5rem; font-weight: 700; }
.profile-expertise { color: var(--yellow); font-size: 1rem; margin-top: 4px; font-weight: 600; }
.blurred { filter: blur(5px); user-select: none; pointer-events: none; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #D8E0F0; margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 12px 18px; border: none; background: none;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  white-space: nowrap; color: var(--gray-700);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover:not(.active) { color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== CATEGORY PILLS ===== */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.category-pill {
  background: var(--white);
  border: 2px solid #D8E0F0;
  border-radius: var(--radius); padding: 16px 10px;
  text-align: center; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); transition: all 0.2s;
  display: block; text-decoration: none;
  box-shadow: var(--shadow);
}
.category-pill:hover { border-color: var(--yellow); color: var(--blue); background: var(--yellow-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-pill .icon { display: block; font-size: 1.8rem; margin-bottom: 6px; }

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 30px 0; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: var(--dark);
  font-family: 'Sora', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(245,166,35,0.35);
}
.step-text h4 { margin-bottom: 4px; }
.step-text p { color: var(--gray-700); font-size: 0.9rem; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: 1.6rem; color: var(--dark); }
.section-header h2 span { color: var(--blue); }
.section-header p { color: var(--gray-700); margin-top: 8px; }
.section-header .underline {
  width: 48px; height: 4px; background: var(--yellow);
  border-radius: 2px; margin: 10px auto 0;
}

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.page-btn {
  padding: 8px 14px; border-radius: 8px;
  border: 2px solid #D8E0F0; background: var(--white);
  cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--dark);
  text-decoration: none; transition: all 0.15s;
}
.page-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.page-btn:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 16px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 30px;
  padding-bottom: 36px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand .footer-logo img { height: 36px; width: auto; border-radius: 0; filter: brightness(0) invert(1); }
.footer-brand .footer-logo-text { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); }
.footer-brand .footer-logo-text span { display: block; font-size: 0.65rem; font-weight: 400; color: rgba(255,255,255,0.5); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-brand p { font-size: 0.9rem; opacity: 0.6; margin-top: 4px; }
.footer-city { display: inline-flex; align-items: center; gap: 5px; background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3); border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; color: var(--yellow); margin-top: 10px; }
.footer-links h4 { color: var(--white); margin-bottom: 14px; font-size: 0.95rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.15s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; text-align: center;
  font-size: 0.82rem; opacity: 0.5;
  max-width: 1200px; margin: 0 auto;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--gray-400); }
.text-sm { font-size: 0.85rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.p-3 { padding: 24px; } .p-2 { padding: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.divider { border: none; border-top: 2px solid #EBF0FB; margin: 20px 0; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--gray-400); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* ===== SECTION BACKGROUNDS ===== */
.bg-light { background: var(--gray-100); }
.bg-blue { background: var(--blue); }
.bg-dark { background: var(--dark); }
.bg-yellow-light { background: var(--yellow-light); }

/* ===== DESKTOP BREAKPOINTS ===== */
@media (min-width: 640px) {
  .workers-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .filter-bar form { flex-direction: row; flex-wrap: wrap; }
  .hero h1 { font-size: 2.6rem; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important; position: static;
    flex-direction: row; border: none; padding: 0;
    gap: 6px; background: transparent;
    align-items: center; justify-content: center;
  }
  .nav-links a { display: inline-block; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .logo-bar img { height: 72px; width: auto; }
}

@media (min-width: 1024px) {
  .workers-grid { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 100px 24px; }
  .hero h1 { font-size: 3.2rem; }
}
