/* ==========================================================================
   Page Partner — Lindhaus custom template
   ========================================================================== */

/* ---------- Design tokens (shared) ---------- */
:root {
    --lh-blue: #4992BB;
    --lh-blue-light: #DCEBF3;
    --lh-gray-bg: #EBEBEB;
    --lh-text: #565656;
    --lh-text-dark: #333;
    --lh-footer-gray: #777474;
    --lh-white: #fff;
    --lh-radius: 10px;
    --lh-container: 1140px;
    --lh-gap: 32px;
    --lh-section-spacing: 60px;
    --lh-font-heading: 'Inter', sans-serif;
    --lh-font-body: 'Inter', sans-serif;
    --lh-font-btn: 'Roboto', sans-serif;
}

/* ---------- Base ---------- */
.lh-partner-page {
    color: var(--lh-text);
    font-family: var(--lh-font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
}

.lh-partner-page *,
.lh-partner-page *::before,
.lh-partner-page *::after {
    box-sizing: border-box;
}

.lh-partner-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- 1. Hero ---------- */
.lh-partner-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--lh-white);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 60vh;
    min-height: 60dvh;
}

/* Diagonal white overlay — covers left half with angled cut */
.lh-partner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--lh-white);
    clip-path: polygon(0 0, 55% 0, 50% 100%, 0 100%);
    z-index: 1;
}

.lh-partner-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
    min-height: 60vh;
    min-height: 60dvh;
    display: flex;
    align-items: center;
}

.lh-partner-hero__text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 400px;
}

.lh-partner-hero__title {
    font-family: var(--lh-font-heading);
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--lh-blue);
}

.lh-partner-hero__text {
    font-size: 14px;
    line-height: 1.3;
    color: #000;
}

.lh-partner-hero__text p:last-child {
    margin-bottom: 0;
}

/* ---------- 2. Breadcrumb ---------- */
.lh-partner-breadcrumb {
    background: #ebebeb;
    padding: 60px 0;
    font-size: 13px;
    color: var(--lh-footer-gray);
}

.lh-partner-breadcrumb__inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-partner-breadcrumb__inner p {
    margin: 0;
}

.lh-partner-breadcrumb__inner span:last-child {
    color: var(--lh-text-dark);
}

.lh-partner-breadcrumb a {
    color: var(--lh-blue);
    text-decoration: none;
}

.lh-partner-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- 3. Partner Grid Section ---------- */
.lh-partner-grid-section {
    padding: 0 0 var(--lh-section-spacing);
    background: var(--lh-gray-bg);
}

.lh-partner-grid-inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--lh-gap);
    margin: 0;
    padding: 0;
}

/* ---------- 4. Partner Card ---------- */
.lh-partner-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lh-partner-item__card {
    background: var(--lh-white);
    border-radius: var(--lh-radius) var(--lh-radius) 0 0;
    aspect-ratio: 5 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    transition: box-shadow 0.2s;
}

@supports not (aspect-ratio: 5/3) {
    .lh-partner-item__card {
        min-height: 160px;
    }
}

.lh-partner-item:hover .lh-partner-item__card {
    box-shadow: 0 4px 20px rgba(73, 146, 187, 0.12);
}

.lh-partner-item__card img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- 5. Accordion ---------- */
.lh-partner-item__accordion {
    background: var(--lh-blue-light);
    border-radius: 0 0 var(--lh-radius) var(--lh-radius);
    padding: 0 1px 1px;
}

.lh-partner-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--lh-text-dark);
    font-family: var(--lh-font-heading);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
}

.lh-partner-item__header:hover,
.lh-partner-item__header:focus,
.lh-partner-item__header:active {
    background: none;
    color: var(--lh-text-dark);
    outline: none;
}

.lh-partner-item__header--static {
    cursor: default;
}

.lh-partner-item__chevron {
    flex-shrink: 0;
    color: var(--lh-text-dark);
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.lh-partner-item.is-open .lh-partner-item__chevron {
    transform: rotate(180deg);
}

.lh-partner-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--lh-white);
    border-radius: 0 0 var(--lh-radius) var(--lh-radius);
}

.lh-partner-item__content {
    padding: 16px;
    color: var(--lh-text-dark);
    font-size: 13px;
    line-height: 1.6;
}

.lh-partner-item__content p:first-child {
    margin-top: 0;
}

.lh-partner-item__content p:last-child {
    margin-bottom: 0;
}

/* No results */
.lh-partner-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--lh-footer-gray);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet large (new breakpoint) */
@media (max-width: 1100px) {
    .lh-partner-hero {
        background-size: cover;
    }

    .lh-partner-hero::before {
        display: none;
    }

    .lh-partner-hero__text-col {
        max-width: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--lh-radius);
    }
}

/* Tablet large */
@media (max-width: 1024px) {
    .lh-partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .lh-partner-hero {
        min-height: auto;
    }

    .lh-partner-hero__inner {
        min-height: auto;
        padding: 40px 20px;
    }

    .lh-partner-hero__title {
        font-size: 30px;
    }

    .lh-partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .lh-partner-hero {
        min-height: 300px;
    }

    .lh-partner-hero__inner {
        padding: 20px;
    }

    .lh-partner-hero__title {
        font-size: 26px;
    }

    .lh-partner-grid {
        grid-template-columns: 1fr;
    }
}