/* ============================================================
   company-profile.css
   PT. Rayard Deli Indonesia - Company Profile
   Premium Global Manufacturing Aesthetic
   Prefix: cp-
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --cp-primary: #800000;
    --cp-primary-dark: #5A0000;
    --cp-secondary: #13294b;       /* Navy utama */
    --cp-secondary-light: #1f3a6b;
    --cp-secondary-dark: #0b1a30;
    --cp-bg-light: #F7F7F7;
    --cp-bg-white: #FFFFFF;
    --cp-text-dark: #111111;
    --cp-text-medium: #3D3D3D;
    --cp-text-light: #6F6F6F;
    --cp-border: #E0E0E0;
    --cp-shadow-sm: 0 4px 16px rgba(0,0,0,0.04);
    --cp-shadow-md: 0 8px 32px rgba(0,0,0,0.07);
    --cp-shadow-hover: 0 20px 56px rgba(19,41,75,0.12);
    --cp-radius: 20px;
    --cp-radius-lg: 24px;
    --cp-transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / Base ---------- */
.cp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ---------- Section Label ---------- */
.cp-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cp-primary);
    margin-bottom: 12px;
}
.cp-section-label--light {
    color: rgba(255,255,255,0.7);
}

/* ---------- Reveal Animations ---------- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal {
    transform: translateY(40px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal-scale {
    transform: scale(0.95);
}
.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ---------- Stagger Children ---------- */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.22s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.34s; opacity: 1; transform: translateY(0); }

/* ---------- HERO SECTION ---------- */
.cp-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: var(--cp-secondary);
}
.cp-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://via.placeholder.com/1920x1080/13294b/ffffff?text=Factory+Background');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    will-change: transform;
    transition: transform 0.1s linear;
    z-index: 0;
}
.cp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(19,41,75,0.80) 0%, rgba(128,0,0,0.30) 60%, rgba(19,41,75,0.70) 100%);
    z-index: 1;
}
.cp-hero-glass {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.cp-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
}
.cp-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.cp-hero-badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0.4em 1.6em;
    border-radius: 30px;
    margin-bottom: 24px;
}
.cp-hero-title {
    font-size: clamp(3.6rem, 10vw, 6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
.cp-hero-divider {
    width: 80px;
    height: 4px;
    background: var(--cp-primary);
    margin: 0 auto 24px;
    border-radius: 4px;
}
.cp-hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 18px;
}
.cp-hero-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
}
.cp-hero-meta-sep {
    margin: 0 12px;
    color: rgba(255,255,255,0.15);
}
.cp-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: cpFadeUp 0.8s ease 1.2s forwards;
}
.cp-hero-scroll-line {
    display: block;
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    margin-top: 8px;
    animation: cpScrollLine 2.4s ease-in-out infinite;
}
@keyframes cpFadeUp {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes cpScrollLine {
    0% { transform: scaleY(0); opacity: 0; transform-origin: top; }
    40% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ---------- INTRODUCTION ---------- */
.cp-intro {
    padding: 120px 0;
    background: var(--cp-bg-white);
}
.cp-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: center;
}
.cp-intro-left {
    position: relative;
}
.cp-intro-image-wrapper {
    border-radius: var(--cp-radius);
    overflow: hidden;
    box-shadow: var(--cp-shadow-md);
}
.cp-intro-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.cp-intro-image-wrapper:hover .cp-intro-image {
    transform: scale(1.02);
}
.cp-intro-heading {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    color: var(--cp-secondary);
    line-height: 1.2;
    margin-bottom: 8px;
}
.cp-intro-divider {
    width: 60px;
    height: 3px;
    background: var(--cp-primary);
    border-radius: 4px;
    margin-bottom: 24px;
}
.cp-intro-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--cp-text-medium);
    margin-bottom: 18px;
}
.cp-intro-text p:last-child {
    margin-bottom: 0;
}

/* ---------- HIGHLIGHTS ---------- */
.cp-highlights {
    padding: 100px 0;
    background: var(--cp-bg-light);
}
.cp-highlights-header {
    text-align: center;
    margin-bottom: 50px;
}
.cp-highlights-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--cp-secondary);
}
.cp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.cp-highlight-card {
    background: var(--cp-bg-white);
    border-radius: var(--cp-radius);
    padding: 30px 20px 28px;
    text-align: center;
    box-shadow: var(--cp-shadow-sm);
    border: 1px solid var(--cp-border);
    transition: all var(--cp-transition);
}
.cp-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cp-shadow-hover);
    border-color: var(--cp-primary);
}
.cp-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(128,0,0,0.06);
    border-radius: 50%;
    color: var(--cp-primary);
    margin-bottom: 14px;
}
.cp-highlight-icon svg {
    width: 30px;
    height: 30px;
}
.cp-highlight-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cp-text-light);
    margin-bottom: 4px;
}
.cp-highlight-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cp-secondary);
    margin: 0;
}

/* ---------- STRENGTH (Zig-Zag) ---------- */
.cp-strength {
    padding: 120px 0;
    background: var(--cp-bg-white);
}
.cp-strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cp-strength-left {
    padding-right: 20px;
}
.cp-strength-heading {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--cp-secondary);
    line-height: 1.2;
    margin-bottom: 8px;
}
.cp-strength-divider {
    width: 60px;
    height: 3px;
    background: var(--cp-primary);
    border-radius: 4px;
    margin-bottom: 24px;
}
.cp-strength-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cp-text-medium);
    margin-bottom: 16px;
}
.cp-strength-text:last-of-type {
    margin-bottom: 0;
}
.cp-strength-image-wrapper {
    border-radius: var(--cp-radius);
    overflow: hidden;
    box-shadow: var(--cp-shadow-md);
}
.cp-strength-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.cp-strength-image-wrapper:hover .cp-strength-image {
    transform: scale(1.02);
}

/* ---------- WHY RAYARD (6 Cards) ---------- */
.cp-why {
    padding: 100px 0;
    background: var(--cp-bg-light);
}
.cp-why-header {
    text-align: center;
    margin-bottom: 50px;
}
.cp-why-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--cp-secondary);
}
.cp-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.cp-why-card {
    background: var(--cp-bg-white);
    border-radius: var(--cp-radius);
    padding: 30px 24px 28px;
    text-align: center;
    box-shadow: var(--cp-shadow-sm);
    border: 1px solid var(--cp-border);
    transition: all var(--cp-transition);
}
.cp-why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cp-shadow-hover);
    border-color: var(--cp-primary);
}
.cp-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(128,0,0,0.06);
    border-radius: 50%;
    color: var(--cp-primary);
    margin-bottom: 14px;
}
.cp-why-icon svg {
    width: 28px;
    height: 28px;
}
.cp-why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cp-secondary);
    margin-bottom: 6px;
}
.cp-why-card p {
    font-size: 0.9rem;
    color: var(--cp-text-light);
    line-height: 1.5;
    margin: 0;
}

/* ---------- FOOTPRINT (Horizontal Timeline) ---------- */
.cp-footprint {
    padding: 100px 0;
    background: var(--cp-bg-white);
}
.cp-footprint-header {
    text-align: center;
    margin-bottom: 60px;
}
.cp-footprint-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--cp-secondary);
}
.cp-footprint-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 30px 0 20px;
}
.cp-footprint-timeline::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--cp-border);
    z-index: 0;
}
.cp-footprint-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
}
.cp-footprint-year {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cp-primary);
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.cp-footprint-dot {
    width: 16px;
    height: 16px;
    background: var(--cp-primary);
    border-radius: 50%;
    border: 3px solid var(--cp-bg-white);
    box-shadow: 0 0 0 4px rgba(128,0,0,0.10);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.cp-footprint-item:hover .cp-footprint-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(128,0,0,0.18);
}
.cp-footprint-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cp-secondary);
    line-height: 1.3;
    max-width: 100px;
}

/* ---------- COMMITMENT (Navy) ---------- */
.cp-commitment {
    padding: 120px 0;
    background: var(--cp-secondary);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cp-commitment::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(128,0,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cp-commitment-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cp-commitment-heading {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.cp-commitment-divider {
    width: 60px;
    height: 3px;
    background: var(--cp-primary);
    border-radius: 4px;
    margin: 0 auto 24px;
}
.cp-commitment-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.80);
    max-width: 750px;
    margin: 0 auto 40px;
}
.cp-commitment-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cp-commitment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    padding: 10px 24px;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.cp-commitment-item:hover {
    background: rgba(255,255,255,0.10);
    transform: translateY(-4px);
}
.cp-commitment-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.cp-commitment-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* ---------- CTA ---------- */
.cp-cta {
    padding: 100px 0;
    background: var(--cp-bg-white);
}
.cp-cta-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 50px;
    background: var(--cp-bg-light);
    border-radius: var(--cp-radius-lg);
    text-align: center;
    box-shadow: var(--cp-shadow-md);
    border: 1px solid var(--cp-border);
    transition: all var(--cp-transition);
}
.cp-cta-card:hover {
    box-shadow: var(--cp-shadow-hover);
    transform: scale(1.01);
}
.cp-cta-heading {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--cp-secondary);
    margin-bottom: 12px;
}
.cp-cta-text {
    font-size: 1.1rem;
    color: var(--cp-text-medium);
    line-height: 1.6;
    margin-bottom: 32px;
}
.cp-cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--cp-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s ease;
    border: none;
    cursor: pointer;
}
.cp-cta-button:hover {
    background: var(--cp-secondary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(19,41,75,0.30);
    color: #fff;
}

/* ---------- FOOTER ---------- */
.cp-footer {
    padding: 30px 0;
    background: var(--cp-secondary-dark);
    color: rgba(255,255,255,0.4);
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.cp-footer p {
    margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .cp-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cp-strength-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cp-strength-left {
        padding-right: 0;
        order: 2;
    }
    .cp-strength-right {
        order: 1;
    }
    .cp-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cp-footprint-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px 20px;
    }
    .cp-footprint-timeline::before {
        display: none;
    }
    .cp-footprint-item {
        flex: 0 0 calc(50% - 20px);
    }
    .cp-commitment-grid {
        gap: 16px;
    }
    .cp-commitment-item {
        padding: 8px 18px;
    }
}

@media (max-width: 768px) {
    .cp-container {
        padding: 0 20px;
    }
    .cp-hero {
        min-height: 70vh;
    }
    .cp-hero-title {
        font-size: 2.8rem;
    }
    .cp-hero-subtitle {
        font-size: 0.95rem;
    }
    .cp-hero-meta {
        font-size: 0.7rem;
    }
    .cp-intro {
        padding: 70px 0;
    }
    .cp-intro-text p {
        font-size: 0.95rem;
    }
    .cp-highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .cp-highlight-card {
        padding: 24px 16px;
    }
    .cp-why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .cp-why-card {
        padding: 24px 16px;
    }
    .cp-footprint-item {
        flex: 0 0 calc(50% - 10px);
    }
    .cp-commitment {
        padding: 80px 0;
    }
    .cp-commitment-text {
        font-size: 0.95rem;
    }
    .cp-cta-card {
        padding: 40px 24px;
    }
    .cp-cta-heading {
        font-size: 2rem;
    }
    .cp-cta-text {
        font-size: 0.95rem;
    }
    .cp-cta-button {
        padding: 14px 34px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cp-hero-title {
        font-size: 2.2rem;
    }
    .cp-hero-badge {
        font-size: 9px;
        letter-spacing: 4px;
        padding: 0.2em 1.2em;
    }
    .cp-highlights-grid {
        grid-template-columns: 1fr;
    }
    .cp-why-grid {
        grid-template-columns: 1fr;
    }
    .cp-footprint-item {
        flex: 0 0 100%;
    }
    .cp-commitment-grid {
        flex-direction: column;
        align-items: center;
    }
    .cp-commitment-item {
        width: 100%;
        justify-content: center;
    }
    .cp-cta-card {
        padding: 30px 18px;
    }
}

/* ============================================================
   TAMBAHAN CSS UNTUK SECTION VIDEO (cp-video)
   DITAMBAHKAN DI PALING BAWAH TANPA MENGGUNAKAN !important
   ============================================================ */

.cp-video {
    padding: 100px 0;
    background: var(--cp-bg-white);
}

.cp-video-header {
    text-align: center;
    margin-bottom: 40px;
}

.cp-video-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--cp-secondary);
    margin-top: 6px;
}

.cp-video-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--cp-shadow-sm);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all var(--cp-transition);
}

.cp-video-container:hover {
    transform: translateY(-6px);
    box-shadow: var(--cp-shadow-hover);
}

.cp-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 18px;
    background: #000;
    outline: none;
}

/* Responsive tambahan untuk video */
@media (max-width: 1024px) {
    .cp-video-container {
        max-width: 90%;
        padding: 14px;
        border-radius: 20px;
    }
    .cp-video-player {
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .cp-video {
        padding: 70px 0;
    }
    .cp-video-container {
        max-width: 100%;
        padding: 12px;
        border-radius: 18px;
    }
    .cp-video-player {
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .cp-video {
        padding: 50px 0;
    }
    .cp-video-container {
        padding: 8px;
        border-radius: 16px;
    }
    .cp-video-player {
        border-radius: 12px;
    }
}