/* ================================
   New Projects Page
   ================================ */

/* --- Hero Slider --- */
.projects-hero {
  position: relative;
  overflow: hidden;
}

.projects-hero .item {
  position: relative;
  display: flex;
  align-items: center;
  /* vertically center content */
  min-height: clamp(520px, 78vh, 900px);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.projects-hero .item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.45) 100%
  );
  z-index: 1;
}

.projects-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-left: 6vw;
  padding-right: 6vw;
  max-width: 1000px;
}

.projects-hero__content .tag {
  background: rgba(255,255,255,.92);
  color: #111;
  font-weight: 600;
  font-size: clamp(12px, 1.1vw, 14px);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 14px;
}

.projects-hero__content h1 {
  margin: 0 0 10px 0;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: clamp(30px, 5.2vw, 64px);
  color: #fff;
}

.projects-hero__content p {
  margin: 0 0 18px 0;
  color: #f1f1f1;
  font-size: clamp(14px, 1.6vw, 18px);
  max-width: 70ch;
}

.projects-hero__content .cta {
  display: inline-block;
  background: #ff5522;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform .12s ease, filter .15s ease;
}
.projects-hero__content .cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Background images (replace with your assets) */
.item--clouthaus  { background-image: url('../images/clouthaus.jpg'); }
.item--armani     { background-image: url('../images/armani-hallson.jpg'); }
.item--pavilion   { background-image: url('../images/pavilion-square.jpg'); }

/* Owl nav + dots styling to match your theme */
.projects-hero .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}
.projects-hero .owl-nav .owl-prev,
.projects-hero .owl-nav .owl-next {
  pointer-events: auto;
}
.projects-hero .owl-nav .owl-prev i,
.projects-hero .owl-nav .owl-next i {
  position: absolute;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 22px;
  color: #fff;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  transition: background .25s ease;
}
.projects-hero .owl-nav .owl-prev i { left: 22px; }
.projects-hero .owl-nav .owl-next i { right: 22px; }
.projects-hero .owl-nav .owl-prev i:hover,
.projects-hero .owl-nav .owl-next i:hover {
  background: rgba(255,255,255,.45);
}

.projects-hero .owl-dots {
  position: absolute;
  bottom: clamp(16px, 4vh, 40px);
  left: 6vw;
  z-index: 3;
}
.projects-hero .owl-dots .owl-dot {
  width: 10px; height: 10px;
  background: #fff; border-radius: 50%;
  margin-right: 10px; opacity: .75; transition: all .3s;
}
.projects-hero .owl-dots .owl-dot.active { background: #ff5522; opacity: 1; }

/* === Fix hero text vertical position on New Projects === */

/* 1) Tell the slide to behave like a full-height flex container */
.projects-hero .owl-projects .item {
  /* adjust overall height as you like */
  min-height: clamp(600px, 85vh, 900px);
  display: flex;
  align-items: center;     /* <-- centers content vertically */
  /* Make sure background image still behaves */
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 2) Offset for the fixed header so text doesn't sit underneath it */
:root { --header-h: 100px; } /* your header is ~100px high on desktop */
@media (max-width: 992px) { :root { --header-h: 80px; } }

.projects-hero .owl-projects .item {
  padding-top: var(--header-h);
}

/* 3) Content block sizing/spacing (keeps it tidy across breakpoints) */
.projects-hero__content {
  width: min(100%, 1100px);
  color: #fff;
  padding-inline: 24px;                 /* a bit of side padding on small screens */
  /* optional extra breathing room on very tall viewports */
  padding-bottom: clamp(16px, 4vh, 40px);
  position: relative;
  z-index: 2;                           /* keeps it above any overlay */
}

/* 4) If you had any top margins on headings that push things upward, normalize them */
.projects-hero__content h1 { margin-top: 0.2em; }
.projects-hero__content .tag { margin-bottom: .6rem; display: inline-block; }

/* 5) Keep dots/arrows anchored near the bottom */
.projects-hero .owl-dots {
  position: absolute;
  left: 24px;
  bottom: clamp(16px, 3vh, 32px);
  z-index: 3;
}
.projects-hero .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 3;
}

/* --- Quote Section --- */
.projects-quote {
  background: #f6f7f9;
  padding: clamp(42px, 6vw, 72px) 0;
}
.projects-quote blockquote {
  margin: 0;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  color: #1e1e1e;
  text-align: center;
}

/* tighten space between the quote and the featured projects section */

/* shrink padding of the quote band */
.projects-quote{
  padding-top: 28px;         /* was larger */
  padding-bottom: 12px;      /* reduce bottom padding */
}

/* remove the default big margins on blockquote */
.projects-quote blockquote{
  margin: 0;                 /* important: browsers add large margins */
}

/* remove any top gap on the next section */
.section.best-deal{
  margin-top: 0 !important;
  padding-top: 20px !important;   /* keep a small breathing room */
}

/* be sure headings don’t re-introduce spacing */
.section.best-deal .section-heading{
  margin-top: 0;
}


/* Mobile tweaks */
@media (max-width: 576px) {
  .projects-hero__content {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .projects-hero__content p {
    max-width: 100%;
  }
}

/* --- Call-to-action banner with background --- */
.cta-banner {
  background-image: url('../images/new-projects-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: clamp(250px, 45vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* subtle dark overlay */
}

.cta-overlay {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.cta-overlay h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
}

.cta-overlay a {
  color: #f35525;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.cta-overlay a:hover {
  color: #ff6a3d;
  text-decoration: underline;
}
