/* ============================================================
   SERVICE PAGES — layers on pack.css + projects.css
   ============================================================ */

/* ---- Hero ---- */
.svc-page-hero {
  position: relative; min-height: 68vh; display: flex; align-items: flex-end;
  background: var(--charcoal); color: var(--off-white); padding-top: var(--nav-h); overflow: hidden;
}
.svc-page-hero .bg { position: absolute; inset: 0; }
.svc-page-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,18,17,0.55) 0%, rgba(19,18,17,0.35) 45%, rgba(19,18,17,0.9) 100%); }
.svc-page-hero .wrap { position: relative; padding-bottom: clamp(44px, 6vw, 84px); }
.svc-page-hero h1 { color: var(--off-white); font-size: clamp(2.6rem, 6.5vw, 5.2rem); margin-top: 1rem; max-width: 16ch; }
.svc-page-hero .sub { margin-top: 1.3rem; max-width: 56ch; color: var(--ink-on-dark); font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }

/* ---- Intro ---- */
.svc-intro { background: var(--paper); border-bottom: 1px solid var(--border); }
.svc-intro .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 84px); align-items: start; }
.svc-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 1.1rem; }
.svc-intro .lead { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.5; color: var(--charcoal); font-weight: 400; }
.svc-intro .lead em { font-style: italic; color: var(--stone); }
.svc-intro .body { margin-top: 1.4rem; }
.svc-intro .body p + p { margin-top: 1rem; }

/* ---- Service breakdown list ---- */
.svc-list-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.svc-item { background: var(--off-white); padding: clamp(28px, 3vw, 46px); display: flex; flex-direction: column; transition: background .4s var(--ease); }
.svc-item:hover { background: var(--paper); }
.svc-item .n { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--stone); }
.svc-item h3 { font-size: 1.6rem; margin-top: 1rem; }
.svc-item p { font-size: 0.95rem; margin-top: 0.8rem; }

/* ---- Process ---- */
.svc-process { background: var(--charcoal); color: var(--ink-on-dark); }
.svc-process .kicker { color: var(--stone-soft); }
.svc-process h2 { color: var(--off-white); }
.svc-process-head { max-width: 600px; margin-bottom: clamp(40px, 5vw, 64px); }
.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.svc-step { padding: clamp(28px, 2.6vw, 40px) clamp(20px, 2vw, 34px); border-left: 1px solid var(--border-dark); }
.svc-step:first-child { border-left: none; padding-left: 0; }
.svc-step .sn { font-family: var(--serif); font-size: 2.6rem; color: var(--stone); line-height: 1; }
.svc-step h4 { font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: 0.04em; color: var(--off-white); text-transform: none; margin-top: 1.1rem; }
.svc-step p { font-size: 0.9rem; margin-top: 0.6rem; }

/* ---- CTA band ---- */
.svc-cta { background: var(--off-white); text-align: center; }
.svc-cta .kicker { justify-content: center; }
.svc-cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-top: 1.2rem; max-width: 18ch; margin-inline: auto; }
.svc-cta .row { margin-top: 2.4rem; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.svc-cta .tag { margin-top: 2.4rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--stone); }

/* ---- Related case studies (dark) ---- */
.svc-related { background: var(--charcoal); color: var(--ink-on-dark); }
.svc-related .kicker { color: var(--stone-soft); }
.svc-related h2 { color: var(--off-white); }
.svc-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.svc-related .proj-grid { justify-content: flex-start; }
.svc-related .pcard { flex: 0 1 calc(33.333% - 14px); }
.svc-related .textlink { color: var(--off-white); border-color: var(--stone); }

/* ---- Sector cards (Residential landing) ---- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.sector-card { position: relative; background: var(--off-white); min-height: 420px; display: flex; flex-direction: column; overflow: hidden; }
.sector-card .sc-img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.sector-card .sc-img .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,0.25), rgba(26,26,26,0.82)); }
.sector-card .sc-inner { position: relative; z-index: 2; padding: clamp(28px, 2.8vw, 44px); display: flex; flex-direction: column; height: 100%; transition: color .5s var(--ease); }
.sector-card .n { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--stone); }
.sector-card h3 { font-size: 1.9rem; margin-top: auto; transition: color .5s var(--ease); }
.sector-card p { font-size: 0.92rem; margin-top: 0.7rem; transition: color .5s var(--ease); }
.sector-card .go { margin-top: 1.5rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); display: inline-flex; gap: 0.5em; }
.sector-card:hover .sc-img { opacity: 1; }
.sector-card:hover h3, .sector-card:hover p { color: var(--off-white); }
.sector-card:hover .go { color: var(--off-white); }
@media (max-width: 860px) { .sector-grid { grid-template-columns: 1fr; } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .svc-intro .wrap { grid-template-columns: 1fr; gap: 24px; }
  .svc-steps { grid-template-columns: 1fr 1fr; }
  .svc-step { border-left: none; padding-left: 0; }
  .svc-step:nth-child(2) { border-left: 1px solid var(--border-dark); padding-left: clamp(20px,2vw,34px); }
  .svc-step:nth-child(3), .svc-step:nth-child(4) { padding-top: 36px; border-top: 1px solid var(--border-dark); }
}
@media (max-width: 640px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc-steps { grid-template-columns: 1fr; }
  .svc-step:nth-child(2) { border-left: none; padding-left: 0; }
  .svc-step:nth-child(2), .svc-step:nth-child(3), .svc-step:nth-child(4) { padding-top: 28px; border-top: 1px solid var(--border-dark); }
}
