/*
 * BorderLines — Service Detail page styles.
 * Loaded only on pages using the BorderLines Service Detail template.
 * Relies on the theme tokens declared in /assets/css/borderlines.css.
 */

.blpm-service-page { background: var(--blpm-white); }

/* ---------- Hero ---------- */
.blpm-service-hero {
    position: relative;
    color: var(--blpm-white);
    background-color: var(--blpm-black);
    background-image: var(--blpm-service-hero-image, none), linear-gradient(120deg, #0a0a0a 0%, #1a1a1a 100%);
    background-size: cover;
    background-position: center right;
    min-height: 540px;
    padding: 70px 0 120px;
    overflow: hidden;
    isolation: isolate;
}
.blpm-service-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 45%, rgba(10,10,10,.45) 100%);
    z-index: -1;
}
.blpm-service-hero-inner { position: relative; max-width: 760px; }

.blpm-breadcrumbs ol {
    display: flex; flex-wrap: wrap; gap: 6px 10px;
    list-style: none; margin: 0 0 18px; padding: 0;
    font-family: var(--blpm-font-body);
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.62);
}
.blpm-breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.blpm-breadcrumbs li + li::before {
    content: "›"; color: var(--blpm-yellow); font-size: 14px; line-height: 1;
}
.blpm-breadcrumbs a { color: rgba(255,255,255,.78); text-decoration: none; }
.blpm-breadcrumbs a:hover { color: var(--blpm-yellow); }
.blpm-breadcrumbs [aria-current="page"] { color: var(--blpm-yellow); }

.blpm-service-title {
    font-family: var(--blpm-font-heading);
    font-weight: 700;
    font-size: clamp(46px, 7vw, 92px);
    line-height: .95;
    letter-spacing: .01em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.blpm-service-tagline {
    color: var(--blpm-yellow);
    font-family: var(--blpm-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: clamp(18px, 2vw, 24px);
    margin: 0 0 22px;
}
.blpm-service-description {
    color: rgba(255,255,255,.85);
    max-width: 640px;
    font-size: 17px;
    line-height: 1.65;
    margin: 0 0 30px;
}

/* ---------- Quick benefit bar ---------- */
.blpm-benefit-bar {
    background: var(--blpm-black);
    padding: 56px 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.blpm-benefit-bar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}
.blpm-benefit-item {
    padding: 6px 28px;
    border-right: 1px solid rgba(255,255,255,.14);
    color: var(--blpm-white);
}
.blpm-benefit-item:first-child { padding-left: 0; }
.blpm-benefit-item:last-child  { padding-right: 0; border-right: 0; }
.blpm-benefit-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin-bottom: 14px;
    color: var(--blpm-yellow);
    border: 1px solid rgba(255,194,14,.35);
    background: rgba(255,194,14,.06);
}
.blpm-benefit-icon svg,
.blpm-benefit-icon .blpm-icon { width: 28px; height: 28px; }
.blpm-benefit-item h3 {
    font-family: var(--blpm-font-heading);
    font-size: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 8px;
}
.blpm-benefit-item p {
    font-size: 13.5px; line-height: 1.55;
    color: rgba(255,255,255,.7); margin: 0;
}

/* ---------- Benefits checklist + image ---------- */
.blpm-benefits {
    background: var(--blpm-concrete);
    padding: 88px 0;
}
.blpm-benefits-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
}
.blpm-benefits-list {
    list-style: none; margin: 22px 0 0; padding: 0;
    display: grid; gap: 14px;
}
.blpm-benefits-list li {
    display: grid; grid-template-columns: 28px 1fr; align-items: start;
    gap: 14px;
    color: var(--blpm-black);
    font-size: 16px; line-height: 1.55;
}
.blpm-benefits-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; margin-top: 1px;
    color: var(--blpm-black);
    background: var(--blpm-yellow);
    border-radius: 50%;
}
.blpm-benefits-check svg { width: 14px; height: 14px; }
.blpm-benefits-image img,
.blpm-benefits-placeholder {
    width: 100%; height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--blpm-border-dark);
    box-shadow: var(--blpm-shadow);
}
.blpm-benefits-placeholder {
    background:
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%),
        radial-gradient(ellipse at top, rgba(255,194,14,.12), transparent 60%);
    position: relative;
}
.blpm-benefits-placeholder::after {
    content: ""; position: absolute; left: 6%; right: 6%; bottom: 18%; height: 6px;
    background: var(--blpm-yellow);
    box-shadow: 0 14px 0 var(--blpm-yellow);
    opacity: .85;
}

/* ---------- Process steps ---------- */
.blpm-process {
    background: var(--blpm-white);
    padding: 90px 0;
}
.blpm-section-title-center {
    text-align: center;
    margin: 0 auto 48px;
    display: flex; flex-direction: column; align-items: center;
}
.blpm-section-title-center span {
    width: 60px;
}
.blpm-process-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    counter-reset: blpm-step;
}
.blpm-process-step {
    position: relative;
    text-align: left;
    padding: 26px 22px;
    background: var(--blpm-concrete);
    border: 1px solid var(--blpm-border-dark);
}
.blpm-process-step + .blpm-process-step::before {
    content: "→";
    position: absolute;
    left: -18px; top: 38px;
    color: var(--blpm-yellow);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}
.blpm-process-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: var(--blpm-yellow);
    color: var(--blpm-black);
    font-family: var(--blpm-font-heading);
    font-weight: 700; font-size: 22px;
    margin-bottom: 14px;
}
.blpm-process-icon {
    display: inline-flex; color: var(--blpm-black);
    margin-bottom: 10px;
}
.blpm-process-icon svg,
.blpm-process-icon .blpm-icon { width: 30px; height: 30px; }
.blpm-process-step h3 {
    font-family: var(--blpm-font-heading);
    text-transform: uppercase; letter-spacing: .06em;
    font-size: 16px; margin: 0 0 8px;
}
.blpm-process-step p {
    font-size: 14px; line-height: 1.55; color: #404040; margin: 0;
}

/* ---------- Before / After ---------- */
.blpm-before-after {
    background: var(--blpm-white);
    padding: 64px 0 96px;
}
.blpm-ba-panel {
    position: relative;
    height: 460px;
    overflow: hidden;
    border: 1px solid var(--blpm-border-dark);
    box-shadow: var(--blpm-shadow);
    background: #1a1a1a;
}
.blpm-ba-side {
    position: absolute; top: 0; bottom: 0;
    background-size: cover; background-position: center;
}
.blpm-ba-before {
    left: 0; width: 50%;
    background-color: #5a5854;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(0,0,0,.4), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0,0,0,.35), transparent 40%),
        repeating-linear-gradient(38deg, rgba(0,0,0,.18) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #807c75, #5a5854);
    filter: saturate(.6) brightness(.95);
}
.blpm-ba-after {
    right: 0; width: 50%;
    background-color: #0d0d0d;
    background-image:
        radial-gradient(circle at 80% 30%, rgba(255,194,14,.08), transparent 60%),
        linear-gradient(135deg, #1a1a1a, #0a0a0a);
}
.blpm-ba-label {
    position: absolute; bottom: 22px;
    padding: 8px 14px;
    background: var(--blpm-black);
    color: var(--blpm-yellow);
    font-family: var(--blpm-font-heading);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 13px;
    border: 1px solid rgba(255,194,14,.5);
}
.blpm-ba-before .blpm-ba-label { left: 22px; }
.blpm-ba-after  .blpm-ba-label { right: 22px; background: var(--blpm-yellow); color: var(--blpm-black); border-color: var(--blpm-yellow); }
.blpm-ba-divider {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 4px; background: var(--blpm-yellow);
    transform: translateX(-50%);
}
.blpm-ba-handle {
    position: absolute; top: 50%; left: 50%;
    width: 52px; height: 52px;
    background: var(--blpm-yellow);
    border: 3px solid var(--blpm-black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255,194,14,.18);
}
.blpm-ba-handle::before,
.blpm-ba-handle::after {
    content: ""; position: absolute; top: 50%; width: 10px; height: 10px;
    border-top: 2px solid var(--blpm-black);
    border-left: 2px solid var(--blpm-black);
}
.blpm-ba-handle::before { left: 10px;  transform: translateY(-50%) rotate(-45deg); }
.blpm-ba-handle::after  { right: 10px; transform: translateY(-50%) rotate(135deg); }

/* ---------- FAQ + Estimate form ---------- */
.blpm-faq-form {
    background: var(--blpm-concrete);
    padding: 88px 0;
}
.blpm-faq-form-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: start;
}
.blpm-faq-accordion {
    margin-top: 22px;
    border-top: 1px solid var(--blpm-border-dark);
    background: var(--blpm-white);
    box-shadow: 0 16px 36px rgba(0,0,0,.06);
}
.blpm-faq-item {
    border-bottom: 1px solid var(--blpm-border-dark);
}
.blpm-faq-question { margin: 0; }
.blpm-faq-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; padding: 18px 22px;
    background: transparent; border: 0;
    text-align: left;
    font-family: var(--blpm-font-heading);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--blpm-black);
    cursor: pointer;
    transition: color var(--blpm-transition), background var(--blpm-transition);
}
.blpm-faq-trigger:hover { color: var(--blpm-yellow-dark); background: rgba(255,194,14,.05); }
.blpm-faq-trigger:focus-visible { outline: 2px solid var(--blpm-yellow); outline-offset: -2px; }
.blpm-faq-marker {
    position: relative;
    flex: 0 0 24px; width: 24px; height: 24px;
}
.blpm-faq-marker::before,
.blpm-faq-marker::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    background: var(--blpm-black);
    transform: translate(-50%, -50%);
    transition: transform var(--blpm-transition), background var(--blpm-transition);
}
.blpm-faq-marker::before { width: 14px; height: 2px; }
.blpm-faq-marker::after  { width: 2px;  height: 14px; }
.blpm-faq-trigger[aria-expanded="true"] .blpm-faq-marker::after { transform: translate(-50%, -50%) scaleY(0); }
.blpm-faq-trigger[aria-expanded="true"] .blpm-faq-marker::before { background: var(--blpm-yellow-dark); }
.blpm-faq-answer { padding: 0 22px 22px; }
.blpm-faq-answer p { margin: 0; color: #383838; line-height: 1.65; }

.blpm-related-callout {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
    padding: 24px;
    background: var(--blpm-black);
    color: var(--blpm-white);
    border-left: 4px solid var(--blpm-yellow);
}
.blpm-related-icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--blpm-yellow);
    background: rgba(255,194,14,.08);
    border: 1px solid rgba(255,194,14,.4);
}
.blpm-related-icon svg,
.blpm-related-icon .blpm-icon { width: 28px; height: 28px; }
.blpm-related-callout h3 {
    font-family: var(--blpm-font-heading);
    font-size: 17px;
    text-transform: uppercase; letter-spacing: .05em;
    margin: 0 0 6px;
}
.blpm-related-callout p { margin: 0 0 10px; color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.55; }

/* Estimate form card */
.blpm-estimate-form-card {
    background: var(--blpm-charcoal);
    color: var(--blpm-white);
    padding: 36px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--blpm-shadow);
}
.blpm-estimate-form-card .blpm-section-title h2 { color: var(--blpm-white); font-size: clamp(26px, 3vw, 34px); }
.blpm-form-intro {
    color: rgba(255,255,255,.72);
    margin: 14px 0 22px;
    font-size: 14.5px; line-height: 1.6;
}
.blpm-estimate-form { display: grid; gap: 14px; }
.blpm-field { display: flex; flex-direction: column; gap: 6px; }
.blpm-field label {
    font-family: var(--blpm-font-heading);
    text-transform: uppercase; letter-spacing: .12em;
    font-size: 12px;
    color: rgba(255,255,255,.7);
}
.blpm-field input,
.blpm-field select,
.blpm-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--blpm-asphalt);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--blpm-white);
    font-family: var(--blpm-font-body);
    font-size: 15px;
    transition: border-color var(--blpm-transition), box-shadow var(--blpm-transition);
}
.blpm-field input::placeholder,
.blpm-field textarea::placeholder { color: rgba(255,255,255,.4); }
.blpm-field input:focus,
.blpm-field select:focus,
.blpm-field textarea:focus {
    outline: none;
    border-color: var(--blpm-yellow);
    box-shadow: 0 0 0 3px rgba(255,194,14,.25);
}
.blpm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.blpm-button-full { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .blpm-benefit-bar-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
    .blpm-benefit-item:nth-child(3) { border-right: 0; padding-right: 0; }
    .blpm-benefit-item:nth-child(4) { padding-left: 0; }
    .blpm-benefits-grid { grid-template-columns: 1fr; gap: 40px; }
    .blpm-process-steps { grid-template-columns: repeat(2, 1fr); }
    .blpm-process-step + .blpm-process-step::before { display: none; }
    .blpm-faq-form-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
    .blpm-service-hero { padding: 50px 0 80px; min-height: 460px; }
    .blpm-benefit-bar-grid { grid-template-columns: 1fr; }
    .blpm-benefit-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 18px 0; }
    .blpm-benefit-item:last-child { border-bottom: 0; }
    .blpm-process-steps { grid-template-columns: 1fr; }
    .blpm-ba-panel { height: 320px; }
    .blpm-field-row { grid-template-columns: 1fr; }
    .blpm-estimate-form-card { padding: 26px 20px; }
    .blpm-hero-actions { flex-direction: column; align-items: stretch; }
    .blpm-hero-actions .blpm-button { width: 100%; justify-content: center; }
}
