/* ============================================ */
/* SERVICE HERO                                 */
/* ============================================ */

/* --- Layout --- */
.pwd-shero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 6rem 0 3rem;
    overflow: hidden;
}

/* --- Background --- */
.pwd-shero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pwd-shero__bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.pwd-shero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--pwd-bg-base) 0%,
        rgba(15, 17, 21, 0.8) 50%,
        rgba(15, 17, 21, 0.4) 100%
    );
}

/* --- Grid lines --- */
.pwd-shero__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 0 calc(var(--pwd-container-px) * 0.5);
    pointer-events: none;
}

.pwd-shero__grid-line {
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.04);
}

/* --- Content --- */
.pwd-shero__content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Align hero content with the article body below */
.pwd-shero__content {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- Breadcrumbs --- */
.pwd-shero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--pwd-text-muted);
}

.pwd-shero__breadcrumb .pwd-icon {
    opacity: 0.5;
    color: var(--pwd-text-muted);
}

.pwd-shero__breadcrumb-link {
    color: var(--pwd-text-secondary);
    transition: color 0.3s;
}

.pwd-shero__breadcrumb-link:hover {
    color: var(--pwd-accent-orange);
}

.pwd-shero__breadcrumb-current {
    color: var(--pwd-text-muted);
}

/* --- Title --- */
.pwd-shero__title {
    font-family: var(--pwd-font-display);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #fff;
    max-width: 56rem;
}

/* --- Animations --- */
.pwd-shero.animations-enabled .pwd-shero__breadcrumb,
.pwd-shero.animations-enabled .pwd-shero__title {
    opacity: 0;
    transform: translateY(25px);
    animation: pwd-shero-fade-up 0.7s ease-out forwards;
}

.pwd-shero.animations-enabled .pwd-shero__title {
    animation-delay: 0.15s;
}

@keyframes pwd-shero-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .pwd-shero {
        min-height: 400px;
        padding: 7rem 0 4rem;
    }
}

/* ============================================ */
/* SERVICE CONTENT                              */
/* ============================================ */

/*
 * Overrides for .pwd-article when used on service pages.
 * Removes the sidebar, centers the content column,
 * and makes "bare" HTML tags (h2, ul, ol, table, blockquote)
 * inherit the same look as their .pwd-article__ counterparts.
 *
 * This file MUST be loaded AFTER single-post.css so these
 * rules take precedence.
 */

/* --- Layout: no sidebar, centered, narrower --- */
.pwd-article--service .pwd-article__layout {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .pwd-article--service .pwd-article__layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Apply article typography to bare tags from the_content() --- */

/* Headings */
.pwd-article--service .pwd-article__body h2 {
    font-family: var(--pwd-font-display);
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 3.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pwd-border-base);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.pwd-article--service .pwd-article__body h2:first-child {
    margin-top: 0;
}

.pwd-article--service .pwd-article__body h3 {
    font-family: var(--pwd-font-display);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 2.5rem 0 0.875rem;
    letter-spacing: 0.02em;
}

.pwd-article--service .pwd-article__body h4 {
    font-family: var(--pwd-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 2rem 0 0.75rem;
    letter-spacing: 0.02em;
}

/* Paragraphs */
.pwd-article--service .pwd-article__body p {
    margin-bottom: 1.25rem;
    color: var(--pwd-text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.pwd-article--service .pwd-article__body p strong {
    color: var(--pwd-text-primary);
    font-weight: 600;
}

.pwd-article--service .pwd-article__body a {
    color: var(--pwd-accent-orange);
    border-bottom: 1px solid rgba(249, 115, 22, 0.3);
    transition: color 0.3s, border-color 0.3s;
}

.pwd-article--service .pwd-article__body a:hover {
    color: var(--pwd-accent-amber);
    border-bottom-color: var(--pwd-accent-amber);
}

/* Unordered lists */
.pwd-article--service .pwd-article__body ul {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
}

.pwd-article--service .pwd-article__body ul li {
    position: relative;
    padding: 0.625rem 0 0.625rem 2.25rem;
    color: var(--pwd-text-secondary);
    border-bottom: 1px solid rgba(31, 36, 46, 0.6);
    line-height: 1.6;
}

.pwd-article--service .pwd-article__body ul li:last-child {
    border-bottom: none;
}

.pwd-article--service .pwd-article__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 0 1-5 5 5 5 0 0 1-5-5c0-1.5.5-2 1-3l4-5z'/%3E%3Cpath d='M12 15v7'/%3E%3C/svg%3E") no-repeat center;
}

.pwd-article--service .pwd-article__body ul li strong {
    color: var(--pwd-text-primary);
    font-weight: 600;
}

/* Numbered lists */
.pwd-article--service .pwd-article__body ol {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    counter-reset: pwd-service-step;
}

.pwd-article--service .pwd-article__body ol li {
    position: relative;
    padding: 0.875rem 0 0.875rem 3.5rem;
    color: var(--pwd-text-secondary);
    border-bottom: 1px solid rgba(31, 36, 46, 0.6);
    counter-increment: pwd-service-step;
    line-height: 1.6;
}

.pwd-article--service .pwd-article__body ol li:last-child {
    border-bottom: none;
}

.pwd-article--service .pwd-article__body ol li::before {
    content: counter(pwd-service-step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pwd-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--pwd-accent-orange);
    border: 1px solid var(--pwd-border-base);
    background: var(--pwd-bg-card);
}

.pwd-article--service .pwd-article__body ol li strong {
    color: var(--pwd-text-primary);
    font-weight: 600;
}

/* Blockquote */
.pwd-article--service .pwd-article__body blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 1.75rem;
    background: var(--pwd-bg-card);
    border-left: 4px solid var(--pwd-accent-orange);
    border-top: 1px solid var(--pwd-border-base);
    border-right: 1px solid var(--pwd-border-base);
    border-bottom: 1px solid var(--pwd-border-base);
}

.pwd-article--service .pwd-article__body blockquote p {
    font-size: 1.125rem;
    color: var(--pwd-text-primary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Table */
.pwd-article--service .pwd-article__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin: 2rem 0;
    border: 1px solid var(--pwd-border-base);
}

.pwd-article--service .pwd-article__body table thead {
    background: linear-gradient(
        to right,
        rgba(234, 88, 12, 0.15),
        rgba(251, 191, 36, 0.08)
    );
}

.pwd-article--service .pwd-article__body table th {
    font-family: var(--pwd-font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--pwd-accent-orange);
}

.pwd-article--service .pwd-article__body table td {
    padding: 0.75rem 1rem;
    color: var(--pwd-text-secondary);
    border-bottom: 1px solid var(--pwd-border-base);
}

.pwd-article--service .pwd-article__body table td strong {
    color: var(--pwd-text-primary);
    font-weight: 600;
}

.pwd-article--service .pwd-article__body table tbody tr:last-child td {
    border-bottom: none;
}

/* Images from the editor */
.pwd-article--service .pwd-article__body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border: 1px solid var(--pwd-border-base);
}

/* Last element spacing */
.pwd-article--service .pwd-article__body > *:last-child {
    margin-bottom: 0;
}

/* --- Section wrapper padding (reuses .pwd-article defaults) --- */
.pwd-article--service {
    padding: 4rem 0 6rem;
    background-color: var(--pwd-bg-base);
    border-top: 1px solid var(--pwd-border-subtle);
}