/* Page: quality-control-site-inspections */

/* ==============================================
   ROOT VARIABLES — CoreExec brand
   ============================================== */
:root {
  --brand-orange:   #e8722a;
  --brand-dark:     #1a1a1a;
  --text-dark:      #333333;
  --text-body:      #4a4a4a;
  --text-muted:     #888888;
  --bg-white:       #ffffff;
  --bg-light:       #f7f7f7;
  --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);
  --transition:     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 slideInFromLeft {
  from { opacity: 0; transform: translateX(-150px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromRight {
  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); }
}

.fade-in-left  { animation: slideInFromLeft  1s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.fade-in-right { animation: slideInFromRight 1s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.fade-up       { animation: fadeUp           0.9s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* ==============================================
   HERO BANNER
   ============================================== */
.page-hero {
  position: relative;
  background: var(--bg-dark);
  padding: 120px 0 90px;
  overflow: hidden;
}

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

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

.page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.page-hero__content { flex: 1; max-width: 580px; }

.page-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: 20px;
}

.page-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 24px;
}

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

.page-hero__desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.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 34px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.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;
}



/* ==============================================
   INTRO SECTION
   ============================================== */
.intro-section {
  position: relative;
  background-color: #fff;
  padding-top: 100px;
  padding-bottom: 100px;
  overflow: hidden;
}

.intro-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

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

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

.intro-title {
  color: var(--text-dark);
  font-family: var(--font-primary);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

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

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

.intro-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center right;
}

.intro-orange-bg {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80%;
  height: 90%;
  background-color: var(--brand-orange);
  z-index: 1;
}

.intro-img-box {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-img-box img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
}

/* Placeholder when no photo */
.img-placeholder {
  width: 100%;
  height: 420px;
  background: #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #999;
}

.img-placeholder svg {
  width: 44px; height: 44px;
  stroke: #bbb; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.img-placeholder span {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==============================================
   SECTION HEADER (shared)
   ============================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-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: 14px;
}

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

.section-desc {
  font-size: 16px;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==============================================
   PROGRAM CARDS
   ============================================== */
.program-section {
  background: var(--bg-light);
  padding: 100px 0;
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--brand-orange);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.program-card__icon {
  width: 56px; height: 56px;
  background: rgba(232,114,42,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.program-card__icon svg {
  width: 26px; height: 26px;
  stroke: var(--brand-orange); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

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

.program-card__title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.program-card__text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
}

/* ==============================================
   PHASES — 3 steps
   ============================================== */
.phases-section {
  background: #fff;
  padding: 100px 0;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.phase-card {
  padding: 48px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}

.phase-card:last-child { border-right: none; }
.phase-card:hover { background: var(--bg-light); }

.phase-card__number {
  font-family: var(--font-primary);
  font-size: 60px;
  font-weight: 800;
  color: rgba(232,114,42,0.10);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

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

.phase-card__title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.phase-card__text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
}

.phase-card__bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--brand-orange);
  transition: width 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}

.phase-card:hover .phase-card__bar { width: 100%; }



/* ==============================================
   TESTING — dark bg
   ============================================== */
.testing-section {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,114,42,0.08) 0%, transparent 50%);
}

.testing-section .section-title { color: #fff; }
.testing-section .section-desc  { color: rgba(255,255,255,0.55); }

.tests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
}

.test-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 36px 30px;
  transition: background var(--transition);
}

.test-card:hover { background: rgba(255,255,255,0.08); }

.test-card__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--brand-orange);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.test-card__icon svg {
  width: 20px; height: 20px;
  stroke: var(--brand-orange); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.test-card__title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.test-card__text {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  line-height: 1.7;
}

/* ==============================================
   CTA
   ============================================== */
.cta-section {
  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(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 15px;
  color: var(--text-body);
  max-width: 420px;
}

.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(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 991px) {
  .page-hero__inner   { flex-direction: column; }
  .page-hero__stats   { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .hero-stat          { flex: 1; min-width: 0; }

  .intro-grid         { flex-direction: column; gap: 50px; }
  .intro-content      { max-width: 100%; text-align: left; }
  .intro-orange-bg    { width: 100%; top: -20px; right: -20px; }

  .program-grid       { grid-template-columns: 1fr; }

  .phases-grid        { grid-template-columns: 1fr; }
  .phase-card         { border-right: none; border-bottom: 1px solid var(--border); }
  .phase-card:last-child { border-bottom: none; }

  .tests-grid         { grid-template-columns: 1fr 1fr; }

  .cta-inner          { flex-direction: column; padding: 48px 36px; }

  @keyframes slideInFromLeft  { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideInFromRight { from { opacity: 0; } to { opacity: 1; } }
  .fade-in-left, .fade-in-right { transform: none !important; }
}

@media (max-width: 640px) {
  .page-hero  { padding: 80px 0 60px; }
  .intro-section, .program-section, .phases-section,
  .testing-section, .cta-section { padding: 60px 0; }
  .container  { padding: 0 20px; }
  .tests-grid { grid-template-columns: 1fr; }
  .intro-img-box img, .img-placeholder { height: 280px; }
}
