/* ============================================================
   CONSTRUCTION & BUILDERS — PAGE-SPECIFIC CSS
   Foundstone Infra | construction-builders.html
   ============================================================ */

/* ---- HERO SECTION ---- */
.cb-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 160px;
  padding-bottom: 6rem;
  box-sizing: border-box;
}

.cb-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center 30%;
  transform-origin: center center;
  transition: transform 8s ease;
}

.cb-hero.loaded .cb-hero-bg {
  transform: scale(1.07);
}

.cb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 28, 22, 0.95) 0%,
    rgba(20, 28, 22, 0.68) 48%,
    rgba(20, 28, 22, 0.38) 100%
  );
}

/* Copper horizontal rule accent */
.cb-hero-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, #C58B55 20%, #C58B55 80%, transparent);
  z-index: 3;
}

/* Large decorative watermark */
.cb-hero-deco {
  position: absolute;
  bottom: 3.5rem;
  right: -1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.8rem, 8.5vw, 8.5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  white-space: nowrap;
}

.cb-hero .svc-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 0;
}

.cb-hero .breadcrumb {
  margin-bottom: 1.5rem;
  color: rgba(245, 240, 231, 0.85);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.cb-hero .breadcrumb a {
  color: var(--copper-lt);
  text-decoration: none;
  transition: color 0.25s ease;
}

.cb-hero .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.cb-hero .svc-hero-label {
  display: inline-block;
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--copper-lt);
  text-transform: uppercase;
  font-weight: 700;
}

.cb-hero .svc-hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.cb-hero .svc-hero-h1 em {
  font-style: italic;
  color: var(--copper-lt);
}

.cb-hero .svc-hero-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(245, 240, 231, 0.92);
  max-width: 620px;
  margin-bottom: 2.25rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.cb-hero .svc-hero-btns {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}


/* ---- B. INTRO SECTION ---- */
#cb-intro {
  background: var(--ivory);
  padding: 7rem 0;
}

.cb-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.cb-intro-text .section-label {
  display: block;
  margin-bottom: 1rem;
}

.cb-intro-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 2rem;
}

.cb-intro-h2 em {
  font-style: italic;
  color: var(--forest);
}

.cb-intro-body p {
  font-family: 'Manrope', sans-serif;
  font-size: 1.075rem;
  line-height: 1.85;
  color: #3d423e;
  margin-bottom: 1.35rem;
}

.cb-intro-body p:last-child {
  margin-bottom: 0;
}

.cb-intro-img {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.cb-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.cb-intro-img:hover img {
  transform: scale(1.03);
}

/* Copper corner accent */
.cb-intro-img::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 60px;
  height: 4px;
  background: var(--copper);
}


/* ---- C. SERVICES SECTION (Specialisation Cards) ---- */
#cb-services {
  background: var(--charcoal);
  padding: 7rem 0;
}

.cb-services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.cb-services-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.cb-services-h2 em {
  font-style: italic;
  color: var(--copper-lt);
}

.cb-services-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 1.075rem;
  color: rgba(245, 240, 231, 0.75);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.cb-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.cb-svc-card {
  position: relative;
  overflow: hidden;
  background: #181c19;
  cursor: default;
  aspect-ratio: 16 / 11;
  border-radius: 4px;
  border: 1px solid rgba(197, 139, 85, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.cb-svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(197, 139, 85, 0.55);
}

.cb-svc-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
  filter: brightness(0.65);
}

.cb-svc-card:hover .cb-svc-card-img {
  transform: scale(1.08);
  filter: brightness(0.5);
}

/* Subtle dark overlay for superior text contrast */
.cb-svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 16, 0.25) 0%,
    rgba(15, 20, 16, 0.65) 45%,
    rgba(15, 20, 16, 0.94) 100%
  );
  z-index: 1;
  transition: background 0.45s ease;
}

.cb-svc-card:hover .cb-svc-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 20, 16, 0.35) 0%,
    rgba(15, 20, 16, 0.75) 40%,
    rgba(15, 20, 16, 0.97) 100%
  );
}

.cb-svc-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2.25rem;
  z-index: 2;
}

.cb-svc-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--copper-lt);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.cb-svc-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cb-svc-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.975rem;
  color: rgba(245, 240, 231, 0.88);
  line-height: 1.65;
  margin: 0;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
}

.cb-svc-card:hover .cb-svc-desc {
  color: #FFFFFF;
}


/* ---- D. WHAT WE DO (Alternating full-width blocks) ---- */
#cb-whatwedo {
  background: var(--ivory);
}

.cb-whatwedo-header {
  text-align: center;
  padding: 7rem 0 0;
}

.cb-wwd-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.cb-wwd-h2 em {
  font-style: italic;
  color: var(--forest);
}

.cb-wwd-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 1.075rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.cb-wwd-blocks {
  margin-top: 4.5rem;
}

.cb-wwd-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.cb-wwd-block:nth-child(even) {
  direction: rtl;
}

.cb-wwd-block:nth-child(even) > * {
  direction: ltr;
}

.cb-wwd-photo {
  position: relative;
  overflow: hidden;
}

.cb-wwd-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.cb-wwd-block:hover .cb-wwd-photo img {
  transform: scale(1.04);
}

.cb-wwd-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 5rem;
}

.cb-wwd-block:nth-child(1) .cb-wwd-content { background: var(--ivory); }
.cb-wwd-block:nth-child(2) .cb-wwd-content { background: var(--beige); }
.cb-wwd-block:nth-child(3) .cb-wwd-content { background: #344A3D; }
.cb-wwd-block:nth-child(3) .cb-wwd-content .cb-wwd-num { color: var(--copper-lt); }
.cb-wwd-block:nth-child(3) .cb-wwd-content .cb-wwd-title { color: #fff; }
.cb-wwd-block:nth-child(3) .cb-wwd-content .cb-wwd-text { color: rgba(245, 240, 231, 0.88); }
.cb-wwd-block:nth-child(3) .cb-wwd-content .cb-wwd-rule { background: rgba(255,255,255,0.25); }

.cb-wwd-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.cb-wwd-rule {
  width: 48px;
  height: 2px;
  background: var(--copper);
  margin-bottom: 1.5rem;
}

.cb-wwd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.cb-wwd-text {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
}


/* ---- E. PROJECT PROCESS ---- */
#cb-process {
  background: var(--ivory);
  padding: 7rem 0;
}

.cb-process-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.cb-process-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.cb-process-h2 em {
  font-style: italic;
  color: var(--forest);
}

.cb-process-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 1.075rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.cb-process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

/* Subtle connecting line passing behind step badges */
.cb-process-grid::before {
  content: '';
  position: absolute;
  top: 64px;
  left: 60px;
  right: 60px;
  height: 1px;
  border-top: 2px dashed rgba(197, 139, 85, 0.45);
  z-index: 1;
  pointer-events: none;
}

.cb-process-step {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  padding: 2.5rem 1.85rem 2.25rem;
  border-radius: 4px;
  border: 1px solid rgba(197, 139, 85, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cb-process-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--copper);
  border-radius: 4px 4px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cb-process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(52, 74, 61, 0.12);
  border-color: var(--copper);
}

.cb-process-step:hover::after {
  transform: scaleX(1);
}

.cb-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--copper-lt);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(52, 74, 61, 0.22);
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cb-process-step:hover .cb-step-badge {
  transform: scale(1.08);
  background: #25362c;
}

.cb-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.cb-step-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}


/* ---- F. COMMITMENT SECTION ---- */
#cb-commitment {
  position: relative;
  background: var(--forest);
  padding: 8rem 0;
  overflow: hidden;
}

.cb-commitment-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1600&q=70');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.cb-commitment-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.cb-commitment-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: -1rem;
  display: block;
}

.cb-commitment-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.75rem;
}

.cb-commitment-h2 em {
  font-style: italic;
  color: var(--copper-lt);
}

.cb-commitment-rule {
  width: 60px;
  height: 2px;
  background: var(--copper);
  margin: 0 auto 2.25rem;
}

.cb-commitment-text {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  color: rgba(245, 240, 231, 0.88);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto;
}

.cb-commitment-text p + p {
  margin-top: 1.35rem;
}


/* ---- G. FINAL CTA ---- */
#cb-cta {
  position: relative;
  padding: 9rem 0;
  overflow: hidden;
}

.cb-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
}

.cb-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 31, 0.82);
}

.cb-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cb-cta-content > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#cb-cta .section-label {
  margin: 0 auto 0.75rem;
  display: inline-block;
  text-align: center;
}

#cb-cta .svc-cta-h2 {
  text-align: center;
  margin: 0.5rem auto 1.25rem;
}

#cb-cta .svc-cta-desc {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 580px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(245, 240, 231, 0.9);
}

#cb-cta .svc-cta-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cb-hero {
    min-height: 90vh;
    padding-top: 140px;
    padding-bottom: 5rem;
  }

  .cb-intro-grid {
    gap: 3rem;
  }

  .cb-wwd-content {
    padding: 3.5rem 3rem;
  }

  .cb-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cb-process-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .cb-hero {
    min-height: 85vh;
    padding-top: 130px;
    padding-bottom: 4.5rem;
  }

  .cb-hero .svc-hero-h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .cb-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cb-intro-img {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .cb-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cb-svc-card {
    aspect-ratio: 16 / 10;
  }

  .cb-wwd-block,
  .cb-wwd-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }

  .cb-wwd-block:nth-child(even) > * {
    direction: ltr;
  }

  .cb-wwd-photo {
    aspect-ratio: 16 / 9;
  }

  .cb-wwd-content {
    padding: 3rem 1.75rem;
  }

  .cb-wwd-block:nth-child(even) .cb-wwd-photo {
    order: -1;
  }

  .cb-process-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cb-process-step {
    padding: 2rem 1.5rem;
  }

  .cb-commitment-quote {
    display: none;
  }

  .cb-services-h2,
  .cb-wwd-h2,
  .cb-process-h2,
  .cb-commitment-h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .cb-hero {
    min-height: auto;
    padding-top: 115px;
    padding-bottom: 3.5rem;
  }

  #cb-intro { padding: 4.5rem 0; }
  #cb-services { padding: 4.5rem 0; }
  .cb-whatwedo-header { padding: 4.5rem 0 0; }
  #cb-process { padding: 4.5rem 0; }
  #cb-commitment { padding: 5rem 0; }
  #cb-cta { padding: 5.5rem 0; }

  .cb-hero-deco { display: none; }

  .cb-hero .svc-hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .cb-hero .svc-hero-btns .btn-primary,
  .cb-hero .svc-hero-btns .btn-outline {
    width: 100%;
    justify-content: center;
  }

  #cb-cta .svc-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  #cb-cta .svc-cta-btns .btn-primary,
  #cb-cta .svc-cta-btns .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .cb-svc-card-body {
    padding: 1.75rem 1.5rem;
  }

  .cb-wwd-content {
    padding: 2.25rem 1.25rem;
  }

  .cb-services-header { margin-bottom: 2.5rem; }
}
