/**
 * XPEL Korea - OEM Partnership Page
 * Based on XPEL.com /for-business/oem design
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.oem-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background-color: #171717;
}

@media (min-width: 992px) {
    .oem-hero {
        min-height: 500px;
    }
}

.oem-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.oem-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oem-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.oem-hero__content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-hero__content {
        padding: 4rem 2rem;
    }
}

.oem-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.oem-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.oem-hero__breadcrumb a:hover {
    color: #FFFFFF;
}

.oem-hero__title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.oem-intro {
    background: #FFFFFF;
    padding: 5rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-intro {
        padding: 6rem 2rem;
    }
}

.oem-intro__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .oem-intro__inner {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
        align-items: start;
    }
}

.oem-intro__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
}

.oem-intro__content p {
    font-size: 1rem;
    color: #525252;
    line-height: 1.8;
}

/* ==========================================================================
   Customized Section (Accordion with Image)
   ========================================================================== */
.oem-customized {
    background: #2a2a2a;
    padding: 5rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-customized {
        padding: 6rem 2rem;
    }
}

.oem-customized__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .oem-customized__inner {
        grid-template-columns: 1fr 1.3fr;
        gap: 4rem;
        align-items: start;
    }
}

.oem-customized__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.oem-customized__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Accordion */
.oem-customized__accordion {
    display: flex;
    flex-direction: column;
}

.oem-accordion__item {
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.25rem;
    transition: border-color 0.2s;
}

.oem-accordion__item.active {
    border-color: #FDB521;
}

.oem-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.oem-accordion__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.oem-accordion__item.active .oem-accordion__title {
    color: #FFFFFF;
}

.oem-accordion__item:hover .oem-accordion__title {
    color: rgba(255, 255, 255, 0.8);
}

.oem-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.oem-accordion__item.active .oem-accordion__content {
    max-height: 200px;
}

.oem-accordion__content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    padding-bottom: 1rem;
}

/* Accordion Image */
.oem-customized__image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

@media (min-width: 992px) {
    .oem-customized__image {
        aspect-ratio: auto;
        height: 100%;
        min-height: 500px;
    }
}

.oem-customized__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Showroom Section
   ========================================================================== */
.oem-showroom {
    background: #FFFFFF;
    padding: 5rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-showroom {
        padding: 6rem 2rem;
    }
}

.oem-showroom__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .oem-showroom__inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

.oem-showroom__image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.oem-showroom__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oem-showroom__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.oem-showroom__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #171717;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.oem-showroom__desc {
    font-size: 1rem;
    color: #525252;
    line-height: 1.7;
}

/* ==========================================================================
   Partner Section (Dark with Gallery)
   ========================================================================== */
.oem-partner {
    background: #171717;
    padding: 5rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-partner {
        padding: 6rem 2rem;
    }
}

.oem-partner__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .oem-partner__inner {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
        align-items: center;
    }
}

.oem-partner__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FDB521;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.oem-partner__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.oem-partner__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.oem-partner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #171717;
    background: #FDB521;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.oem-partner__cta:hover {
    background: #e5a31d;
}

/* Partner Gallery */
.oem-partner__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.oem-partner__image {
    border-radius: 12px;
    overflow: hidden;
}

.oem-partner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oem-partner__image--1 {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: 3 / 4;
}

.oem-partner__image--2 {
    aspect-ratio: 16 / 10;
}

.oem-partner__image--3 {
    aspect-ratio: 16 / 10;
}

/* ==========================================================================
   Case Study Section
   ========================================================================== */
.oem-case-study {
    background: #F5F5F5;
    padding: 5rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-case-study {
        padding: 6rem 2rem;
    }
}

.oem-case-study__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .oem-case-study__inner {
        grid-template-columns: 1.3fr 1fr;
        gap: 4rem;
    }
}

.oem-case-study__video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #262626;
}

.oem-case-study__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oem-case-study__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.oem-case-study__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #FDB521;
}

.oem-case-study__play svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
    color: #171717;
}

.oem-case-study__badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
}

.oem-case-study__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.oem-case-study__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #171717;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.oem-case-study__desc {
    font-size: 1rem;
    color: #525252;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.oem-case-study__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #171717;
    background: #FDB521;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.oem-case-study__cta:hover {
    background: #e5a31d;
}

/* ==========================================================================
   Brands Section
   ========================================================================== */
.oem-brands {
    background: #FFFFFF;
    padding: 4rem 1.5rem;
    border-bottom: 1px solid #E5E5E5;
}

@media (min-width: 992px) {
    .oem-brands {
        padding: 5rem 2rem;
    }
}

.oem-brands__inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.oem-brands__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #737373;
    margin-bottom: 2.5rem;
}

.oem-brands__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .oem-brands__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.oem-brands__logo {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.oem-brands__logo:hover {
    opacity: 1;
}

.oem-brands__logo img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.2s;
}

.oem-brands__logo:hover img {
    filter: grayscale(0%);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.oem-contact {
    background: #FFFFFF;
    padding: 5rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-contact {
        padding: 6rem 2rem;
    }
}

.oem-contact__inner {
    max-width: 800px;
    margin: 0 auto;
}

.oem-contact__header {
    text-align: center;
    margin-bottom: 3rem;
}

.oem-contact__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.oem-contact__desc {
    font-size: 1rem;
    color: #525252;
}

.oem-contact__form {
    background: #F5F5F5;
    border-radius: 16px;
    padding: 2rem;
}

@media (min-width: 768px) {
    .oem-contact__form {
        padding: 3rem;
    }
}

.oem-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .oem-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.oem-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oem-form__group--full {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.oem-form__group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #171717;
}

.oem-form__group input,
.oem-form__group select,
.oem-form__group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #171717;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.oem-form__group input:focus,
.oem-form__group select:focus,
.oem-form__group textarea:focus {
    outline: none;
    border-color: #FDB521;
}

.oem-form__group textarea {
    resize: vertical;
    min-height: 120px;
}

.oem-form__submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    background: #FDB521;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.oem-form__submit:hover {
    background: #e5a31d;
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */
.oem-bottom-cta {
    background: #171717;
    padding: 4rem 1.5rem;
}

@media (min-width: 992px) {
    .oem-bottom-cta {
        padding: 5rem 2rem;
    }
}

.oem-bottom-cta__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .oem-bottom-cta__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.oem-bottom-cta__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.oem-bottom-cta__card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.oem-bottom-cta__card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.oem-bottom-cta__card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #171717;
    background: #FDB521;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.oem-bottom-cta__card a:hover {
    background: #e5a31d;
}

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */
@media (max-width: 640px) {
    .oem-partner__gallery {
        grid-template-columns: 1fr;
    }
    
    .oem-partner__image--1 {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 16 / 10;
    }
}
