/* ============================================================
   Residential Services page — page-specific styles
   (loads after style.css + commercial.css patterns reused)
   ============================================================ */

/* ---------- "What We Renovate" feature row (4 icons) ---------- */
.renovate { background: var(--white); padding: clamp(64px,10vw,160px) 0; }
.renovate__head { text-align: center; max-width: 1100px; margin: 0 auto 72px; }
.renovate__head .eyebrow { margin-bottom: 12px; }
.renovate__head .h2 { margin-bottom: 12px; }
.renovate__grid { display: flex; gap: 28px; align-items: flex-start; }
.rv-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.rv-item__icon {
  display: inline-flex;
  padding: 16px;
  border-radius: 999px;
  background: var(--secondary-50);
  color: var(--secondary);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.rv-item__icon img { width: 32px; height: 32px; display: block; }
.rv-item:hover .rv-item__icon { transform: translateY(-4px) scale(1.06); }
.rv-item h3 { margin: 0; font-weight: 700; font-size: 18px; line-height: 28px; color: var(--body-text); }
.rv-item p { margin: 0; font-weight: 400; font-size: 16px; line-height: 22px; letter-spacing: -0.18px; color: var(--secondary-text); }

/* ---------- Services section (6 cards: 2 large + 3 small + header) ---------- */
.rsvc { background: var(--primary-50); padding: clamp(64px,10vw,160px) 0; }
.rsvc__head { text-align: center; max-width: 1000px; margin: 0 auto 56px; }
.rsvc__head .eyebrow { margin-bottom: 4px; }
.rsvc__head .h2 { margin-bottom: 4px; }

.rsvc__row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.rsvc__row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

/* reuse .svc-card from commercial.css pattern, redeclared here so this
   page has no dependency on commercial.css */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31,41,55,.12);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(31,41,55,.18); }
.svc-card__img { height: 280px; overflow: hidden; }
.rsvc__row-2 .svc-card__img { height: 327px; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.svc-card:hover .svc-card__img img { transform: scale(1.05); }
.svc-card__badge {
  position: absolute;
  top: 30px; left: 24px;
  display: inline-flex;
  padding: 15px;
  border-radius: 999px;
  background: var(--secondary);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.svc-card:hover .svc-card__badge { transform: scale(1.08) rotate(-4deg); }
.svc-card__badge svg { width: 35px; height: 35px; color: var(--white); }
.svc-card__body { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.svc-card h3 { margin: 0; font-weight: 900; font-size: 20px; line-height: 24px; color: var(--primary); }
.svc-card__desc { margin: 8px 0 0; font-weight: 500; font-size: 16px; line-height: 22px; letter-spacing: -0.18px; color: var(--body-text); }
.svc-card ul {
  margin: 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 700; font-size: 14px; line-height: 20px;
  color: var(--secondary-text);
}
.svc-card li::marker { color: var(--secondary-text); }

/* ---------- "Other services" quick tiles ---------- */
.quick-services { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.quick-services__title {
  margin: 0;
  font-weight: 800;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.2px;
  color: var(--primary);
  text-align: center;
}
.quick-services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
}
.qs-tile {
  flex: 1 1 150px;
  max-width: 220px;
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.qs-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31,41,55,.12); }
.qs-tile__icon {
  display: inline-flex;
  padding: 8px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--white);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.qs-tile:hover .qs-tile__icon { transform: scale(1.1); }
.qs-tile__icon svg, .qs-tile__icon img { width: 24px; height: 24px; display: block; }
.qs-tile p { margin: 0; font-weight: 700; font-size: 18px; line-height: 28px; color: var(--body-text); }

/* ---------- Why It Matters (checklist) — same pattern as commercial ---------- */
.matters { background: var(--primary-100); padding: clamp(64px,10vw,160px) 0; }
.matters__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.matters__text .eyebrow { margin-bottom: 12px; }
.matters__text .h2 { margin-bottom: 12px; }
.matters__text .lead { margin: 0; }
.matters__list { display: flex; flex-direction: column; gap: 12px; }
.matters__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 8px;
  background: var(--secondary);
  transition: transform .25s ease, box-shadow .25s ease;
}
.matters__item:hover { transform: translateX(6px); box-shadow: 0 10px 24px rgba(69,93,245,.3); }
.matters__item .chk {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 8px;
  border-radius: 999px;
  background: var(--secondary-50);
  color: var(--secondary);
}
.matters__item .chk svg { width: 24px; height: 24px; display: block; }
.matters__item p { margin: 0; font-weight: 600; font-size: 20px; line-height: 24px; color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .renovate__grid { flex-wrap: wrap; }
  .rv-item { flex: 1 1 40%; }
  .rsvc__row-2 { grid-template-columns: 1fr; }
  .rsvc__row-3 { grid-template-columns: repeat(2, 1fr); }
  .matters__grid { grid-template-columns: 1fr; gap: 40px; }
  .qs-tile { flex: 1 1 30%; }
}
@media (max-width: 680px) {
  .renovate__grid { gap: 40px 28px; }
  .rv-item { flex: 1 1 100%; }
  .rsvc__row-3 { grid-template-columns: 1fr; }
  .qs-tile { flex: 1 1 45%; }
  .matters__item p { font-size: 18px; }
}
