/* =========================================================
   NEWA.CSS – CLEAN VERSION
   ========================================================= */

/* Prevent horizontal scroll from transforms */
html, body{
  overflow-x: hidden;
}

/* Base */
.p-case{ background:#fff; }
.p-panel{ position:relative; min-height:100vh; }

/* =========================================================
   HERO
   ========================================================= */

.p-hero{
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* full-bleed responsive video */
.p-hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  will-change: transform;
  z-index: 0;
}

/* white overlay wash */
.p-hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.75);
  z-index: 1;
}

.p-hero-inner{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 340px;
}

.p-title{
  font-family:'Montserrat',sans-serif;
  font-weight:650;
  font-size: clamp(40px, 6vw, 82px);
  line-height:0.92;
  color:#1f1f1f;
  margin-bottom:8px;
}

.p-sub{
  font-size:18px;
  line-height:30px;
  max-width:760px;
  color:#3f3f3f;
}

/* =========================================================
   FULL BLEED MEDIA SYSTEM
   Use ONLY on media sections
   ========================================================= */

.p-bleed{
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 24px;  /* controls vertical gap between sections */
}

@media (max-width: 767px){
  .p-bleed{
    margin-bottom: 18px;
  }
}

/* Remove Bootstrap row gutters */
.p-bleed .row{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Add controlled spacing between 2-up images */
.p-bleed .col-xs-12,
.p-bleed .col-sm-6{
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* =========================================================
   2-UP LAYOUT
   ========================================================= */

/* Let .p-bleed control vertical spacing */
.portfolio-2up{
  margin-bottom: 0;
}

/* Stacked spacing (mobile only) */
@media (max-width: 767px) {
  .portfolio-2up .col-xs-12{
    margin-bottom: 10px;
  }
  .portfolio-2up .col-xs-12:last-child{
    margin-bottom: 0;
  }
}

/* =========================================================
   SECTION TITLE AREA
   ========================================================= */

.testimonial-area{
  padding-top: 80px;
  padding-bottom: 80px;
}

/* =========================================================
   Optional: ensure header stays solid
   (only needed if sticky overlays hero)
   ========================================================= */

.header-top{
  background:#fff;
}

/* =========================================================
   Fallback if JS fails
   ========================================================= */

.no-js .p-card{
  opacity:1;
  transform:none;
}
/* =========================================
   Portfolio Details Alignment Fix
   ========================================= */

.portfolio-details-section h2{
  margin-top: 0;
}

.portfolio-details-section .portfolio-info{
  margin-top: 0;
}
/* =========================================
   Portfolio Details Section Spacing
   ========================================= */

.portfolio-details-section{
  padding-top: 70px;    /* space above text section */
  padding-bottom: 90px; /* space below text section */
}
