/* Page-specific styles extracted from page-sandvik.php for wp-page-from-html compliance. */
body, html { margin:0 !important; padding:0 !important; color:#1a1a1a; }
html { margin-top:0 !important; overflow-x:hidden; }
#wpadminbar { display:none !important; }
.ast-container, .ast-row, .site-content, .content-area, .site-main,
.entry-content, .hentry, .post, .page, .singular,
.ast-page-builder-template .site-content > .ast-container,
.ast-separate-container .ast-article-single,
#primary, #content, #main,
.site-header, .site-footer,
.ast-primary-header-bar, .ast-main-header-bar-wrap,
.site-primary-footer-wrap, .ast-breadcrumbs-wrapper,
.ast-header-break-point, .entry-meta, .entry-title {
    margin:0 !important; padding:0 !important;
    max-width:none !important; width:auto !important;
    float:none !important; border:none !important;
    box-shadow:none !important; background:none !important;
    position:static !important;
}

/* Homepage contact section: About us hero image with the quote form shown inline. */
.homepage-contact-section {
    color: #fff;
    background-position: center;
    background-size: cover;
}
.homepage-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.homepage-contact-copy {
    padding: 4rem 0;
}
.homepage-contact-copy h2,
.homepage-contact-copy p {
    color: #fff;
}
.homepage-contact-panel {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}
.homepage-contact-panel h3 {
    margin: 0 0 0.75rem;
    color: #1a1a1a;
    font-size: 1.75rem;
}
.homepage-contact-intro {
    margin: 0 0 1.5rem;
    color: #555;
    line-height: 1.5;
}
.homepage-contact-form .ff-el-group {
    margin: 0;
    padding: 0 0 12px;
}
.homepage-contact-form .ff-el-group:has(input[name="Consent[]"]) {
    display: none !important;
}
.homepage-contact-form .ff-el-input--label > label {
    display: block;
    margin: 0 0 4px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}
.homepage-contact-form .ff-el-input--content {
    margin-left: 0;
}
.homepage-contact-form .ff-el-group,
.homepage-contact-form .ff-el-input--content,
.homepage-contact-form .error,
.homepage-contact-form .text-danger {
    overflow: visible;
}
.homepage-contact-form .ff-el-form-control {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 12px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #333 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}
.sandvik-page .ys-product-card-price,
.sandvik-page .ys-product-card-price .woocommerce-Price-amount,
.sandvik-page .ys-product-card-price .woocommerce-Price-currencySymbol {
    color: #991B1B !important;
}

.homepage-contact-form .ff-el-form-control:focus {
    outline: 2px solid #991B1B !important;
    outline-offset: -1px;
    border-color: #991B1B !important;
}
.homepage-contact-form textarea.ff-el-form-control {
    min-height: 110px !important;
    resize: vertical;
}
.homepage-contact-form select.ff-el-form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23444' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px !important;
}
.homepage-contact-form .ff-el-group:nth-of-type(1),
.homepage-contact-form .ff-el-group:nth-of-type(3),
.homepage-contact-form .ff-el-group:nth-of-type(5) {
    width: 50%;
    float: left;
    clear: both;
    padding-right: 8px;
}
.homepage-contact-form .ff-el-group:nth-of-type(2),
.homepage-contact-form .ff-el-group:nth-of-type(4),
.homepage-contact-form .ff-el-group:nth-of-type(6) {
    width: 50%;
    float: right;
    clear: none;
    padding-left: 8px;
}
.homepage-contact-form .ff-el-group:nth-of-type(7),
.homepage-contact-form .ff-el-group:nth-of-type(8) {
    width: 100%;
    clear: both;
    padding-left: 0;
    padding-right: 0;
}
.homepage-contact-form .ff-el-group:nth-of-type(9) {
    width: calc(100% - 316px);
    float: left;
    clear: both;
    padding-right: 8px;
}
.homepage-contact-form .ff-el-group:nth-of-type(10) {
    width: 316px;
    float: right;
    clear: none;
    margin: 0 0 14px;
    padding: 0 0 0 8px !important;
    border: 0;
    background: transparent;
    overflow: visible;
}
.homepage-contact-form .yorsuma-turnstile-field .ff-el-input--content {
    display: flex;
    justify-content: flex-end;
    overflow: visible;
}
.homepage-contact-form .yorsuma-login-turnstile {
    width: 300px;
    min-width: 0;
    min-height: 65px;
    max-width: 100%;
    margin: 0 0 0 auto;
}
.homepage-contact-form::after {
    display: block;
    clear: both;
    content: "";
}
.homepage-contact-form .ff-el-form-check {
    margin: 8px 0 0;
    padding-left: 0;
}
.homepage-contact-form .ff-el-form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 3px 8px 0 0;
    vertical-align: top;
}
.homepage-contact-form .ff-el-form-check label {
    display: inline;
    color: #333;
    font-size: 13px;
    font-weight: 400;
}
.homepage-contact-form .ff_submit_btn_wrapper {
    clear: both;
    padding: 12px 0 0;
}
.homepage-contact-form .ff-btn-submit {
    min-width: 150px;
    padding: 11px 24px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #991B1B !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.homepage-contact-form .ff-btn-submit:hover,
.homepage-contact-form .ff-btn-submit:focus {
    background: #7F1D1D !important;
    color: #fff !important;
}
.page-id-673 section .prose.max-w-none + .grid,
.parent-pageid-673 section .prose.max-w-none + .grid {
    margin-top: 1.5rem;
}
.page-id-673 .contain.prose.max-w-none,
.parent-pageid-673 .contain.prose.max-w-none {
    max-width: var(--contain-max-width, 80rem) !important;
}
.page-id-673 .contain.prose.max-w-none > h2:first-child,
.parent-pageid-673 .contain.prose.max-w-none > h2:first-child {
    margin-top: 0;
    text-align: left;
}
[data-video][data-aspect="video"] {
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}
[data-video][data-aspect="video"] > img,
[data-video][data-aspect="video"] > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#e-nimon-explorer {
    display: flex;
    min-height: 18rem;
    align-items: center;
    background: #222 !important;
    color: #fff;
}
#e-nimon-explorer > .not-prose {
    display: flex;
    min-height: inherit;
    width: 100%;
    align-items: center;
    background: inherit;
}
#e-nimon-explorer > .not-prose > .contain {
    width: 100%;
    min-height: inherit;
    background: inherit;
}
.homepage-faq-section {
    contain: layout paint;
}
.homepage-faq-list {
    border-top: 1px solid #e5e7eb;
}
.homepage-faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.homepage-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}
.homepage-faq-icon {
    flex: 0 0 auto;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 180ms ease;
}
.homepage-faq-question[aria-expanded="true"] .homepage-faq-icon {
    transform: rotate(45deg);
}
.homepage-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 160ms ease;
    will-change: max-height;
}
.homepage-faq-answer.is-open {
    opacity: 1;
}
.homepage-faq-answer p {
    margin: 0;
    padding: 0 0 1.25rem;
}
.homepage-exhibition-card {
    border: 1px solid #b9ad86;
    background: #fff;
    min-height: 19rem;
}
.homepage-exhibition-card-title {
    color: #000;
    font-family: SandvikSansHeadline, SandvikSansText, Arial, sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.homepage-exhibition-card-meta {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    color: #000;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 400;
    line-height: 1.45;
}
.homepage-exhibition-card-meta p {
    margin: 0;
}
.homepage-exhibition-card-meta strong {
    font-weight: 700;
}
.homepage-exhibition-card-address {
    align-self: start;
}
.yorsuma-cert-item {
    width: 11rem;
    height: 8.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    padding: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.yorsuma-cert-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.yorsuma-cert-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin: 0;
}
.homepage-logo-item.yorsuma-cert-logo-item {
    width: 13.5rem;
    height: auto;
}
.homepage-logo-item.yorsuma-cert-logo-item .yorsuma-cert-item img {
    width: 100%;
    height: 100%;
    max-height: none;
}
.yorsuma-cert-figure figcaption {
    width: 12.5rem;
    margin-top: 0;
    color: #1a1a1a;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}
.homepage-logo-card {
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.homepage-logo-sections h2 {
    font-weight: 400 !important;
}
.homepage-logo-sections .homepage-logo-card {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}
.homepage-logo-marquee {
    position: relative;
    overflow: hidden;
}
.homepage-logo-marquee::before,
.homepage-logo-marquee::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 4rem;
    pointer-events: none;
    content: "";
}
.homepage-logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.homepage-logo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.homepage-logo-track {
    display: flex;
    width: max-content;
    gap: 4rem;
    align-items: center;
    animation: homepage-logo-scroll 32s linear infinite;
}
.homepage-logo-track.is-reverse {
    animation-direction: reverse;
}
.homepage-logo-marquee:hover .homepage-logo-track {
    animation-play-state: paused;
}
.homepage-logo-item {
    display: flex;
    flex: 0 0 auto;
    width: 12rem;
    height: 6rem;
    align-items: center;
    justify-content: center;
}
.homepage-logo-item img {
    display: block;
    max-width: 100%;
    max-height: 4.5rem;
    object-fit: contain;
}
.homepage-quality-control {
    overflow: hidden;
    background: #050505;
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
}
.homepage-quality-control-media {
    position: relative;
    min-height: 420px;
}
.homepage-quality-control-media::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.28) 58%, #050505 100%);
    content: "";
}
.homepage-quality-control-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.86) contrast(1.04);
}
.homepage-quality-control-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.8rem);
}
.homepage-quality-control-kicker {
    margin: 0 0 .9rem;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.homepage-quality-control-copy h2 {
    margin: 0 0 1.35rem;
    color: #fff;
    font-size: clamp(2.7rem, 5.4vw, 5.1rem);
    line-height: .95;
    letter-spacing: -.055em;
}
.homepage-quality-control-copy p {
    max-width: 43rem;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
    line-height: 1.75;
}
.homepage-quality-control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.8rem;
}
.homepage-quality-control-btn {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    border-radius: 2px;
    background: #991B1B;
    color: #fff !important;
    padding: .9rem 1.15rem;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}
.homepage-quality-control-btn:hover,
.homepage-quality-control-btn:focus {
    background: #7F1D1D;
    color: #fff !important;
}
@keyframes homepage-logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .homepage-faq-answer,
    .homepage-faq-icon,
    .homepage-logo-track {
        transition: none;
        animation: none;
    }
}
@media (max-width: 1023px) {
    .homepage-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .homepage-quality-control {
        grid-template-columns: 1fr;
    }
    .homepage-quality-control-media {
        min-height: 300px;
    }
    .homepage-quality-control-media::before {
        background: linear-gradient(180deg, rgba(5, 5, 5, 0.02) 0%, rgba(5, 5, 5, 0.2) 62%, #050505 100%);
    }
    .homepage-contact-copy {
        padding: 3rem 0 1rem;
    }
    .homepage-contact-panel {
        margin: 1rem 0 3rem;
    }
}
@media (max-width: 640px) {
    .homepage-exhibition-card {
        min-height: 15rem;
    }
    .homepage-exhibition-card-meta {
        grid-template-columns: 1fr;
        font-size: 1.15rem;
    }
    .homepage-contact-panel {
        padding: 1.25rem;
    }
    .homepage-contact-form .ff-el-group,
    .homepage-contact-form .ff-el-group:nth-of-type(n) {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Shared visual rhythm: homepage is the typography and spacing reference. */
body.home.sandvik-page main#main {
    padding-top: 3rem !important;
}
/* Keep the homepage Exhibition heading clear of the preceding dark product block.
   The theme's adjacent-gray-section rule otherwise cancels this section's py spacing. */
body.home #e-nimon-explorer + .homepage-exhibition-section[data-block="static-exhibition"] {
    margin-top: 0 !important;
}
body.home .homepage-exhibition-section,
body.home #mp-main-products-series,
body.home .homepage-quality-control-section,
body.home .homepage-solution-section,
body.home .homepage-logo-sections,
body.home #why-choose-us,
body.home .homepage-faq-section,
body.home .homepage-exhibition-gallery-section {
    margin-bottom: 6rem !important;
}
@media (max-width: 767px) {
    body.home.sandvik-page main#main {
        padding-top: 2rem !important;
    }
    body.home .homepage-exhibition-section,
    body.home #mp-main-products-series,
    body.home .homepage-quality-control-section,
    body.home .homepage-solution-section,
    body.home .homepage-logo-sections,
    body.home #why-choose-us,
    body.home .homepage-faq-section,
    body.home .homepage-exhibition-gallery-section {
        margin-bottom: 4rem !important;
    }
}
