/* Page: ground-up-construction */

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

/* SHARED */
.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 {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 20px;
}

.h2--white { color: #fff; }

.lead {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
}
.lead + .lead { margin-top: 16px; }
.lead--white  { color: rgba(255,255,255,0.65); }

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

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

/* =============================================
   1. HERO — dark full-width, process numbers strip
   ============================================= */
.hero {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

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

.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__main {
  position: relative;
  z-index: 2;
  padding: 110px 0 80px;
  max-width: 700px;
}

.hero__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: 22px;
}

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

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

.hero__desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.60);
  margin-bottom: 40px;
  max-width: 600px;
}

/* Bottom process strip */
.hero__strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero__step {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: background var(--tr);
}

.hero__step:last-child { border-right: none; }
.hero__step:hover      { background: rgba(255,255,255,0.04); }
.hero__step:nth-child(2) { background: var(--brand-orange); }
.hero__step:nth-child(2):hover { background: #d4631c; }

.hero__step-num {
  flex-shrink: 0;
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.20);
  line-height: 1;
  margin-top: 2px;
}

.hero__step:nth-child(2) .hero__step-num { color: rgba(255,255,255,0.50); }

.hero__step-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.hero__step-text {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
}

.hero__step:nth-child(2) .hero__step-text { color: rgba(255,255,255,0.80); }

/* =============================================
   2. INTRO — H1 body, 2-col
   ============================================= */
.intro {
  background: var(--bg-white);
  padding: 100px 0;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.intro__tag {
  display: inline-block;
  background: rgba(232,114,42,0.10);
  border-left: 3px solid var(--brand-orange);
  padding: 7px 18px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 22px;
}

/* =============================================
   3. FROM FOUNDATION TO STRUCTURAL COMPLETION
      Light bg — H2 centered top + 2 wide rows (H3)
   ============================================= */
.foundation {
  background: var(--bg-light);
  padding: 100px 0;
}

.foundation__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.foundation__rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foundation__row {
  background: var(--bg-white);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--tr);
}

.foundation__row:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.11); }

.foundation__row-left {
  background: var(--bg-dark);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.foundation__row-left::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--brand-orange);
}

.foundation__row-bg-num {
  position: absolute;
  top: -10px; left: 16px;
  font-family: var(--font-primary);
  font-size: 100px;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -6px;
  pointer-events: none;
}

.foundation__row-icon {
  width: 52px; height: 52px;
  background: rgba(232,114,42,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.foundation__row-icon svg {
  width: 24px; height: 24px;
  stroke: var(--brand-orange); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.foundation__row-h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.foundation__row-right {
  padding: 48px 52px;
  display: flex;
  align-items: center;
}

.foundation__row-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.85;
}

/* =============================================
   4. SYSTEMS INSTALLATION & INTEGRATION
      White bg — H2 left / single H3 full-width card right
   ============================================= */
.systems {
  background: var(--bg-white);
  padding: 100px 0;
}

.systems__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.systems__left {
  position: sticky;
  top: 40px;
}

.systems__left .lead {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Single MEP card — prominent */
.mep-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mep-card__head {
  background: var(--brand-orange);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.mep-card__head-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.mep-card__head-icon svg {
  width: 26px; height: 26px;
  stroke: #fff; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.mep-card__head-label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.mep-card__head-h3 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.mep-card__body {
  padding: 40px 44px;
  background: var(--bg-white);
}

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

.mep-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mep-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 7px 14px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.mep-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============================================
   5. EXTERIOR & ENVELOPE COMPLETION
      Dark bg — H2 header + single H3 block
   ============================================= */
.envelope {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

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

.envelope__inner {
  position: relative;
  z-index: 1;
}

.envelope__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.envelope__header .label  { color: var(--brand-orange); }
.envelope__header .h2     { color: #fff; margin-bottom: 0; }

.envelope__header-lead {
  font-size: 16px;
  color: rgba(255,255,255,0.60);
  line-height: 1.8;
}

/* Three system items in a row */
.envelope__systems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}

.env-sys {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 32px 28px;
  transition: background var(--tr);
}

.env-sys:hover { background: rgba(255,255,255,0.08); }

.env-sys__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: 18px;
}

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

.env-sys__title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

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

/* Full H3 text block */
.envelope__body {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 4px solid var(--brand-orange);
  padding: 44px 52px;
}

.envelope__body-label {
  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: 12px;
}

.envelope__body-h3 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.envelope__body-text {
  font-size: 15px;
  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;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero__strip        { grid-template-columns: 1fr 1fr; }
  .hero__step         { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero__step:last-child { border-bottom: none; }

  .intro__grid        { grid-template-columns: 1fr; gap: 40px; }

  .foundation__row    { grid-template-columns: 1fr; }
  .foundation__row-left::before { width: 100%; height: 4px; top: auto; bottom: 0; right: 0; }
  .foundation__row-right { padding: 36px 40px 48px; }

  .systems__grid      { grid-template-columns: 1fr; }
  .systems__left      { position: static; }

  .envelope__header   { grid-template-columns: 1fr; gap: 24px; }
  .envelope__systems  { grid-template-columns: 1fr 1fr; }

  .cta__inner         { flex-direction: column; 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) {
  .intro, .foundation, .systems, .envelope, .cta { padding: 60px 0; }
  .container  { padding: 0 20px; }
  .hero__main { padding: 80px 0 60px; }
  .hero__strip { grid-template-columns: 1fr; }
  .envelope__systems { grid-template-columns: 1fr; }
  .envelope__body { padding: 32px 28px; }
  .mep-card__head, .mep-card__body { padding: 28px 24px; }
}
