/*
 * DOMUS PRIME — stable catalog pages layer.
 * Keeps the Services and Projects templates independent from legacy CSS patches.
 */
.services-hero,
.projects-hero{
  position:relative;
  min-height:680px;
  padding:168px 0 92px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  isolation:isolate;
  background:#080907;
  color:#fffaf0;
}
.services-hero__bg,
.projects-hero__bg{
  position:absolute;
  inset:0;
  z-index:-2;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transform:scale(1.015);
}
.services-hero__bg{
  background-image:
    linear-gradient(100deg,rgba(6,7,5,.96) 0%,rgba(6,7,5,.78) 48%,rgba(6,7,5,.42) 100%),
    url('../photos/hero-residence.jpg');
}
.projects-hero__bg{
  background-image:
    linear-gradient(100deg,rgba(6,7,5,.95) 0%,rgba(6,7,5,.74) 48%,rgba(6,7,5,.38) 100%),
    url('../photos/lake-villa-evening.jpg');
}
.services-hero::before,
.projects-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 78% 18%,rgba(218,181,102,.24),transparent 29%),
    linear-gradient(180deg,rgba(8,9,7,.02) 0%,rgba(8,9,7,.82) 100%);
}
.services-hero::after,
.projects-hero::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:var(--site-shell,min(1500px,calc(100% - 48px)));
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgba(240,211,148,.48),transparent);
}
.services-hero__inner,
.projects-hero__inner{
  position:relative;
  z-index:2;
  width:var(--site-shell,min(1500px,calc(100% - 48px)))!important;
  margin-inline:auto!important;
}
.services-hero .breadcrumbs,
.projects-hero .breadcrumbs{
  margin:0 0 26px;
  color:rgba(255,255,255,.62);
}
.services-hero .label,
.projects-hero .label{
  margin-bottom:16px;
}
.services-hero h1,
.projects-hero h1{
  max-width:1120px!important;
  margin:0 0 24px!important;
  font-size:clamp(46px,4.6vw,74px)!important;
  line-height:.98!important;
  letter-spacing:-.05em;
  text-wrap:balance;
  color:#fffaf0;
}
.services-hero p,
.projects-hero p{
  max-width:930px;
  margin:0;
  font-size:18px;
  line-height:1.7;
  color:rgba(255,255,255,.75);
}

.service-catalog{
  background:
    radial-gradient(circle at 100% 0,rgba(201,164,97,.12),transparent 32%),
    linear-gradient(180deg,#f8f1e5 0%,#eee2d0 100%);
}
.service-catalog__grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.service-catalog__grid .service-tile{
  grid-column:span 4;
  min-height:440px;
  height:100%;
}
.service-catalog__grid .service-tile--photo::before{
  background-image:var(--service-bg,var(--tile-bg))!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
.service-catalog__grid .service-tile__icon{
  display:block!important;
  flex:0 0 auto;
}
.service-catalog__grid .service-tile p{
  margin:0 0 24px;
}
.service-catalog__grid .service-tile>a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:auto;
  color:#fff;
  font-size:14px;
  font-weight:850;
}
.service-catalog__grid .service-tile>a i{
  width:auto;
  height:auto;
  margin:0;
  padding:0;
  display:inline-block;
  border:0;
  background:transparent;
  box-shadow:none;
  font-size:12px;
  transition:transform .22s ease;
}
.service-catalog__grid .service-tile:hover>a i{
  transform:translateX(4px);
}

.projects .project-grid--masonry{
  width:100%;
}
.projects .project-card__image{
  background:#171714;
}
.projects .project-card__image img{
  min-width:100%;
  min-height:100%;
}

/* Detailed service page markup compatibility. */
.premium-service-hero__visual>.premium-service-hero__image{
  position:absolute;
  inset:0;
}
.premium-service-hero__visual>.premium-service-hero__badge--bottom{
  right:-28px;
  bottom:34px;
}

@media(max-width:1180px){
  .services-hero,
  .projects-hero{
    min-height:620px;
    padding:150px 0 78px;
  }
  .service-catalog__grid .service-tile{
    grid-column:span 6;
    min-height:410px;
  }
}
@media(max-width:760px){
  .services-hero,
  .projects-hero{
    min-height:auto;
    padding:124px 0 62px;
    align-items:center;
  }
  .services-hero__inner,
  .projects-hero__inner{
    width:calc(100% - 28px)!important;
  }
  .services-hero .breadcrumbs,
  .projects-hero .breadcrumbs{
    margin-bottom:20px;
    overflow:auto;
    white-space:nowrap;
  }
  .services-hero h1,
  .projects-hero h1{
    font-size:clamp(36px,10.5vw,52px)!important;
    line-height:1.02!important;
    margin-bottom:18px!important;
  }
  .services-hero p,
  .projects-hero p{
    font-size:16px;
    line-height:1.62;
  }
  .service-catalog__grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .service-catalog__grid .service-tile{
    grid-column:1;
    min-height:390px;
  }
  .premium-service-hero__visual>.premium-service-hero__image{
    position:relative;
    height:360px;
  }
  .premium-service-hero__visual>.premium-service-hero__badge--bottom{
    position:relative;
    right:auto;
    bottom:auto;
    margin-top:12px;
  }
}
