/* ==========================================================================
   Garden Sansar - Frequently Asked Questions (FAQ) Stylesheet
   Matching Reference UI & Mobile-Native Performance
   ========================================================================== */

.faq-page-wrap {
  background-color: #ffffff;
  color: #1f2937;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section & Breadcrumb
   -------------------------------------------------------------------------- */
.faq-hero {
  width: 100%;
  padding: 52px 20px 32px;
  background: linear-gradient(180deg, #f0fbf6 0%, #ffffff 100%);
  text-align: center;
}

.faq-hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.faq-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 12px;
}

.faq-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-breadcrumb a:hover {
  color: #0b5c49;
}

.faq-breadcrumb .sep {
  color: #94a3b8;
  font-size: 12px;
}

.faq-breadcrumb .current {
  color: #0b5c49;
  font-weight: 600;
}

.faq-hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: #064e3b;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
  line-height: 1.2;
}

.faq-hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Main Content Layout
   -------------------------------------------------------------------------- */
.faq-main-content {
  padding: 24px 20px 72px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Category Cards Grid (Services, Plants, Delivery, Support)
   -------------------------------------------------------------------------- */
.faq-category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.faq-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 14px;
  background: #0d4a3c;
  color: #ffffff;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(11, 74, 60, 0.15);
  outline: none;
  position: relative;
  user-select: none;
}

.faq-cat-card:hover {
  transform: translateY(-3px);
  background: #08382c;
  box-shadow: 0 8px 20px rgba(11, 74, 60, 0.25);
}

.faq-cat-card:active {
  transform: translateY(-1px);
}

.faq-cat-card.active {
  background: #063127;
  border-color: #22c55e;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.28);
}

.faq-cat-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.25s ease;
}

.faq-cat-card:hover .faq-cat-icon-box {
  transform: scale(1.1);
}

.faq-cat-name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* --------------------------------------------------------------------------
   Quick Search Bar
   -------------------------------------------------------------------------- */
.faq-search-wrap {
  margin-bottom: 28px;
}

.faq-search-bar {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  pointer-events: none;
}

.faq-search-bar input {
  width: 100%;
  padding: 12px 42px 12px 46px;
  font-size: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-bar input:focus {
  border-color: #0b5c49;
  box-shadow: 0 0 0 3px rgba(11, 92, 73, 0.12);
}

.faq-search-clear {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.faq-search-clear:hover {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   Category Panels & Accordion Items (Matching Mint Green UI)
   -------------------------------------------------------------------------- */
.faq-category-panel {
  display: none;
}

.faq-category-panel.active {
  display: block;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-accordion-item:hover {
  border-color: #6ee7b7;
  box-shadow: 0 4px 12px rgba(11, 92, 73, 0.1);
}

.faq-accordion-item.active {
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(11, 92, 73, 0.12);
}

.faq-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #a7f3d0; /* Vibrant mint green exactly matching reference */
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
  user-select: none;
}

.faq-accordion-trigger:hover {
  background: #86efac;
}

.faq-accordion-item.active .faq-accordion-trigger {
  background: #86efac;
}

.faq-accordion-title {
  font-size: clamp(15.5px, 2vw, 17.5px);
  font-weight: 700;
  color: #064e3b !important; /* Deep forest green for high contrast & clarity */
  line-height: 1.45;
  letter-spacing: -0.2px;
}

.faq-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #064e3b !important;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-trigger[aria-expanded="true"] .faq-accordion-icon {
  transform: rotate(180deg);
}

.faq-accordion-content {
  border-top: 1.5px solid #a7f3d0;
  background: #ffffff;
}

.faq-accordion-body {
  padding: 22px 24px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #1e293b;
}

.faq-accordion-body p {
  margin: 0;
}

.faq-empty-state {
  text-align: center;
  padding: 44px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Hiring Banner (Matching Reference Concept)
   -------------------------------------------------------------------------- */
.faq-hiring-banner {
  background: #091611;
  color: #ffffff;
  padding: 56px 20px;
  border-top: 1px solid #14281e;
  position: relative;
}

.faq-hiring-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.faq-hiring-text {
  max-width: 760px;
}

.faq-hiring-text h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.faq-hiring-text p {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

.faq-hiring-action {
  flex-shrink: 0;
}

.faq-hiring-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 9999px;
  border: 1.5px solid #22c55e;
  background: transparent;
  color: #22c55e;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.faq-hiring-btn:hover {
  background: #22c55e;
  color: #091611;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive Design & Mobile-Native Optimizations
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .faq-category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .faq-cat-card {
    padding: 20px 14px;
  }
}

@media (max-width: 640px) {
  .faq-hero {
    padding: 36px 16px 20px;
  }
  .faq-main-content {
    padding: 20px 16px 52px;
  }
  .faq-cat-name {
    font-size: 15px;
  }
  .faq-accordion-trigger {
    padding: 15px 18px;
  }
  .faq-accordion-body {
    padding: 18px;
    font-size: 14.5px;
  }
  .faq-hiring-banner {
    padding: 40px 16px;
  }
  .faq-hiring-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .faq-hiring-btn {
    width: 100%;
    text-align: center;
  }
}
