/* ==========================================================================
   IKON PARTITIONS — PARTNERS PAGE
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */

.ptn-hero {
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
    padding: 100px 0 80px;
}

.ptn-hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ptn-hero-lines span {
    position: absolute;
    top: -20%;
    width: 1px;
    height: 140%;
    background: rgba(255, 255, 255, 0.04);
    transform: rotate(-12deg);
    transform-origin: top center;
}

.ptn-hero-lines span:nth-child(1) { left: 55%; }
.ptn-hero-lines span:nth-child(2) { left: 65%; }
.ptn-hero-lines span:nth-child(3) { left: 75%; }
.ptn-hero-lines span:nth-child(4) { left: 85%; }

.ptn-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 64px;
    align-items: flex-end;
}

.ptn-hero-left {
    flex: 0 0 50%;
}

.ptn-hero-left .section-tag {
    color: var(--primary);
    margin-bottom: 20px;
}

.ptn-hero-left .section-tag::before {
    background: var(--primary);
}

.ptn-hero-title {
    font-family: 'Arial', sans-serif;
    font-size: 56px;
    font-weight: 300;
    line-height: 1.12;
    color: #fff;
    letter-spacing: -0.5px;
}

.ptn-hero-title .italic-serif {
    font-size: 56px;
}

.ptn-hero-right {
    flex: 1;
    padding-top: 52px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ptn-hero-tagline {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #F7F4EF;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.ptn-hero-tagline::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

.ptn-hero-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   PARTNER BLOCKS
   ========================================================================== */

.ptn-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 476px;
}

.ptn-block-text {
    background: #fff;
    display: flex;
    align-items: center;
}

.ptn-block-text-inner {
    padding: 72px clamp(32px, 5vw, 88px);
}

.ptn-block-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ptn-country-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 9.3px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    display: inline-block;
}

.ptn-category {
    font-family: 'Outfit', sans-serif;
    font-size: 13.3px;
    font-weight: 300;
    color: #5A5550;
}

.ptn-block-name {
    font-family: 'Arial', sans-serif;
    font-size: 38.4px;
    font-weight: 400;
    color: #111111;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ptn-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.ptn-divider-line {
    flex: 1;
    height: 1px;
    background: #D4B483;
}

.ptn-divider-mark {
    width: 1px;
    height: 28px;
    background: var(--primary);
    transform: rotate(15deg);
    flex-shrink: 0;
}

.ptn-block-body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.85;
    color: #5A5550;
    margin-bottom: 32px;
}

.ptn-view-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #090909;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.ptn-view-site-text {
    border-bottom: 1px solid #090909;
    padding-bottom: 2px;
    line-height: 1;
    transition: border-color 0.3s ease;
}

.ptn-view-site-arrow {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.ptn-view-site:hover {
    color: var(--primary);
    gap: 14px;
}

.ptn-view-site:hover .ptn-view-site-text {
    border-color: var(--primary);
}

/* Image half */
.ptn-block-img {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #e8e3d9;
    min-height: 476px;
}

/* Logo overlay card */
.ptn-logo-card {
    position: absolute;
    background: #F5F0E8;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 100px;
}

.ptn-logo-card--br {
    bottom: 32px;
    right: 0px;
}

.ptn-logo-card--bl {
    bottom: 32px;
    left: 0px;
}

.ptn-logo-img {
    max-width: 140px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Alternating layout */
.ptn-block--reverse .ptn-block-text-inner {
    padding-left: clamp(32px, 5vw, 88px);
    padding-right: clamp(32px, 5vw, 88px);
}

/* Subtle top border between blocks */
.ptn-block + .ptn-block {
    border-top: 1px solid #E8E3D9;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.ptn-cta {
    background: var(--bg-light);
    padding: 112px 0;
}

.ptn-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.ptn-cta-text {
    max-width: 560px;
}

.ptn-cta .section-tag,
.ptn-cta-text .section-tag {
    color: var(--primary);
    justify-content: flex-start;
}

.ptn-cta .section-tag::before,
.ptn-cta-text .section-tag::before {
    background: var(--primary);
}

.ptn-cta-title {
    font-family: 'Arial', sans-serif;
    font-size: 38.4px;
    font-weight: 400;
    line-height: 1.15;
    color: #111111;
    margin-bottom: 20px;
}

.ptn-cta-title .italic-serif {
    font-family: 'Arial', sans-serif;
    font-style: italic;
}

.ptn-cta-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 15.2px;
    font-weight: 300;
    line-height: 1.85;
    color: #5A5550;
}

.ptn-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    flex-shrink: 0;
}

.ptn-cta-btn {
    white-space: nowrap;
    letter-spacing: 1px;
}

.ptn-cta-link {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #090909;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s, gap 0.3s;
    width: 100%;
    justify-content: center;
}

.ptn-cta-link:hover {
    color: var(--primary);
    gap: 14px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .ptn-block-text-inner {
        padding: 56px 48px;
    }
}

@media (max-width: 900px) {
    .ptn-hero-inner {
        flex-direction: column;
        gap: 40px;
    }

    .ptn-hero-left {
        flex: none;
        width: 100%;
    }

    .ptn-hero-right {
        padding-top: 0;
        width: 100%;
    }

    .ptn-hero-title {
        font-size: 40px;
    }

    .ptn-hero-title .italic-serif {
        font-size: 40px;
    }

    .ptn-block {
        grid-template-columns: 1fr;
    }

    .ptn-block-img {
        min-height: 320px;
        order: -1;
    }

    .ptn-block--reverse .ptn-block-img {
        order: -1;
    }

    .ptn-block-text-inner {
        padding: 48px 24px;
        max-width: none;
    }

    .ptn-block-name {
        font-size: 30px;
    }

    .ptn-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .ptn-cta-text {
        max-width: none;
    }

    .ptn-cta-actions {
        width: 100%;
        align-items: stretch;
    }

    .ptn-cta-btn {
        text-align: center;
        justify-content: center;
    }

    .ptn-cta-link {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .ptn-hero {
        padding: 72px 0 60px;
    }

    .ptn-hero-title {
        font-size: 32px;
    }

    .ptn-hero-title .italic-serif {
        font-size: 32px;
    }

    .ptn-cta {
        padding: 72px 0;
    }

    .ptn-cta-title {
        font-size: 30px;
    }

    .ptn-logo-card {
        min-width: 140px;
        height: 80px;
        padding: 16px 24px;
        bottom: 20px;
        right: 20px;
    }

    .ptn-logo-card--bl {
        left: 20px;
        right: auto;
    }

    .ptn-logo-img {
        max-width: 110px;
        max-height: 40px;
    }
}

/* ==========================================================================
   MOBILE — HETTICH & FECO partner blocks (≤ 480px)
   All shared block styles already inherit from the main 480px block below.
   Only Hettich's --reverse logo card needs repositioning to match Bosse.
   ========================================================================== */

@media (max-width: 480px) {

    /* Hettich: logo card flush left on mobile — matches Bosse / Feco */
    .ptn-block--reverse .ptn-logo-card--br {
        left: 0;
        right: auto;
    }
}

/* ==========================================================================
   MOBILE — PARTNER PAGE (≤ 480px)
   Matches Figma mobile spec: 375px frame, white bg, stacked layout
   ========================================================================== */

@media (max-width: 480px) {

    /* ── Hero ── */
    .ptn-hero {
        padding: 100px 0 100px;
    }

    .ptn-hero-inner {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .ptn-hero-left {
        flex: none;
        width: 100%;
    }

    .ptn-hero-left .section-tag {
        font-size: 11px;
        letter-spacing: 2.5px;
        margin-bottom: 16px;   /* gap between tag and title */
    }

    .ptn-hero-title {
        font-size: 46px;
        line-height: 1.12;
        letter-spacing: -0.3px;
    }

    .ptn-hero-title .italic-serif {
        font-size: 46px;
    }

    .ptn-hero-right {
        padding-top: 24px;     /* gap above description */
        width: 100%;
    }

    .ptn-hero-desc {
        font-size: 16px;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.65);
    }

    /* Show 3 diagonal lines matching Figma — hide 1st, keep 2nd/3rd/4th */
    .ptn-hero-lines span:nth-child(1) {
        display: none;
    }

    /* Keep lines 2, 3, 4 at desktop positions (65%, 75%, 85%) — 
       on 375px screen they naturally group on the right side */
    .ptn-hero-lines span:nth-child(2) { left: 65%; }
    .ptn-hero-lines span:nth-child(3) { left: 75%; }
    .ptn-hero-lines span:nth-child(4) { left: 85%; }

    /* ── Partner Blocks ── */
    .ptn-block {
        grid-template-columns: 1fr;
    }

    .ptn-block-img {
        min-height: 380px;
        order: -1;
    }

    .ptn-block--reverse .ptn-block-img {
        order: -1;
    }

    /* Subtle separator between blocks */
    .ptn-block + .ptn-block {
        border-top: 1px solid #E8E3D9;
    }

    /* Text box hugs its content so the gap after "View website" stays tight */
    .ptn-block-text {
        height: auto;
        align-items: stretch;
    }

    .ptn-block-text-inner {
        width: 100%;
        padding: 64px 24px;
        max-width: none;
    }

    /* Reverse block (Hettich) — same 24px side padding, overrides desktop clamp */
    .ptn-block--reverse .ptn-block-text-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ptn-block-meta {
        gap: 12px;
        margin-bottom: 24px;   /* gap */
    }

    .ptn-country-tag {
        font-size: 8.5px;
        letter-spacing: 2px;
        padding: 4px 8px;
    }

    .ptn-category {
        font-size: 12px;
    }

    .ptn-block-name {
        font-size: 26px;
        margin-bottom: 24px;   /* gap */
    }

    .ptn-divider {
        margin-bottom: 0;
    }

    .ptn-divider-mark {
        height: 22px;
    }

    .ptn-block-body {
        font-size: 14px;
        line-height: 1.75;
        padding-top: 8px;      /* gap above description */
        margin-bottom: 0;
    }

    .ptn-view-site {
        font-size: 10.5px;
        letter-spacing: 1.2px;
        padding-top: 40px;     /* gap above View website */
    }

    /* Remove underline from "View website" on mobile — matches Figma */
    .ptn-view-site-text {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* ── Logo Cards ── */
    .ptn-logo-card {
        min-width: 120px;
        height: 68px;
        padding: 14px 20px;
    }

    .ptn-logo-card--bl {
        bottom: 16px;
        left: 0;
        right: auto;
    }

    .ptn-logo-card--br {
        bottom: 16px;
        right: 0;
    }

    .ptn-logo-img {
        max-width: 90px;
        max-height: 34px;
    }

    /* ── CTA ── (matches gallery "Start a Project" section: height, padding, gaps) */
    .ptn-cta {
        height: 490px;
        padding: 64px 24px;
        background: var(--bg-light);
    }

    .ptn-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;                /* text block ↔ buttons */
        padding-left: 0;
        padding-right: 0;
        height: 100%;
        justify-content: center;
    }

    .ptn-cta-text {
        max-width: none;
        display: flex;
        flex-direction: column;
        gap: 24px;                /* tag ↔ title ↔ description */
    }

    .ptn-cta .section-tag {
        font-size: 9.5px;
        letter-spacing: 2px;
        margin-bottom: 0;
    }

    .ptn-cta-title {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .ptn-cta-desc {
        font-size: 14px;
        line-height: 1.75;
    }

    .ptn-cta-actions {
        width: 100%;
        align-items: stretch;
        gap: 24px;                /* button ↔ explore link */
    }

    .ptn-cta-btn {
        text-align: center;
        justify-content: center;
        padding: 16px 32px;
        font-size: 11px;
    }

    .ptn-cta-link {
        justify-content: center;
        font-size: 11px;
    }
}
