/* ==========================================================================
   Ridge Water - Projects Page Stylesheet
   ========================================================================== */

/* 1. Hero Section */
.projects-hero-section {
  padding: 60px 0 50px;
  background-color: #ffffff;
}

.projects-hero-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.projects-sub-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #0077c8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.projects-hero-title {
  font-size: 44px;
  font-weight: 800;
  color: #081d38;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.projects-hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #64748b;
  max-width: 540px;
  margin-bottom: 32px;
}

.projects-feature-row {
  display: flex;
  gap: 32px;
  align-items: center;
}

.p-feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.p-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0077c8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-feature-icon svg {
  width: 20px;
  height: 20px;
}

.p-feature-item span {
  font-size: 12.5px;
  font-weight: 700;
  color: #081d38;
  line-height: 1.3;
}

.projects-hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 30, 54, 0.12);
  height: 380px;
}

.projects-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2. Catalog Section */
.projects-catalog-section {
  padding: 50px 0 80px;
  background-color: #f8fafc;
}

.projects-catalog-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.projects-header-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.projects-catalog-heading {
  font-size: 28px;
  font-weight: 800;
  color: #081d38;
}

.projects-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.p-tab-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.p-tab-btn:hover, .p-tab-btn.active {
  background: #081d38;
  color: #ffffff;
  border-color: #081d38;
}

.p-sort-select {
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: #081d38;
  outline: none;
}

/* Projects 3-Card Grid */
.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(11, 30, 54, 0.08);
}

.project-card-image-box {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

.project-card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0077c8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

.project-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 18px;
  font-weight: 800;
  color: #081d38;
  margin-bottom: 6px;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}

.project-location svg {
  width: 14px;
  height: 14px;
  color: #0077c8;
}

.project-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 20px;
  flex: 1;
}

.btn-case-study {
  font-size: 13px;
  font-weight: 700;
  color: #0077c8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.btn-case-study:hover {
  gap: 10px;
}

.btn-case-study svg {
  width: 14px;
  height: 14px;
}

.projects-load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more-projects {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #081d38;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-load-more-projects:hover {
  border-color: #0077c8;
  color: #0077c8;
}

/* 3. Stat Bar */
.projects-stats-strip {
  background: #f0f7fd;
  padding: 36px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.projects-stats-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.p-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-stat-icon svg {
  width: 28px;
  height: 28px;
  color: #0077c8;
}

.p-stat-meta h3 {
  font-size: 22px;
  font-weight: 800;
  color: #081d38;
  margin-bottom: 2px;
}

.p-stat-meta p {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* 4. 5-Step Process Section */
.concept-process-section {
  padding: 70px 0;
  background: #ffffff;
}

.concept-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.concept-header {
  text-align: center;
  margin-bottom: 50px;
}

.concept-sub-tag {
  font-size: 11px;
  font-weight: 800;
  color: #0077c8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.concept-title {
  font-size: 32px;
  font-weight: 800;
  color: #081d38;
  margin-top: 6px;
}

.concept-steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.concept-connecting-line {
  position: absolute;
  top: 26px;
  left: 5%;
  width: 90%;
  height: 2px;
  border-top: 2px dashed #cbd5e1;
  z-index: 1;
}

.concept-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.concept-icon-bubble {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0077c8;
  color: #0077c8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 119, 200, 0.15);
}

.concept-icon-bubble svg {
  width: 22px;
  height: 22px;
}

.concept-step-item h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #081d38;
  margin-bottom: 6px;
}

.concept-step-item p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* 5. CTA Banner */
.project-cta-banner-section {
  padding: 0 0 80px;
  background: #ffffff;
}

.project-cta-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.project-cta-card {
  background: linear-gradient(135deg, #081d38 0%, #0c2b54 50%, #0077c8 100%);
  border-radius: 20px;
  padding: 50px 60px;
  color: #ffffff;
}

.cta-card-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-card-content p {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.cta-actions-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-white {
  background: #ffffff;
  color: #081d38;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cta-transparent {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Modal */
.project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 29, 56, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  padding: 20px;
  box-sizing: border-box;
}

.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}

.modal-img-frame {
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.modal-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsiveness */
@media (max-width: 960px) {
  .projects-hero-container { grid-template-columns: 1fr; }
  .projects-cards-grid { grid-template-columns: 1fr 1fr; }
  .projects-stats-container { grid-template-columns: 1fr 1fr; }
  .concept-steps-track { grid-template-columns: 1fr; }
  .concept-connecting-line { display: none; }
}

@media (max-width: 600px) {
  .projects-cards-grid { grid-template-columns: 1fr; }
}