/* ================================================
   Lionex Home Page
   Page hero + 3-pillar card grid
   ================================================ */

/* Home content on white below hero */
body.page-home {
    background: #fff;
}

.page-home .main-content {
    background: transparent;
}

.page-home .main-content .container--header {
    padding: 0;
    margin: 0;
    min-height: 0;
}

.page-home .main-content .container--body {
    padding-top: 0;
    padding-bottom: 0;
    background: transparent !important;
}

/* Space below hero when main-backdrop follows other home main content */
.page-home .main-content > .main-backdrop > .container--body {
    padding-top: 40px;
}

/* Hero + carousel overlay: carousel anchored up from hero bottom so it never touches hero lower edge */
.home-hero-float-stack {
    position: relative;
    z-index: 2;
}

/* Hero stack + About Lionex: bottom spacing lives on .intro--site-statement (our-mission.css) */
.page-home:not(.page-our-mission) .home-hero-float-stack + .intro--site-statement {
    margin-top: 0;
    margin-bottom: 0;
}

.page-home .prose-link {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.page-home .prose-link:hover,
.page-home .prose-link:focus {
    color: var(--lionex-primary);
    text-decoration: underline;
}

.home-hero-float-stack > .page-hero--home {
    position: relative;
    z-index: 0;
}

.home-hero-float-stack__carousel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    box-sizing: border-box;
}

.home-hero-float-stack__carousel .home-hero-float-stack__inner {
    pointer-events: auto;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
}

.page-home .home-hero-float-stack__carousel .home-hero-float-stack__inner.container--body {
    min-height: 0;
}

.page-home .home-hero-float-stack .home-pillars {
    margin-top: 0;
    margin-bottom: 0;
}

.page-home:not(.page-our-mission) .home-hero-float-stack:not(.home-hero-float-stack--carousel-below) .home-card {
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(255, 255, 255, 0.90) 12%,
        rgba(255, 255, 255, 0.88) 25%,
        rgba(255, 255, 255, 0.86) 38%,
        rgba(255, 255, 255, 0.86) 58%,
        rgba(255, 255, 255, 0.80) 72%,
        rgba(255, 255, 255, 0.72) 86%,
        rgba(255, 255, 255, 0.66) 100%
    );
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card {
    position: relative;
    isolation: isolate;
    color: rgba(255, 255, 255, 0.96);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    padding: 12px 22px;
    transition: color 0.25s ease;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        145deg,
        rgba(0, 40, 70, 0.32) 0%,
        rgba(0, 52, 88, 0.22) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 16px rgba(0, 24, 48, 0.12);
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 11%,
        #000 89%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 11%,
        #000 89%,
        transparent 100%
    );
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card:hover::before {
    background: linear-gradient(
        145deg,
        rgba(0, 44, 78, 0.38) 0%,
        rgba(0, 58, 96, 0.28) 100%
    );
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 20px rgba(0, 24, 48, 0.16);
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 {
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-shadow: none;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card a {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a,
.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a strong,
.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a.trademark-link,
.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a.trademark-link strong.trademark,
.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a.trademark-link strong.product-name {
    color: inherit;
    text-decoration: none;
    text-shadow: none;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a:hover,
.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 a:focus {
    color: inherit;
    text-decoration: none;
}

/* Home NEWS: headline links — no underline on hover */
.page-home.page-our-mission .home-newsroom-list article h3 a:hover,
.page-home.page-our-mission .home-newsroom-list article h3 a:focus {
    color: inherit;
    text-decoration: none;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card p a {
    font-style: normal;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card a:hover,
.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card a:focus {
    color: #fff;
}

/* Home hero overlay: one-line headlines — band on lower hero */
.page-home.page-our-mission .home-hero-float-stack__carousel {
    padding-bottom: clamp(20px, 4.5vw, 36px);
}

.page-home.page-our-mission .home-hero-float-stack .home-pillars {
    display: block;
    margin: 0;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-carousel {
    grid-column: auto;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-viewport {
    width: 100%;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
}

.page-home.page-our-mission .home-hero-float-stack .home-pillar-track .home-card h2 {
    text-align: start;
    width: 100%;
    align-self: stretch;
}

/* Home (site root): newsroom block in flow below hero */
.home-hero-float-stack--carousel-below .home-hero-float-stack__carousel {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    pointer-events: auto;
}

.page-home .main-backdrop {
    position: relative;
    z-index: 1;
}

.page-home .main-content {
    padding-bottom: 0;
}

.page-home .home-card {
    background: rgba(255, 255, 255, 0.8);
}

.page-home .home-partners-logo {
    background: rgba(255, 255, 255, 0.6);
}

.page-home .home-contact-form-block {
    background: #fff;
}

.page-home .home-partners {
    background: #fff;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(var(--lionex-space-5), calc((100vw - var(--lionex-container-width)) / 2 + var(--lionex-space-5)));
    padding-right: max(var(--lionex-space-5), calc((100vw - var(--lionex-container-width)) / 2 + var(--lionex-space-5)));
    padding-bottom: 48px;
    box-sizing: border-box;
}

.page-home.page-our-mission .main-backdrop .container--body > .home-partners:first-child {
    margin-top: 0;
}

.page-home .home-contact-forms {
    margin-top: 0;
}

.page-home .home-products+.home-partners {
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-home .home-contact-forms {
    border-top: none;
}

.page-home.page-our-mission .main-backdrop .container--body {
    min-height: 0;
}

/* Three Pillars Grid */
.home-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.home-pillar-carousel {
    min-width: 0;
    overflow: hidden;
    grid-column: 3;
}

.home-pillar-viewport {
    overflow: hidden;
    width: 100%;
}

.home-pillar-track {
    display: flex;
    gap: 0;
    width: 400%;
    transition: transform 0.6s ease;
}

.home-pillar-track .home-card {
    flex: 0 0 25%;
    min-width: 0;
    border: none;
}

.home-pillar-track .home-card--placeholder {
    visibility: hidden !important;
    opacity: 0 !important;
    background: transparent !important;
    color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

.home-pillar-track .home-card--placeholder * {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.home-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-card h2 {
    font-weight: 700;
    color: var(--lionex-primary-dark);
    margin: 0;
    line-height: 1.3;
}

.home-card h2 a {
    color: inherit;
    text-decoration: none;
}

.home-card h2 a:hover {
    text-decoration: underline;
}

.home-card p {
    line-height: 1.65;
    color: var(--lionex-intro-text);
    margin: 0;
}

.home-card p a {
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .home-pillars {
        grid-template-columns: 1fr;
    }

    .home-pillar-carousel {
        grid-column: 1;
    }

}

@media (max-width: 768px) {
    .home-pillars {
        gap: 16px;
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .home-card {
        padding: 24px 20px;
    }
}

/* Ultra-narrow: pillar carousel keeps title + Read more only (prose visually suppressed) */
@media (max-width: 320px) {
    .home-pillar-track .home-card p {
        font-size: 0;
        line-height: 0;
    }

    .home-pillar-track .home-card p br {
        display: none;
    }

    .home-pillar-track .home-card p a {
        line-height: 1.65;
        font-style: italic;
        color: var(--lionex-intro-text);
    }
}

/* Newsroom – above partners, reuses partners styling */
.home-newsroom {
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 8px max(var(--lionex-space-5), calc((100vw - var(--lionex-container-width)) / 2 + var(--lionex-space-5)));
    padding-bottom: 64px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    background: #fff;
}

.home-newsroom-intro {
    margin: 0 0 12px 0;
    color: var(--lionex-text-secondary);
    line-height: 1.4;
}

.home-newsroom-cta {
    margin: 0 0 24px 0;
}

.home-newsroom-cta a {
    font-weight: 500;
    font-style: normal;
    color: var(--lionex-text-muted);
    text-decoration: underline;
}

.home-newsroom-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-newsroom-list li {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-newsroom-list li:first-child {
    padding-top: 0;
    border-top: none;
}

.home-newsroom-list article h3 {
    margin: 0 0 6px 0;
    font-weight: 600;
}

.home-newsroom-list article h3 a {
    color: inherit;
    text-decoration: none;
    font-style: normal;
}

.home-newsroom-list article h3 a:hover {
    text-decoration: underline;
}

.home-newsroom-list article p {
    margin: 0;
    color: var(--lionex-text-secondary);
    line-height: 1.5;
}

.home-newsroom-list article p a,
.home-newsroom-list article p a em {
    font-style: normal;
}

.home-newsroom-list article p a {
    text-decoration: none;
}

.home-newsroom-list article p a:hover,
.home-newsroom-list article p a:focus {
    text-decoration: underline;
}

/* Products – eyebrow + link to portfolio */
.home-products {
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 32px max(var(--lionex-space-5), calc((100vw - var(--lionex-container-width)) / 2 + var(--lionex-space-5)));
    padding-bottom: 64px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    background: #fff;
}

.home-products-cta {
    margin: 0 0 24px 0;
}

.home-products-cta a {
    font-weight: 500;
    color: var(--lionex-primary);
    text-decoration: underline;
}

.home-products-cta a:hover,
.home-products-cta a:focus {
    color: var(--lionex-primary-dark);
}

/* Partners block – below contact forms */
.home-partners {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.home-partners-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.home-partners-view-all {
    font-weight: 500;
    color: var(--lionex-text-muted, #6a737c);
    text-decoration: none;
}

.home-partners-view-all:hover {
    text-decoration: none;
}

.home-partners-logos {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-partners-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
}

.home-partners-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 8px;
    background: #fff;
    border: none;
}

.home-partners-logo img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .home-partners-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-card {
        padding: 20px 16px;
    }
}
