/* Page: subcontractor-supervision */

:root {
  --brand-orange:  #e8722a;
  --text-dark:     #333333;
  --text-body:     #4a4a4a;
  --text-muted:    #888888;
  --bg-white:      #ffffff;
  --bg-light:      #f5f5f5;
  --bg-dark:       #1e1e1e;
  --border:        #e5e5e5;
  --font-primary:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --container:     1200px;
  --radius:        4px;
  --shadow:        0 10px 40px rgba(0,0,0,0.08);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.07);
  --tr:            0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
}

/* ANIMATIONS */
@keyframes slideInLeft  { from { opacity:0; transform:translateX(-150px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(150px);  } to { opacity:1; transform:translateX(0); } }
@keyframes fadeUp       { from { opacity:0; transform:translateY(40px);   } to { opacity:1; transform:translateY(0); } }

.anim-left  { animation: slideInLeft  1s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.anim-right { animation: slideInRight 1s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.anim-up    { animation: fadeUp       0.9s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.d1 { animation-delay: 0.10s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.40s; }
.d4 { animation-delay: 0.55s; }

/* =============================================
   1. HERO — full-width dark with text only
   ============================================= */
.hero {
  position: relative;
  background: var(--bg-dark);
  padding: 130px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,114,42,0.14) 0%, transparent 55%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg, transparent 0, transparent 38px,
    rgba(255,255,255,0.015) 38px, rgba(255,255,255,0.015) 39px
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  color: var(--brand-orange);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 28px;
}

.hero__title span { color: var(--brand-orange); }

.hero__desc {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.60);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: background var(--tr), transform var(--tr);
}
.btn-primary:hover { background: #d4631c; transform: translateY(-2px); }
.btn-primary svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }

/* =============================================
   2. INTRO — image LEFT, text RIGHT (flipped vs prev page)
   ============================================= */
.intro {
  background: var(--bg-white);
  padding: 100px 0;
  overflow: hidden;
}

.intro__grid {
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Image on the LEFT this time */
.intro__image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro__orange-bg {
  position: absolute;
  top: -30px;
  left: -30px;       /* ← left side, not right */
  width: 80%;
  height: 90%;
  background: var(--brand-orange);
  z-index: 1;
}

.intro__img-box {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.intro__img-box img,
.img-ph {
  width: 100%;
  height: 440px;
  display: block;
  object-fit: cover;
}

.img-ph {
  background: #d5d5d5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #aaa;
}
.img-ph svg { width:44px; height:44px; stroke:#bbb; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.img-ph span { font-family:var(--font-primary); font-size:11px; font-weight:600; letter-spacing:1px; text-transform:uppercase; }

.intro__content { flex: 1; max-width: 500px; }

.label {
  color: var(--brand-orange);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 16px;
}

.h2-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}

.body-text p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}
.body-text p:last-child { margin-bottom: 0; }

/* =============================================
   3. SELECTION & VETTING — orange stat cards + checklist
      (pattern from screenshot 2: text+checklist LEFT, big stat cards RIGHT)
   ============================================= */
.vetting {
  background: var(--bg-light);
  padding: 100px 0;
}

.vetting__grid {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.vetting__left { flex: 1; }

.section-label {
  color: var(--brand-orange);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.section-h2 {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Checklist items — like the "Why Choose" pattern */
.check-list { display: flex; flex-direction: column; gap: 28px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.check-item__dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-item__dot svg {
  width: 15px; height: 15px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.check-item__title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.check-item__text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* Orange stat blocks — right side like screenshot 2 */
.vetting__right {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-top: 20px;
}

.stat-block {
  background: var(--brand-orange);
  padding: 40px 44px;
  color: #fff;
  position: relative;
}

.stat-block--offset { margin-left: 40px; }   /* stagger like screenshot */
.stat-block--sm     { margin-left: 0;    }

.stat-block__num {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-block__label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* =============================================
   4. PERFORMANCE MONITORING — accordion-style
      (pattern from screenshot 3 & 4: text+accordion RIGHT, image collage LEFT)
   ============================================= */
.perf {
  background: var(--bg-white);
  padding: 100px 0;
}

.perf__grid {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

/* Image collage LEFT */
.perf__images {
  flex: 1;
  position: relative;
  min-height: 500px;
}

.perf__img-main {
  width: 68%;
  height: 320px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.perf__img-main img,
.perf__img-main .img-ph { width:100%; height:100%; object-fit:cover; }

.perf__img-secondary {
  width: 55%;
  height: 240px;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  right: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.perf__img-secondary img,
.perf__img-secondary .img-ph { width:100%; height:100%; object-fit:cover; }

.perf__orange-sq {
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--brand-orange);
  bottom: 70px;
  left: 55%;
  z-index: -1;
}

/* Accordion RIGHT */
.perf__content { flex: 1; max-width: 520px; }

.accordion { margin-top: 40px; border-top: 1px solid var(--border); }

.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger__title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  transition: color var(--tr);
}

.accordion-trigger:hover .accordion-trigger__title { color: var(--brand-orange); }

.accordion-trigger__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr), border-color var(--tr);
}

.accordion-trigger__icon svg {
  width: 12px; height: 12px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--tr), stroke var(--tr);
}

.accordion-item.open .accordion-trigger__icon {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.accordion-item.open .accordion-trigger__icon svg {
  stroke: #fff;
  transform: rotate(45deg);
}

.accordion-item.open .accordion-trigger__title { color: var(--brand-orange); }

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}

.accordion-body__inner {
  padding: 0 0 28px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
}

/* Accordion sub-items */
.acc-sub { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }

.acc-sub-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.acc-sub-item__dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--brand-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.acc-sub-item__dot svg {
  width: 11px; height: 11px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.acc-sub-item__text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

.acc-sub-item__label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

/* =============================================
   5. ISSUE RESOLUTION — full-width orange accent strip
   ============================================= */
.resolution {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.resolution::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,114,42,0.10) 0%, transparent 55%);
}

.resolution__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.resolution__label-col {
  flex: 0 0 300px;
}

.resolution__label-col .section-label { color: var(--brand-orange); }

.resolution__h2 {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.resolution__content { flex: 1; }

.resolution__intro {
  font-size: 16px;
  color: rgba(255,255,255,0.60);
  line-height: 1.75;
  margin-bottom: 36px;
  border-left: 3px solid var(--brand-orange);
  padding-left: 24px;
}

.resolution__body {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
}

/* =============================================
   6. CTA
   ============================================= */
.cta {
  background: var(--bg-white);
  padding: 100px 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 64px 72px;
  border-left: 5px solid var(--brand-orange);
  box-shadow: var(--shadow);
}

.cta__eyebrow {
  color: var(--brand-orange);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.cta__title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta__desc {
  font-size: 15px;
  color: var(--text-body);
  max-width: 420px;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--tr), color var(--tr);
}
.btn-outline:hover { border-color: var(--brand-orange); color: var(--brand-orange); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .intro__grid, .vetting__grid, .perf__grid,
  .resolution__inner, .cta__inner { flex-direction: column; }

  .intro__image { width: 100%; }
  .intro__orange-bg { width: 100%; top: -20px; left: -20px; }

  .vetting__right { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .stat-block { flex: 1; min-width: 180px; }
  .stat-block--offset { margin-left: 0; }

  .perf__images { width: 100%; height: 340px; }
  .perf__img-main  { width: 60%; height: 220px; }
  .perf__img-secondary { width: 50%; height: 180px; }
  .perf__content { max-width: 100%; }

  .resolution__label-col { flex: none; width: 100%; }
  .cta__inner { padding: 48px 36px; }

  @keyframes slideInLeft  { from { opacity:0; } to { opacity:1; } }
  @keyframes slideInRight { from { opacity:0; } to { opacity:1; } }
  .anim-left, .anim-right { transform: none !important; }
}

@media (max-width: 640px) {
  .hero, .intro, .vetting, .perf, .resolution, .cta { padding: 60px 0; }
  .container { padding: 0 20px; }
  .intro__img-box img, .img-ph { height: 280px; }
  .perf__images { height: 260px; }
  .vetting__right { flex-direction: column; }
  .stat-block--offset { margin-left: 0; }
}
