/* =====================================================
   Solderhangat — Industrial Header
   Joule The Energy
   ===================================================== */

/* --- Header banner container --- */
.sh-header-hero {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    display: block;
    background: #0d1b2a;
    line-height: 0;
}

.sh-header-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center 55%;
    max-height: 420px;
}

/* Dark gradient overlay for text legibility (stronger on the left where sky is) */
.sh-header-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(6, 18, 32, 0.90) 0%,
        rgba(6, 18, 32, 0.72) 30%,
        rgba(6, 18, 32, 0.34) 56%,
        rgba(6, 18, 32, 0.18) 100%
    );
    pointer-events: none;
}

/* --- Text overlay --- */
.sh-hero-text {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 6%;
    text-align: left;
    line-height: 1.25;
}

.sh-hero-kicker {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffc300;
    background: rgba(255, 195, 0, 0.10);
    border-left: 3px solid #ffc300;
    padding: 6px 12px;
    margin: 0 0 16px 0;
}

.sh-hero-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(28px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    line-height: 1.08;
}

.sh-hero-title .sh-accent {
    color: #ffc300;
}

/* Non-front-page pages render the wordmark as a <p> to avoid a second <h1>.
   Strip the default paragraph margins so it is pixel-identical to the h1. */
.sh-hero-title--plain {
    display: block;
    margin: 0 0 12px 0;
    padding: 0;
    font-weight: 800;
    line-height: 1.08;
}

/* --- Domain line under the wordmark --- */
.sh-hero-domain {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: clamp(14px, 1.9vw, 22px);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.96);
    margin: -4px 0 14px 0;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
    line-height: 1.2;
}

.sh-hero-domain .sh-domain-accent {
    color: #ffc300;
}

.sh-hero-sub {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(13px, 1.5vw, 17px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* thin hazard-inspired underline */
.sh-hero-rule {
    display: block;
    width: 64px;
    height: 4px;
    margin: 18px 0 0 0;
    background: repeating-linear-gradient(
        45deg,
        #ffc300 0 8px,
        #1a1a1a 8px 16px
    );
}

/* --- Site title bar sits over nothing; tighten header --- */
.site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
    .sh-header-hero,
    .sh-header-hero img {
        max-height: 260px;
    }
    .sh-hero-text {
        padding: 0 5%;
    }
    .sh-hero-kicker {
        font-size: 10px;
        letter-spacing: 0.16em;
        padding: 5px 9px;
        margin-bottom: 10px;
    }
    .sh-hero-domain {
        font-size: 13px;
        letter-spacing: 0.04em;
        margin: -2px 0 10px 0;
    }
    .sh-hero-rule {
        width: 44px;
        height: 3px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .sh-header-hero,
    .sh-header-hero img {
        max-height: 210px;
    }
    .sh-hero-domain {
        font-size: 12px;
        margin: -1px 0 8px 0;
    }
    .sh-hero-sub {
        display: none;
    }
    .sh-hero-rule {
        margin-top: 9px;
    }
}

/* --- Visitor stats widget polish --- */
.sh-stats {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-stats li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.10);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sh-stats li:last-child {
    border-bottom: none;
}

/* --- Footer widget headings --- */
.site-footer .footer-widgets .widget-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* --- About page portrait figure --- */
.wp-about-figure {
    float: right;
    width: 260px;
    max-width: 42%;
    margin: 6px 0 24px 32px;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f5f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.wp-about-figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.wp-about-figure figcaption {
    padding: 10px 14px 12px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    color: #1f2733;
    text-align: left;
    border-top: 3px solid #f5c518;
    background: #ffffff;
}

.wp-about-figure figcaption span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
}

/* Clear the float so the rest of the page never wraps under it */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .wp-about-figure {
        float: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 22px;
    }

    .wp-about-figure figcaption {
        text-align: center;
    }
}
