/**
 * Garden Sansar - Projects & Portfolio Stylesheet
 * Responsive, modern, SEO-friendly layout matching gardensewa.com/projects
 */

.projects-page-wrapper {
  background-color: #ffffff;
  min-height: 100vh;
}

/* ==========================================================================
   Projects Hero Section
   ========================================================================== */

.projects-hero-section {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.projects-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.projects-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 2;
}

.projects-hero-container {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.projects-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.projects-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

.projects-hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.projects-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.projects-filter-section {
  background: #ffffff;
  position: relative;
  z-index: 5;
  padding: 32px 20px 12px;
}

.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-filter-btn {
  padding: 8px 22px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.885rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.project-filter-btn:hover {
  border-color: #0b5c49;
  color: #0b5c49;
  background: #f8fafc;
}

.project-filter-btn.is-active {
  background: #0b5c49;
  border-color: #0b5c49;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 92, 73, 0.28);
}

/* ==========================================================================
   Projects Grid
   ========================================================================== */

.projects-grid-section {
  padding: 64px 20px 88px;
}

.max-w-projects {
  max-width: 1280px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card-item {
  display: flex;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card-item.is-hidden {
  display: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.project-card-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: ellipse(100% 85% at 50% 0%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.project-card:hover .project-card-img {
  transform: scale(1.05);
}

.project-card-badge {
  display: none !important;
}

.project-card-content {
  padding: 24px 26px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  line-height: 1.3;
  transition: color 0.2s;
}

.project-card:hover .project-card-title {
  color: #155d59;
}

.project-card-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #515c6a;
  margin: 0;
}

.no-projects-found {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  padding: 48px;
  font-size: 1.1rem;
}

/* ==========================================================================
   "Want to grow with Garden Sansar?" Strip
   ========================================================================== */

.projects-grow-strip {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  margin-top: 32px;
}

.projects-grow-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.projects-grow-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.projects-grow-container {
  position: relative;
  z-index: 3;
  max-width: 860px;
  padding: 64px 20px;
}

.projects-grow-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.projects-grow-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
}

.projects-grow-btn {
  display: inline-block;
  background-color: #0b5c49;
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 18px rgba(11, 92, 73, 0.4);
}

.projects-grow-btn:hover {
  background-color: #084335;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 92, 73, 0.5);
}

/* ==========================================================================
   Gardener Recruitment Callout Strip
   ========================================================================== */

.gardener-hire-strip {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 56px 20px;
  background-color: #072b22;
}

.gardener-hire-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.35;
}

.gardener-hire-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 43, 34, 0.94) 0%, rgba(13, 27, 24, 0.97) 100%);
  z-index: 2;
}

.gardener-hire-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.gardener-hire-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
  color: #ffffff;
}

.gardener-hire-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 740px;
}

.gardener-hire-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid #14b8a6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.gardener-hire-btn:hover {
  background-color: #14b8a6;
  border-color: #14b8a6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}

@media (max-width: 768px) {
  .gardener-hire-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .gardener-hire-title {
    font-size: 1.55rem;
  }

  .gardener-hire-btn {
    width: 100%;
    max-width: 260px;
  }
}

/* ==========================================================================
   Single Project Page (/projects/<slug>/)
   ========================================================================== */

.single-project-article {
  background: #ffffff;
}

.single-project-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
}

.project-hero-container {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.single-project-pill {
  display: inline-block;
  background: rgba(20, 184, 166, 0.25);
  border: 1px solid rgba(20, 184, 166, 0.5);
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-project-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.single-project-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Layout */
.single-project-main-section {
  background: #ffffff;
  position: relative;
  z-index: 2;
  padding: 64px 20px 80px;
}

.max-w-project-body {
  max-width: 1200px;
  margin: 0 auto;
}

.single-project-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.single-project-photo-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin-bottom: 36px;
  max-height: 520px;
  background: #f1f5f9;
}

.single-project-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-section-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0d5c46;
  margin: 0 0 20px;
}

.project-body-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 20px;
}

/* Sidebar Specifications Card */
.single-project-sidebar {
  position: sticky;
  top: 100px;
}

.project-specs-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.specs-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d5c46;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.specs-list {
  margin: 0 0 28px;
}

.specs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.925rem;
}

.specs-item dt {
  color: #64748b;
  font-weight: 500;
}

.specs-item dd {
  color: #111827;
  font-weight: 600;
  margin: 0;
  text-align: right;
}

.specs-cta-btn {
  display: block;
  background-color: #0b5c49;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.25s;
}

.specs-cta-btn:hover {
  background-color: #084335;
  transform: translateY(-2px);
}

/* Other Projects */
.other-projects-section {
  padding: 64px 20px 80px;
  background: #f8fafc;
  position: relative;
  z-index: 2;
}

.other-projects-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0d5c46;
  margin: 0 0 40px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .single-project-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .single-project-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .projects-hero-title {
    font-size: 2.15rem;
  }

  .projects-hero-subtitle {
    font-size: 1rem;
  }

  .projects-grow-title {
    font-size: 2rem;
  }

  .projects-grow-subtitle {
    font-size: 1.05rem;
  }

  .single-project-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 420px;
    margin: 0 auto;
  }

  .project-card-img-wrap {
    height: 250px;
  }

  .projects-filter-bar {
    gap: 8px;
  }

  .project-filter-btn {
    padding: 6px 16px;
    font-size: 0.825rem;
  }
}
