/* ==========================================
   TASKLY ECOSYSTEM STYLESHEET (NIGERIA GREEN & WHITE)
   ========================================== */

:root {
  --bg-main: #0d1117;
  --bg-card: #161b22;
  --green-primary: #008751; /* Official Nigerian Flag Green */
  --green-hover: #006b40;
  --text-main: #ffffff;
  --text-muted: #8b949e;
  --border-color: #30363d;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20ba5a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Universal Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.hamburger-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transition: right 0.3s ease-in-out;
}

.nav-drawer.open {
  right: 0;
}

.close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.nav-drawer a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s;
}

.nav-drawer a:hover {
  color: var(--green-primary);
}

/* Main Layout & Hero Sections */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  padding: 1rem 0 2rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--green-primary);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

/* Rotating Sponsor Banner */
.banner-slider {
  width: 100%;
  height: 340px;
  background: #000;
  border: 2px solid var(--green-primary);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 135, 81, 0.15);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.banner-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.2));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 2;
}

.banner-tag {
  color: var(--green-primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-content-overlay h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.banner-content-overlay p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.banner-contact-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: background-color 0.2s;
}

.banner-contact-btn:hover {
  background-color: var(--whatsapp-hover);
}

/* Search Box & Inputs */
.search-box-container {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: 8px;
}

.search-box-container input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
}

.btn-gold {
  background-color: var(--green-primary);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-gold:hover {
  background-color: var(--green-hover);
}

/* Category Filter Chips */
.category-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem 0;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.category-chip.active, .category-chip:hover {
  background-color: var(--green-primary);
  color: #ffffff;
  border-color: var(--green-primary);
  font-weight: 600;
}

/* Sections & Cards */
.section {
  margin-top: 2.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid var(--green-primary);
  padding-left: 0.75rem;
}

.section-title span {
  color: var(--green-primary);
}

.artisan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.artisan-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: border-color 0.2s;
}

.artisan-card:hover {
  border-color: var(--green-primary);
}

.artisan-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
}

.artisan-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--green-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.artisan-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.artisan-category {
  color: var(--green-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.artisan-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.artisan-location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.artisan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.artisan-rating {
  color: var(--green-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.whatsapp-btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: background-color 0.2s;
  width: auto;
}

.whatsapp-btn-small:hover {
  background-color: var(--whatsapp-hover);
}

/* About & Legal Containers */
.about-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.about-text-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
}

.about-card h3 {
  color: var(--green-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Legal / Policy Pages Styles */
.legal-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--green-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid var(--green-primary);
  padding-left: 0.75rem;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.legal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.legal-card h3 {
  color: var(--text-main);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.legal-card p, .legal-card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-card ul {
  list-style-type: disc;
  padding-left: 1.3rem;
  margin-top: 0.5rem;
}

.legal-card li {
  margin-bottom: 0.4rem;
}

/* FAQ Styles */
.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
}

/* Support & WhatsApp Callout Sections */
.support-section {
  margin-top: 3.5rem;
}

.support-card {
  background-color: var(--bg-card);
  border: 1px solid var(--green-primary);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 135, 81, 0.1);
}

.support-card h3 {
  color: var(--green-primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.support-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.whatsapp-btn-support {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 1.05rem;
  transition: background-color 0.2s;
}

.whatsapp-btn-support:hover {
  background-color: var(--whatsapp-hover);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}
