/* Installers page. Built on the home page look (cg.css); everything scoped with "in-". */

.in-hero, .in-team, .in-steps, .in-cta { font-family: var(--cg-font); color: var(--cg-ink); }

/* ---------- hero ---------- */
.in-hero { background: var(--cg-dark); color: #fff; overflow: hidden; }
.in-hero .cg-wrap.in-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.in-hero__eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff8a9b; }
.in-hero__title { max-width: 620px; margin: 0 0 18px; font-family: var(--cg-font-bold); font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: #fff; text-transform: none; }
.in-hero__text p { max-width: 520px; margin: 0 0 28px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: #ebe6e1; }
.in-hero__faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.in-hero__faces img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #fbe9ea; }
.in-hero__faces img:nth-child(2) { transform: translateY(-26px); }

/* ---------- the installers ---------- */
.in-team { background: #fff; padding: clamp(48px, 7vw, 80px) 0; scroll-margin-top: 90px; }
.in-lead { margin: 10px 0 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: #5a5a5a; }
.in-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.in-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 28px; background: var(--cg-paper); border-radius: var(--cg-radius); transition: transform .3s ease, box-shadow .3s ease; }
.in-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .1); }
.in-card__pic { width: min(100%, 260px); margin-bottom: 18px; }
.in-card__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.in-card h3 { margin: 0 0 4px; font-family: var(--cg-font-bold); font-size: 24px; font-weight: 700; color: var(--cg-ink); text-transform: none; }
.in-card p { margin: 0 0 18px; font-size: 15px; color: var(--cg-muted); }

/* ---------- steps ---------- */
.in-steps { background: var(--cg-paper); padding: clamp(48px, 7vw, 80px) 0; }
.in-steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: none; }
.in-steps__list li { padding: 24px; background: #fff; border-radius: var(--cg-radius); margin: 0; }
.in-steps__no { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--cg-red); color: #fff; font-weight: 700; font-size: 17px; }
.in-steps__list h3 { margin: 0 0 8px; font-family: var(--cg-font-bold); font-size: 19px; font-weight: 700; color: var(--cg-ink); text-transform: none; }
.in-steps__list p { margin: 0; font-size: 15px; line-height: 1.6; color: #3d3d3d; }

/* ---------- closing band ---------- */
.in-cta { background: var(--cg-dark); color: #fff; padding: clamp(40px, 5vw, 64px) 0; }
.in-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.in-cta h2 { margin: 0 0 8px; font-family: var(--cg-font-bold); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: #fff; text-transform: none; }
.in-cta p { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.6; color: #ebe6e1; }

@media (max-width: 900px) {
  .in-hero .cg-wrap.in-hero__grid { grid-template-columns: 1fr; }
  .in-hero__faces { max-width: 420px; }
  .in-grid, .in-steps__list { grid-template-columns: 1fr; }
  .in-card { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; gap: 0 18px; padding: 18px; }
  .in-card__pic { width: 96px; margin: 0; flex: none; }
  .in-card h3, .in-card p { flex: 1 1 calc(100% - 120px); }
  .in-card .cg-btn { flex: 1 1 100%; justify-content: center; margin-top: 16px; }
}
@media (max-width: 640px) { .in-hero .cg-btns .cg-btn, .in-cta .cg-btns .cg-btn { flex: 1 1 auto; } }

/* same side margins as the home page (set from the navbar by cg.js); beats the footer stylesheet's .cg-wrap */
@media (min-width: 1200px) {
  :is(.in-hero, .in-team, .in-steps, .in-cta) .cg-wrap { max-width: none; margin: 0; padding-left: var(--cg-pad, 50px); padding-right: var(--cg-pad, 50px); }
}
.in-card .cg-btn { color: #fff !important; }

/* steps: no browser numbers, the red circles are the numbers */
.in-steps__list, .in-steps__list li { list-style: none !important; }
.in-steps__list li::marker { content: none; }

/* the pictures are square with a white corner around the pink circle */
.in-card__pic img { border-radius: 0; background: none; mix-blend-mode: multiply; }
.in-hero__faces img { border-radius: 50%; background: #fbe9ea; object-fit: cover; transform: scale(1); }
.in-hero__faces { overflow: visible; }
.in-hero__faces .in-face { display: block; overflow: hidden; border-radius: 50%; aspect-ratio: 1; }
.in-hero__faces .in-face img { width: 100%; height: 100%; border-radius: 0; transform: scale(1.45); }
.in-hero__faces .in-face:nth-child(2) { transform: translateY(-26px); }

/* even step cards, and larger faces in the cards */
.in-steps__list li, .in-steps__list li + li { margin: 0 !important; }
.in-card__pic { overflow: hidden; }
.in-card__pic img { transform: scale(1.3); }
.in-steps__list li, .in-steps__list li + li { padding: 24px !important; }

/* ===== light version: warm hero, white / dark / red sections ===== */
.in-hero { background: var(--cg-paper); color: var(--cg-ink); }
.in-hero__eyebrow { color: var(--cg-red); }
.in-hero__title { color: var(--cg-ink); }
.in-hero__text p { color: #4a4a4a; }
.in-hero__faces .in-face { border-radius: 0; overflow: visible; transform: none; }
.in-hero__faces .in-face img { border-radius: 0; background: none; mix-blend-mode: multiply; transform: none; }
.in-hero__faces .in-face:nth-child(2) { transform: translateY(-26px); }
.in-steps { background: var(--cg-dark); }
.in-steps .cg-eyebrow { color: #ff8a9b; }
.in-steps .cg-h2 { color: #fff; }
.in-steps__list li { background: var(--cg-dark-2); }
.in-steps__list h3 { color: #fff; }
.in-steps__list p { color: #cfcac5; }
.in-cta { background: var(--cg-red); }
.in-cta p { color: #fbe3e6; }
.in-cta .cg-btn--ghost { border-color: #fff; }

/* a transform would stop the picture blending into the warm background, so lift the middle face with "top" */
.in-hero__faces .in-face:nth-child(2) { transform: none; position: relative; top: -26px; }
.in-hero .cg-btn.cg-btn--red, .in-team .cg-btn.cg-btn--red { color: #fff !important; }
.in-cta .cg-btn.cg-btn--white { color: var(--cg-ink) !important; }
.in-hero .in-face, .in-hero .in-face img, .in-hero__faces img { border-radius: 0 !important; }
.in-hero .in-face, .in-hero .in-face img, .in-hero__faces img { border-radius: var(--cg-radius) !important; } .in-hero .in-face { overflow: hidden; }
.in-hero__faces { gap: 14px; }
.in-hero { display: flex; align-items: center; min-height: clamp(520px, 62vh, 650px); }
.in-hero .cg-wrap { width: 100%; }
@media (max-width: 900px) { .in-hero { min-height: 0; } }
.in-steps .cg-eyebrow { font-size: 16px; letter-spacing: .14em; color: var(--cg-red); }
