/**
 * Contact page — manufacturing company feel
 */

.cp-page {
    overflow-x: hidden;
}

/* ── Hero ── */
.cp-hero {
    position: relative;
    min-height: clamp(420px, 58vh, 520px);
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--announcement-height) + 48px) 0 80px;
    background: var(--color-charcoal);
    color: var(--text-light);
    overflow: hidden;
}

.cp-hero-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cp-hero-fx::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 13, 15, 0.88) 0%,
        rgba(26, 24, 20, 0.75) 45%,
        rgba(13, 13, 15, 0.92) 100%
    );
}

.cp-hero-fx::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-manufacturing.png') center / cover no-repeat;
    opacity: 0.35;
    transform: scale(1.05) translateY(var(--cp-parallax, 0));
    animation: cpHeroKen 22s ease-in-out infinite alternate;
}

@keyframes cpHeroKen {
    from { transform: scale(1.05) translate(0, 0); }
    to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.cp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: cpOrbFloat 14s ease-in-out infinite;
}

.cp-orb--1 {
    width: 360px;
    height: 360px;
    background: rgba(212, 175, 55, 0.22);
    top: -10%;
    right: 10%;
}

.cp-orb--2 {
    width: 280px;
    height: 280px;
    background: rgba(212, 175, 55, 0.12);
    bottom: 0;
    left: -5%;
    animation-delay: -5s;
}

@keyframes cpOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -16px); }
}

.cp-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black 20%, transparent 90%);
}

.cp-hero-inner {
    position: relative;
    z-index: 2;
}

.cp-hero-copy .section-kicker {
    color: var(--color-gold-light);
}

.cp-hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.12;
    margin: 12px 0 20px;
    color: var(--text-light);
}

.cp-hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cp-hero-copy p {
    max-width: 520px;
    color: var(--text-on-dark-muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.cp-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.cp-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    transition: transform 0.35s var(--nf-ease, ease), border-color 0.35s ease;
}

.cp-stat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
}

.cp-stat-pill i {
    color: var(--color-gold);
}

.cp-stat-pill strong {
    color: var(--color-gold-light);
    font-weight: 700;
}

.cp-hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.cp-hero-scroll span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    position: relative;
}

.cp-hero-scroll span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--color-gold);
    border-radius: 2px;
    animation: cpScrollDot 1.8s ease-in-out infinite;
}

@keyframes cpScrollDot {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
}

/* ── Channel strip ── */
.cp-channels {
    position: relative;
    z-index: 3;
    margin-top: -40px;
    padding-bottom: 16px;
}

.cp-channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cp-channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--color-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    color: inherit;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease;
    overflow: hidden;
    position: relative;
}

.cp-channel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cp-channel:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.cp-channel:hover::before {
    opacity: 1;
}

.cp-channel:hover .cp-channel-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.cp-channel-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--color-gold-dark);
    transition: transform 0.35s ease, background 0.35s ease;
}

.cp-channel:hover .cp-channel-icon {
    transform: scale(1.08);
    background: rgba(212, 175, 55, 0.18);
}

.cp-channel-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-channel-body strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-channel-body span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cp-channel-arrow {
    font-size: 0.75rem;
    color: var(--color-gold-dark);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Main grid ── */
.cp-main {
    padding: 56px 0 80px;
    background: var(--bg-primary);
}

.cp-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: start;
}

.cp-factory-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-lg);
}

.cp-factory-visual img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-factory-visual:hover img {
    transform: scale(1.04);
}

.cp-factory-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(13, 13, 15, 0.82);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-gold-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cp-factory-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 8px 0 12px;
}

.cp-factory-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.cp-detail-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cp-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cp-detail:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.cp-detail i {
    color: var(--color-gold-dark);
    margin-top: 3px;
    width: 18px;
    text-align: center;
}

.cp-detail strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cp-detail span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.cp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.cp-trust span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
}

.cp-trust i {
    color: var(--color-gold-dark);
    margin-right: 4px;
}

.cp-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cp-quick-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
}

.cp-quick-links a:hover {
    gap: 10px;
}

/* ── Form card ── */
.cp-form-wrap {
    position: sticky;
    top: calc(var(--header-height) + var(--announcement-height) + 24px);
}

.cp-form-card {
    background: var(--color-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}

.cp-form-head h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.cp-form-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cp-inquiry-types {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cp-type {
    flex: 1;
    min-width: calc(50% - 4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-type i {
    font-size: 0.85rem;
    color: var(--color-gold-dark);
    transition: transform 0.3s ease;
}

.cp-type:hover {
    border-color: var(--border-gold);
    color: var(--text-primary);
}

.cp-type.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.06));
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.cp-type.active i {
    transform: scale(1.15);
}

/* Floating labels */
.cp-field {
    position: relative;
    margin-bottom: 20px;
}

.cp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cp-input {
    width: 100%;
    padding: 16px 14px 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-primary);
    background: var(--color-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cp-textarea {
    min-height: 110px;
    resize: vertical;
    padding-top: 22px;
}

.cp-field label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.88rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
}

.cp-field:has(.cp-textarea) label {
    top: 18px;
    transform: none;
}

.cp-input:focus,
.cp-input:not(:placeholder-shown) {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    outline: none;
}

.cp-input:focus + label,
.cp-input:not(:placeholder-shown) + label {
    top: 8px;
    transform: none;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-gold-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cp-field:has(.cp-textarea:focus) label,
.cp-field:has(.cp-textarea:not(:placeholder-shown)) label {
    top: 8px;
}

.cp-submit {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    padding: 16px 24px !important;
    font-size: 0.95rem !important;
}

.cp-submit-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    animation: cpSubmitShine 3.5s ease-in-out infinite;
}

@keyframes cpSubmitShine {
    0%, 100% { left: -100%; }
    50% { left: 140%; }
}

/* ── Process timeline ── */
.cp-process {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.cp-process-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.cp-process-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 8px 0 12px;
}

.cp-process-header p {
    color: var(--text-secondary);
}

.cp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: cpstep;
}

.cp-step {
    position: relative;
    padding: 28px 22px;
    background: var(--color-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.cp-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.cp-step-num {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.35);
    font-family: var(--font-display);
}

.cp-step-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--color-gold-dark);
    transition: transform 0.35s ease, background 0.35s ease;
}

.cp-step:hover .cp-step-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(212, 175, 55, 0.2);
}

.cp-step h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.cp-step p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Connector lines desktop */
@media (min-width: 901px) {
    .cp-steps {
        position: relative;
    }

    .cp-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -12px;
        width: 24px;
        height: 2px;
        background: linear-gradient(90deg, var(--color-gold), transparent);
        opacity: 0.4;
    }
}

/* ── Visit ── */
.cp-visit {
    padding: 72px 0 88px;
    background: var(--color-charcoal);
    color: var(--text-light);
}

.cp-visit-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cp-visit-copy .section-kicker {
    color: var(--color-gold-light);
}

.cp-visit-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin: 8px 0 14px;
    color: var(--text-light);
}

.cp-visit-copy p {
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 16px;
}

.cp-visit-copy address {
    font-style: normal;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.cp-visit-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}

.cp-visit-actions .btn-outline-gold {
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--color-gold-light);
}

.cp-visit-actions .btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.12);
}

/* ── Scroll reveals ── */
.cp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--cp-delay, 0ms);
}

.cp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cp-reveal-d1 { --cp-delay: 80ms; }
.cp-reveal-d2 { --cp-delay: 160ms; }
.cp-reveal-d3 { --cp-delay: 240ms; }
.cp-reveal-d4 { --cp-delay: 320ms; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cp-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cp-form-wrap {
        position: static;
    }

    .cp-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .cp-hero {
        min-height: auto;
        padding-bottom: 64px;
    }

    .cp-hero-scroll {
        display: none;
    }

    .cp-channels {
        margin-top: -24px;
    }

    .cp-channels-grid {
        grid-template-columns: 1fr;
    }

    .cp-field-row {
        grid-template-columns: 1fr;
    }

    .cp-type {
        min-width: calc(50% - 4px);
    }

    .cp-form-card {
        padding: 24px 20px;
    }

    .cp-steps {
        grid-template-columns: 1fr;
    }

    .cp-visit-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cp-visit-actions {
        width: 100%;
    }

    .cp-visit-actions a {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cp-hero-fx::before,
    .cp-orb,
    .cp-hero-scroll span::after,
    .cp-submit-shine {
        animation: none !important;
    }
}
