/* ==========================================================================
   Company profile (PDF) section
   resources/views/website/includes/sections/company-profile.blade.php
   Used on the home page and the About Us page. Classes are prefixed with "cp".
   ========================================================================== */

.cp {
    --cp-primary: #421f61;
    --cp-violet: #6b3a93;
    --cp-deeper: #24103a;
    --cp-accent: #dea8e4;

    padding-block: clamp(56px, 7vw, 100px);
    background: #fff;
    scroll-margin-top: 150px;
}

.cp__card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
    padding: clamp(26px, 4.5vw, 60px);
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(222, 168, 228, 0.28), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(107, 58, 147, 0.55), transparent 50%),
        linear-gradient(135deg, var(--cp-primary) 0%, var(--cp-deeper) 100%);
    box-shadow: 0 30px 60px rgba(36, 16, 58, 0.28);
}

/* ---------- text side ---------- */

.cp__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: start;
}

.cp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cp-accent);
    font-size: 13px;
    font-weight: 700;
}

.cp__title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.35;
    margin: 0;
}

.cp__lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.9;
    margin: 0;
    max-width: 560px;
}

.cp__list-title {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    margin: 8px 0 0;
}

.cp__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cp__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
}

.cp__list i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(37, 211, 102, 0.18);
    color: #4ade80;
    font-size: 11px;
}

.cp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 14px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.cp-btn:hover {
    transform: translateY(-2px);
}

.cp-btn--light {
    background: #fff;
    color: var(--cp-primary) !important;
    border-color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cp-btn--light:hover {
    background: var(--cp-accent);
    border-color: var(--cp-accent);
}

.cp-btn--ghost {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45);
}

.cp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.cp__facts {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
}

.cp__facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- page previews ---------- */

.cp__preview {
    position: relative;
    display: block;
    width: min(100%, 300px);
    aspect-ratio: 720 / 1021;
    margin: 10px auto 20px;
}

.cp__page {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(8, 2, 16, 0.5);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cp__page--1 {
    z-index: 3;
    transform: rotate(-3deg);
}

.cp__page--2 {
    z-index: 2;
    transform: translateX(22%) rotate(6deg) scale(0.94);
    filter: brightness(0.9);
}

.cp__page--3 {
    z-index: 1;
    transform: translateX(-22%) rotate(-11deg) scale(0.9);
    filter: brightness(0.8);
}

.cp__preview:hover .cp__page--1,
.cp__preview:focus-visible .cp__page--1 {
    transform: rotate(0) translateY(-8px);
}

.cp__preview:hover .cp__page--2,
.cp__preview:focus-visible .cp__page--2 {
    transform: translateX(38%) rotate(10deg) scale(0.94);
}

.cp__preview:hover .cp__page--3,
.cp__preview:focus-visible .cp__page--3 {
    transform: translateX(-38%) rotate(-15deg) scale(0.9);
}

.cp__badge {
    position: absolute;
    z-index: 4;
    bottom: -14px;
    inset-inline-start: -14px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cp-accent);
    color: var(--cp-primary);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.cp__badge strong {
    font-size: 24px;
    font-weight: 800;
}

.cp__badge small {
    font-size: 12px;
    font-weight: 700;
}

.cp a:focus-visible {
    outline: 3px solid var(--cp-accent);
    outline-offset: 3px;
}

/* ---------- breakpoints ---------- */

@media (min-width: 640px) {
    .cp__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }
}

@media (min-width: 1024px) {
    .cp__card {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 56px;
    }

    .cp__preview {
        width: min(100%, 320px);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .cp-btn {
        width: 100%;
    }

    .cp__preview {
        width: 64%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp__page, .cp-btn {
        transition: none;
    }
}
