/* ============================================================
   COMPONENT CSS — extracted from Astro component <style> blocks
   Preloader, Marquee, Intro, Parallax, Services, Industries,
   FAQs, News/ImageSlider, ContactCTA/Difference
   ============================================================ */

/* ── Inline SVG icon sizing (for file_get_contents SVGs without classes) ── */
.service-item__title>svg,
.service-item__title>svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--color-heavy-metal);
}

.dropdown-link-v2__title>svg {
    width: 25px;
    height: 25px;
    min-width: 25px;
    flex-shrink: 0;
}

.image-card__content>svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--color-meteor);
}

/* ── PRELOADER — Preloader.astro ── */
.preload-locked {
    overflow: hidden !important;
    height: 100vh;
}

.preloader-v4 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-black);
    transition:
        opacity 0.8s ease-in-out,
        visibility 0.8s ease-in-out;
}

.preloader-v4.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-v4__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader-v4__svg-container {
    width: 150px;
    position: relative;
}

.preloader-v4__svg-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 40px;
    background: var(--color-meteor);
    filter: blur(40px);
    opacity: 0;
    animation: preloader-v4-glow 2s forwards;
    animation-delay: 1.5s;
}

.preloader-v4__svg {
    width: 100%;
    height: auto;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.ne-poly,
.ne-path {
    fill: url(#preloader-gradient-2);
    fill-opacity: 0;
    stroke: var(--color-meteor);
    stroke-width: 0.5px;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation:
        preloader-v4-draw 1s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        preloader-v4-fill 0.5s ease-in forwards;
    animation-delay: 0s, 0.8s;
}

@keyframes preloader-v4-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes preloader-v4-fill {
    to {
        fill-opacity: 1;
        stroke-opacity: 0;
    }
}

@keyframes preloader-v4-glow {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.3;
    }
}

.preloader-v4__progress {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.preloader-v4__progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-meteor);
    animation: preloader-v4-fill-bar 2s ease-in-out forwards;
}

@keyframes preloader-v4-fill-bar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ── MARQUEE — Marquee.astro ── */
.marquee-section {
    background: linear-gradient(135deg, #e36d16 0%, #bc3217 150%);
    color: var(--color-black);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 22px;
    font-weight: 100;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
}

.marquee-bullet {
    font-size: 1em;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-section {
        padding: 5px 0;
        font-size: 16px;
    }

    .marquee-track {
        gap: 20px;
    }
}

/* ── INTRO SECTION — IntroSection.astro ── */
.intro {
    background-color: #1A1A1A;
}

.intro__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.intro__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.intro__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 1200px) {
    .intro__content {
        flex-direction: column;
        gap: 60px;
    }

    .intro__image-wrapper {
        flex: auto;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .intro__content {
        flex-direction: column;
        gap: 30px;
    }

    .intro__image {
        aspect-ratio: 16/9;
    }
}

/* ── PARALLAX BANNER — ParallaxBanner.astro ── */
.full-width-banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    display: block;
}

.full-width-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0px 40px 60px -20px rgba(0, 0, 0, 0.4),
        inset 0px -40px 60px -20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.full-width-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, object-position;
    z-index: 1;
}

@media (max-width: 768px) {
    .full-width-banner {
        height: 300px;
    }

    .full-width-banner__img {
        object-position: 50% 50% !important;
    }
}

/* ── SERVICES SECTION — ServicesSection.astro ── */
.services {
    background:
        url("../images/photos/NE.png") bottom left / 300px no-repeat,
        linear-gradient(135deg, #e36d16 0%, #bc3217 100%);
    background-blend-mode: normal;
    padding-bottom: 200px;
}

.service-item {
    border-bottom: 1px solid var(--color-heavy-metal);
    padding: 40px 0;
}

.service-item:first-child {
    border-top: none;
    padding-top: 0;
}

.service-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.service-item__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 40px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: var(--color-heavy-metal);
    line-height: 0.9;
}

.service-item__custom-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    color: var(--color-heavy-metal);
}

.service-item__toggle {
    background: none;
    border: none;
    color: var(--color-heavy-metal);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-item__content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition:
        grid-template-rows 0.4s ease-in-out,
        opacity 0.4s ease-in-out,
        margin-top 0.4s ease-in-out;
}

.service-item__inner {
    overflow: hidden;
}

.service-item.is-expanded .service-item__content {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 20px;
}

.service-item__description {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.8;
    color: var(--color-heavy-metal);
    margin-top: 10px;
    margin-bottom: 20px;
    max-width: 640px;
}

/* WYSIWYG content inside service accordion */
.service-item__wysiwyg p {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.8;
    color: var(--color-heavy-metal);
    margin-top: 10px;
    margin-bottom: 20px;
    max-width: 640px;
}

.service-item__wysiwyg ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 20px;
}

.service-item__wysiwyg ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 400;
    color: var(--color-heavy-metal);
    opacity: 0.8;
}

.service-item__wysiwyg ul li::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23262b20'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    opacity: 1;
}

/* Links inside WYSIWYG content */
.service-item__wysiwyg a,
.service-item__wysiwyg a:visited,
.service-item__wysiwyg a:active {
    color: var(--color-heavy-metal);
    text-decoration: underline;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.service-item__wysiwyg a:hover {
    color: var(--color-black);
    opacity: 1;
}

.v1-widget-wysiwyg a,
.v1-widget-wysiwyg a:visited,
.v1-widget-wysiwyg a:active {
    color: var(--color-meteor);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.v1-widget-wysiwyg a:hover {
    color: var(--color-white);
}

/* WYSIWYG content inside sidebar widgets */
.v1-widget-wysiwyg p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 16px;
}

.v1-widget-wysiwyg ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.v1-widget-wysiwyg ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.v1-widget-wysiwyg ul li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 24 24' stroke='%23e36d16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 1200px) {
    .services.section {
        padding-bottom: 180px;
    }
}

@media (max-width: 768px) {
    .services__banner-img {
        height: 300px;
    }

    .services__description {
        font-size: clamp(20px, 5vw, 24px);
    }

    .service-item__title {
        font-size: 30px;
    }

    .service-item__wysiwyg p {
        font-size: 18px;
    }

    .service-item__wysiwyg ul li {
        font-size: 18px;
    }
}

/* ── IMAGE SLIDER — ImageSlider.astro (shared by Industries + News) ── */
.image-slider {
    overflow: hidden;
}

/* When auto-drift is active, let cards overflow and control clipping manually */
.image-slider[data-auto-drift],
.image-slider[data-auto-drift] .section__container,
.image-slider[data-auto-drift] .image-slider__slider-container {
    overflow: visible !important;
}

.image-slider .section__container {
    height: 100%;
}

.image-slider__slider-container {
    width: 100vw;
    height: 100%;
    padding-right: var(--hero-padding-x);
    box-sizing: border-box;
}

.image-slider__grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 100vw;
    height: 100%;
    padding-bottom: 20px;
}

.image-slider__grid.active {
    user-select: none;
}

.image-slider__grid::-webkit-scrollbar {
    display: none;
}

.slider-card {
    height: 100%;
    min-height: var(--slider-card-min-height);
    scroll-snap-align: start;
    flex-shrink: 0;
    flex-basis: var(--slider-card-width);
    max-width: 1000px;
}

@media (max-width: 1024px) {
    .slider-card {
        flex-basis: 85vw;
    }
}

.slider-card.is-active-card {
    cursor: pointer;
}

.image-slider__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.image-slider__nav-controls {
    display: flex;
    justify-content: flex-end;
}

.slider-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-white);
    border-radius: 60px;
    padding: 12px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 40px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    color: var(--color-heavy-metal);
    font-size: 24px;
}

.slider-btn:hover {
    background-color: #f0f0f0;
}

.slider-btn--next {
    background: var(--color-meteor);
    color: var(--color-white);
}

.slider-btn--next:hover {
    background: var(--color-thunderbird);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .image-slider__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-slider__header {
        text-align: left;
    }
}

@media (max-width: 1200px) {
    .slider-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }

    .slider-pill {
        padding: 8px !important;
        gap: 8px !important;
    }
}

@media (max-width: 768px) {
    .image-slider__nav-controls {
        display: none !important;
    }
}

/* Industries slider mobile tweaks */
@media (max-width: 768px) {
    .industry-card {
        padding: 24px;
    }

    .industries__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 30px;
    }

    .industries__nav-controls {
        display: none;
    }

    .industries .section__container {
        overflow: visible;
    }

    .industries__slider-container {
        width: 100vw;
        box-sizing: border-box;
    }

    .industry-card__title {
        font-size: 24px;
    }

    .industry-card__d1 {
        font-size: 16px;
        opacity: 0.9;
        transform: translateY(0);
        max-height: 100px;
        margin-top: 15px;
    }

    .industry-card__bg {
        transform: scale(1.0);
    }
}

/* ── FAQS SECTION — FaqsSection.astro ── */
.faqs {
    background-color: #B0ADAD;
}

.faqs__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
}

.faqs__contact-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1px;
}

.faqs__list-side {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--color-heavy-metal);
    padding: 40px 0;
}

.faq-item:first-child {
    padding-top: 0;
    border-top: none;
}

.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.faq-item__title {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-heavy-metal);
    line-height: 1.1;
}

.faq-item__content {
    font-size: 24px;
    font-weight: 400;
    opacity: 0;
    color: var(--color-heavy-metal);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out, margin-top 0.4s ease-in-out;
    line-height: 1.3;
    max-width: 640px;
}

.faq-item__content a {
    color: var(--color-heavy-metal) !important;
    opacity: 1 !important;
}

.faq-item.is-expanded .faq-item__content {
    max-height: 2000px;
    opacity: 0.8;
    margin-top: 20px;
}

.faq-item__toggle {
    background: none;
    border: none;
    color: var(--color-heavy-metal);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 1200px) {
    .faqs__contact {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .faqs__description,
    .faqs__contact-title {
        font-size: clamp(20px, 5vw, 24px);
    }

    .faq-item__title {
        font-size: 20px;
        padding-right: 15px;
    }

    .faqs__content {
        flex-direction: column;
        gap: 40px;
    }

    .faq-item__content {
        font-size: 18px;
    }
}

/* ── CONTACT CTA / DIFFERENCE — ContactCTA.astro ── */
.difference {
    background-color: #1A1A1A;
}

.difference__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.difference__description {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.8;
    margin-top: 20px;
    margin-bottom: 0px;
}

.difference__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.difference__actions .btn {
    font-size: clamp(20px, 2vw, 28px) !important;
}

@media (max-width: 768px) {
    .difference__actions {
        width: 100%;
    }

    .difference__actions .btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}