/* =========================================================
   PENTAGAN PROJECT PAGES
   Add this after css/style.css on both project pages.
   ========================================================= */

.projects-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(217,163,52,.18), transparent 28%),
    linear-gradient(120deg,#0e3320 0%,#154a2c 58%,#1c5c37 100%);
  color:#fff;
  min-height:480px;
  display:flex;
  align-items:center;
}
.projects-hero__pattern{
  position:absolute;
  inset:0;
  opacity:.11;
  background-image:
    linear-gradient(30deg,rgba(255,255,255,.22) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.22) 87.5%,rgba(255,255,255,.22)),
    linear-gradient(150deg,rgba(255,255,255,.22) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.22) 87.5%,rgba(255,255,255,.22));
  background-size:54px 54px;
}
.projects-hero__content{
  position:relative;
  z-index:2;
  padding:82px 24px 86px;
}
.projects-hero h1{
  color:#fff;
  font-size:clamp(2.5rem,6vw,4.5rem);
  max-width:760px;
  margin:10px 0 18px;
}
.projects-hero h1 em{
  color:#d9a334;
  font-style:normal;
}
.projects-hero p:not(.eyebrow){
  max-width:720px;
  color:rgba(255,255,255,.84);
  font-size:1.08rem;
}
.breadcrumb{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:.86rem;
  margin-bottom:34px;
  color:rgba(255,255,255,.72);
}
.breadcrumb a:hover{color:#d9a334}
.breadcrumb strong{color:#fff}
.hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}
.hero-pills span{
  padding:12px 17px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.84);
  backdrop-filter:blur(5px);
}
.hero-pills strong{color:#d9a334;margin-right:5px}

.project-toolbar{
  background:#fff;
  border-bottom:1px solid #dfe4de;
  position:sticky;
  top:78px;
  z-index:40;
  box-shadow:0 5px 18px rgba(14,51,32,.07);
}
.toolbar-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-top:12px;
  padding-bottom:12px;
}
.toolbar-label{
  font-family:"Archivo","Helvetica Neue",Arial,sans-serif;
  font-weight:700;
  color:#0e3320;
}
.filter-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.filter-btn{
  border:1px solid #dfe4de;
  background:#faf9f5;
  color:#182018;
  border-radius:999px;
  padding:9px 15px;
  font:600 .82rem "Archivo","Helvetica Neue",Arial,sans-serif;
  cursor:pointer;
  transition:.18s ease;
}
.filter-btn:hover,
.filter-btn.active{
  background:#154a2c;
  border-color:#154a2c;
  color:#fff;
}

.projects-section{
  padding:88px 0 100px;
  background:#faf9f5;
}
.section-intro{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:38px;
}
.section-intro h2{
  font-size:clamp(1.9rem,4vw,2.7rem);
}
.section-intro__text{
  max-width:560px;
  margin:0;
}
.project-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
}
.project-card{
  background:#fff;
  border:1px solid #dfe4de;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 12px 30px -20px rgba(14,51,32,.38);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.project-card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 40px -20px rgba(14,51,32,.48);
  border-color:#c8d3ca;
}
.project-card.is-hidden{display:none}
.project-card__visual{
  height:235px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#154a2c;
}
.visual-grid{
  position:absolute;
  inset:0;
  opacity:.16;
  background:
    linear-gradient(90deg,rgba(255,255,255,.3) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.3) 1px,transparent 1px);
  background-size:28px 28px;
  transform:skewY(-7deg) scale(1.3);
}
.visual-residential{background:linear-gradient(135deg,#154a2c,#1c5c37)}
.visual-renovation{background:linear-gradient(135deg,#304d3c,#173a29)}
.visual-commercial{background:linear-gradient(135deg,#0e3320,#286044)}
.visual-industrial{background:linear-gradient(135deg,#263d33,#0e3320)}
.visual-government{background:linear-gradient(135deg,#203d2e,#154a2c)}
.visual-healthcare{background:linear-gradient(135deg,#1c5c37,#0e3320)}
.visual-icon{
  position:relative;
  z-index:2;
  font-size:4.5rem;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,.22));
}
.status-badge{
  position:absolute;
  top:18px;
  left:18px;
  z-index:4;
  border-radius:999px;
  padding:7px 12px;
  font:700 .76rem "Archivo","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.02em;
}
.status-ongoing{background:#d9a334;color:#0e3320}
.status-completed{background:#fff;color:#154a2c}
.project-number{
  position:absolute;
  right:18px;
  top:20px;
  z-index:3;
  color:rgba(255,255,255,.66);
  font:700 .72rem "Archivo","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.15em;
}
.project-card__body{padding:27px 28px 24px}
.project-type{
  display:inline-block;
  color:#bd8a24;
  font:700 .75rem "Archivo","Helvetica Neue",Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:9px;
}
.project-card h3{
  font-size:1.35rem;
  margin-bottom:20px;
}
.project-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 22px;
}
.project-meta > div{
  min-width:0;
  position:relative;
  padding-left:27px;
}
.project-meta > div > span{
  position:absolute;
  left:0;
  top:1px;
}
.project-meta strong{
  display:block;
  color:#0e3320;
  font:700 .76rem "Archivo","Helvetica Neue",Arial,sans-serif;
  margin-bottom:2px;
}
.project-meta p{
  margin:0;
  font-size:.9rem;
  line-height:1.45;
}
.work-detail{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #dfe4de;
}
.work-detail strong{
  color:#0e3320;
  font:700 .78rem "Archivo","Helvetica Neue",Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.work-detail p{margin:6px 0 0;font-size:.9rem}
.project-footer-line{
  margin-top:21px;
  padding-top:15px;
  border-top:1px solid #dfe4de;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#4d564e;
  font:600 .76rem "Archivo","Helvetica Neue",Arial,sans-serif;
}
.project-footer-line span:last-child{color:#154a2c}
.projects-cta{
  background:#e7f0e9;
  border-top:1px solid #dfe4de;
}
.projects-cta__inner{
  padding:64px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}
.projects-cta h2{font-size:clamp(1.8rem,4vw,2.5rem)}
.projects-cta p:not(.eyebrow){margin-bottom:0}
.data-note,
.portfolio-note{
  margin:26px 0 0;
  padding:15px 18px;
  background:#f1f4ef;
  border-left:3px solid #d9a334;
  font-size:.84rem;
}
.portfolio-note{margin-top:40px}

@media (max-width:900px){
  .project-toolbar{top:70px}
  .toolbar-inner{align-items:flex-start;flex-direction:column}
  .filter-buttons{justify-content:flex-start}
  .project-grid{grid-template-columns:1fr}
  .section-intro{align-items:flex-start;flex-direction:column;gap:12px}
}
@media (max-width:600px){
  .projects-hero{min-height:430px}
  .projects-hero__content{padding:62px 24px 70px}
  .breadcrumb{margin-bottom:25px}
  .hero-pills{display:grid;grid-template-columns:1fr}
  .hero-pills span{width:100%}
  .projects-section{padding:60px 0 70px}
  .project-card__visual{height:205px}
  .project-card__body{padding:22px 20px}
  .project-meta{grid-template-columns:1fr}
  .projects-cta__inner{align-items:flex-start;flex-direction:column;padding:50px 24px}
}

/* ==========================================================================
   PENTAGAN — PROJECT CARD PHOTOS
   Append to css/projects.css (after the existing rules).

   The old .visual-grid / .visual-icon / .visual-residential /
   .visual-renovation / .visual-commercial / .visual-industrial rules
   can stay in the file — they're harmless once nothing uses them — or
   you can delete them. Nothing below depends on them.
   ========================================================================== */

.project-card__visual{
  /* was: display:flex; align-items:center; justify-content:center; background:#154a2c; */
  background:var(--green-800, #154a2c);   /* shows briefly while the photo loads */
}

.project-card__visual img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .4s ease;
}

.project-card:hover .project-card__visual img{
  transform:scale(1.05);
}

/* Bottom scrim so the badges/number stay readable over any photo,
   bright or dark */
.project-card__visual::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:60%;
  background:linear-gradient(to top, rgba(14,51,32,0.55) 0%, rgba(14,51,32,0) 100%);
  pointer-events:none;
  z-index:2;
}

/* keep badge and project number above the photo + scrim */
.status-badge,
.project-number{
  z-index:4;
}

/* Fallback: if an image fails to load, don't show a broken-image icon —
   the green background behind it is enough */
.project-card__visual img{
  color:transparent;
}
.project-card__visual img::before{
  content:"";
}