/*
 * design-how-we-work.css
 * How We Work section for design.html — all classes prefixed dhww-
 * to avoid conflicts with global.css, components.css and other page CSS.
 */

/* ══ SECTION WRAPPER ══ */
.dhww-section {
    position: relative;
    z-index: 1;
    padding: 110px 64px 130px;
    background: var(--creo-light, #EFE5CF);
    font-family: 'Manrope', sans-serif;
    color: #0B173D;
    overflow: hidden;
}

/* vertical stripe overlay */
.dhww-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(90deg,
            transparent,
            transparent calc(8.33% - 1px),
            rgba(11, 23, 61, 0.05) calc(8.33% - 1px),
            rgba(11, 23, 61, 0.05) 8.33%);
}

.dhww-inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ══ TOP ROW ══ */
.dhww-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 72px;
}

.dhww-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(11, 23, 61, 0.22);
    border-radius: 100px;
    padding: 7px 18px;
    margin-bottom: 20px;
    background: rgba(239, 229, 207, 0.8);
    width: fit-content;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #0B173D;
    opacity: 0;
    animation: dhwwFadeUp 0.5s ease forwards 0.1s;
}

.dhww-headline {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
    color: #0B173D;
    opacity: 0;
    animation: dhwwFadeUp 0.65s ease forwards 0.2s;
}

.dhww-headline em {
    font-style: italic;
    color: #FF751F;
}

.dhww-right-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    animation: dhwwFadeUp 0.6s ease forwards 0.3s;
}

.dhww-subtext {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(11, 23, 61, 0.5);
    max-width: 400px;
}

/* global progress bar */
.dhww-global-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dhww-gp-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(11, 23, 61, 0.38);
    display: flex;
    justify-content: space-between;
}

.dhww-gp-track {
    height: 4px;
    background: rgba(11, 23, 61, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.dhww-gp-fill {
    height: 100%;
    background: #FF751F;
    border-radius: 100px;
    width: 25%;
    transition: width 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ══ MAIN BODY LAYOUT ══ */
.dhww-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    opacity: 0;
    animation: dhwwFadeUp 0.7s ease forwards 0.4s;
}

/* ══ LEFT — MOCKUP PANEL ══ */
.dhww-mockup-panel {
    position: sticky;
    top: 40px;
    background: #0B173D;
    border-radius: 22px;
    overflow: hidden;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhww-mockup-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0B173D 0%, #1a2d5a 50%, #FF751F 120%);
    background-size: 300% 300%;
    animation: dhwwBgShift 8s ease infinite;
}

@keyframes dhwwBgShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.dhww-mockup-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg,
            transparent,
            transparent calc(12.5% - 1px),
            rgba(255, 255, 255, 0.03) calc(12.5% - 1px),
            rgba(255, 255, 255, 0.03) 12.5%);
}

.dhww-mockup-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhww-step-wm {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 200px;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.4s;
}

/* individual mockup screens */
.dhww-mock-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.dhww-mock-screen.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── MOCK 1: Discovery ── */
.dhww-mock-discovery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 260px;
}

.dhww-mock-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
}

.dhww-mock-card-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(239, 229, 207, 0.5);
    margin-bottom: 14px;
}

.dhww-mock-q-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dhww-mock-q-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF751F;
    flex-shrink: 0;
}

.dhww-mock-q-line {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    flex: 1;
}

.dhww-mock-q-line.short {
    max-width: 60%;
}

.dhww-mock-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dhww-mock-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dhww-mock-check.done {
    background: #FF751F;
    border-color: #FF751F;
}

.dhww-mock-check.done::after {
    content: '✓';
    font-size: 9px;
    color: #fff;
    font-weight: 900;
}

.dhww-mock-check-lbl {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.dhww-mock-check.done+.dhww-mock-check-lbl {
    color: rgba(255, 255, 255, 0.8);
}

/* ── MOCK 2: Figma moodboard ── */
.dhww-mock-figma {
    width: 280px;
}

.dhww-figma-bar {
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.dhww-figma-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dhww-figma-bar-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 8px;
    letter-spacing: 0.06em;
}

.dhww-figma-body {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dhww-figma-swatch {
    height: 52px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.dhww-figma-swatch-lbl {
    position: absolute;
    bottom: 5px;
    left: 7px;
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.06em;
}

.dhww-figma-type {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
}

.dhww-figma-type-big {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    opacity: 0.85;
}

.dhww-figma-type-sm {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* ── MOCK 3: Design system ── */
.dhww-mock-system {
    width: 270px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dhww-sys-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
}

.dhww-sys-card-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(239, 229, 207, 0.4);
    margin-bottom: 10px;
}

.dhww-sys-comp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.dhww-sys-comp-box {
    height: 28px;
    border-radius: 6px;
    background: #FF751F;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.dhww-sys-comp-box.outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
}

.dhww-sys-comp-box.sm {
    height: 22px;
    font-size: 9px;
    padding: 0 8px;
    border-radius: 100px;
}

.dhww-sys-progress-mini {
    height: 4px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 4px;
}

.dhww-sys-progress-fill {
    height: 100%;
    border-radius: 100px;
    background: #FF751F;
}

.dhww-sys-progress-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dhww-sys-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.dhww-sys-progress-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.dhww-sys-progress-pct {
    font-size: 10px;
    font-weight: 700;
    color: #FF751F;
}

.dhww-sys-progress-pct.dim {
    color: rgba(255, 255, 255, 0.35);
}

/* ── MOCK 4: Delivery ── */
.dhww-mock-delivery {
    width: 270px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.dhww-delivery-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 117, 31, 0.15);
    border: 2px solid rgba(255, 117, 31, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: dhwwDelivBounce 2.5s ease-in-out infinite;
}

@keyframes dhwwDelivBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.dhww-delivery-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    text-align: center;
}

.dhww-delivery-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.6;
}

.dhww-delivery-files {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.dhww-delivery-file {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.dhww-delivery-file-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.dhww-delivery-file-name {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
}

/* ══ RIGHT — ACCORDION ══ */
.dhww-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dhww-acc-item {
    border-bottom: 1.5px solid rgba(11, 23, 61, 0.1);
    overflow: hidden;
}

.dhww-acc-item:first-child {
    border-top: 1.5px solid rgba(11, 23, 61, 0.1);
}

.dhww-acc-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer;
    user-select: none;
}

.dhww-acc-step-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #FF751F;
    width: 28px;
}

.dhww-acc-step-title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0B173D;
    transition: color 0.2s;
}

.dhww-acc-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(11, 23, 61, 0.35);
    background: rgba(11, 23, 61, 0.06);
    padding: 5px 11px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.dhww-acc-item.open .dhww-acc-timer {
    background: rgba(255, 117, 31, 0.1);
    color: #FF751F;
}

.dhww-acc-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(11, 23, 61, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.dhww-acc-item.open .dhww-acc-arrow {
    background: #FF751F;
    border-color: #FF751F;
    transform: rotate(45deg);
}

.dhww-acc-arrow svg {
    width: 13px;
    height: 13px;
    transition: stroke 0.3s;
}

.dhww-acc-item.open .dhww-acc-arrow svg {
    stroke: #fff !important;
}

/* accordion body */
.dhww-acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.dhww-acc-item.open .dhww-acc-body {
    grid-template-rows: 1fr;
}

.dhww-acc-body-inner {
    overflow: hidden;
}

.dhww-acc-body-content {
    padding: 0 0 28px 44px;
}

.dhww-acc-desc {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(11, 23, 61, 0.55);
    margin-bottom: 20px;
}

/* checklist */
.dhww-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.dhww-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(11, 23, 61, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.dhww-check-item:hover {
    border-color: rgba(255, 117, 31, 0.3);
    background: rgba(255, 117, 31, 0.04);
}

.dhww-check-item.checked {
    border-color: rgba(255, 117, 31, 0.25);
    background: rgba(255, 117, 31, 0.06);
}

.dhww-check-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1.5px solid rgba(11, 23, 61, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.dhww-check-item.checked .dhww-check-box {
    background: #FF751F;
    border-color: #FF751F;
}

.dhww-check-tick {
    width: 10px;
    height: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.dhww-check-item.checked .dhww-check-tick {
    opacity: 1;
}

.dhww-check-lbl {
    font-size: 12.5px;
    font-weight: 500;
    color: #0B173D;
    line-height: 1.3;
}

.dhww-check-item.checked .dhww-check-lbl {
    color: rgba(11, 23, 61, 0.5);
    text-decoration: line-through;
}

/* deliverable reveal */
.dhww-deliverable-reveal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 117, 31, 0.08), rgba(255, 117, 31, 0.03));
    border: 1.5px solid rgba(255, 117, 31, 0.3);
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease, margin 0.3s ease;
    margin-top: 0;
}

.dhww-deliverable-reveal.show {
    max-height: 120px;
    opacity: 1;
    margin-top: 14px;
}

.dhww-deliv-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.dhww-deliv-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF751F;
    margin-bottom: 4px;
}

.dhww-deliv-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #0B173D;
    line-height: 1.5;
}

/* ══ BOTTOM CTA BAR ══ */
.dhww-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 28px 36px;
    background: #0B173D;
    border-radius: 18px;
    opacity: 0;
    animation: dhwwFadeUp 0.7s ease forwards 0.5s;
    flex-wrap: wrap;
}

.dhww-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dhww-bottom-total {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(239, 229, 207, 0.35);
}

.dhww-bottom-time {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
}

.dhww-bottom-time em {
    color: #FF751F;
    font-style: italic;
}

.dhww-bottom-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(239, 229, 207, 0.4);
    margin-top: 2px;
}

.dhww-bottom-cta {
    font-family: 'Manrope', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
    background: #FF751F;
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.dhww-bottom-cta:hover {
    background: #e5650d;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 117, 31, 0.4);
}

.dhww-bottom-cta svg {
    transition: transform 0.2s;
}

.dhww-bottom-cta:hover svg {
    transform: translateX(4px);
}

/* ══ KEYFRAMES ══ */
@keyframes dhwwFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .dhww-section {
        padding: 72px 24px 90px;
    }

    .dhww-top-row {
        grid-template-columns: 1fr;
    }

    .dhww-body {
        grid-template-columns: 1fr;
    }

    .dhww-mockup-panel {
        height: 320px;
        position: relative;
        top: auto;
    }

    .dhww-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}