/* -------------------------------------------------------------------
   OTHER PROJECTS PAGE STYLING - Baldwa & Associates
   Design Spec: Healthcare, Retail & Industrial Portfolio Grid
------------------------------------------------------------------- */

.op-page-main {
  background-color: var(--color-dark);
  min-height: 100vh;
}

/* -------------------------------------------------------------------
   1. Compact Hero with Image Background (matching about.html about-hero-section)
------------------------------------------------------------------- */
.op-hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 10rem 0 4rem;
}

.op-hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.op-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.op-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 19, 18, 0.90) 0%, rgba(20, 19, 18, 0.65) 55%, rgba(20, 19, 18, 0.30) 100%);
  z-index: 2;
}

.op-hero-container {
  position: relative;
  z-index: 3;
}

.op-label-badge {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.op-label-badge::before {
  content: '';
  width: 30px;
  height: 2px;
  background-color: var(--color-gold);
}

.op-hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  max-width: 1000px;
}

.op-hero-subtext {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------
   2. Main Portfolio Section (Warm Cream Palette matching reference image)
------------------------------------------------------------------- */
.op-portfolio-section {
  background-color: #F5EFEB;
  padding: 80px 0 100px;
  position: relative;
}

.op-section-header {
  margin-bottom: 45px;
}

.op-category-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B87826;
  margin-bottom: 0.75rem;
  display: block;
}

.op-section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.2;
  color: #1A1918;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Filter Controls */
.op-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.op-filter-btn {
  background: #EAE3D7;
  color: #55504A;
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.op-filter-btn:hover {
  background: #DFD7CA;
  color: #1A1918;
}

.op-filter-btn.active {
  background: #1A1918;
  color: #F5EFEB;
  border-color: #1A1918;
}

/* -------------------------------------------------------------------
   3. 3x3 Project Grid & Card Design (Direct Visual Match)
------------------------------------------------------------------- */
.op-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 35px;
}

.op-project-card {
  background-color: #FAF8F4;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.op-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  border-color: rgba(184, 120, 38, 0.35);
}

.op-card-media {
  flex: 0 0 42%;
  max-width: 42%;
  position: relative;
  overflow: hidden;
  background-color: #E2DBD0;
}

.op-card-img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.op-card-content {
  flex: 1 1 58%;
  padding: 1.25rem 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.op-card-title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1A1918;
  margin: 0 0 0.5rem 0;
  transition: color 0.2s ease;
}

.op-project-card:hover .op-card-title {
  color: #B87826;
}

.op-card-meta {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #605B54;
  margin: 0;
}

.op-highlight-stat {
  color: #C07920;
  font-weight: 700;
}

.op-meta-dot {
  margin: 0 3px;
  color: #8C867E;
}

/* -------------------------------------------------------------------
   4. Stats / Capability Strip
------------------------------------------------------------------- */
.op-stats-strip {
  background: #191816;
  padding: 70px 0;
  border-top: 1px solid rgba(229, 152, 40, 0.15);
  border-bottom: 1px solid rgba(229, 152, 40, 0.15);
}

.op-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.op-stat-item {
  padding: 1.5rem;
}

.op-stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.op-stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BDB9B2;
}

/* -------------------------------------------------------------------
   5. CTA Bottom Banner
------------------------------------------------------------------- */
.op-cta-section {
  background: linear-gradient(135deg, #181614 0%, #201D1A 100%);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.op-cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.op-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: #FAF8F5;
  margin-bottom: 1rem;
}

.op-cta-title span {
  color: var(--color-gold);
}

.op-cta-text {
  color: #BDB9B2;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* -------------------------------------------------------------------
   6. Responsive Breakpoints
------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .op-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .op-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .op-portfolio-section {
    padding: 50px 0 70px;
  }
  .op-projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .op-project-card {
    flex-direction: row;
  }
  .op-card-media {
    flex: 0 0 38%;
    max-width: 38%;
  }
  .op-card-content {
    padding: 1rem;
  }
  .op-card-title {
    font-size: 1.15rem;
  }
  .op-card-meta {
    font-size: 0.82rem;
  }
  .op-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .op-project-card {
    flex-direction: column;
  }
  .op-card-media {
    flex: 0 0 auto;
    max-width: 100%;
    height: 180px;
  }
  .op-card-content {
    padding: 1.25rem 1rem;
  }
  .op-stats-grid {
    grid-template-columns: 1fr;
  }
}
