/* ==========================================================
   SERVICE PAGES — layout language derived from SP reference
   Left-aligned hero with quick-call card, badge headers,
   numbered cards, layer cards, comparison tables, mid CTA.
   Loaded after site.css on the six service pages only.
   ========================================================== */

.sp-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.sp-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 55%, var(--navy-900) 100%); padding: 56px 0 76px; color: #fff; }
.sp-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q15 30 30 40 T60 40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3C/svg%3E"); pointer-events: none; }
.sp-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 54' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C260 0 520 54 760 28 S1220 8 1440 30 V54 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.sp-hero .sp-container { position: relative; z-index: 2; }
.sp-hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center; }
.sp-hero .breadcrumbs { margin-bottom: 22px; }
.sp-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 14px; }
.sp-hero-eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.sp-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; line-height: 1.13; margin-bottom: 18px; max-width: 700px; }
.sp-hero h1 span { color: var(--orange-soft); }
.sp-hero-desc { font-size: 1.08rem; color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 28px; line-height: 1.75; }
.sp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sp-hero-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); border-top: 5px solid var(--orange); }
.sp-hero-card-k { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.sp-hero-card-k .dot { width: 8px; height: 8px; border-radius: 50%; background: #23B26D; box-shadow: 0 0 0 3px rgba(35, 178, 109, .2); }
.sp-hero-card .sp-hero-phone { display: block; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 900; color: var(--navy-800); margin: 6px 0 14px; letter-spacing: -0.02em; text-decoration: none; }
.sp-hero-card .sp-hero-phone:hover { color: var(--cta); }
.sp-hero-card ul { display: grid; gap: 9px; margin-bottom: 20px; }
.sp-hero-card li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--text-light); }
.sp-hero-card li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23D84315'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sp-hero-card .btn { width: 100%; }

/* ---------- Sections ---------- */
.sp-section { padding: 76px 0; }
.sp-section-alt { background: var(--off-white); }
.sp-section-warm { background: var(--sand); }
.sp-section-dark { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: rgba(255, 255, 255, .84); }
.sp-section-dark h2, .sp-section-dark h3 { color: #fff; }
.sp-section-dark strong { color: #fff; }
.sp-head { margin-bottom: 42px; max-width: 760px; }
.sp-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sp-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: .76rem; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--cta); background: var(--orange-050); padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.sp-badge.navy { color: var(--navy); background: var(--navy-050); }
.sp-section-dark .sp-badge { background: rgba(255, 255, 255, .1); color: var(--orange-soft); }
.sp-title { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; margin-bottom: 14px; line-height: 1.22; }
.sp-subtitle { font-size: 1.03rem; color: var(--text-light); }
.sp-section-dark .sp-subtitle { color: rgba(255, 255, 255, .72); }
.sp-prose { max-width: 780px; }
.sp-prose p, .sp-prose li { color: var(--text-light); }
.sp-prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }

/* ---------- Numbered cards ---------- */
.sp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sp-cards.three { grid-template-columns: repeat(3, 1fr); }
.sp-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all .3s var(--ease); }
.sp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--navy-100); }
.sp-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sp-card-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; line-height: 1; color: var(--navy-100); }
.sp-card-tag { font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); background: var(--navy-050); padding: 4px 11px; border-radius: 20px; }
.sp-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.sp-card p { font-size: .95rem; color: var(--text-light); }
.sp-card-tip { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--orange-050); font-size: .88rem; color: var(--text); border-left: 3px solid var(--orange); }

/* ---------- Comparison table ---------- */
.sp-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.sp-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.sp-table caption { text-align: left; padding: 16px 20px; font-family: var(--font-heading); font-weight: 700; color: var(--navy-800); background: var(--navy-050); }
.sp-table th, .sp-table td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.sp-table thead th { background: var(--navy-800); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: .88rem; letter-spacing: .4px; }
.sp-table tbody th { font-family: var(--font-heading); color: var(--navy-800); font-weight: 700; background: #FAFBFD; width: 26%; }
.sp-table td { color: var(--text-light); }
.sp-table tbody tr:last-child th, .sp-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Split (placeholder + content) ---------- */
.sp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sp-split.reverse .sp-split-media { order: 2; }
.sp-split-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.sp-split-content p { color: var(--text-light); }

/* ---------- Steps / diagnostic sequence ---------- */
.sp-steps { position: relative; display: grid; gap: 0; max-width: 860px; counter-reset: sps; }
.sp-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding-bottom: 30px; counter-increment: sps; }
.sp-step::before { content: counter(sps, decimal-leading-zero); width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; position: relative; z-index: 1; }
.sp-step:nth-child(even)::before { background: var(--cta); }
.sp-step::after { content: ''; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--navy-100); }
.sp-step:last-child::after { display: none; }
.sp-step:last-child { padding-bottom: 0; }
.sp-step h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.sp-step p { color: var(--text-light); font-size: .97rem; }
.sp-section-dark .sp-step p { color: rgba(255, 255, 255, .75); }
.sp-section-dark .sp-step::after { background: rgba(255, 255, 255, .15); }

/* ---------- Layer cards (watermark numbers) ---------- */
.sp-layers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sp-layer { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 30px 28px; background: #fff; border: 1px solid var(--border); }
.sp-section-dark .sp-layer { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.sp-layer-mark { position: absolute; right: 14px; top: -6px; font-family: var(--font-heading); font-size: 5.5rem; font-weight: 900; line-height: 1; color: rgba(10, 58, 128, .06); pointer-events: none; }
.sp-section-dark .sp-layer-mark { color: rgba(255, 255, 255, .06); }
.sp-layer-k { font-family: var(--font-heading); font-size: .74rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cta); }
.sp-section-dark .sp-layer-k { color: var(--orange-soft); }
.sp-layer h3 { font-size: 1.16rem; margin: 6px 0 10px; }
.sp-layer p { font-size: .95rem; color: var(--text-light); }
.sp-section-dark .sp-layer p { color: rgba(255, 255, 255, .75); }
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sp-tags span { font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; background: var(--navy-050); color: var(--navy); }
.sp-section-dark .sp-tags span { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Decision (repair vs replace) ---------- */
.sp-decision { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sp-decision-col { padding: 32px 30px; background: #fff; }
.sp-decision-col + .sp-decision-col { background: var(--navy-050); border-left: 1px solid var(--border); }
.sp-decision-col h3 { font-size: 1.22rem; margin-bottom: 12px; }
.sp-decision-col p { color: var(--text-light); font-size: .95rem; }

/* ---------- Callout / route box ---------- */
.sp-callout { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: var(--radius-md); background: var(--navy-050); border-left: 5px solid var(--navy); margin-top: 32px; }
.sp-callout.warn { background: var(--orange-050); border-left-color: var(--orange); }
.sp-callout-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.sp-callout.warn .sp-callout-icon { background: var(--cta); }
.sp-callout-icon svg { width: 20px; height: 20px; fill: #fff; }
.sp-callout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.sp-callout p { font-size: .95rem; color: var(--text-light); }

/* ---------- Two-column content with sticky aside ---------- */
.sp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sp-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.sp-aside-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.sp-aside-card.dark { background: var(--navy-800); border-color: var(--navy-800); color: rgba(255, 255, 255, .85); }
.sp-aside-card.dark h3 { color: #fff; }
.sp-aside-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.sp-aside-card p { font-size: .92rem; margin-bottom: 14px; }
.sp-aside-card .btn { width: 100%; }
.sp-aside-links { display: grid; gap: 8px; }
.sp-aside-links a { font-weight: 600; font-size: .93rem; }

/* ---------- Mid-page CTA ---------- */
.sp-mid-cta { padding: 20px 0 76px; }
.sp-mid-cta-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: linear-gradient(120deg, var(--navy), var(--navy-900)); border-radius: var(--radius-xl); padding: 44px; color: #fff; position: relative; overflow: hidden; }
.sp-mid-cta-box::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 87, 34, .4), transparent 65%); }
.sp-mid-cta-box > * { position: relative; z-index: 1; }
.sp-mid-cta-box h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 10px; }
.sp-mid-cta-box p { color: rgba(255, 255, 255, .8); }
.sp-mid-cta-actions { display: grid; gap: 12px; justify-items: stretch; text-align: center; }
.sp-mid-cta-actions small { color: rgba(255, 255, 255, .65); font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }
.sp-mid-cta-phone { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; color: #fff; text-decoration: none; }
.sp-mid-cta-phone:hover { color: var(--orange-soft); }

/* ---------- Checklist ---------- */
.sp-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; margin: 18px 0; }
.sp-checklist.one { grid-template-columns: 1fr; }
.sp-checklist li { position: relative; padding-left: 32px; color: var(--text); font-size: .97rem; }
.sp-checklist li::before { content: ''; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 6px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sp-section-dark .sp-checklist li { color: rgba(255, 255, 255, .88); }

/* ---------- Related services ---------- */
.sp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sp-related a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; text-decoration: none !important; transition: all .3s var(--ease); }
.sp-related a:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sp-related strong { font-family: var(--font-heading); font-size: 1.05rem; color: var(--navy-800); }
.sp-related span { font-size: .9rem; color: var(--text-light); font-weight: 400; }

/* ---------- Final CTA ---------- */
.sp-final-cta { background: linear-gradient(135deg, var(--cta) 0%, #A9320C 100%); color: #fff; padding: 70px 0; text-align: center; position: relative; overflow: hidden; }
.sp-final-cta::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 30 Q15 18 30 30 T60 30 T90 30 T120 30' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E"); }
.sp-final-cta .sp-container { position: relative; }
.sp-final-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.sp-final-cta p { color: rgba(255, 255, 255, .9); max-width: 640px; margin: 0 auto 26px; }
.sp-final-cta .btn-light { background: #fff; color: var(--cta-dark); }
.sp-final-cta .btn-light:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.sp-final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FAQ on service pages reuses .faq-list/.faq-item from site.css */
.sp-faq .faq-list { margin: 0; max-width: 860px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .sp-hero-grid, .sp-split, .sp-layout, .sp-mid-cta-box { grid-template-columns: 1fr; gap: 34px; }
    .sp-split.reverse .sp-split-media { order: 0; }
    .sp-aside { position: static; }
    .sp-cards.three, .sp-related { grid-template-columns: 1fr 1fr; }
    .sp-mid-cta-box { padding: 34px 28px; }
}
@media (max-width: 640px) {
    .sp-container { padding: 0 18px; }
    .sp-section { padding: 60px 0; }
    .sp-cards, .sp-cards.three, .sp-layers, .sp-decision, .sp-checklist, .sp-related { grid-template-columns: 1fr; }
    .sp-decision-col + .sp-decision-col { border-left: 0; border-top: 1px solid var(--border); }
    .sp-hero-actions { flex-direction: column; }
    .sp-hero-actions .btn { width: 100%; }
    .sp-step { grid-template-columns: 50px 1fr; gap: 16px; }
    .sp-step::before { width: 50px; height: 50px; font-size: 1.05rem; border-radius: 12px; }
    .sp-step::after { left: 24px; top: 50px; }
    .sp-callout { flex-direction: column; }
}
